Skip to content

Commit bb1b96a

Browse files
committed
Changed Phaser.Display.Align to @enum
1 parent f4eb9c0 commit bb1b96a

1 file changed

Lines changed: 44 additions & 26 deletions

File tree

src/display/align/const.js

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,122 +4,140 @@
44
* @license {@link https://opensource.org/licenses/MIT|MIT License}
55
*/
66

7+
/**
8+
* @name Phaser.Display.Align
9+
* @enum {integer}
10+
*/
11+
712
var ALIGN_CONST = {
813

914
/**
1015
* A constant representing a top-left alignment or position.
11-
* @constant
16+
*
1217
* @name Phaser.Display.Align.TOP_LEFT
13-
* @since 3.0.0
18+
* @constant
1419
* @type {integer}
20+
* @since 3.0.0
1521
*/
1622
TOP_LEFT: 0,
1723

1824
/**
1925
* A constant representing a top-center alignment or position.
20-
* @constant
26+
*
2127
* @name Phaser.Display.Align.TOP_CENTER
22-
* @since 3.0.0
28+
* @constant
2329
* @type {integer}
30+
* @since 3.0.0
2431
*/
2532
TOP_CENTER: 1,
2633

2734
/**
2835
* A constant representing a top-right alignment or position.
29-
* @constant
36+
*
3037
* @name Phaser.Display.Align.TOP_RIGHT
31-
* @since 3.0.0
38+
* @constant
3239
* @type {integer}
40+
* @since 3.0.0
3341
*/
3442
TOP_RIGHT: 2,
3543

3644
/**
3745
* A constant representing a left-top alignment or position.
38-
* @constant
46+
*
3947
* @name Phaser.Display.Align.LEFT_TOP
40-
* @since 3.0.0
48+
* @constant
4149
* @type {integer}
50+
* @since 3.0.0
4251
*/
4352
LEFT_TOP: 3,
4453

4554
/**
4655
* A constant representing a left-center alignment or position.
47-
* @constant
56+
*
4857
* @name Phaser.Display.Align.LEFT_CENTER
49-
* @since 3.0.0
58+
* @constant
5059
* @type {integer}
60+
* @since 3.0.0
5161
*/
5262
LEFT_CENTER: 4,
5363

5464
/**
5565
* A constant representing a left-bottom alignment or position.
56-
* @constant
66+
*
5767
* @name Phaser.Display.Align.LEFT_BOTTOM
58-
* @since 3.0.0
68+
* @constant
5969
* @type {integer}
70+
* @since 3.0.0
6071
*/
6172
LEFT_BOTTOM: 5,
6273

6374
/**
6475
* A constant representing a center alignment or position.
65-
* @constant
76+
*
6677
* @name Phaser.Display.Align.CENTER
67-
* @since 3.0.0
78+
* @constant
6879
* @type {integer}
80+
* @since 3.0.0
6981
*/
7082
CENTER: 6,
7183

7284
/**
7385
* A constant representing a right-top alignment or position.
74-
* @constant
86+
*
7587
* @name Phaser.Display.Align.RIGHT_TOP
76-
* @since 3.0.0
88+
* @constant
7789
* @type {integer}
90+
* @since 3.0.0
7891
*/
7992
RIGHT_TOP: 7,
8093

8194
/**
8295
* A constant representing a right-center alignment or position.
83-
* @constant
96+
*
8497
* @name Phaser.Display.Align.RIGHT_CENTER
85-
* @since 3.0.0
98+
* @constant
8699
* @type {integer}
100+
* @since 3.0.0
87101
*/
88102
RIGHT_CENTER: 8,
89103

90104
/**
91105
* A constant representing a right-bottom alignment or position.
92-
* @constant
106+
*
93107
* @name Phaser.Display.Align.RIGHT_BOTTOM
94-
* @since 3.0.0
108+
* @constant
95109
* @type {integer}
110+
* @since 3.0.0
96111
*/
97112
RIGHT_BOTTOM: 9,
98113

99114
/**
100115
* A constant representing a bottom-left alignment or position.
101-
* @constant
116+
*
102117
* @name Phaser.Display.Align.BOTTOM_LEFT
103-
* @since 3.0.0
118+
* @constant
104119
* @type {integer}
120+
* @since 3.0.0
105121
*/
106122
BOTTOM_LEFT: 10,
107123

108124
/**
109125
* A constant representing a bottom-center alignment or position.
110-
* @constant
126+
*
111127
* @name Phaser.Display.Align.BOTTOM_CENTER
112-
* @since 3.0.0
128+
* @constant
113129
* @type {integer}
130+
* @since 3.0.0
114131
*/
115132
BOTTOM_CENTER: 11,
116133

117134
/**
118135
* A constant representing a bottom-right alignment or position.
119-
* @constant
136+
*
120137
* @name Phaser.Display.Align.BOTTOM_RIGHT
121-
* @since 3.0.0
138+
* @constant
122139
* @type {integer}
140+
* @since 3.0.0
123141
*/
124142
BOTTOM_RIGHT: 12
125143

0 commit comments

Comments
 (0)