Skip to content

Commit 6e83d54

Browse files
committed
Added supported FP attribute "browserZoom"
1 parent f57f5da commit 6e83d54

File tree

8 files changed

+20
-13
lines changed

8 files changed

+20
-13
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MyExternalInterfaceExample extends React.Component {
5252
}
5353

5454
render() {
55-
// Globally unique ID is required for IE<11 for ExternalInterface callbacks.
55+
// Globally unique ID is required for ExternalInterface callbacks in IE<11.
5656
return (
5757
<ReactSWF
5858
...
@@ -103,6 +103,7 @@ allowScriptAccess {enum} - always, sameDomain*, never
103103
align {enum} - l, t, r
104104
base {string}
105105
bgcolor {string} - #RRGGBB
106+
browserZoom - scale*, noscale
106107
fullScreenAspectRatio {enum} - portrait, landscape
107108
loop {boolean} - true*, false
108109
menu {boolean} - true*, false

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.13.0",
3+
"version": "0.13.1",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"authors": ["Andreas Svensson <[email protected]>"],

npm-react-swf/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Use [SWFPlayerVersion](https://github.com/syranide/swf-player-version) to determ
1919
/>
2020
```
2121
```jsx
22-
var SWF_ID_PREFIX = '__MyExternalInterfaceExample_SWFID_';
23-
var SWF_CALL_NAME_PREFIX = '__MyExternalInterfaceExample_SWFCall_';
22+
const SWF_ID_PREFIX = '__MyExternalInterfaceExample_SWFID_';
23+
const SWF_CALL_NAME_PREFIX = '__MyExternalInterfaceExample_SWFCall_';
2424

25-
var nextUID = 0;
25+
let nextUID = 0;
2626

2727
class MyExternalInterfaceExample extends React.Component {
2828
constructor(props) {
@@ -52,7 +52,7 @@ class MyExternalInterfaceExample extends React.Component {
5252
}
5353

5454
render() {
55-
// Globally unique ID is required for IE<11 for ExternalInterface callbacks.
55+
// Globally unique ID is required for ExternalInterface callbacks in IE<11.
5656
return (
5757
<ReactSWF
5858
...
@@ -103,6 +103,7 @@ allowScriptAccess {enum} - always, sameDomain*, never
103103
align {enum} - l, t, r
104104
base {string}
105105
bgcolor {string} - #RRGGBB
106+
browserZoom - scale*, noscale
106107
fullScreenAspectRatio {enum} - portrait, landscape
107108
loop {boolean} - true*, false
108109
menu {boolean} - true*, false

npm-react-swf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.13.0",
3+
"version": "0.13.1",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"author": "Andreas Svensson <[email protected]>",

npm-react-swf/react-swf.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-swf v0.13.0 | @syranide | MIT license */
1+
/*! react-swf v0.13.1 | @syranide | MIT license */
22

33
'use strict';
44

@@ -15,6 +15,7 @@ var PropTypes = React.PropTypes;
1515
align = l, t, r
1616
base = url
1717
bgcolor = #RRGGBB
18+
browserZoom = scale*, noscale
1819
fullScreenAspectRatio = portrait, landscape
1920
loop = true*, false
2021
menu = true*, false
@@ -36,6 +37,7 @@ var supportedFPParamNames = {
3637
align: 'align',
3738
base: 'base',
3839
bgcolor: 'bgcolor',
40+
browserZoom: 'browserzoom',
3941
fullScreenAspectRatio: 'fullscreenaspectratio',
4042
loop: 'loop',
4143
menu: 'menu',
@@ -157,6 +159,7 @@ ReactSWF.propTypes = {
157159
align: PropTypes.oneOf(['l', 't', 'r']),
158160
base: PropTypes.string,
159161
bgcolor: PropTypes.string,
162+
browserZoom: PropTypes.oneOf(['scale', 'noscale']),
160163
fullScreenAspectRatio: PropTypes.oneOf(['portrait', 'landscape']),
161164
loop: PropTypes.bool,
162165
menu: PropTypes.bool,
@@ -211,7 +214,6 @@ ReactSWF.prototype.componentWillUnmount = function() {
211214
};
212215

213216
ReactSWF.prototype.render = function() {
214-
var that = this;
215217
var props = this.props;
216218
var state = this.state;
217219

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.13.0",
3+
"version": "0.13.1",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"author": "Andreas Svensson <[email protected]>",

react-swf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-swf v0.13.0 | @syranide | MIT license */
1+
/*! react-swf v0.13.1 | @syranide | MIT license */
22

33
(function(root, factory) {
44
if (typeof define === 'function' && define.amd) {
@@ -23,6 +23,7 @@
2323
align = l, t, r
2424
base = url
2525
bgcolor = #RRGGBB
26+
browserZoom = scale*, noscale
2627
fullScreenAspectRatio = portrait, landscape
2728
loop = true*, false
2829
menu = true*, false
@@ -44,6 +45,7 @@
4445
align: 'align',
4546
base: 'base',
4647
bgcolor: 'bgcolor',
48+
browserZoom: 'browserzoom',
4749
fullScreenAspectRatio: 'fullscreenaspectratio',
4850
loop: 'loop',
4951
menu: 'menu',
@@ -165,6 +167,7 @@
165167
align: PropTypes.oneOf(['l', 't', 'r']),
166168
base: PropTypes.string,
167169
bgcolor: PropTypes.string,
170+
browserZoom: PropTypes.oneOf(['scale', 'noscale']),
168171
fullScreenAspectRatio: PropTypes.oneOf(['portrait', 'landscape']),
169172
loop: PropTypes.bool,
170173
menu: PropTypes.bool,

react-swf.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)