@vpmedia/phaser 1.103.0 → 1.105.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 (298) hide show
  1. package/dist/index.js +997 -403
  2. package/dist/index.js.map +1 -1
  3. package/dist/phaser/core/animation.d.ts +35 -11
  4. package/dist/phaser/core/animation.d.ts.map +1 -1
  5. package/dist/phaser/core/animation_manager.d.ts +20 -10
  6. package/dist/phaser/core/animation_manager.d.ts.map +1 -1
  7. package/dist/phaser/core/animation_parser.d.ts +2 -2
  8. package/dist/phaser/core/animation_parser.d.ts.map +1 -1
  9. package/dist/phaser/core/array_set.d.ts +3 -3
  10. package/dist/phaser/core/array_set.d.ts.map +1 -1
  11. package/dist/phaser/core/cache.d.ts +68 -60
  12. package/dist/phaser/core/cache.d.ts.map +1 -1
  13. package/dist/phaser/core/device.d.ts +23 -0
  14. package/dist/phaser/core/device.d.ts.map +1 -1
  15. package/dist/phaser/core/device_util.d.ts +10 -10
  16. package/dist/phaser/core/device_util.d.ts.map +1 -1
  17. package/dist/phaser/core/dom.d.ts +6 -5
  18. package/dist/phaser/core/dom.d.ts.map +1 -1
  19. package/dist/phaser/core/event_manager.d.ts +49 -158
  20. package/dist/phaser/core/event_manager.d.ts.map +1 -1
  21. package/dist/phaser/core/factory.d.ts +8 -7
  22. package/dist/phaser/core/factory.d.ts.map +1 -1
  23. package/dist/phaser/core/frame.d.ts +27 -48
  24. package/dist/phaser/core/frame.d.ts.map +1 -1
  25. package/dist/phaser/core/frame_data.d.ts +11 -58
  26. package/dist/phaser/core/frame_data.d.ts.map +1 -1
  27. package/dist/phaser/core/frame_util.d.ts +4 -14
  28. package/dist/phaser/core/frame_util.d.ts.map +1 -1
  29. package/dist/phaser/core/game.d.ts +50 -3
  30. package/dist/phaser/core/game.d.ts.map +1 -1
  31. package/dist/phaser/core/input.d.ts +66 -13
  32. package/dist/phaser/core/input.d.ts.map +1 -1
  33. package/dist/phaser/core/input_handler.d.ts +64 -20
  34. package/dist/phaser/core/input_handler.d.ts.map +1 -1
  35. package/dist/phaser/core/input_mouse.d.ts +26 -1
  36. package/dist/phaser/core/input_mouse.d.ts.map +1 -1
  37. package/dist/phaser/core/input_mspointer.d.ts +18 -2
  38. package/dist/phaser/core/input_mspointer.d.ts.map +1 -1
  39. package/dist/phaser/core/input_pointer.d.ts +53 -9
  40. package/dist/phaser/core/input_pointer.d.ts.map +1 -1
  41. package/dist/phaser/core/input_touch.d.ts +19 -1
  42. package/dist/phaser/core/input_touch.d.ts.map +1 -1
  43. package/dist/phaser/core/loader.d.ts +56 -28
  44. package/dist/phaser/core/loader.d.ts.map +1 -1
  45. package/dist/phaser/core/loader_parser.d.ts +4 -4
  46. package/dist/phaser/core/loader_parser.d.ts.map +1 -1
  47. package/dist/phaser/core/raf.d.ts +2 -2
  48. package/dist/phaser/core/raf.d.ts.map +1 -1
  49. package/dist/phaser/core/scale_manager.d.ts +77 -17
  50. package/dist/phaser/core/scale_manager.d.ts.map +1 -1
  51. package/dist/phaser/core/scene.d.ts +3 -1
  52. package/dist/phaser/core/scene.d.ts.map +1 -1
  53. package/dist/phaser/core/scene_manager.d.ts +25 -9
  54. package/dist/phaser/core/scene_manager.d.ts.map +1 -1
  55. package/dist/phaser/core/signal.d.ts +9 -8
  56. package/dist/phaser/core/signal.d.ts.map +1 -1
  57. package/dist/phaser/core/signal_binding.d.ts +2 -2
  58. package/dist/phaser/core/signal_binding.d.ts.map +1 -1
  59. package/dist/phaser/core/sound.d.ts +58 -10
  60. package/dist/phaser/core/sound.d.ts.map +1 -1
  61. package/dist/phaser/core/sound_manager.d.ts +28 -9
  62. package/dist/phaser/core/sound_manager.d.ts.map +1 -1
  63. package/dist/phaser/core/sound_sprite.d.ts +10 -4
  64. package/dist/phaser/core/sound_sprite.d.ts.map +1 -1
  65. package/dist/phaser/core/stage.d.ts +7 -3
  66. package/dist/phaser/core/stage.d.ts.map +1 -1
  67. package/dist/phaser/core/time.d.ts +32 -5
  68. package/dist/phaser/core/time.d.ts.map +1 -1
  69. package/dist/phaser/core/timer.d.ts +30 -10
  70. package/dist/phaser/core/timer.d.ts.map +1 -1
  71. package/dist/phaser/core/timer_event.d.ts +11 -12
  72. package/dist/phaser/core/timer_event.d.ts.map +1 -1
  73. package/dist/phaser/core/tween.d.ts +38 -14
  74. package/dist/phaser/core/tween.d.ts.map +1 -1
  75. package/dist/phaser/core/tween_data.d.ts +30 -5
  76. package/dist/phaser/core/tween_data.d.ts.map +1 -1
  77. package/dist/phaser/core/tween_easing.d.ts +31 -31
  78. package/dist/phaser/core/tween_easing.d.ts.map +1 -1
  79. package/dist/phaser/core/tween_manager.d.ts +8 -4
  80. package/dist/phaser/core/tween_manager.d.ts.map +1 -1
  81. package/dist/phaser/core/world.d.ts +1 -1
  82. package/dist/phaser/core/world.d.ts.map +1 -1
  83. package/dist/phaser/display/bitmap_text.d.ts +35 -20
  84. package/dist/phaser/display/bitmap_text.d.ts.map +1 -1
  85. package/dist/phaser/display/button.d.ts +24 -8
  86. package/dist/phaser/display/button.d.ts.map +1 -1
  87. package/dist/phaser/display/canvas/buffer.d.ts +6 -2
  88. package/dist/phaser/display/canvas/buffer.d.ts.map +1 -1
  89. package/dist/phaser/display/canvas/graphics.d.ts +3 -3
  90. package/dist/phaser/display/canvas/graphics.d.ts.map +1 -1
  91. package/dist/phaser/display/canvas/masker.d.ts.map +1 -1
  92. package/dist/phaser/display/canvas/pool.d.ts +2 -2
  93. package/dist/phaser/display/canvas/pool.d.ts.map +1 -1
  94. package/dist/phaser/display/canvas/renderer.d.ts +18 -5
  95. package/dist/phaser/display/canvas/renderer.d.ts.map +1 -1
  96. package/dist/phaser/display/canvas/tinter.d.ts +3 -3
  97. package/dist/phaser/display/canvas/tinter.d.ts.map +1 -1
  98. package/dist/phaser/display/canvas/util.d.ts +9 -9
  99. package/dist/phaser/display/canvas/util.d.ts.map +1 -1
  100. package/dist/phaser/display/display_object.d.ts +82 -23
  101. package/dist/phaser/display/display_object.d.ts.map +1 -1
  102. package/dist/phaser/display/graphics.d.ts +42 -16
  103. package/dist/phaser/display/graphics.d.ts.map +1 -1
  104. package/dist/phaser/display/graphics_data.d.ts +11 -1
  105. package/dist/phaser/display/graphics_data.d.ts.map +1 -1
  106. package/dist/phaser/display/graphics_data_util.d.ts +1 -1
  107. package/dist/phaser/display/graphics_data_util.d.ts.map +1 -1
  108. package/dist/phaser/display/group.d.ts +24 -9
  109. package/dist/phaser/display/group.d.ts.map +1 -1
  110. package/dist/phaser/display/image.d.ts +36 -13
  111. package/dist/phaser/display/image.d.ts.map +1 -1
  112. package/dist/phaser/display/sprite_batch.d.ts +1 -1
  113. package/dist/phaser/display/sprite_batch.d.ts.map +1 -1
  114. package/dist/phaser/display/sprite_util.d.ts +5 -5
  115. package/dist/phaser/display/sprite_util.d.ts.map +1 -1
  116. package/dist/phaser/display/text.d.ts +86 -66
  117. package/dist/phaser/display/text.d.ts.map +1 -1
  118. package/dist/phaser/display/webgl/abstract_filter.d.ts +8 -1
  119. package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
  120. package/dist/phaser/display/webgl/base_texture.d.ts +14 -2
  121. package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -1
  122. package/dist/phaser/display/webgl/blend_manager.d.ts +5 -2
  123. package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -1
  124. package/dist/phaser/display/webgl/earcut.d.ts +10 -10
  125. package/dist/phaser/display/webgl/earcut.d.ts.map +1 -1
  126. package/dist/phaser/display/webgl/earcut_node.d.ts +1 -1
  127. package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -1
  128. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts +17 -1
  129. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
  130. package/dist/phaser/display/webgl/filter_manager.d.ts +5 -1
  131. package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -1
  132. package/dist/phaser/display/webgl/filter_texture.d.ts +7 -2
  133. package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -1
  134. package/dist/phaser/display/webgl/graphics.d.ts +11 -10
  135. package/dist/phaser/display/webgl/graphics.d.ts.map +1 -1
  136. package/dist/phaser/display/webgl/graphics_data.d.ts +11 -1
  137. package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -1
  138. package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -1
  139. package/dist/phaser/display/webgl/render_texture.d.ts +12 -1
  140. package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -1
  141. package/dist/phaser/display/webgl/renderer.d.ts +25 -6
  142. package/dist/phaser/display/webgl/renderer.d.ts.map +1 -1
  143. package/dist/phaser/display/webgl/shader/complex.d.ts +7 -1
  144. package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -1
  145. package/dist/phaser/display/webgl/shader/fast.d.ts +8 -1
  146. package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -1
  147. package/dist/phaser/display/webgl/shader/normal.d.ts +11 -0
  148. package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -1
  149. package/dist/phaser/display/webgl/shader/primitive.d.ts +7 -1
  150. package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
  151. package/dist/phaser/display/webgl/shader/strip.d.ts +7 -1
  152. package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -1
  153. package/dist/phaser/display/webgl/shader_manager.d.ts +14 -2
  154. package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -1
  155. package/dist/phaser/display/webgl/sprite_batch.d.ts +19 -2
  156. package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
  157. package/dist/phaser/display/webgl/stencil_manager.d.ts +8 -4
  158. package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
  159. package/dist/phaser/display/webgl/texture.d.ts +35 -2
  160. package/dist/phaser/display/webgl/texture.d.ts.map +1 -1
  161. package/dist/phaser/display/webgl/texture_util.d.ts +2 -2
  162. package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -1
  163. package/dist/phaser/display/webgl/util.d.ts +6 -6
  164. package/dist/phaser/display/webgl/util.d.ts.map +1 -1
  165. package/dist/phaser/geom/circle.d.ts +11 -10
  166. package/dist/phaser/geom/circle.d.ts.map +1 -1
  167. package/dist/phaser/geom/ellipse.d.ts +6 -5
  168. package/dist/phaser/geom/ellipse.d.ts.map +1 -1
  169. package/dist/phaser/geom/line.d.ts +14 -14
  170. package/dist/phaser/geom/line.d.ts.map +1 -1
  171. package/dist/phaser/geom/matrix.d.ts +13 -12
  172. package/dist/phaser/geom/matrix.d.ts.map +1 -1
  173. package/dist/phaser/geom/point.d.ts +19 -19
  174. package/dist/phaser/geom/point.d.ts.map +1 -1
  175. package/dist/phaser/geom/polygon.d.ts +6 -6
  176. package/dist/phaser/geom/polygon.d.ts.map +1 -1
  177. package/dist/phaser/geom/rectangle.d.ts +20 -20
  178. package/dist/phaser/geom/rectangle.d.ts.map +1 -1
  179. package/dist/phaser/geom/rounded_rectangle.d.ts +2 -2
  180. package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -1
  181. package/dist/phaser/geom/util/circle.d.ts +9 -7
  182. package/dist/phaser/geom/util/circle.d.ts.map +1 -1
  183. package/dist/phaser/geom/util/ellipse.d.ts +1 -1
  184. package/dist/phaser/geom/util/ellipse.d.ts.map +1 -1
  185. package/dist/phaser/geom/util/line.d.ts +5 -3
  186. package/dist/phaser/geom/util/line.d.ts.map +1 -1
  187. package/dist/phaser/geom/util/matrix.d.ts +2 -1
  188. package/dist/phaser/geom/util/matrix.d.ts.map +1 -1
  189. package/dist/phaser/geom/util/point.d.ts +19 -19
  190. package/dist/phaser/geom/util/point.d.ts.map +1 -1
  191. package/dist/phaser/geom/util/polygon.d.ts +2 -1
  192. package/dist/phaser/geom/util/polygon.d.ts.map +1 -1
  193. package/dist/phaser/geom/util/rectangle.d.ts +17 -15
  194. package/dist/phaser/geom/util/rectangle.d.ts.map +1 -1
  195. package/dist/phaser/geom/util/rounded_rectangle.d.ts +2 -1
  196. package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
  197. package/dist/phaser/util/math.d.ts +51 -142
  198. package/dist/phaser/util/math.d.ts.map +1 -1
  199. package/package.json +2 -2
  200. package/src/phaser/core/animation.ts +41 -18
  201. package/src/phaser/core/animation_manager.ts +21 -12
  202. package/src/phaser/core/animation_parser.ts +11 -3
  203. package/src/phaser/core/array_set.ts +8 -8
  204. package/src/phaser/core/cache.ts +75 -60
  205. package/src/phaser/core/device.ts +23 -1
  206. package/src/phaser/core/device_util.ts +10 -10
  207. package/src/phaser/core/dom.ts +5 -5
  208. package/src/phaser/core/event_manager.ts +52 -177
  209. package/src/phaser/core/factory.ts +25 -17
  210. package/src/phaser/core/frame.ts +37 -51
  211. package/src/phaser/core/frame_data.ts +29 -74
  212. package/src/phaser/core/frame_util.ts +3 -16
  213. package/src/phaser/core/game.ts +40 -11
  214. package/src/phaser/core/input.ts +68 -17
  215. package/src/phaser/core/input_handler.ts +81 -45
  216. package/src/phaser/core/input_mouse.ts +42 -13
  217. package/src/phaser/core/input_mspointer.ts +24 -9
  218. package/src/phaser/core/input_pointer.ts +55 -12
  219. package/src/phaser/core/input_touch.ts +26 -9
  220. package/src/phaser/core/loader.ts +97 -42
  221. package/src/phaser/core/loader_parser.ts +6 -7
  222. package/src/phaser/core/raf.ts +2 -2
  223. package/src/phaser/core/scale_manager.ts +85 -27
  224. package/src/phaser/core/scene.ts +3 -2
  225. package/src/phaser/core/scene_manager.ts +26 -11
  226. package/src/phaser/core/signal.ts +10 -10
  227. package/src/phaser/core/signal_binding.ts +2 -2
  228. package/src/phaser/core/sound.ts +72 -26
  229. package/src/phaser/core/sound_manager.ts +31 -13
  230. package/src/phaser/core/sound_sprite.ts +10 -5
  231. package/src/phaser/core/stage.ts +8 -4
  232. package/src/phaser/core/time.ts +33 -7
  233. package/src/phaser/core/timer.ts +40 -14
  234. package/src/phaser/core/timer_event.ts +23 -14
  235. package/src/phaser/core/tween.ts +43 -23
  236. package/src/phaser/core/tween_data.ts +31 -7
  237. package/src/phaser/core/tween_easing.ts +31 -31
  238. package/src/phaser/core/tween_manager.ts +10 -7
  239. package/src/phaser/core/world.ts +1 -2
  240. package/src/phaser/display/bitmap_text.ts +41 -18
  241. package/src/phaser/display/button.ts +24 -23
  242. package/src/phaser/display/canvas/buffer.ts +6 -3
  243. package/src/phaser/display/canvas/graphics.ts +3 -4
  244. package/src/phaser/display/canvas/masker.ts +2 -3
  245. package/src/phaser/display/canvas/pool.ts +3 -4
  246. package/src/phaser/display/canvas/renderer.ts +19 -7
  247. package/src/phaser/display/canvas/tinter.ts +4 -5
  248. package/src/phaser/display/canvas/util.ts +9 -9
  249. package/src/phaser/display/display_object.ts +120 -61
  250. package/src/phaser/display/graphics.ts +56 -25
  251. package/src/phaser/display/graphics_data.ts +11 -2
  252. package/src/phaser/display/graphics_data_util.ts +1 -2
  253. package/src/phaser/display/group.ts +32 -14
  254. package/src/phaser/display/image.ts +37 -19
  255. package/src/phaser/display/sprite_batch.ts +1 -2
  256. package/src/phaser/display/sprite_util.ts +5 -6
  257. package/src/phaser/display/text.ts +82 -56
  258. package/src/phaser/display/webgl/abstract_filter.ts +8 -2
  259. package/src/phaser/display/webgl/base_texture.ts +14 -3
  260. package/src/phaser/display/webgl/blend_manager.ts +5 -3
  261. package/src/phaser/display/webgl/earcut.ts +27 -27
  262. package/src/phaser/display/webgl/earcut_node.ts +1 -1
  263. package/src/phaser/display/webgl/fast_sprite_batch.ts +19 -4
  264. package/src/phaser/display/webgl/filter_manager.ts +5 -2
  265. package/src/phaser/display/webgl/filter_texture.ts +7 -3
  266. package/src/phaser/display/webgl/graphics.ts +10 -11
  267. package/src/phaser/display/webgl/graphics_data.ts +11 -2
  268. package/src/phaser/display/webgl/mask_manager.ts +2 -3
  269. package/src/phaser/display/webgl/render_texture.ts +12 -2
  270. package/src/phaser/display/webgl/renderer.ts +24 -7
  271. package/src/phaser/display/webgl/shader/complex.ts +7 -2
  272. package/src/phaser/display/webgl/shader/fast.ts +8 -2
  273. package/src/phaser/display/webgl/shader/normal.ts +12 -2
  274. package/src/phaser/display/webgl/shader/primitive.ts +7 -2
  275. package/src/phaser/display/webgl/shader/strip.ts +7 -2
  276. package/src/phaser/display/webgl/shader_manager.ts +13 -3
  277. package/src/phaser/display/webgl/sprite_batch.ts +20 -4
  278. package/src/phaser/display/webgl/stencil_manager.ts +8 -5
  279. package/src/phaser/display/webgl/texture.ts +35 -4
  280. package/src/phaser/display/webgl/texture_util.ts +2 -3
  281. package/src/phaser/display/webgl/util.ts +6 -6
  282. package/src/phaser/geom/circle.ts +10 -10
  283. package/src/phaser/geom/ellipse.ts +6 -6
  284. package/src/phaser/geom/line.ts +14 -14
  285. package/src/phaser/geom/matrix.ts +12 -12
  286. package/src/phaser/geom/point.ts +19 -19
  287. package/src/phaser/geom/polygon.ts +5 -5
  288. package/src/phaser/geom/rectangle.ts +21 -21
  289. package/src/phaser/geom/rounded_rectangle.ts +2 -2
  290. package/src/phaser/geom/util/circle.ts +7 -7
  291. package/src/phaser/geom/util/ellipse.ts +1 -1
  292. package/src/phaser/geom/util/line.ts +5 -5
  293. package/src/phaser/geom/util/matrix.ts +1 -1
  294. package/src/phaser/geom/util/point.ts +20 -20
  295. package/src/phaser/geom/util/polygon.ts +1 -1
  296. package/src/phaser/geom/util/rectangle.ts +15 -15
  297. package/src/phaser/geom/util/rounded_rectangle.ts +1 -1
  298. package/src/phaser/util/math.ts +65 -151
@@ -1,3 +1,4 @@
1
+ import { Point } from './point.js';
1
2
  export declare class Matrix {
2
3
  a: number;
3
4
  b: number;
@@ -21,7 +22,7 @@ export declare class Matrix {
21
22
  * @param {number[]} array - The array to read the matrix components from (should have 6 elements).
22
23
  * @returns {Matrix} This matrix instance for chaining.
23
24
  */
24
- fromArray(array: any): this;
25
+ fromArray(array: number[]): this;
25
26
  /**
26
27
  * Sets the matrix components to new values.
27
28
  * @param {number} a - The new a component of the matrix.
@@ -32,71 +33,71 @@ export declare class Matrix {
32
33
  * @param {number} ty - The new ty component of the matrix.
33
34
  * @returns {Matrix} This matrix instance for chaining.
34
35
  */
35
- setTo(a: any, b: any, c: any, d: any, tx: any, ty: any): this;
36
+ setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): this;
36
37
  /**
37
38
  * Creates a clone of this matrix.
38
39
  * @returns {Matrix} A new matrix with the same values as this one.
39
40
  */
40
- clone(): any;
41
+ clone(): Matrix;
41
42
  /**
42
43
  * Copies the values of this matrix to another matrix.
43
44
  * @param {Matrix} matrix - The matrix to copy values to.
44
45
  * @returns {Matrix} The destination matrix.
45
46
  */
46
- copyTo(matrix: any): any;
47
+ copyTo(matrix: Matrix): Matrix;
47
48
  /**
48
49
  * Copies the values from another matrix to this matrix.
49
50
  * @param {Matrix} matrix - The matrix to copy values from.
50
51
  * @returns {Matrix} This matrix instance for chaining.
51
52
  */
52
- copyFrom(matrix: any): this;
53
+ copyFrom(matrix: Matrix): this;
53
54
  /**
54
55
  * Converts this matrix to a Float32Array.
55
56
  * @param {boolean} transpose - Whether to transpose the matrix (default: false).
56
57
  * @param {Float32Array} output - The array to store the result in (optional).
57
58
  * @returns {Float32Array} A Float32Array containing the matrix elements.
58
59
  */
59
- toArray(transpose?: boolean, output?: any): any;
60
+ toArray(transpose?: boolean, output?: Float32Array): Float32Array<ArrayBufferLike>;
60
61
  /**
61
62
  * Applies this matrix to a point.
62
63
  * @param {Point} pos - The point to apply the matrix to.
63
64
  * @param {Point} output - The point to store the result in (optional).
64
65
  * @returns {Point} The transformed point.
65
66
  */
66
- apply(pos: any, output?: any): any;
67
+ apply(pos: Point, output?: Point): Point;
67
68
  /**
68
69
  * Applies the inverse of this matrix to a point.
69
70
  * @param {Point} pos - The point to apply the inverse matrix to.
70
71
  * @param {Point} output - The point to store the result in (optional).
71
72
  * @returns {Point} The transformed point.
72
73
  */
73
- applyInverse(pos: any, output?: any): any;
74
+ applyInverse(pos: Point, output?: Point): Point;
74
75
  /**
75
76
  * Translates this matrix by the specified amounts.
76
77
  * @param {number} x - The amount to translate in the x direction.
77
78
  * @param {number} y - The amount to translate in the y direction.
78
79
  * @returns {Matrix} This matrix instance for chaining.
79
80
  */
80
- translate(x: any, y: any): this;
81
+ translate(x: number, y: number): this;
81
82
  /**
82
83
  * Scales this matrix by the specified amounts.
83
84
  * @param {number} x - The amount to scale in the x direction.
84
85
  * @param {number} y - The amount to scale in the y direction.
85
86
  * @returns {Matrix} This matrix instance for chaining.
86
87
  */
87
- scale(x: any, y: any): this;
88
+ scale(x: number, y: number): this;
88
89
  /**
89
90
  * Rotates this matrix by the specified angle.
90
91
  * @param {number} angle - The angle in radians to rotate by.
91
92
  * @returns {Matrix} This matrix instance for chaining.
92
93
  */
93
- rotate(angle: any): this;
94
+ rotate(angle: number): this;
94
95
  /**
95
96
  * Appends another matrix to this matrix (multiplying matrices).
96
97
  * @param {Matrix} matrix - The matrix to append.
97
98
  * @returns {Matrix} This matrix instance for chaining.
98
99
  */
99
- append(matrix: any): this;
100
+ append(matrix: Matrix): this;
100
101
  /**
101
102
  * Sets this matrix to an identity matrix (no transformation).
102
103
  * @returns {Matrix} This matrix instance for chaining.
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/matrix.ts"],"names":[],"mappings":"AAIA,qBAAa,MAAM;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,EAAE,SAAI,EAAE,EAAE,SAAI;IAiBtD;;;;OAIG;IACH,SAAS,CAAC,KAAK,KAAA;IAIf;;;;;;;;;OASG;IACH,KAAK,CAAC,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MAAM,EAAE;IAIzB;;;;;;;;;OASG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAUxE;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM;IAKrB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM;IAUvB;;;;;OAKG;IACH,OAAO,CAAC,SAAS,GAAE,OAAe,EAAE,MAAM,GAAE,YAAmB;IA0B/D;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,GAAE,KAAY;IAOtC;;;;;OAKG;IACH,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,GAAE,KAAY;IAU7C;;;;;OAKG;IACH,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAM9B;;;;;OAKG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAU1B;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IAepB;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM;IAcrB;;;OAGG;IACH,QAAQ;CAGT"}
@@ -13,7 +13,7 @@ export declare class Point {
13
13
  * @param {Point} source - The point to copy coordinates from.
14
14
  * @returns {Point} This point instance for chaining.
15
15
  */
16
- copyFrom(source: any): this;
16
+ copyFrom(source: Point): this;
17
17
  /**
18
18
  * Returns a new point with the x and y coordinates swapped.
19
19
  * @returns {Point} A new point instance with swapped coordinates.
@@ -25,7 +25,7 @@ export declare class Point {
25
25
  * @param {number} y - The new y coordinate for the point.
26
26
  * @returns {Point} This point instance for chaining.
27
27
  */
28
- setTo(x: any, y?: any): this;
28
+ setTo(x: number, y?: number): this;
29
29
  /**
30
30
  * Sets the coordinates of this point to new values.
31
31
  * @param {number} x - The new x coordinate for the point.
@@ -33,86 +33,86 @@ export declare class Point {
33
33
  * @returns {Point} This point instance for chaining.
34
34
  * @deprecated Use setTo instead.
35
35
  */
36
- set(x: any, y: any): this;
36
+ set(x: number, y: number): this;
37
37
  /**
38
38
  * Adds the given x and y values to the point's coordinates.
39
39
  * @param {number} x - The amount to add to the x coordinate.
40
40
  * @param {number} y - The amount to add to the y coordinate.
41
41
  * @returns {Point} This point instance for chaining.
42
42
  */
43
- add(x: any, y: any): this;
43
+ add(x: number, y: number): this;
44
44
  /**
45
45
  * Subtracts the given x and y values from the point's coordinates.
46
46
  * @param {number} x - The amount to subtract from the x coordinate.
47
47
  * @param {number} y - The amount to subtract from the y coordinate.
48
48
  * @returns {Point} This point instance for chaining.
49
49
  */
50
- subtract(x: any, y: any): this;
50
+ subtract(x: number, y: number): this;
51
51
  /**
52
52
  * Multiplies the point's coordinates by the given x and y values.
53
53
  * @param {number} x - The amount to multiply the x coordinate by.
54
54
  * @param {number} y - The amount to multiply the y coordinate by.
55
55
  * @returns {Point} This point instance for chaining.
56
56
  */
57
- multiply(x: any, y: any): this;
57
+ multiply(x: number, y: number): this;
58
58
  /**
59
59
  * Divides the point's coordinates by the given x and y values.
60
60
  * @param {number} x - The amount to divide the x coordinate by.
61
61
  * @param {number} y - The amount to divide the y coordinate by.
62
62
  * @returns {Point} This point instance for chaining.
63
63
  */
64
- divide(x: any, y: any): this;
64
+ divide(x: number, y: number): this;
65
65
  /**
66
66
  * Constrains the x coordinate of this point to the given range.
67
67
  * @param {number} min - The minimum value for the x coordinate.
68
68
  * @param {number} max - The maximum value for the x coordinate.
69
69
  * @returns {Point} This point instance for chaining.
70
70
  */
71
- clampX(min: any, max: any): this;
71
+ clampX(min: number, max: number): this;
72
72
  /**
73
73
  * Constrains the y coordinate of this point to the given range.
74
74
  * @param {number} min - The minimum value for the y coordinate.
75
75
  * @param {number} max - The maximum value for the y coordinate.
76
76
  * @returns {Point} This point instance for chaining.
77
77
  */
78
- clampY(min: any, max: any): this;
78
+ clampY(min: number, max: number): this;
79
79
  /**
80
80
  * Constrains both coordinates of this point to the given range.
81
81
  * @param {number} min - The minimum value for both coordinates.
82
82
  * @param {number} max - The maximum value for both coordinates.
83
83
  * @returns {Point} This point instance for chaining.
84
84
  */
85
- clamp(min: any, max: any): this;
85
+ clamp(min: number, max: number): this;
86
86
  /**
87
87
  * Creates a clone of this point.
88
88
  * @returns {Point} A new point with the same coordinates as this one.
89
89
  */
90
- clone(): any;
90
+ clone(): Point;
91
91
  /**
92
92
  * Copies the coordinates of this point to another point.
93
93
  * @param {Point} dest - The point to copy coordinates to.
94
94
  * @returns {Point} The destination point.
95
95
  */
96
- copyTo(dest: any): any;
96
+ copyTo(dest: Point): Point;
97
97
  /**
98
98
  * Calculates the distance between this point and another point.
99
99
  * @param {Point} b - The other point to calculate the distance to.
100
100
  * @returns {number} The distance between the two points.
101
101
  */
102
- distance(b: any): number;
102
+ distance(b: Point): number;
103
103
  /**
104
104
  * Checks if this point is equal to another point.
105
105
  * @param {Point} a - The other point to compare with.
106
106
  * @returns {boolean} True if the points have the same coordinates, false otherwise.
107
107
  */
108
- equals(a: any): boolean;
108
+ equals(a: Point): boolean;
109
109
  /**
110
110
  * Calculates the angle between this point and another point.
111
111
  * @param {Point} a - The other point to calculate the angle to.
112
112
  * @param {boolean} asDegrees - Whether to return the result in degrees (default: false).
113
113
  * @returns {number} The angle between the two points in radians or degrees.
114
114
  */
115
- angle(a: any, asDegrees?: boolean): number;
115
+ angle(a: Point, asDegrees?: boolean): number;
116
116
  /**
117
117
  * Rotates this point around another point by a given angle.
118
118
  * @param {number} x - The x coordinate of the center point to rotate around.
@@ -122,7 +122,7 @@ export declare class Point {
122
122
  * @param {number | null | undefined} dist - The distance to rotate from (default: null).
123
123
  * @returns {Point} This point instance for chaining.
124
124
  */
125
- rotate(x: any, y: any, angle: any, asDegrees: any, dist?: any): any;
125
+ rotate(x: number, y: number, angle: number, asDegrees: boolean, dist?: number | null | undefined): Point;
126
126
  /**
127
127
  * Calculates the magnitude (length) of this point from the origin.
128
128
  * @returns {number} The magnitude of the point.
@@ -138,7 +138,7 @@ export declare class Point {
138
138
  * @param {number} magnitude - The new magnitude for the point.
139
139
  * @returns {Point} This point instance for chaining.
140
140
  */
141
- setMagnitude(magnitude: any): this;
141
+ setMagnitude(magnitude: number): this;
142
142
  /**
143
143
  * Normalizes this point to have a magnitude of 1 while preserving its direction.
144
144
  * @returns {Point} This point instance for chaining.
@@ -154,13 +154,13 @@ export declare class Point {
154
154
  * @param {Point} a - The other point to calculate the dot product with.
155
155
  * @returns {number} The dot product of the two points.
156
156
  */
157
- dot(a: any): number;
157
+ dot(a: Point): number;
158
158
  /**
159
159
  * Calculates the cross product of this point and another point.
160
160
  * @param {Point} a - The other point to calculate the cross product with.
161
161
  * @returns {number} The cross product of the two points.
162
162
  */
163
- cross(a: any): number;
163
+ cross(a: Point): number;
164
164
  /**
165
165
  * Returns a perpendicular point (rotated 90 degrees counter-clockwise).
166
166
  * @returns {Point} A new point that is perpendicular to this one.
@@ -1 +1 @@
1
- {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/point.ts"],"names":[],"mappings":"AAGA,qBAAa,KAAK;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI;IASxB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAIf;;;OAGG;IACH,MAAM;IAIN;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,CAAC,KAAA;IAMX;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMR;;;;;OAKG;IACH,GAAG,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMR;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE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M,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAE,MAAM,GAAG,IAAI,GAAG,SAAgB;IAItG;;;OAGG;IACH,YAAY;IAIZ;;;OAGG;IACH,cAAc;IAId;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM;IAI9B;;;OAGG;IACH,SAAS;IAST;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,KAAK;IAIZ;;;;OAIG;IACH,KAAK,CAAC,CAAC,EAAE,KAAK;IAId;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,QAAQ;CAGT"}
@@ -8,13 +8,13 @@ export declare class Polygon {
8
8
  * Creates a new Polygon instance.
9
9
  * @param {object[]} points - The array of points to define the polygon (optional).
10
10
  */
11
- constructor(points?: any);
11
+ constructor(points?: any[]);
12
12
  /**
13
13
  * Converts the polygon's points to a number array.
14
14
  * @param {number[]} output - The array to store the result in (optional).
15
15
  * @returns {number[]} An array of numbers representing the polygon's points.
16
16
  */
17
- toNumberArray(output?: any[]): any[];
17
+ toNumberArray(output?: number[]): number[];
18
18
  /**
19
19
  * Flattens the polygon's point array to a simple numeric array.
20
20
  * @returns {Polygon} This polygon instance for chaining.
@@ -24,26 +24,26 @@ export declare class Polygon {
24
24
  * Creates a clone of this polygon.
25
25
  * @returns {Polygon} A new polygon with the same values as this one.
26
26
  */
27
- clone(): any;
27
+ clone(): Polygon;
28
28
  /**
29
29
  * Checks if the specified point is contained within this polygon.
30
30
  * @param {number} x - The x coordinate of the point to check.
31
31
  * @param {number} y - The y coordinate of the point to check.
32
32
  * @returns {boolean} True if the point is contained within this polygon, false otherwise.
33
33
  */
34
- contains(x: any, y: any): boolean;
34
+ contains(x: number, y: number): boolean;
35
35
  /**
36
36
  * Sets the polygon's points to new values.
37
37
  * @param {object[]} points - The array of points to define the polygon.
38
38
  * @returns {Polygon} This polygon instance for chaining.
39
39
  */
40
- setTo(points: any): this;
40
+ setTo(points: any[]): this;
41
41
  /**
42
42
  * Calculates the area of this polygon.
43
43
  * @param {number} y0 - The y coordinate of the lowest boundary (internal use).
44
44
  * @returns {number} The area of this polygon.
45
45
  */
46
- calculateArea(y0: any): number;
46
+ calculateArea(y0: number): number;
47
47
  /**
48
48
  * Gets the points of this polygon.
49
49
  * @returns {object[]} The array of points that define this polygon.
@@ -1 +1 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/polygon.ts"],"names":[],"mappings":"AAIA,qBAAa,OAAO;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;gBACS,MAAM,MAAO;IAgBzB;;;;OAIG;IACH,aAAa,CAAC,MAAM,QAAK;IAczB;;;OAGG;IACH,OAAO;IAMP;;;OAGG;IACH,KAAK;IAIL;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IA2Bb;;;;OAIG;IACH,KAAK,CAAC,MAAM,KAAA;IAkCZ;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAA;IAmBhB;;;OAGG;IACH,IAAI,MAAM,UAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,OAAA,EAOf;CACF"}
1
+ {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/polygon.ts"],"names":[],"mappings":"AAIA,qBAAa,OAAO;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;gBACS,MAAM,GAAE,GAAG,EAAS;IAgBhC;;;;OAIG;IACH,aAAa,CAAC,MAAM,GAAE,MAAM,EAAO;IAcnC;;;OAGG;IACH,OAAO;IAMP;;;OAGG;IACH,KAAK;IAIL;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA2B7B;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE;IAkCnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM;IAmBxB;;;OAGG;IACH,IAAI,MAAM,UAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,OAAA,EAOf;CACF"}
@@ -19,13 +19,13 @@ export declare class Rectangle {
19
19
  * @param {number} dy - The amount to offset the y coordinate by.
20
20
  * @returns {Rectangle} This rectangle instance for chaining.
21
21
  */
22
- offset(dx: any, dy: any): this;
22
+ offset(dx: number, dy: number): this;
23
23
  /**
24
24
  * Offsets the rectangle's position by the specified point coordinates.
25
25
  * @param {Point} point - The point to offset the rectangle by.
26
26
  * @returns {Rectangle} This rectangle instance for chaining.
27
27
  */
28
- offsetPoint(point: any): this;
28
+ offsetPoint(point: Point): this;
29
29
  /**
30
30
  * Sets the rectangle's position and size to new values.
31
31
  * @param {number} x - The new x coordinate of the top-left corner of the rectangle.
@@ -34,21 +34,21 @@ export declare class Rectangle {
34
34
  * @param {number} height - The new height of the rectangle.
35
35
  * @returns {Rectangle} This rectangle instance for chaining.
36
36
  */
37
- setTo(x: any, y: any, width: any, height: any): this;
37
+ setTo(x: number, y: number, width: number, height: number): this;
38
38
  /**
39
39
  * Scales the rectangle's size by the specified amounts.
40
40
  * @param {number} x - The amount to scale the width by.
41
41
  * @param {number} y - The amount to scale the height by (default: x).
42
42
  * @returns {Rectangle} This rectangle instance for chaining.
43
43
  */
44
- scale(x: any, y?: any): this;
44
+ scale(x: number, y?: number): this;
45
45
  /**
46
46
  * Centers the rectangle on the specified point.
47
47
  * @param {number} x - The x coordinate to center the rectangle on.
48
48
  * @param {number} y - The y coordinate to center the rectangle on.
49
49
  * @returns {Rectangle} This rectangle instance for chaining.
50
50
  */
51
- centerOn(x: any, y: any): this;
51
+ centerOn(x: number, y: number): this;
52
52
  /**
53
53
  * Floors the x and y coordinates of the rectangle (rounds down to nearest integer).
54
54
  */
@@ -70,71 +70,71 @@ export declare class Rectangle {
70
70
  * @param {Rectangle} source - The rectangle to copy values from.
71
71
  * @returns {Rectangle} This rectangle instance for chaining.
72
72
  */
73
- copyFrom(source: any): this;
73
+ copyFrom(source: Rectangle): this;
74
74
  /**
75
75
  * Copies the values of this rectangle to another rectangle.
76
76
  * @param {Rectangle} dest - The rectangle to copy values to.
77
77
  * @returns {Rectangle} The destination rectangle.
78
78
  */
79
- copyTo(dest: any): any;
79
+ copyTo(dest: Rectangle): Rectangle;
80
80
  /**
81
81
  * Increases the size of the rectangle by the specified amounts.
82
82
  * @param {number} dx - The amount to increase the width by.
83
83
  * @param {number} dy - The amount to increase the height by.
84
84
  * @returns {Rectangle} This rectangle instance for chaining.
85
85
  */
86
- inflate(dx: any, dy: any): any;
86
+ inflate(dx: number, dy: number): Rectangle;
87
87
  /**
88
88
  * Gets the size of the rectangle as a point.
89
89
  * @param {Point} output - The point to store the size in (optional).
90
90
  * @returns {Point} The size of the rectangle as a point.
91
91
  */
92
- size(output: any): any;
92
+ size(output: Point): Point;
93
93
  /**
94
94
  * Resizes the rectangle to the specified dimensions.
95
95
  * @param {number} width - The new width of the rectangle.
96
96
  * @param {number} height - The new height of the rectangle.
97
97
  * @returns {Rectangle} This rectangle instance for chaining.
98
98
  */
99
- resize(width: any, height: any): this;
99
+ resize(width: number, height: number): this;
100
100
  /**
101
101
  * Creates a clone of this rectangle.
102
102
  * @param {Rectangle} output - The rectangle to store the clone in (optional).
103
103
  * @returns {Rectangle} A new rectangle with the same values as this one.
104
104
  */
105
- clone(output?: any): any;
105
+ clone(output?: Rectangle): Rectangle;
106
106
  /**
107
107
  * Checks if the specified point is contained within this rectangle.
108
108
  * @param {number} x - The x coordinate of the point to check.
109
109
  * @param {number} y - The y coordinate of the point to check.
110
110
  * @returns {boolean} True if the point is contained within this rectangle, false otherwise.
111
111
  */
112
- contains(x: any, y: any): boolean;
112
+ contains(x: number, y: number): boolean;
113
113
  /**
114
114
  * Checks if the specified rectangle is fully contained within this rectangle.
115
115
  * @param {Rectangle} b - The rectangle to check if it's contained.
116
116
  * @returns {boolean} True if the rectangle is contained within this rectangle, false otherwise.
117
117
  */
118
- containsRect(b: any): boolean;
118
+ containsRect(b: Rectangle): boolean;
119
119
  /**
120
120
  * Checks if this rectangle is equal to another rectangle.
121
121
  * @param {Rectangle} b - The rectangle to compare with.
122
122
  * @returns {boolean} True if the rectangles have the same values, false otherwise.
123
123
  */
124
- equals(b: any): boolean;
124
+ equals(b: Rectangle): boolean;
125
125
  /**
126
126
  * Gets the intersection of this rectangle and another rectangle.
127
127
  * @param {Rectangle} b - The rectangle to intersect with.
128
128
  * @param {Rectangle} out - The rectangle to store the result in (optional).
129
129
  * @returns {Rectangle} The intersection of the two rectangles.
130
130
  */
131
- intersection(b: any, out?: any): any;
131
+ intersection(b: Rectangle, out?: Rectangle): Rectangle;
132
132
  /**
133
133
  * Checks if this rectangle intersects with another rectangle.
134
134
  * @param {Rectangle} b - The rectangle to check for intersection with.
135
135
  * @returns {boolean} True if the rectangles intersect, false otherwise.
136
136
  */
137
- intersects(b: any): boolean;
137
+ intersects(b: Rectangle): boolean;
138
138
  /**
139
139
  * Checks if this rectangle intersects with the specified bounds.
140
140
  * @param {number} left - The left boundary of the area to check for intersection.
@@ -144,27 +144,27 @@ export declare class Rectangle {
144
144
  * @param {number} tolerance - A tolerance value to use when checking (default: 0).
145
145
  * @returns {boolean} True if the rectangle intersects with the bounds, false otherwise.
146
146
  */
147
- intersectsRaw(left: any, right: any, top: any, bottom: any, tolerance: any): boolean;
147
+ intersectsRaw(left: number, right: number, top: number, bottom: number, tolerance: number): boolean;
148
148
  /**
149
149
  * Gets the union of this rectangle and another rectangle.
150
150
  * @param {Rectangle} b - The rectangle to union with.
151
151
  * @param {Rectangle} out - The rectangle to store the result in (optional).
152
152
  * @returns {Rectangle} The union of the two rectangles.
153
153
  */
154
- union(b: any, out?: any): any;
154
+ union(b: Rectangle, out?: Rectangle): Rectangle;
155
155
  /**
156
156
  * Gets a random point within this rectangle.
157
157
  * @param {Point} output - The point to store the result in (optional).
158
158
  * @returns {Point} A random point within this rectangle.
159
159
  */
160
- random(output?: any): any;
160
+ random(output?: Point): Point;
161
161
  /**
162
162
  * Gets a point at a specific position on the rectangle.
163
163
  * @param {number} position - The position to get the point for (TOP_LEFT, TOP_CENTER, etc.).
164
164
  * @param {Point} output - The point to store the result in (optional).
165
165
  * @returns {Point} A point at the specified position on the rectangle.
166
166
  */
167
- getPoint(position: any, output?: any): any;
167
+ getPoint(position: number, output?: Point): Point;
168
168
  /**
169
169
  * Returns a string representation of this rectangle.
170
170
  * @returns {string} A string representation of the rectangle.
@@ -1 +1 @@
1
- {"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AA0BnC,qBAAa,SAAS;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI;IAa/C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA;IAMb;;;;OAIG;IACH,WAAW,CAAC,KAAK,KAAA;IAIjB;;;;;;;OAOG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KA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;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;OAEG;IACH,IAAI,GAAG,CAAC,KAAK,QAAA,EAOZ;IAED;;;OAGG;IACH,IAAI,OAAO,UAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,OAAA,EAGhB;IAED;;;OAGG;IACH,IAAI,QAAQ,UAEX;IAED;;OAEG;IACH,IAAI,QAAQ,CAAC,KAAK,OAAA,EAGjB;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAMf;IAED;;;OAGG;IACH,IAAI,UAAU,UAEb;IAED;;OAEG;IACH,IAAI,UAAU,CAAC,KAAK,OAAA,EAGnB;IAED;;;OAGG;IACH,IAAI,WAAW,UAEd;IAED;;OAEG;IACH,IAAI,WAAW,CAAC,KAAK,OAAA,EAGpB;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAK,QAAA,EAOb;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAMd;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,KAAK,YAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,SAAA,EAId;CACF"}
1
+ {"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AEd;IAED;;OAEG;IACH,IAAI,WAAW,CAAC,KAAK,OAAA,EAGpB;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAK,QAAA,EAOb;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAMd;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,KAAK,YAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,SAAA,EAId;CACF"}
@@ -20,11 +20,11 @@ export declare class RoundedRectangle {
20
20
  * @param {number} y - The y coordinate of the point to check.
21
21
  * @returns {boolean} True if the point is contained within this rounded rectangle, false otherwise.
22
22
  */
23
- contains(x: any, y: any): boolean;
23
+ contains(x: number, y: number): boolean;
24
24
  /**
25
25
  * Creates a clone of this rounded rectangle.
26
26
  * @returns {RoundedRectangle} A new rounded rectangle with the same values as this one.
27
27
  */
28
- clone(): any;
28
+ clone(): RoundedRectangle;
29
29
  }
30
30
  //# sourceMappingURL=rounded_rectangle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rounded_rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rounded_rectangle.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI,EAAE,MAAM,SAAK;IAS5D;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAYb;;;OAGG;IACH,KAAK;CAGN"}
1
+ {"version":3,"file":"rounded_rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rounded_rectangle.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,KAAK,GAAE,MAAU,EAAE,MAAM,GAAE,MAAU,EAAE,MAAM,GAAE,MAAW;IASpG;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAY7B;;;OAGG;IACH,KAAK;CAGN"}
@@ -1,10 +1,12 @@
1
+ import { Circle } from '../circle.js';
2
+ import { Point } from '../point.js';
1
3
  /**
2
4
  * Clones a circle.
3
5
  * @param {Circle} input - The circle to clone.
4
6
  * @param {Circle} output - Optional circle to store the result in.
5
7
  * @returns {Circle} The cloned circle.
6
8
  */
7
- export declare const clone: (input: any, output?: any) => any;
9
+ export declare const clone: (input: Circle, output?: Circle) => Circle;
8
10
  /**
9
11
  * Checks if a point is contained within the circle.
10
12
  * @param {Circle} a - The circle to check.
@@ -12,21 +14,21 @@ export declare const clone: (input: any, output?: any) => any;
12
14
  * @param {number} y - The y coordinate of the point.
13
15
  * @returns {boolean} True if the point is contained within the circle, false otherwise.
14
16
  */
15
- export declare const contains: (a: any, x: any, y: any) => boolean;
17
+ export declare const contains: (a: Circle, x: number, y: number) => boolean;
16
18
  /**
17
19
  * Checks if two circles are equal.
18
20
  * @param {Circle} a - The first circle to compare.
19
21
  * @param {Circle} b - The second circle to compare.
20
22
  * @returns {boolean} True if the circles are equal, false otherwise.
21
23
  */
22
- export declare const equals: (a: any, b: any) => boolean;
24
+ export declare const equals: (a: Circle, b: Circle) => boolean;
23
25
  /**
24
26
  * Checks if two circles intersect.
25
27
  * @param {Circle} a - The first circle to check.
26
28
  * @param {Circle} b - The second circle to check.
27
29
  * @returns {boolean} True if the circles intersect, false otherwise.
28
30
  */
29
- export declare const intersects: (a: any, b: any) => boolean;
31
+ export declare const intersects: (a: Circle, b: Circle) => boolean;
30
32
  /**
31
33
  * Gets a point on the circumference of the circle at the specified angle.
32
34
  * @param {Circle} a - The circle to get the point from.
@@ -35,7 +37,7 @@ export declare const intersects: (a: any, b: any) => boolean;
35
37
  * @param {Point} output - Optional point to store the result in.
36
38
  * @returns {Point} The point on the circumference of the circle.
37
39
  */
38
- export declare const circumferencePoint: (a: any, angle: any, asDegrees?: boolean, output?: any) => any;
40
+ export declare const circumferencePoint: (a: Circle, angle: number, asDegrees?: boolean, output?: Point) => Point;
39
41
  /**
40
42
  * Gets a point on the circumference of the circle at the specified angle.
41
43
  * @param {Circle} a - The circle to get the point from.
@@ -44,12 +46,12 @@ export declare const circumferencePoint: (a: any, angle: any, asDegrees?: boolea
44
46
  * @param {Point} output - Optional point to store the result in.
45
47
  * @returns {Point} The point on the circumference of the circle.
46
48
  */
47
- export declare const intersectsPoint: (a: any, angle: any, asDegrees?: boolean, output?: any) => any;
49
+ export declare const intersectsPoint: (a: Circle, angle: number, asDegrees?: boolean, output?: Point) => Point;
48
50
  /**
49
51
  * Checks if a circle intersects with a rectangle.
50
52
  * @param {Circle} c - The circle to check.
51
53
  * @param {object} r - The rectangle to check.
52
54
  * @returns {boolean} True if the circle intersects with the rectangle, false otherwise.
53
55
  */
54
- export declare const intersectsRectangle: (c: any, r: any) => boolean;
56
+ export declare const intersectsRectangle: (c: Circle, r: any) => boolean;
55
57
  //# sourceMappingURL=circle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/circle.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAMzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,YAO/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,YAE1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,YAE9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAC,EAAE,UAAK,EAAE,mBAAiB,EAAE,YAAa,QAQ5E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,MAAC,EAAE,UAAK,EAAE,mBAAiB,EAAE,YAAa,QAQzE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAC,EAAE,MAAC,YAoBvC,CAAC"}
1
+ {"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/circle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,SAAQ,MAAa,WAMzD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,YAOvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,YAE1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,YAE9C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,EAAE,OAAO,MAAM,EAAE,YAAW,OAAe,EAAE,SAAQ,KAAY,UAQ5G,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,OAAO,MAAM,EAAE,YAAW,OAAe,EAAE,SAAQ,KAAY,UAQzG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,YAoBpD,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * @param {number} y - The y coordinate of the point.
6
6
  * @returns {boolean} True if the point is contained within the ellipse, false otherwise.
7
7
  */
8
- export declare const contains: (a: any, x: any, y: any) => boolean;
8
+ export declare const contains: (a: import("../ellipse.js").Ellipse, x: number, y: number) => boolean;
9
9
  //# sourceMappingURL=ellipse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/ellipse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,YAU/B,CAAC"}
1
+ {"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/ellipse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,GAAG,OAAO,eAAe,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,YAUhF,CAAC"}
@@ -1,10 +1,12 @@
1
+ import { Line } from '../line.js';
2
+ import { Point } from '../point.js';
1
3
  /**
2
4
  * Clones a line.
3
5
  * @param {Line} input - The line to clone.
4
6
  * @param {Line} output - Optional line to store the result in.
5
7
  * @returns {Line} The cloned line.
6
8
  */
7
- export declare const clone: (input: any, output?: any) => any;
9
+ export declare const clone: (input: Line, output?: Line) => Line;
8
10
  /**
9
11
  * Gets the intersection point of two lines.
10
12
  * @param {object} a - The first line (with x1, y1, x2, y2 properties).
@@ -15,7 +17,7 @@ export declare const clone: (input: any, output?: any) => any;
15
17
  * @param {Point} output - Optional point to store the result in.
16
18
  * @returns {Point} The intersection point, or null if there is no intersection.
17
19
  */
18
- export declare const intersectsPoints: (a: any, b: any, e: any, f: any, asSegment?: boolean, output?: any) => any;
20
+ export declare const intersectsPoints: (a: any, b: any, e: any, f: any, asSegment?: boolean, output?: Point) => Point;
19
21
  /**
20
22
  * Gets the intersection point of two lines (alternative implementation).
21
23
  * @param {object} a - The first line (with x1, y1, x2, y2 properties).
@@ -24,7 +26,7 @@ export declare const intersectsPoints: (a: any, b: any, e: any, f: any, asSegmen
24
26
  * @param {Point} result - Optional point to store the result in.
25
27
  * @returns {Point} The intersection point, or null if there is no intersection.
26
28
  */
27
- export declare const intersects: (a: any, b: any, asSegment: any, result: any) => any;
29
+ export declare const intersects: (a: any, b: any, asSegment: boolean, result: Point) => Point;
28
30
  /**
29
31
  * Checks if a line intersects with a rectangle.
30
32
  * @param {object} line - The line to check (with x1, y1, x2, y2 properties).