55 */
66
77/**
8- * Phaser ScaleManager Modes .
8+ * Phaser ScaleManager constants .
99 *
1010 * @name Phaser.DOM.ScaleModes
1111 * @enum {integer}
1212 * @memberof Phaser
1313 * @readonly
14- * @since 3.15 .0
14+ * @since 3.16 .0
1515 */
1616
1717module . exports = {
@@ -28,72 +28,88 @@ module.exports = {
2828 *
2929 *
3030 * @name Phaser.DOM.WIDTH_CONTROLS_HEIGHT
31- * @since 3.15 .0
31+ * @since 3.16 .0
3232 */
3333 WIDTH_CONTROLS_HEIGHT : 1 ,
3434
3535 /**
3636 *
3737 *
3838 * @name Phaser.DOM.HEIGHT_CONTROLS_WIDTH
39- * @since 3.15 .0
39+ * @since 3.16 .0
4040 */
4141 HEIGHT_CONTROLS_WIDTH : 2 ,
4242
4343 /**
4444 *
4545 *
4646 * @name Phaser.DOM.FIT
47- * @since 3.15 .0
47+ * @since 3.16 .0
4848 */
4949 FIT : 3 ,
5050
5151 /**
5252 *
5353 *
5454 * @name Phaser.DOM.ENVELOPE
55- * @since 3.15 .0
55+ * @since 3.16 .0
5656 */
5757 ENVELOPE : 4 ,
5858
5959 /**
6060 * Canvas is resized to fit all available parent space, regardless of aspect ratio.
6161 *
6262 * @name Phaser.DOM.RESIZE
63- * @since 3.15 .0
63+ * @since 3.16 .0
6464 */
6565 RESIZE : 5 ,
6666
6767 /**
6868 * Canvas is not centered within the parent.
6969 *
7070 * @name Phaser.DOM.NO_CENTER
71- * @since 3.15 .0
71+ * @since 3.16 .0
7272 */
7373 NO_CENTER : 0 ,
7474
7575 /**
76- * Canvas is not centered within the parent.
76+ * Canvas is centered both horizontally and vertically within the parent.
7777 *
7878 * @name Phaser.DOM.CENTER_BOTH
79- * @since 3.15 .0
79+ * @since 3.16 .0
8080 */
8181 CENTER_BOTH : 1 ,
8282
8383 /**
84- * Canvas is not centered within the parent.
84+ * Canvas is centered horizontally within the parent.
8585 *
8686 * @name Phaser.DOM.CENTER_HORIZONTALLY
87- * @since 3.15 .0
87+ * @since 3.16 .0
8888 */
8989 CENTER_HORIZONTALLY : 2 ,
9090
9191 /**
92- * Canvas is not centered within the parent.
92+ * Canvas is centered vertically within the parent.
9393 *
9494 * @name Phaser.DOM.CENTER_VERTICALLY
95- * @since 3.15.0
95+ * @since 3.16.0
96+ */
97+ CENTER_VERTICALLY : 3 ,
98+
99+ /**
100+ * Browser is in landscape orientation.
101+ *
102+ * @name Phaser.DOM.LANDSCAPE
103+ * @since 3.16.0
104+ */
105+ LANDSCAPE : 'landscape-primary' ,
106+
107+ /**
108+ * Browser is in portrait orientation.
109+ *
110+ * @name Phaser.DOM.PORTRAIT
111+ * @since 3.16.0
96112 */
97- CENTER_VERTICALLY : 3
113+ PORTRAIT : 'portrait-primary'
98114
99115} ;
0 commit comments