|
4 | 4 | * @license {@link https://opensource.org/licenses/MIT|MIT License} |
5 | 5 | */ |
6 | 6 |
|
| 7 | +/** |
| 8 | + * @name Phaser.Display.Align |
| 9 | + * @enum {integer} |
| 10 | + */ |
| 11 | + |
7 | 12 | var ALIGN_CONST = { |
8 | 13 |
|
9 | 14 | /** |
10 | 15 | * A constant representing a top-left alignment or position. |
11 | | - * @constant |
| 16 | + * |
12 | 17 | * @name Phaser.Display.Align.TOP_LEFT |
13 | | - * @since 3.0.0 |
| 18 | + * @constant |
14 | 19 | * @type {integer} |
| 20 | + * @since 3.0.0 |
15 | 21 | */ |
16 | 22 | TOP_LEFT: 0, |
17 | 23 |
|
18 | 24 | /** |
19 | 25 | * A constant representing a top-center alignment or position. |
20 | | - * @constant |
| 26 | + * |
21 | 27 | * @name Phaser.Display.Align.TOP_CENTER |
22 | | - * @since 3.0.0 |
| 28 | + * @constant |
23 | 29 | * @type {integer} |
| 30 | + * @since 3.0.0 |
24 | 31 | */ |
25 | 32 | TOP_CENTER: 1, |
26 | 33 |
|
27 | 34 | /** |
28 | 35 | * A constant representing a top-right alignment or position. |
29 | | - * @constant |
| 36 | + * |
30 | 37 | * @name Phaser.Display.Align.TOP_RIGHT |
31 | | - * @since 3.0.0 |
| 38 | + * @constant |
32 | 39 | * @type {integer} |
| 40 | + * @since 3.0.0 |
33 | 41 | */ |
34 | 42 | TOP_RIGHT: 2, |
35 | 43 |
|
36 | 44 | /** |
37 | 45 | * A constant representing a left-top alignment or position. |
38 | | - * @constant |
| 46 | + * |
39 | 47 | * @name Phaser.Display.Align.LEFT_TOP |
40 | | - * @since 3.0.0 |
| 48 | + * @constant |
41 | 49 | * @type {integer} |
| 50 | + * @since 3.0.0 |
42 | 51 | */ |
43 | 52 | LEFT_TOP: 3, |
44 | 53 |
|
45 | 54 | /** |
46 | 55 | * A constant representing a left-center alignment or position. |
47 | | - * @constant |
| 56 | + * |
48 | 57 | * @name Phaser.Display.Align.LEFT_CENTER |
49 | | - * @since 3.0.0 |
| 58 | + * @constant |
50 | 59 | * @type {integer} |
| 60 | + * @since 3.0.0 |
51 | 61 | */ |
52 | 62 | LEFT_CENTER: 4, |
53 | 63 |
|
54 | 64 | /** |
55 | 65 | * A constant representing a left-bottom alignment or position. |
56 | | - * @constant |
| 66 | + * |
57 | 67 | * @name Phaser.Display.Align.LEFT_BOTTOM |
58 | | - * @since 3.0.0 |
| 68 | + * @constant |
59 | 69 | * @type {integer} |
| 70 | + * @since 3.0.0 |
60 | 71 | */ |
61 | 72 | LEFT_BOTTOM: 5, |
62 | 73 |
|
63 | 74 | /** |
64 | 75 | * A constant representing a center alignment or position. |
65 | | - * @constant |
| 76 | + * |
66 | 77 | * @name Phaser.Display.Align.CENTER |
67 | | - * @since 3.0.0 |
| 78 | + * @constant |
68 | 79 | * @type {integer} |
| 80 | + * @since 3.0.0 |
69 | 81 | */ |
70 | 82 | CENTER: 6, |
71 | 83 |
|
72 | 84 | /** |
73 | 85 | * A constant representing a right-top alignment or position. |
74 | | - * @constant |
| 86 | + * |
75 | 87 | * @name Phaser.Display.Align.RIGHT_TOP |
76 | | - * @since 3.0.0 |
| 88 | + * @constant |
77 | 89 | * @type {integer} |
| 90 | + * @since 3.0.0 |
78 | 91 | */ |
79 | 92 | RIGHT_TOP: 7, |
80 | 93 |
|
81 | 94 | /** |
82 | 95 | * A constant representing a right-center alignment or position. |
83 | | - * @constant |
| 96 | + * |
84 | 97 | * @name Phaser.Display.Align.RIGHT_CENTER |
85 | | - * @since 3.0.0 |
| 98 | + * @constant |
86 | 99 | * @type {integer} |
| 100 | + * @since 3.0.0 |
87 | 101 | */ |
88 | 102 | RIGHT_CENTER: 8, |
89 | 103 |
|
90 | 104 | /** |
91 | 105 | * A constant representing a right-bottom alignment or position. |
92 | | - * @constant |
| 106 | + * |
93 | 107 | * @name Phaser.Display.Align.RIGHT_BOTTOM |
94 | | - * @since 3.0.0 |
| 108 | + * @constant |
95 | 109 | * @type {integer} |
| 110 | + * @since 3.0.0 |
96 | 111 | */ |
97 | 112 | RIGHT_BOTTOM: 9, |
98 | 113 |
|
99 | 114 | /** |
100 | 115 | * A constant representing a bottom-left alignment or position. |
101 | | - * @constant |
| 116 | + * |
102 | 117 | * @name Phaser.Display.Align.BOTTOM_LEFT |
103 | | - * @since 3.0.0 |
| 118 | + * @constant |
104 | 119 | * @type {integer} |
| 120 | + * @since 3.0.0 |
105 | 121 | */ |
106 | 122 | BOTTOM_LEFT: 10, |
107 | 123 |
|
108 | 124 | /** |
109 | 125 | * A constant representing a bottom-center alignment or position. |
110 | | - * @constant |
| 126 | + * |
111 | 127 | * @name Phaser.Display.Align.BOTTOM_CENTER |
112 | | - * @since 3.0.0 |
| 128 | + * @constant |
113 | 129 | * @type {integer} |
| 130 | + * @since 3.0.0 |
114 | 131 | */ |
115 | 132 | BOTTOM_CENTER: 11, |
116 | 133 |
|
117 | 134 | /** |
118 | 135 | * A constant representing a bottom-right alignment or position. |
119 | | - * @constant |
| 136 | + * |
120 | 137 | * @name Phaser.Display.Align.BOTTOM_RIGHT |
121 | | - * @since 3.0.0 |
| 138 | + * @constant |
122 | 139 | * @type {integer} |
| 140 | + * @since 3.0.0 |
123 | 141 | */ |
124 | 142 | BOTTOM_RIGHT: 12 |
125 | 143 |
|
|
0 commit comments