You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dom/const.js
+12-35Lines changed: 12 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
/**
8
8
* Phaser ScaleManager Modes.
9
9
*
10
-
* @name Phaser.ScaleManager
10
+
* @name Phaser.DOM.ScaleModes
11
11
* @enum {integer}
12
12
* @memberof Phaser
13
13
* @readonly
@@ -17,58 +17,35 @@
17
17
module.exports={
18
18
19
19
/**
20
-
* A scale mode that stretches content to fill all available space within the parent node, or window if no parent - see {@link Phaser.ScaleManager#scaleMode scaleMode}.
21
20
*
22
-
* @name Phaser.ScaleManager.EXACT_FIT
23
-
* @since 3.15.0
24
-
*/
25
-
EXACT_FIT: 0,
26
-
27
-
/**
28
-
* A scale mode that prevents any scaling - see {@link Phaser.ScaleManager#scaleMode scaleMode}.
29
21
*
30
-
* @name Phaser.ScaleManager.NO_SCALE
22
+
* @name Phaser.DOM.EXACT
31
23
* @since 3.15.0
32
24
*/
33
-
NO_SCALE: 1,
25
+
EXACT: 0,
34
26
35
27
/**
36
-
* A scale mode that shows the entire game while maintaining proportions - see {@link Phaser.ScaleManager#scaleMode scaleMode}.
37
28
*
38
-
* @name Phaser.ScaleManager.SHOW_ALL
39
-
* @since 3.15.0
40
-
*/
41
-
SHOW_ALL: 2,
42
-
43
-
/**
44
-
* A scale mode that causes the game size to change as the browser window changes size - see {@link Phaser.ScaleManager#scaleMode scaleMode}.
45
29
*
46
-
* @name Phaser.ScaleManager.RESIZE
30
+
* @name Phaser.DOM.FILL
47
31
* @since 3.15.0
48
32
*/
49
-
RESIZE: 3,
33
+
FILL: 1,
50
34
51
35
/**
52
-
* A scale mode that allows a custom scale factor - see {@link Phaser.ScaleManager#scaleMode scaleMode}.
0 commit comments