mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Merge pull request #6502 from wpederzoli/scale-width-height
add proper key value to scale width and height
This commit is contained in:
commit
9ce718ad02
1 changed files with 16 additions and 6 deletions
|
@ -94,32 +94,42 @@ var Config = new Class({
|
|||
/**
|
||||
* @const {number} Phaser.Core.Config#resizeInterval - How many ms should elapse before checking if the browser size has changed?
|
||||
*/
|
||||
this.resizeInterval = GetValue(scaleConfig, 'resizeInterval', 500, config);
|
||||
this.resizeInterval = GetValue(
|
||||
scaleConfig,
|
||||
'resizeInterval',
|
||||
500,
|
||||
config
|
||||
);
|
||||
|
||||
/**
|
||||
* @const {?(HTMLElement|string)} Phaser.Core.Config#fullscreenTarget - The DOM element that will be sent into full screen mode, or its `id`. If undefined Phaser will create its own div and insert the canvas into it when entering fullscreen mode.
|
||||
*/
|
||||
this.fullscreenTarget = GetValue(scaleConfig, 'fullscreenTarget', null, config);
|
||||
this.fullscreenTarget = GetValue(
|
||||
scaleConfig,
|
||||
'fullscreenTarget',
|
||||
null,
|
||||
config
|
||||
);
|
||||
|
||||
/**
|
||||
* @const {number} Phaser.Core.Config#minWidth - The minimum width, in pixels, the canvas will scale down to. A value of zero means no minimum.
|
||||
*/
|
||||
this.minWidth = GetValue(scaleConfig, 'minWidth', 0, config);
|
||||
this.minWidth = GetValue(scaleConfig, 'min.width', 0, config);
|
||||
|
||||
/**
|
||||
* @const {number} Phaser.Core.Config#maxWidth - The maximum width, in pixels, the canvas will scale up to. A value of zero means no maximum.
|
||||
*/
|
||||
this.maxWidth = GetValue(scaleConfig, 'maxWidth', 0, config);
|
||||
this.maxWidth = GetValue(scaleConfig, 'max.width', 0, config);
|
||||
|
||||
/**
|
||||
* @const {number} Phaser.Core.Config#minHeight - The minimum height, in pixels, the canvas will scale down to. A value of zero means no minimum.
|
||||
*/
|
||||
this.minHeight = GetValue(scaleConfig, 'minHeight', 0, config);
|
||||
this.minHeight = GetValue(scaleConfig, 'min.height', 0, config);
|
||||
|
||||
/**
|
||||
* @const {number} Phaser.Core.Config#maxHeight - The maximum height, in pixels, the canvas will scale up to. A value of zero means no maximum.
|
||||
*/
|
||||
this.maxHeight = GetValue(scaleConfig, 'maxHeight', 0, config);
|
||||
this.maxHeight = GetValue(scaleConfig, 'max.height', 0, config);
|
||||
|
||||
/**
|
||||
* @const {number} Phaser.Core.Config#renderType - Force Phaser to use a specific renderer. Can be `CONST.CANVAS`, `CONST.WEBGL`, `CONST.HEADLESS` or `CONST.AUTO` (default)
|
||||
|
|
Loading…
Reference in a new issue