@vpmedia/phaser 1.95.0 → 1.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +9 -9
  3. package/src/phaser/core/animation.js +61 -56
  4. package/src/phaser/core/animation_manager.js +55 -55
  5. package/src/phaser/core/cache.js +154 -154
  6. package/src/phaser/core/device.js +2 -1
  7. package/src/phaser/core/device_util.js +27 -27
  8. package/src/phaser/core/dom.js +43 -43
  9. package/src/phaser/core/event_manager.js +63 -63
  10. package/src/phaser/core/factory.js +47 -47
  11. package/src/phaser/core/frame.js +30 -30
  12. package/src/phaser/core/frame_data.js +30 -28
  13. package/src/phaser/core/frame_util.js +8 -8
  14. package/src/phaser/core/game.js +34 -18
  15. package/src/phaser/core/loader.js +170 -170
  16. package/src/phaser/core/loader_parser.js +22 -22
  17. package/src/phaser/core/raf.js +1 -1
  18. package/src/phaser/core/scene.js +16 -10
  19. package/src/phaser/core/scene_manager.js +51 -43
  20. package/src/phaser/core/signal.js +56 -52
  21. package/src/phaser/core/sound.js +54 -54
  22. package/src/phaser/core/sound_manager.js +49 -49
  23. package/src/phaser/core/stage.js +16 -16
  24. package/src/phaser/core/time.js +30 -30
  25. package/src/phaser/core/timer.js +64 -64
  26. package/src/phaser/core/timer_event.js +9 -9
  27. package/src/phaser/core/tween.js +90 -90
  28. package/src/phaser/core/tween_data.js +30 -30
  29. package/src/phaser/core/tween_manager.js +29 -24
  30. package/src/phaser/core/world.js +4 -3
  31. package/src/phaser/display/bitmap_text.js +61 -54
  32. package/src/phaser/display/button.js +48 -47
  33. package/src/phaser/display/canvas/buffer.js +8 -8
  34. package/src/phaser/display/canvas/graphics.js +8 -8
  35. package/src/phaser/display/canvas/masker.js +5 -5
  36. package/src/phaser/display/canvas/pool.js +18 -18
  37. package/src/phaser/display/canvas/renderer.js +16 -16
  38. package/src/phaser/display/canvas/tinter.js +22 -22
  39. package/src/phaser/display/canvas/util.js +42 -42
  40. package/src/phaser/display/display_object.js +119 -108
  41. package/src/phaser/display/graphics.js +112 -112
  42. package/src/phaser/display/graphics_data.js +10 -10
  43. package/src/phaser/display/graphics_data_util.js +3 -3
  44. package/src/phaser/display/group.js +50 -50
  45. package/src/phaser/display/image.js +54 -50
  46. package/src/phaser/display/sprite_batch.js +2 -2
  47. package/src/phaser/display/sprite_util.js +19 -19
  48. package/src/phaser/display/text.js +212 -187
  49. package/src/phaser/display/webgl/abstract_filter.js +4 -4
  50. package/src/phaser/display/webgl/base_texture.js +9 -9
  51. package/src/phaser/display/webgl/blend_manager.js +7 -7
  52. package/src/phaser/display/webgl/earcut.js +95 -95
  53. package/src/phaser/display/webgl/earcut_node.js +4 -4
  54. package/src/phaser/display/webgl/fast_sprite_batch.js +15 -15
  55. package/src/phaser/display/webgl/filter_manager.js +9 -9
  56. package/src/phaser/display/webgl/filter_texture.js +10 -10
  57. package/src/phaser/display/webgl/graphics.js +37 -37
  58. package/src/phaser/display/webgl/graphics_data.js +4 -4
  59. package/src/phaser/display/webgl/mask_manager.js +6 -6
  60. package/src/phaser/display/webgl/render_texture.js +16 -16
  61. package/src/phaser/display/webgl/renderer.js +20 -20
  62. package/src/phaser/display/webgl/shader/complex.js +4 -4
  63. package/src/phaser/display/webgl/shader/fast.js +4 -4
  64. package/src/phaser/display/webgl/shader/normal.js +8 -8
  65. package/src/phaser/display/webgl/shader/primitive.js +4 -4
  66. package/src/phaser/display/webgl/shader/strip.js +4 -4
  67. package/src/phaser/display/webgl/shader_manager.js +9 -9
  68. package/src/phaser/display/webgl/sprite_batch.js +18 -18
  69. package/src/phaser/display/webgl/stencil_manager.js +16 -16
  70. package/src/phaser/display/webgl/texture.js +13 -13
  71. package/src/phaser/display/webgl/texture_util.js +8 -8
  72. package/src/phaser/display/webgl/util.js +25 -25
  73. package/src/phaser/geom/circle.js +69 -69
  74. package/src/phaser/geom/ellipse.js +28 -28
  75. package/src/phaser/geom/line.js +93 -93
  76. package/src/phaser/geom/matrix.js +54 -54
  77. package/src/phaser/geom/point.js +96 -96
  78. package/src/phaser/geom/polygon.js +22 -22
  79. package/src/phaser/geom/rectangle.js +132 -132
  80. package/src/phaser/geom/rounded_rectangle.js +12 -12
  81. package/src/phaser/geom/util/circle.js +33 -33
  82. package/src/phaser/geom/util/ellipse.js +5 -5
  83. package/src/phaser/geom/util/line.js +26 -26
  84. package/src/phaser/geom/util/matrix.js +8 -8
  85. package/src/phaser/geom/util/point.js +97 -97
  86. package/src/phaser/geom/util/polygon.js +4 -4
  87. package/src/phaser/geom/util/rectangle.js +74 -74
  88. package/src/phaser/geom/util/rounded_rectangle.js +4 -4
  89. package/src/phaser/util/math.js +81 -81
  90. package/types/phaser/core/animation.d.ts +61 -56
  91. package/types/phaser/core/animation.d.ts.map +1 -1
  92. package/types/phaser/core/animation_manager.d.ts +55 -55
  93. package/types/phaser/core/cache.d.ts +154 -154
  94. package/types/phaser/core/device.d.ts.map +1 -1
  95. package/types/phaser/core/dom.d.ts +43 -43
  96. package/types/phaser/core/event_manager.d.ts +63 -63
  97. package/types/phaser/core/factory.d.ts +47 -47
  98. package/types/phaser/core/frame.d.ts +30 -30
  99. package/types/phaser/core/frame_data.d.ts +28 -27
  100. package/types/phaser/core/frame_data.d.ts.map +1 -1
  101. package/types/phaser/core/game.d.ts +52 -19
  102. package/types/phaser/core/game.d.ts.map +1 -1
  103. package/types/phaser/core/loader.d.ts +170 -170
  104. package/types/phaser/core/loader_parser.d.ts.map +1 -1
  105. package/types/phaser/core/raf.d.ts +1 -1
  106. package/types/phaser/core/scene.d.ts +15 -9
  107. package/types/phaser/core/scene.d.ts.map +1 -1
  108. package/types/phaser/core/scene_manager.d.ts +51 -43
  109. package/types/phaser/core/scene_manager.d.ts.map +1 -1
  110. package/types/phaser/core/signal.d.ts +54 -51
  111. package/types/phaser/core/signal.d.ts.map +1 -1
  112. package/types/phaser/core/sound.d.ts +54 -54
  113. package/types/phaser/core/sound_manager.d.ts +49 -49
  114. package/types/phaser/core/stage.d.ts +10 -10
  115. package/types/phaser/core/time.d.ts +30 -30
  116. package/types/phaser/core/timer.d.ts +64 -64
  117. package/types/phaser/core/timer_event.d.ts +9 -9
  118. package/types/phaser/core/tween.d.ts +90 -90
  119. package/types/phaser/core/tween_data.d.ts +30 -30
  120. package/types/phaser/core/tween_manager.d.ts +29 -24
  121. package/types/phaser/core/tween_manager.d.ts.map +1 -1
  122. package/types/phaser/core/world.d.ts +4 -3
  123. package/types/phaser/core/world.d.ts.map +1 -1
  124. package/types/phaser/display/bitmap_text.d.ts +59 -52
  125. package/types/phaser/display/bitmap_text.d.ts.map +1 -1
  126. package/types/phaser/display/button.d.ts +47 -46
  127. package/types/phaser/display/button.d.ts.map +1 -1
  128. package/types/phaser/display/canvas/buffer.d.ts +8 -8
  129. package/types/phaser/display/canvas/renderer.d.ts +16 -16
  130. package/types/phaser/display/display_object.d.ts +119 -108
  131. package/types/phaser/display/display_object.d.ts.map +1 -1
  132. package/types/phaser/display/graphics.d.ts +101 -101
  133. package/types/phaser/display/graphics_data.d.ts +10 -10
  134. package/types/phaser/display/group.d.ts +47 -47
  135. package/types/phaser/display/image.d.ts +42 -40
  136. package/types/phaser/display/image.d.ts.map +1 -1
  137. package/types/phaser/display/text.d.ts +207 -184
  138. package/types/phaser/display/text.d.ts.map +1 -1
  139. package/types/phaser/display/webgl/abstract_filter.d.ts +4 -4
  140. package/types/phaser/display/webgl/base_texture.d.ts +9 -9
  141. package/types/phaser/display/webgl/blend_manager.d.ts +6 -6
  142. package/types/phaser/display/webgl/earcut.d.ts +95 -95
  143. package/types/phaser/display/webgl/earcut_node.d.ts +4 -4
  144. package/types/phaser/display/webgl/fast_sprite_batch.d.ts +15 -15
  145. package/types/phaser/display/webgl/filter_manager.d.ts +8 -8
  146. package/types/phaser/display/webgl/filter_texture.d.ts +10 -10
  147. package/types/phaser/display/webgl/graphics_data.d.ts +4 -4
  148. package/types/phaser/display/webgl/render_texture.d.ts +16 -16
  149. package/types/phaser/display/webgl/renderer.d.ts +20 -20
  150. package/types/phaser/display/webgl/shader/complex.d.ts +4 -4
  151. package/types/phaser/display/webgl/shader/fast.d.ts +4 -4
  152. package/types/phaser/display/webgl/shader/normal.d.ts +8 -8
  153. package/types/phaser/display/webgl/shader/primitive.d.ts +4 -4
  154. package/types/phaser/display/webgl/shader/strip.d.ts +4 -4
  155. package/types/phaser/display/webgl/shader_manager.d.ts +8 -8
  156. package/types/phaser/display/webgl/sprite_batch.d.ts +17 -17
  157. package/types/phaser/display/webgl/stencil_manager.d.ts +15 -15
  158. package/types/phaser/display/webgl/texture.d.ts +12 -12
  159. package/types/phaser/geom/circle.d.ts +69 -69
  160. package/types/phaser/geom/ellipse.d.ts +28 -28
  161. package/types/phaser/geom/line.d.ts +93 -93
  162. package/types/phaser/geom/matrix.d.ts +54 -54
  163. package/types/phaser/geom/point.d.ts +96 -96
  164. package/types/phaser/geom/polygon.d.ts +22 -22
  165. package/types/phaser/geom/rectangle.d.ts +132 -132
  166. package/types/phaser/geom/rounded_rectangle.d.ts +12 -12
  167. package/pnpm-workspace.yaml +0 -4
@@ -1,7 +1,7 @@
1
1
  export class DisplayObject {
2
2
  /**
3
- * TBD.
4
- * @param {import('../core/game.js').Game} game - TBD.
3
+ * Creates a new DisplayObject instance.
4
+ * @param {import('../core/game.js').Game} game - The game instance this display object belongs to.
5
5
  */
6
6
  constructor(game: import("../core/game.js").Game);
7
7
  /** @type {boolean} */
@@ -58,264 +58,275 @@ export class DisplayObject {
58
58
  /** @type {import('../core/game.js').Game } */
59
59
  game: import("../core/game.js").Game;
60
60
  /**
61
- * TBD.
61
+ * Destroys this display object and cleans up resources.
62
62
  */
63
63
  destroy(): void;
64
64
  /**
65
- * TBD.
66
- * @param {DisplayObject} child - TBD.
67
- * @returns {DisplayObject} TBD.
65
+ * Adds a child display object to this container.
66
+ * @param {DisplayObject} child - The child display object to add.
67
+ * @returns {DisplayObject} The added child display object.
68
68
  */
69
69
  addChild(child: DisplayObject): DisplayObject;
70
70
  /**
71
- * TBD.
72
- * @param {DisplayObject} child - TBD.
73
- * @param {number} index - TBD.
74
- * @returns {DisplayObject} TBD.
75
- * @throws {Error}
71
+ * Adds a child display object at a specific index in the children list.
72
+ * @param {DisplayObject} child - The child display object to add.
73
+ * @param {number} index - The index to insert the child at.
74
+ * @returns {DisplayObject} The added child display object.
75
+ * @throws {Error} If the index is out of bounds.
76
76
  */
77
77
  addChildAt(child: DisplayObject, index: number): DisplayObject;
78
78
  /**
79
- * TBD.
80
- * @param {DisplayObject} child - TBD.
81
- * @param {DisplayObject} child2 - TBD.
82
- * @throws {Error}
79
+ * Swaps the positions of two child display objects.
80
+ * @param {DisplayObject} child - The first child display object.
81
+ * @param {DisplayObject} child2 - The second child display object.
82
+ * @throws {Error} If either child is not a child of this container.
83
83
  */
84
84
  swapChildren(child: DisplayObject, child2: DisplayObject): void;
85
85
  /**
86
- * TBD.
87
- * @param {DisplayObject} child - TBD.
88
- * @returns {number} TBD.
89
- * @throws {Error}
86
+ * Gets the index of a child display object in the children list.
87
+ * @param {DisplayObject} child - The child display object to find.
88
+ * @returns {number} The index of the child in the children list.
89
+ * @throws {Error} If the child is not a child of this container.
90
90
  */
91
91
  getChildIndex(child: DisplayObject): number;
92
92
  /**
93
- * TBD.
94
- * @param {DisplayObject} child - TBD.
95
- * @param {number} index - TBD.
96
- * @throws {Error}
93
+ * Sets the index of a child display object in the children list.
94
+ * @param {DisplayObject} child - The child display object to move.
95
+ * @param {number} index - The new index for the child.
96
+ * @throws {Error} If the index is out of bounds.
97
97
  */
98
98
  setChildIndex(child: DisplayObject, index: number): void;
99
99
  /**
100
- * TBD.
101
- * @param {number} index - TBD.
102
- * @returns {DisplayObject} TBD.
103
- * @throws {Error}
100
+ * Gets a child display object at a specific index.
101
+ * @param {number} index - The index of the child to get.
102
+ * @returns {DisplayObject} The child display object at the specified index.
103
+ * @throws {Error} If the index is out of bounds.
104
104
  */
105
105
  getChildAt(index: number): DisplayObject;
106
106
  /**
107
- * TBD.
108
- * @param {DisplayObject} child - TBD.
109
- * @returns {DisplayObject} TBD.
107
+ * Removes a child display object from this container.
108
+ * @param {DisplayObject} child - The child display object to remove.
109
+ * @returns {DisplayObject} The removed child display object.
110
110
  */
111
111
  removeChild(child: DisplayObject): DisplayObject;
112
112
  /**
113
- * TBD.
114
- * @param {number} index - TBD.
115
- * @returns {DisplayObject} TBD.
113
+ * Removes a child display object at a specific index.
114
+ * @param {number} index - The index of the child to remove.
115
+ * @returns {DisplayObject} The removed child display object.
116
116
  */
117
117
  removeChildAt(index: number): DisplayObject;
118
118
  /**
119
- * TBD.
120
- * @param {number} beginIndex - TBD.
121
- * @param {number} endIndex - TBD.
122
- * @returns {DisplayObject[]} TBD.
123
- * @throws {Error}
119
+ * Removes a range of child display objects from this container.
120
+ * @param {number} beginIndex - The starting index of the range to remove.
121
+ * @param {number} endIndex - The ending index (exclusive) of the range to remove.
122
+ * @returns {DisplayObject[]} The array of removed child display objects.
123
+ * @throws {Error} If the range is invalid.
124
124
  */
125
125
  removeChildren(beginIndex: number, endIndex: number): DisplayObject[];
126
126
  /**
127
- * TBD.
128
- * @param {DisplayObject | null | undefined} parent - TBD.
129
- * @returns {DisplayObject} TBD.
127
+ * Updates the world transform of this display object and its children.
128
+ * @param {DisplayObject | null | undefined} parent - The parent display object to use for the world transform calculation.
129
+ * @returns {DisplayObject} This DisplayObject instance for chaining.
130
130
  */
131
131
  updateTransform(parent?: DisplayObject | null | undefined): DisplayObject;
132
132
  rotationCache: any;
133
133
  worldRotation: number;
134
134
  /**
135
- * TBD.
136
- * @param {DisplayObject} targetCoordinateSpace - TBD.
137
- * @returns {Rectangle} TBD.
135
+ * Gets the bounds of this display object in world coordinates.
136
+ * @param {DisplayObject} targetCoordinateSpace - The coordinate space to calculate bounds in.
137
+ * @returns {Rectangle} The bounds rectangle of this display object.
138
138
  */
139
139
  getBounds(targetCoordinateSpace: DisplayObject): Rectangle;
140
140
  /**
141
- * TBD.
142
- * @returns {Rectangle} TBD.
141
+ * Gets the bounds of this display object in local coordinates.
142
+ * @returns {Rectangle} The bounds rectangle of this display object in local space.
143
143
  */
144
144
  getLocalBounds(): Rectangle;
145
145
  /**
146
- * TBD.
147
- * @param {DisplayObject} child - TBD.
148
- * @returns {boolean} TBD.
146
+ * Checks if a child display object is contained within this container.
147
+ * @param {DisplayObject} child - The child display object to check.
148
+ * @returns {boolean} True if the child is contained within this container, false otherwise.
149
149
  */
150
150
  contains(child: DisplayObject): boolean;
151
151
  /**
152
- * TBD.
153
- * @param {object} renderSession - TBD.
152
+ * Renders this display object using WebGL.
153
+ * @param {object} renderSession - The WebGL rendering session.
154
154
  */
155
155
  renderWebGL(renderSession: object): void;
156
156
  /**
157
- * TBD.
158
- * @param {object} renderSession - TBD.
157
+ * Renders this display object using Canvas.
158
+ * @param {object} renderSession - The Canvas rendering session.
159
159
  */
160
160
  renderCanvas(renderSession: object): void;
161
161
  /**
162
- * TBD.
162
+ * Called before the update cycle for this display object.
163
163
  */
164
164
  preUpdate(): void;
165
165
  /**
166
- * TBD.
166
+ * Called during the update cycle for this display object.
167
167
  */
168
168
  update(): void;
169
169
  /**
170
- * TBD.
170
+ * Called after the update cycle for this display object.
171
171
  */
172
172
  postUpdate(): void;
173
173
  /**
174
- * TBD.
175
- * @throws {Error}
174
+ * Generates a texture for this display object.
175
+ * @throws {Error} This method is not implemented yet.
176
176
  */
177
177
  generateTexture(): void;
178
178
  /**
179
- * TBD.
180
- * @param {Point} position - TBD.
181
- * @returns {Point} TBD.
179
+ * Converts a local position to global (world) coordinates.
180
+ * @param {Point} position - The local position to convert.
181
+ * @returns {Point} The converted global position.
182
182
  */
183
183
  toGlobal(position: Point): Point;
184
184
  /**
185
- * TBD.
186
- * @param {Point} position - TBD.
187
- * @param {DisplayObject} from - TBD.
188
- * @returns {Point} TBD.
185
+ * Converts a global (world) position to local coordinates.
186
+ * @param {Point} position - The global position to convert.
187
+ * @param {DisplayObject} from - The display object to convert from (defaults to this).
188
+ * @returns {Point} The converted local position.
189
189
  */
190
190
  toLocal(position: Point, from: DisplayObject): Point;
191
191
  /**
192
- * TBD.
193
- * @param {object} renderSession - TBD.
192
+ * Renders a cached sprite for this display object.
193
+ * @param {object} renderSession - The rendering session.
194
194
  */
195
195
  renderCachedSprite(renderSession: object): void;
196
196
  /**
197
- * TBD.
197
+ * Generates a cached sprite for this display object.
198
198
  */
199
199
  generateCachedSprite(): void;
200
200
  /**
201
- * TBD.
201
+ * Destroys the cached sprite for this display object.
202
202
  */
203
203
  destroyCachedSprite(): void;
204
204
  _cachedSprite: any;
205
205
  /**
206
- * TBD.
206
+ * Sets the width of this display object.
207
+ * @param {number} value - The new width in pixels.
207
208
  */
208
209
  set width(value: number);
209
210
  /**
210
- * TBD.
211
- * @returns {number} TBD.
211
+ * Gets the width of this display object.
212
+ * @returns {number} The width in pixels.
212
213
  */
213
214
  get width(): number;
214
215
  _width: number;
215
216
  /**
216
- * TBD.
217
+ * Sets the height of this display object.
218
+ * @param {number} value - The new height in pixels.
217
219
  */
218
220
  set height(value: number);
219
221
  /**
220
- * TBD.
221
- * @returns {number} TBD.
222
+ * Gets the height of this display object.
223
+ * @returns {number} The height in pixels.
222
224
  */
223
225
  get height(): number;
224
226
  _height: number;
225
227
  /**
226
- * TBD.
228
+ * Sets the x position of this display object.
229
+ * @param {number} value - The new x position in pixels.
227
230
  */
228
231
  set x(value: number);
229
232
  /**
230
- * TBD.
231
- * @returns {number} TBD.
233
+ * Gets the x position of this display object.
234
+ * @returns {number} The x position in pixels.
232
235
  */
233
236
  get x(): number;
234
237
  /**
235
- * TBD.
238
+ * Sets the y position of this display object.
239
+ * @param {number} value - The new y position in pixels.
236
240
  */
237
241
  set y(value: number);
238
242
  /**
239
- * TBD.
240
- * @returns {number} TBD.
243
+ * Gets the y position of this display object.
244
+ * @returns {number} The y position in pixels.
241
245
  */
242
246
  get y(): number;
243
247
  /**
244
- * TBD.
245
- * @returns {boolean} TBD.
248
+ * Gets whether this display object is visible in the world.
249
+ * @returns {boolean} True if the object is visible, false otherwise.
246
250
  */
247
251
  get worldVisible(): boolean;
248
252
  /**
249
- * TBD.
253
+ * Sets the mask for this display object.
254
+ * @param {import('./graphics.js').Graphics} value - The mask object to set, or null to remove the mask.
250
255
  */
251
256
  set mask(value: import("./graphics.js").Graphics);
252
257
  /**
253
- * TBD.
254
- * @returns {import('./graphics.js').Graphics} TBD.
258
+ * Gets the mask for this display object.
259
+ * @returns {import('./graphics.js').Graphics} The mask object or null if none is set.
255
260
  */
256
261
  get mask(): import("./graphics.js").Graphics;
257
262
  /**
258
- * TBD.
259
- * @returns {number} TBD.
263
+ * Gets the x offset for this display object (based on anchor point).
264
+ * @returns {number} The x offset in pixels.
260
265
  */
261
266
  get offsetX(): number;
262
267
  /**
263
- * TBD.
264
- * @returns {number} TBD.
268
+ * Gets the y offset for this display object (based on anchor point).
269
+ * @returns {number} The y offset in pixels.
265
270
  */
266
271
  get offsetY(): number;
267
272
  /**
268
- * TBD.
273
+ * Sets the center x position of this display object.
274
+ * @param {number} value - The new center x position in pixels.
269
275
  */
270
276
  set centerX(value: number);
271
277
  /**
272
- * TBD.
273
- * @returns {number} TBD.
278
+ * Gets the center x position of this display object.
279
+ * @returns {number} The center x position in pixels.
274
280
  */
275
281
  get centerX(): number;
276
282
  /**
277
- * TBD.
283
+ * Sets the center y position of this display object.
284
+ * @param {number} value - The new center y position in pixels.
278
285
  */
279
286
  set centerY(value: number);
280
287
  /**
281
- * TBD.
282
- * @returns {number} TBD.
288
+ * Gets the center y position of this display object.
289
+ * @returns {number} The center y position in pixels.
283
290
  */
284
291
  get centerY(): number;
285
292
  /**
286
- * TBD.
293
+ * Sets the left x position of this display object.
294
+ * @param {number} value - The new left x position in pixels.
287
295
  */
288
296
  set left(value: number);
289
297
  /**
290
- * TBD.
291
- * @returns {number} TBD.
298
+ * Gets the left x position of this display object.
299
+ * @returns {number} The left x position in pixels.
292
300
  */
293
301
  get left(): number;
294
302
  /**
295
- * TBD.
303
+ * Sets the right x position of this display object.
304
+ * @param {number} value - The new right x position in pixels.
296
305
  */
297
306
  set right(value: number);
298
307
  /**
299
- * TBD.
300
- * @returns {number} TBD.
308
+ * Gets the right x position of this display object.
309
+ * @returns {number} The right x position in pixels.
301
310
  */
302
311
  get right(): number;
303
312
  /**
304
- * TBD.
313
+ * Sets the top y position of this display object.
314
+ * @param {number} value - The new top y position in pixels.
305
315
  */
306
316
  set top(value: number);
307
317
  /**
308
- * TBD.
309
- * @returns {number} TBD.
318
+ * Gets the top y position of this display object.
319
+ * @returns {number} The top y position in pixels.
310
320
  */
311
321
  get top(): number;
312
322
  /**
313
- * TBD.
323
+ * Sets the bottom y position of this display object.
324
+ * @param {number} value - The new bottom y position in pixels.
314
325
  */
315
326
  set bottom(value: number);
316
327
  /**
317
- * TBD.
318
- * @returns {number} TBD.
328
+ * Gets the bottom y position of this display object.
329
+ * @returns {number} The bottom y position in pixels.
319
330
  */
320
331
  get bottom(): number;
321
332
  }
@@ -1 +1 @@
1
- {"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,iBAAiB,EAAE,IAAI,EA0DxC;IAvDC,sBAAsB;IACtB,QADW,OAAO,CACA;IAClB,sBAAsB;IACtB,YADW,OAAO,CACK;IACvB,sBAAsB;IACtB,SADW,OAAO,CACC;IACnB,oBAAoB;IACpB,UADW,KAAK,CACe;IAC/B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,QADW,KAAK,CACa;IAC7B,qBAAqB;IACrB,UADW,MAAM,CACA;IACjB,qBAAqB;IACrB,OADW,MAAM,CACH;IACd,wBAAwB;IACxB,SADW,SAAS,CACD;IACnB,4BAA4B;IAC5B,QADW,aAAa,CACN;IAClB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,qBAAqB;IACrB,gBAD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AIlB;IAiBD;;OAEG;IACH,gBATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAiBD;;OAEG;IACH,iBATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAiBD;;OAEG;IACH,eATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,WAFa,MAAM,CAIlB;IAiBD;;OAEG;IACH,kBATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,cAFa,MAAM,CAIlB;CAQF;sBA/zBqB,kBAAkB;0BACd,sBAAsB;uBAFzB,mBAAmB"}
1
+ {"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,iBAAiB,EAAE,IAAI,EA0DxC;IAvDC,sBAAsB;IACtB,QADW,OAAO,CACA;IAClB,sBAAsB;IACtB,YADW,OAAO,CACK;IACvB,sBAAsB;IACtB,SADW,OAAO,CACC;IACnB,oBAAoB;IACpB,UADW,KAAK,CACe;IAC/B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,QADW,KAAK,CACa;IAC7B,qBAAqB;IACrB,UADW,MAAM,CACA;IACjB,qBAAqB;IACrB,OADW,MAAM,CACH;IACd,wBAAwB;IACxB,SADW,SAAS,CACD;IACnB,4BAA4B;IAC5B,QADW,aAAa,CACN;IAClB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,qBAAqB;IACrB,gBADW,MAAM,CACiB;IAElC,oBAAoB;IACpB,YADW,KAAK,CACiB;IAEjC,wBAAwB;IACxB,YADW,SAAS,CACE;IACtB,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,wBAAwB;IACxB,cADW,SAAS,CACyB;IAC7C,wBAAwB;IACxB,eADW,SAAS,CACK;IACzB,+CAA+C;IA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