Skip to content

Commit a75540a

Browse files
committed
Updated docs.
1 parent fbc5eb7 commit a75540a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/core/Config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ var ValueToColor = require('../display/color/ValueToColor');
113113
/**
114114
* @typedef {object} ScaleConfig
115115
*
116-
* @property {(integer|string)} [width=1024] - The base width of your game.
117-
* @property {(integer|string)} [height=768] - The base height of your game.
116+
* @property {(integer|string)} [width=1024] - The base width of your game. Can be an integer or a string: '100%'.
117+
* @property {(integer|string)} [height=768] - The base height of your game. Can be an integer or a string: '100%'.
118118
* @property {integer} [zoom=1] - The zoom value of the game canvas.
119-
* @property {number} [resolution=1] - The rendering resolution of the canvas.
119+
* @property {number} [resolution=1] - The rendering resolution of the canvas. This is reserved for future use and is currently ignored.
120120
* @property {(HTMLElement|string)} [parent] - The DOM element that will contain the game canvas, or its `id`. If null (the default) or if the named element doesn't exist, the game canvas is inserted directly into the document body.
121121
* @property {boolean} [expandParent=true] - Is the Scale Manager allowed to adjust the CSS height property of the parent to be 100%?
122122
* @property {integer} [mode=0] - The scale mode.
@@ -126,7 +126,7 @@ var ValueToColor = require('../display/color/ValueToColor');
126126
* @property {integer} [maxHeight] - The maximum height the canvas can be scaled up to.
127127
* @property {boolean} [autoRound=false] - Automatically round the display and style sizes of the canvas. This can help with performance in lower-powered devices.
128128
* @property {integer} [autoCenter=0] - Automatically center the canvas within the parent? 0 = No centering. 1 = Center both horizontally and vertically. 2 = Center horizontally. 3 = Center vertically.
129-
* @property {integer} [resizeInterval=500] - How many ms should elapse before checking if the browser size has changed?
129+
* @property {integer} [resizeInterval=2000] - How many ms should elapse before checking if the browser size has changed?
130130
*/
131131

132132
/**

0 commit comments

Comments
 (0)