Skip to content

Commit 814932b

Browse files
committed
Added centering constants
1 parent 49c2868 commit 814932b

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

src/dom/const.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,38 @@ module.exports = {
6262
* @name Phaser.DOM.RESIZE
6363
* @since 3.15.0
6464
*/
65-
RESIZE: 5
65+
RESIZE: 5,
66+
67+
/**
68+
* Canvas is not centered within the parent.
69+
*
70+
* @name Phaser.DOM.NO_CENTER
71+
* @since 3.15.0
72+
*/
73+
NO_CENTER: 0,
74+
75+
/**
76+
* Canvas is not centered within the parent.
77+
*
78+
* @name Phaser.DOM.CENTER_BOTH
79+
* @since 3.15.0
80+
*/
81+
CENTER_BOTH: 1,
82+
83+
/**
84+
* Canvas is not centered within the parent.
85+
*
86+
* @name Phaser.DOM.CENTER_HORIZONTALLY
87+
* @since 3.15.0
88+
*/
89+
CENTER_HORIZONTALLY: 2,
90+
91+
/**
92+
* Canvas is not centered within the parent.
93+
*
94+
* @name Phaser.DOM.CENTER_VERTICALLY
95+
* @since 3.15.0
96+
*/
97+
CENTER_VERTICALLY: 3
6698

6799
};

0 commit comments

Comments
 (0)