@vpmedia/phaser 1.101.0 → 1.103.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 (477) hide show
  1. package/dist/index.d.ts +38 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +20112 -0
  4. package/dist/index.js.map +1 -0
  5. package/{types → dist}/phaser/core/animation.d.ts +41 -83
  6. package/dist/phaser/core/animation.d.ts.map +1 -0
  7. package/{types → dist}/phaser/core/animation_manager.d.ts +37 -55
  8. package/dist/phaser/core/animation_manager.d.ts.map +1 -0
  9. package/dist/phaser/core/animation_parser.d.ts +21 -0
  10. package/dist/phaser/core/animation_parser.d.ts.map +1 -0
  11. package/{types → dist}/phaser/core/array_set.d.ts +13 -13
  12. package/dist/phaser/core/array_set.d.ts.map +1 -0
  13. package/{types → dist}/phaser/core/cache.d.ts +78 -91
  14. package/dist/phaser/core/cache.d.ts.map +1 -0
  15. package/dist/phaser/core/const.d.ts +262 -0
  16. package/dist/phaser/core/const.d.ts.map +1 -0
  17. package/dist/phaser/core/device.d.ts +8 -0
  18. package/dist/phaser/core/device.d.ts.map +1 -0
  19. package/dist/phaser/core/device_util.d.ts +65 -0
  20. package/dist/phaser/core/device_util.d.ts.map +1 -0
  21. package/dist/phaser/core/dom.d.ts +75 -0
  22. package/dist/phaser/core/dom.d.ts.map +1 -0
  23. package/dist/phaser/core/error_code.d.ts +9 -0
  24. package/dist/phaser/core/error_code.d.ts.map +1 -0
  25. package/{types → dist}/phaser/core/event_manager.d.ts +17 -35
  26. package/dist/phaser/core/event_manager.d.ts.map +1 -0
  27. package/{types → dist}/phaser/core/factory.d.ts +9 -15
  28. package/dist/phaser/core/factory.d.ts.map +1 -0
  29. package/{types → dist}/phaser/core/frame.d.ts +7 -28
  30. package/dist/phaser/core/frame.d.ts.map +1 -0
  31. package/{types → dist}/phaser/core/frame_data.d.ts +12 -15
  32. package/dist/phaser/core/frame_data.d.ts.map +1 -0
  33. package/dist/phaser/core/frame_util.d.ts +15 -0
  34. package/dist/phaser/core/frame_util.d.ts.map +1 -0
  35. package/{types → dist}/phaser/core/game.d.ts +7 -74
  36. package/dist/phaser/core/game.d.ts.map +1 -0
  37. package/dist/phaser/core/input.d.ts +160 -0
  38. package/dist/phaser/core/input.d.ts.map +1 -0
  39. package/{types → dist}/phaser/core/input_handler.d.ts +32 -93
  40. package/dist/phaser/core/input_handler.d.ts.map +1 -0
  41. package/dist/phaser/core/input_mouse.d.ts +61 -0
  42. package/dist/phaser/core/input_mouse.d.ts.map +1 -0
  43. package/dist/phaser/core/input_mspointer.d.ts +51 -0
  44. package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
  45. package/dist/phaser/core/input_pointer.d.ts +106 -0
  46. package/dist/phaser/core/input_pointer.d.ts.map +1 -0
  47. package/dist/phaser/core/input_touch.d.ts +55 -0
  48. package/dist/phaser/core/input_touch.d.ts.map +1 -0
  49. package/{types → dist}/phaser/core/loader.d.ts +39 -78
  50. package/dist/phaser/core/loader.d.ts.map +1 -0
  51. package/dist/phaser/core/loader_parser.d.ts +35 -0
  52. package/dist/phaser/core/loader_parser.d.ts.map +1 -0
  53. package/{types → dist}/phaser/core/raf.d.ts +5 -5
  54. package/dist/phaser/core/raf.d.ts.map +1 -0
  55. package/{types → dist}/phaser/core/scale_manager.d.ts +41 -124
  56. package/dist/phaser/core/scale_manager.d.ts.map +1 -0
  57. package/{types → dist}/phaser/core/scene.d.ts +6 -4
  58. package/dist/phaser/core/scene.d.ts.map +1 -0
  59. package/{types → dist}/phaser/core/scene_manager.d.ts +12 -29
  60. package/dist/phaser/core/scene_manager.d.ts.map +1 -0
  61. package/{types → dist}/phaser/core/signal.d.ts +21 -17
  62. package/dist/phaser/core/signal.d.ts.map +1 -0
  63. package/{types → dist}/phaser/core/signal_binding.d.ts +15 -15
  64. package/dist/phaser/core/signal_binding.d.ts.map +1 -0
  65. package/{types → dist}/phaser/core/sound.d.ts +22 -75
  66. package/dist/phaser/core/sound.d.ts.map +1 -0
  67. package/{types → dist}/phaser/core/sound_manager.d.ts +20 -43
  68. package/dist/phaser/core/sound_manager.d.ts.map +1 -0
  69. package/dist/phaser/core/sound_sprite.d.ts +27 -0
  70. package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
  71. package/{types → dist}/phaser/core/stage.d.ts +29 -17
  72. package/dist/phaser/core/stage.d.ts.map +1 -0
  73. package/{types → dist}/phaser/core/time.d.ts +12 -64
  74. package/dist/phaser/core/time.d.ts.map +1 -0
  75. package/{types → dist}/phaser/core/timer.d.ts +14 -54
  76. package/dist/phaser/core/timer.d.ts.map +1 -0
  77. package/{types → dist}/phaser/core/timer_event.d.ts +2 -11
  78. package/dist/phaser/core/timer_event.d.ts.map +1 -0
  79. package/{types → dist}/phaser/core/tween.d.ts +21 -62
  80. package/dist/phaser/core/tween.d.ts.map +1 -0
  81. package/{types → dist}/phaser/core/tween_data.d.ts +9 -35
  82. package/dist/phaser/core/tween_data.d.ts.map +1 -0
  83. package/dist/phaser/core/tween_easing.d.ts +187 -0
  84. package/dist/phaser/core/tween_easing.d.ts.map +1 -0
  85. package/{types → dist}/phaser/core/tween_manager.d.ts +9 -18
  86. package/dist/phaser/core/tween_manager.d.ts.map +1 -0
  87. package/{types → dist}/phaser/core/world.d.ts +3 -3
  88. package/dist/phaser/core/world.d.ts.map +1 -0
  89. package/{types → dist}/phaser/display/bitmap_text.d.ts +52 -71
  90. package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
  91. package/{types → dist}/phaser/display/button.d.ts +25 -37
  92. package/dist/phaser/display/button.d.ts.map +1 -0
  93. package/{types → dist}/phaser/display/canvas/buffer.d.ts +3 -7
  94. package/dist/phaser/display/canvas/buffer.d.ts.map +1 -0
  95. package/dist/phaser/display/canvas/graphics.d.ts +18 -0
  96. package/dist/phaser/display/canvas/graphics.d.ts.map +1 -0
  97. package/dist/phaser/display/canvas/masker.d.ts +12 -0
  98. package/dist/phaser/display/canvas/masker.d.ts.map +1 -0
  99. package/dist/phaser/display/canvas/pool.d.ts +40 -0
  100. package/dist/phaser/display/canvas/pool.d.ts.map +1 -0
  101. package/{types → dist}/phaser/display/canvas/renderer.d.ts +6 -28
  102. package/dist/phaser/display/canvas/renderer.d.ts.map +1 -0
  103. package/dist/phaser/display/canvas/tinter.d.ts +41 -0
  104. package/dist/phaser/display/canvas/tinter.d.ts.map +1 -0
  105. package/dist/phaser/display/canvas/util.d.ts +70 -0
  106. package/dist/phaser/display/canvas/util.d.ts.map +1 -0
  107. package/{types → dist}/phaser/display/display_object.d.ts +63 -124
  108. package/dist/phaser/display/display_object.d.ts.map +1 -0
  109. package/{types → dist}/phaser/display/graphics.d.ts +59 -65
  110. package/dist/phaser/display/graphics.d.ts.map +1 -0
  111. package/{types → dist}/phaser/display/graphics_data.d.ts +2 -12
  112. package/dist/phaser/display/graphics_data.d.ts.map +1 -0
  113. package/dist/phaser/display/graphics_data_util.d.ts +8 -0
  114. package/dist/phaser/display/graphics_data_util.d.ts.map +1 -0
  115. package/{types → dist}/phaser/display/group.d.ts +27 -45
  116. package/dist/phaser/display/group.d.ts.map +1 -0
  117. package/{types → dist}/phaser/display/image.d.ts +54 -53
  118. package/dist/phaser/display/image.d.ts.map +1 -0
  119. package/dist/phaser/display/sprite_batch.d.ts +9 -0
  120. package/dist/phaser/display/sprite_batch.d.ts.map +1 -0
  121. package/dist/phaser/display/sprite_util.d.ts +35 -0
  122. package/dist/phaser/display/sprite_util.d.ts.map +1 -0
  123. package/{types → dist}/phaser/display/text.d.ts +176 -181
  124. package/dist/phaser/display/text.d.ts.map +1 -0
  125. package/{types → dist}/phaser/display/webgl/abstract_filter.d.ts +2 -8
  126. package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -0
  127. package/{types → dist}/phaser/display/webgl/base_texture.d.ts +3 -15
  128. package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -0
  129. package/{types → dist}/phaser/display/webgl/blend_manager.d.ts +7 -5
  130. package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -0
  131. package/{types → dist}/phaser/display/webgl/earcut.d.ts +28 -27
  132. package/dist/phaser/display/webgl/earcut.d.ts.map +1 -0
  133. package/{types → dist}/phaser/display/webgl/earcut_node.d.ts +11 -11
  134. package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -0
  135. package/{types → dist}/phaser/display/webgl/fast_sprite_batch.d.ts +6 -28
  136. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -0
  137. package/{types → dist}/phaser/display/webgl/filter_manager.d.ts +6 -7
  138. package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -0
  139. package/{types → dist}/phaser/display/webgl/filter_texture.d.ts +3 -9
  140. package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -0
  141. package/dist/phaser/display/webgl/graphics.d.ts +78 -0
  142. package/dist/phaser/display/webgl/graphics.d.ts.map +1 -0
  143. package/dist/phaser/display/webgl/graphics_data.d.ts +16 -0
  144. package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -0
  145. package/dist/phaser/display/webgl/mask_manager.d.ts +13 -0
  146. package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -0
  147. package/{types → dist}/phaser/display/webgl/render_texture.d.ts +5 -13
  148. package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
  149. package/dist/phaser/display/webgl/renderer.d.ts +51 -0
  150. package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
  151. package/dist/phaser/display/webgl/shader/complex.d.ts +16 -0
  152. package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
  153. package/dist/phaser/display/webgl/shader/fast.d.ts +16 -0
  154. package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
  155. package/dist/phaser/display/webgl/shader/normal.d.ts +29 -0
  156. package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
  157. package/dist/phaser/display/webgl/shader/primitive.d.ts +16 -0
  158. package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
  159. package/dist/phaser/display/webgl/shader/strip.d.ts +16 -0
  160. package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
  161. package/dist/phaser/display/webgl/shader_manager.d.ts +27 -0
  162. package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -0
  163. package/{types → dist}/phaser/display/webgl/sprite_batch.d.ts +9 -32
  164. package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
  165. package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +9 -9
  166. package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
  167. package/dist/phaser/display/webgl/texture.d.ts +36 -0
  168. package/dist/phaser/display/webgl/texture.d.ts.map +1 -0
  169. package/dist/phaser/display/webgl/texture_util.d.ts +17 -0
  170. package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -0
  171. package/dist/phaser/display/webgl/util.d.ts +54 -0
  172. package/dist/phaser/display/webgl/util.d.ts.map +1 -0
  173. package/{types → dist}/phaser/geom/circle.d.ts +35 -41
  174. package/dist/phaser/geom/circle.d.ts.map +1 -0
  175. package/{types → dist}/phaser/geom/ellipse.d.ts +12 -18
  176. package/dist/phaser/geom/ellipse.d.ts.map +1 -0
  177. package/{types → dist}/phaser/geom/line.d.ts +20 -23
  178. package/dist/phaser/geom/line.d.ts.map +1 -0
  179. package/{types → dist}/phaser/geom/matrix.d.ts +21 -29
  180. package/dist/phaser/geom/matrix.d.ts.map +1 -0
  181. package/{types → dist}/phaser/geom/point.d.ts +30 -33
  182. package/dist/phaser/geom/point.d.ts.map +1 -0
  183. package/{types → dist}/phaser/geom/polygon.d.ts +18 -24
  184. package/dist/phaser/geom/polygon.d.ts.map +1 -0
  185. package/{types → dist}/phaser/geom/rectangle.d.ts +74 -79
  186. package/dist/phaser/geom/rectangle.d.ts.map +1 -0
  187. package/{types → dist}/phaser/geom/rounded_rectangle.d.ts +9 -9
  188. package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -0
  189. package/dist/phaser/geom/util/circle.d.ts +55 -0
  190. package/dist/phaser/geom/util/circle.d.ts.map +1 -0
  191. package/dist/phaser/geom/util/ellipse.d.ts +9 -0
  192. package/dist/phaser/geom/util/ellipse.d.ts.map +1 -0
  193. package/dist/phaser/geom/util/line.d.ts +42 -0
  194. package/dist/phaser/geom/util/line.d.ts.map +1 -0
  195. package/dist/phaser/geom/util/matrix.d.ts +18 -0
  196. package/dist/phaser/geom/util/matrix.d.ts.map +1 -0
  197. package/dist/phaser/geom/util/point.d.ts +159 -0
  198. package/dist/phaser/geom/util/point.d.ts.map +1 -0
  199. package/dist/phaser/geom/util/polygon.d.ts +8 -0
  200. package/dist/phaser/geom/util/polygon.d.ts.map +1 -0
  201. package/dist/phaser/geom/util/rectangle.d.ts +123 -0
  202. package/dist/phaser/geom/util/rectangle.d.ts.map +1 -0
  203. package/dist/phaser/geom/util/rounded_rectangle.d.ts +8 -0
  204. package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -0
  205. package/dist/phaser/util/math.d.ts +154 -0
  206. package/dist/phaser/util/math.d.ts.map +1 -0
  207. package/package.json +32 -25
  208. package/src/phaser/core/{animation.js → animation.ts} +2 -1
  209. package/src/phaser/core/{animation_manager.js → animation_manager.ts} +2 -1
  210. package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
  211. package/src/phaser/core/{cache.js → cache.ts} +2 -1
  212. package/src/phaser/core/{device.js → device.ts} +2 -1
  213. package/src/phaser/core/{dom.js → dom.ts} +7 -0
  214. package/src/phaser/core/{event_manager.js → event_manager.ts} +2 -1
  215. package/src/phaser/core/{factory.js → factory.ts} +1 -0
  216. package/src/phaser/core/{frame.js → frame.ts} +2 -1
  217. package/src/phaser/core/{frame_data.js → frame_data.ts} +2 -1
  218. package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
  219. package/src/phaser/core/{game.js → game.ts} +1 -0
  220. package/src/phaser/core/{input.js → input.ts} +1 -0
  221. package/src/phaser/core/{input_handler.js → input_handler.ts} +1 -0
  222. package/src/phaser/core/{input_mouse.js → input_mouse.ts} +1 -0
  223. package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +1 -0
  224. package/src/phaser/core/{input_pointer.js → input_pointer.ts} +1 -0
  225. package/src/phaser/core/{input_touch.js → input_touch.ts} +1 -0
  226. package/src/phaser/core/{loader.js → loader.ts} +2 -1
  227. package/src/phaser/core/{loader_parser.js → loader_parser.ts} +2 -1
  228. package/src/phaser/core/{raf.js → raf.ts} +3 -0
  229. package/src/phaser/core/{scale_manager.js → scale_manager.ts} +1 -0
  230. package/src/phaser/core/{scene.js → scene.ts} +1 -0
  231. package/src/phaser/core/{scene_manager.js → scene_manager.ts} +1 -0
  232. package/src/phaser/core/{signal.js → signal.ts} +7 -0
  233. package/src/phaser/core/{signal_binding.js → signal_binding.ts} +10 -0
  234. package/src/phaser/core/{sound.js → sound.ts} +2 -1
  235. package/src/phaser/core/{sound_manager.js → sound_manager.ts} +2 -1
  236. package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +2 -1
  237. package/src/phaser/core/{stage.js → stage.ts} +1 -0
  238. package/src/phaser/core/{time.js → time.ts} +2 -1
  239. package/src/phaser/core/{timer.js → timer.ts} +2 -1
  240. package/src/phaser/core/{timer_event.js → timer_event.ts} +2 -1
  241. package/src/phaser/core/{tween.js → tween.ts} +2 -1
  242. package/src/phaser/core/{tween_data.js → tween_data.ts} +2 -1
  243. package/src/phaser/core/{tween_manager.js → tween_manager.ts} +2 -1
  244. package/src/phaser/core/{world.js → world.ts} +1 -0
  245. package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +1 -0
  246. package/src/phaser/display/{button.js → button.ts} +1 -0
  247. package/src/phaser/display/canvas/{buffer.js → buffer.ts} +1 -0
  248. package/src/phaser/display/canvas/{graphics.js → graphics.ts} +1 -0
  249. package/src/phaser/display/canvas/{masker.js → masker.ts} +1 -0
  250. package/src/phaser/display/canvas/{pool.js → pool.ts} +1 -0
  251. package/src/phaser/display/canvas/{renderer.js → renderer.ts} +1 -0
  252. package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
  253. package/src/phaser/display/{display_object.js → display_object.ts} +1 -0
  254. package/src/phaser/display/{graphics.js → graphics.ts} +1 -0
  255. package/src/phaser/display/{graphics_data.js → graphics_data.ts} +1 -0
  256. package/src/phaser/display/{graphics_data_util.js → graphics_data_util.ts} +1 -0
  257. package/src/phaser/display/{group.js → group.ts} +1 -0
  258. package/src/phaser/display/{image.js → image.ts} +1 -0
  259. package/src/phaser/display/{sprite_batch.js → sprite_batch.ts} +1 -0
  260. package/src/phaser/display/{sprite_util.js → sprite_util.ts} +1 -0
  261. package/src/phaser/display/{text.js → text.ts} +1 -0
  262. package/src/phaser/display/webgl/{abstract_filter.js → abstract_filter.ts} +1 -0
  263. package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +1 -0
  264. package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +1 -0
  265. package/src/phaser/display/webgl/{earcut.js → earcut.ts} +2 -2
  266. package/src/phaser/display/webgl/{earcut_node.js → earcut_node.ts} +10 -0
  267. package/src/phaser/display/webgl/{fast_sprite_batch.js → fast_sprite_batch.ts} +1 -0
  268. package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +1 -0
  269. package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +1 -0
  270. package/src/phaser/display/webgl/{graphics.js → graphics.ts} +1 -0
  271. package/src/phaser/display/webgl/{graphics_data.js → graphics_data.ts} +1 -0
  272. package/src/phaser/display/webgl/{mask_manager.js → mask_manager.ts} +1 -0
  273. package/src/phaser/display/webgl/{render_texture.js → render_texture.ts} +1 -0
  274. package/src/phaser/display/webgl/{renderer.js → renderer.ts} +1 -0
  275. package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +1 -0
  276. package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +1 -0
  277. package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +1 -0
  278. package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +1 -0
  279. package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +1 -0
  280. package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +1 -0
  281. package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +1 -0
  282. package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +1 -0
  283. package/src/phaser/display/webgl/{texture.js → texture.ts} +1 -0
  284. package/src/phaser/display/webgl/{texture_util.js → texture_util.ts} +1 -0
  285. package/src/phaser/geom/{circle.js → circle.ts} +7 -1
  286. package/src/phaser/geom/{ellipse.js → ellipse.ts} +6 -0
  287. package/src/phaser/geom/{line.js → line.ts} +4 -0
  288. package/src/phaser/geom/{matrix.js → matrix.ts} +8 -0
  289. package/src/phaser/geom/{point.js → point.ts} +5 -1
  290. package/src/phaser/geom/{polygon.js → polygon.ts} +6 -0
  291. package/src/phaser/geom/{rectangle.js → rectangle.ts} +10 -4
  292. package/src/phaser/geom/{rounded_rectangle.js → rounded_rectangle.ts} +7 -0
  293. package/CHANGELOG.md +0 -264
  294. package/SECURITY.md +0 -5
  295. package/typedefs/global.d.ts +0 -7
  296. package/types/index.d.ts +0 -38
  297. package/types/index.d.ts.map +0 -1
  298. package/types/phaser/core/animation.d.ts.map +0 -1
  299. package/types/phaser/core/animation_manager.d.ts.map +0 -1
  300. package/types/phaser/core/animation_parser.d.ts +0 -4
  301. package/types/phaser/core/animation_parser.d.ts.map +0 -1
  302. package/types/phaser/core/array_set.d.ts.map +0 -1
  303. package/types/phaser/core/cache.d.ts.map +0 -1
  304. package/types/phaser/core/const.d.ts +0 -262
  305. package/types/phaser/core/const.d.ts.map +0 -1
  306. package/types/phaser/core/device.d.ts +0 -96
  307. package/types/phaser/core/device.d.ts.map +0 -1
  308. package/types/phaser/core/device_util.d.ts +0 -13
  309. package/types/phaser/core/device_util.d.ts.map +0 -1
  310. package/types/phaser/core/dom.d.ts +0 -180
  311. package/types/phaser/core/dom.d.ts.map +0 -1
  312. package/types/phaser/core/error_code.d.ts +0 -9
  313. package/types/phaser/core/error_code.d.ts.map +0 -1
  314. package/types/phaser/core/event_manager.d.ts.map +0 -1
  315. package/types/phaser/core/factory.d.ts.map +0 -1
  316. package/types/phaser/core/frame.d.ts.map +0 -1
  317. package/types/phaser/core/frame_data.d.ts.map +0 -1
  318. package/types/phaser/core/frame_util.d.ts +0 -5
  319. package/types/phaser/core/frame_util.d.ts.map +0 -1
  320. package/types/phaser/core/game.d.ts.map +0 -1
  321. package/types/phaser/core/input.d.ts +0 -219
  322. package/types/phaser/core/input.d.ts.map +0 -1
  323. package/types/phaser/core/input_handler.d.ts.map +0 -1
  324. package/types/phaser/core/input_mouse.d.ts +0 -86
  325. package/types/phaser/core/input_mouse.d.ts.map +0 -1
  326. package/types/phaser/core/input_mspointer.d.ts +0 -67
  327. package/types/phaser/core/input_mspointer.d.ts.map +0 -1
  328. package/types/phaser/core/input_pointer.d.ts +0 -170
  329. package/types/phaser/core/input_pointer.d.ts.map +0 -1
  330. package/types/phaser/core/input_touch.d.ts +0 -73
  331. package/types/phaser/core/input_touch.d.ts.map +0 -1
  332. package/types/phaser/core/loader.d.ts.map +0 -1
  333. package/types/phaser/core/loader_parser.d.ts +0 -5
  334. package/types/phaser/core/loader_parser.d.ts.map +0 -1
  335. package/types/phaser/core/raf.d.ts.map +0 -1
  336. package/types/phaser/core/scale_manager.d.ts.map +0 -1
  337. package/types/phaser/core/scene.d.ts.map +0 -1
  338. package/types/phaser/core/scene_manager.d.ts.map +0 -1
  339. package/types/phaser/core/signal.d.ts.map +0 -1
  340. package/types/phaser/core/signal_binding.d.ts.map +0 -1
  341. package/types/phaser/core/sound.d.ts.map +0 -1
  342. package/types/phaser/core/sound_manager.d.ts.map +0 -1
  343. package/types/phaser/core/sound_sprite.d.ts +0 -36
  344. package/types/phaser/core/sound_sprite.d.ts.map +0 -1
  345. package/types/phaser/core/stage.d.ts.map +0 -1
  346. package/types/phaser/core/time.d.ts.map +0 -1
  347. package/types/phaser/core/timer.d.ts.map +0 -1
  348. package/types/phaser/core/timer_event.d.ts.map +0 -1
  349. package/types/phaser/core/tween.d.ts.map +0 -1
  350. package/types/phaser/core/tween_data.d.ts.map +0 -1
  351. package/types/phaser/core/tween_easing.d.ts +0 -32
  352. package/types/phaser/core/tween_easing.d.ts.map +0 -1
  353. package/types/phaser/core/tween_manager.d.ts.map +0 -1
  354. package/types/phaser/core/world.d.ts.map +0 -1
  355. package/types/phaser/display/bitmap_text.d.ts.map +0 -1
  356. package/types/phaser/display/button.d.ts.map +0 -1
  357. package/types/phaser/display/canvas/buffer.d.ts.map +0 -1
  358. package/types/phaser/display/canvas/graphics.d.ts +0 -4
  359. package/types/phaser/display/canvas/graphics.d.ts.map +0 -1
  360. package/types/phaser/display/canvas/masker.d.ts +0 -3
  361. package/types/phaser/display/canvas/masker.d.ts.map +0 -1
  362. package/types/phaser/display/canvas/pool.d.ts +0 -11
  363. package/types/phaser/display/canvas/pool.d.ts.map +0 -1
  364. package/types/phaser/display/canvas/renderer.d.ts.map +0 -1
  365. package/types/phaser/display/canvas/tinter.d.ts +0 -7
  366. package/types/phaser/display/canvas/tinter.d.ts.map +0 -1
  367. package/types/phaser/display/canvas/util.d.ts +0 -10
  368. package/types/phaser/display/canvas/util.d.ts.map +0 -1
  369. package/types/phaser/display/display_object.d.ts.map +0 -1
  370. package/types/phaser/display/graphics.d.ts.map +0 -1
  371. package/types/phaser/display/graphics_data.d.ts.map +0 -1
  372. package/types/phaser/display/graphics_data_util.d.ts +0 -3
  373. package/types/phaser/display/graphics_data_util.d.ts.map +0 -1
  374. package/types/phaser/display/group.d.ts.map +0 -1
  375. package/types/phaser/display/image.d.ts.map +0 -1
  376. package/types/phaser/display/sprite_batch.d.ts +0 -4
  377. package/types/phaser/display/sprite_batch.d.ts.map +0 -1
  378. package/types/phaser/display/sprite_util.d.ts +0 -6
  379. package/types/phaser/display/sprite_util.d.ts.map +0 -1
  380. package/types/phaser/display/text.d.ts.map +0 -1
  381. package/types/phaser/display/webgl/abstract_filter.d.ts.map +0 -1
  382. package/types/phaser/display/webgl/base_texture.d.ts.map +0 -1
  383. package/types/phaser/display/webgl/blend_manager.d.ts.map +0 -1
  384. package/types/phaser/display/webgl/earcut.d.ts.map +0 -1
  385. package/types/phaser/display/webgl/earcut_node.d.ts.map +0 -1
  386. package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +0 -1
  387. package/types/phaser/display/webgl/filter_manager.d.ts.map +0 -1
  388. package/types/phaser/display/webgl/filter_texture.d.ts.map +0 -1
  389. package/types/phaser/display/webgl/graphics.d.ts +0 -16
  390. package/types/phaser/display/webgl/graphics.d.ts.map +0 -1
  391. package/types/phaser/display/webgl/graphics_data.d.ts +0 -27
  392. package/types/phaser/display/webgl/graphics_data.d.ts.map +0 -1
  393. package/types/phaser/display/webgl/mask_manager.d.ts +0 -3
  394. package/types/phaser/display/webgl/mask_manager.d.ts.map +0 -1
  395. package/types/phaser/display/webgl/render_texture.d.ts.map +0 -1
  396. package/types/phaser/display/webgl/renderer.d.ts +0 -87
  397. package/types/phaser/display/webgl/renderer.d.ts.map +0 -1
  398. package/types/phaser/display/webgl/shader/complex.d.ts +0 -33
  399. package/types/phaser/display/webgl/shader/complex.d.ts.map +0 -1
  400. package/types/phaser/display/webgl/shader/fast.d.ts +0 -36
  401. package/types/phaser/display/webgl/shader/fast.d.ts.map +0 -1
  402. package/types/phaser/display/webgl/shader/normal.d.ts +0 -52
  403. package/types/phaser/display/webgl/shader/normal.d.ts.map +0 -1
  404. package/types/phaser/display/webgl/shader/primitive.d.ts +0 -32
  405. package/types/phaser/display/webgl/shader/primitive.d.ts.map +0 -1
  406. package/types/phaser/display/webgl/shader/strip.d.ts +0 -33
  407. package/types/phaser/display/webgl/shader/strip.d.ts.map +0 -1
  408. package/types/phaser/display/webgl/shader_manager.d.ts +0 -44
  409. package/types/phaser/display/webgl/shader_manager.d.ts.map +0 -1
  410. package/types/phaser/display/webgl/sprite_batch.d.ts.map +0 -1
  411. package/types/phaser/display/webgl/stencil_manager.d.ts.map +0 -1
  412. package/types/phaser/display/webgl/texture.d.ts +0 -63
  413. package/types/phaser/display/webgl/texture.d.ts.map +0 -1
  414. package/types/phaser/display/webgl/texture_util.d.ts +0 -5
  415. package/types/phaser/display/webgl/texture_util.d.ts.map +0 -1
  416. package/types/phaser/display/webgl/util.d.ts +0 -15
  417. package/types/phaser/display/webgl/util.d.ts.map +0 -1
  418. package/types/phaser/geom/circle.d.ts.map +0 -1
  419. package/types/phaser/geom/ellipse.d.ts.map +0 -1
  420. package/types/phaser/geom/line.d.ts.map +0 -1
  421. package/types/phaser/geom/matrix.d.ts.map +0 -1
  422. package/types/phaser/geom/point.d.ts.map +0 -1
  423. package/types/phaser/geom/polygon.d.ts.map +0 -1
  424. package/types/phaser/geom/rectangle.d.ts.map +0 -1
  425. package/types/phaser/geom/rounded_rectangle.d.ts.map +0 -1
  426. package/types/phaser/geom/util/circle.d.ts +0 -10
  427. package/types/phaser/geom/util/circle.d.ts.map +0 -1
  428. package/types/phaser/geom/util/ellipse.d.ts +0 -2
  429. package/types/phaser/geom/util/ellipse.d.ts.map +0 -1
  430. package/types/phaser/geom/util/line.d.ts +0 -8
  431. package/types/phaser/geom/util/line.d.ts.map +0 -1
  432. package/types/phaser/geom/util/matrix.d.ts +0 -5
  433. package/types/phaser/geom/util/matrix.d.ts.map +0 -1
  434. package/types/phaser/geom/util/point.d.ts +0 -22
  435. package/types/phaser/geom/util/point.d.ts.map +0 -1
  436. package/types/phaser/geom/util/polygon.d.ts +0 -3
  437. package/types/phaser/geom/util/polygon.d.ts.map +0 -1
  438. package/types/phaser/geom/util/rectangle.d.ts +0 -19
  439. package/types/phaser/geom/util/rectangle.d.ts.map +0 -1
  440. package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -3
  441. package/types/phaser/geom/util/rounded_rectangle.d.ts.map +0 -1
  442. package/types/phaser/util/math.d.ts +0 -58
  443. package/types/phaser/util/math.d.ts.map +0 -1
  444. /package/src/{index.js → index.ts} +0 -0
  445. /package/src/phaser/core/{animation_parser.js → animation_parser.ts} +0 -0
  446. /package/src/phaser/core/{const.js → const.ts} +0 -0
  447. /package/src/phaser/core/{device_util.js → device_util.ts} +0 -0
  448. /package/src/phaser/core/{error_code.js → error_code.ts} +0 -0
  449. /package/src/phaser/core/{signal.test.js → signal.test.ts} +0 -0
  450. /package/src/phaser/core/{tween_easing.js → tween_easing.ts} +0 -0
  451. /package/src/phaser/display/canvas/{util.js → util.ts} +0 -0
  452. /package/src/phaser/display/webgl/{util.js → util.ts} +0 -0
  453. /package/src/phaser/geom/{circle.test.js → circle.test.ts} +0 -0
  454. /package/src/phaser/geom/{ellipse.test.js → ellipse.test.ts} +0 -0
  455. /package/src/phaser/geom/{line.test.js → line.test.ts} +0 -0
  456. /package/src/phaser/geom/{matrix.test.js → matrix.test.ts} +0 -0
  457. /package/src/phaser/geom/{point.test.js → point.test.ts} +0 -0
  458. /package/src/phaser/geom/{rectangle.test.js → rectangle.test.ts} +0 -0
  459. /package/src/phaser/geom/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  460. /package/src/phaser/geom/util/{circle.test.js → circle.test.ts} +0 -0
  461. /package/src/phaser/geom/util/{circle.js → circle.ts} +0 -0
  462. /package/src/phaser/geom/util/{ellipse.test.js → ellipse.test.ts} +0 -0
  463. /package/src/phaser/geom/util/{ellipse.js → ellipse.ts} +0 -0
  464. /package/src/phaser/geom/util/{line.test.js → line.test.ts} +0 -0
  465. /package/src/phaser/geom/util/{line.js → line.ts} +0 -0
  466. /package/src/phaser/geom/util/{matrix.test.js → matrix.test.ts} +0 -0
  467. /package/src/phaser/geom/util/{matrix.js → matrix.ts} +0 -0
  468. /package/src/phaser/geom/util/{point.test.js → point.test.ts} +0 -0
  469. /package/src/phaser/geom/util/{point.js → point.ts} +0 -0
  470. /package/src/phaser/geom/util/{polygon.test.js → polygon.test.ts} +0 -0
  471. /package/src/phaser/geom/util/{polygon.js → polygon.ts} +0 -0
  472. /package/src/phaser/geom/util/{rectangle.test.js → rectangle.test.ts} +0 -0
  473. /package/src/phaser/geom/util/{rectangle.js → rectangle.ts} +0 -0
  474. /package/src/phaser/geom/util/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  475. /package/src/phaser/geom/util/{rounded_rectangle.js → rounded_rectangle.ts} +0 -0
  476. /package/src/phaser/util/{math.test.js → math.test.ts} +0 -0
  477. /package/src/phaser/util/{math.js → math.ts} +0 -0
@@ -1,4 +1,10 @@
1
- export class Ellipse {
1
+ import { Rectangle } from './rectangle.js';
2
+ export declare class Ellipse {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ type: number;
2
8
  /**
3
9
  * Creates a new Ellipse instance.
4
10
  * @param {number} x - The x coordinate of the center point (default: 0).
@@ -7,16 +13,6 @@ export class Ellipse {
7
13
  * @param {number} height - The height of the ellipse (default: 0).
8
14
  */
9
15
  constructor(x?: number, y?: number, width?: number, height?: number);
10
- /** @type {number} */
11
- x: number;
12
- /** @type {number} */
13
- y: number;
14
- /** @type {number} */
15
- width: number;
16
- /** @type {number} */
17
- height: number;
18
- /** @type {number} */
19
- type: number;
20
16
  /**
21
17
  * Sets the position and size of this ellipse to new values.
22
18
  * @param {number} x - The new x coordinate of the center point.
@@ -25,7 +21,7 @@ export class Ellipse {
25
21
  * @param {number} height - The new height of the ellipse.
26
22
  * @returns {Ellipse} This ellipse instance for chaining.
27
23
  */
28
- setTo(x: number, y: number, width: number, height: number): Ellipse;
24
+ setTo(x: any, y: any, width: any, height: any): this;
29
25
  /**
30
26
  * Gets the bounding rectangle of this ellipse.
31
27
  * @returns {Rectangle} The bounding rectangle of this ellipse.
@@ -36,32 +32,30 @@ export class Ellipse {
36
32
  * @param {Ellipse} source - The ellipse to copy values from.
37
33
  * @returns {Ellipse} This ellipse instance for chaining.
38
34
  */
39
- copyFrom(source: Ellipse): Ellipse;
35
+ copyFrom(source: any): this;
40
36
  /**
41
37
  * Copies the values of this ellipse to another ellipse.
42
38
  * @param {Ellipse} dest - The ellipse to copy values to.
43
39
  * @returns {Ellipse} The destination ellipse.
44
40
  */
45
- copyTo(dest: Ellipse): Ellipse;
41
+ copyTo(dest: any): any;
46
42
  /**
47
43
  * Checks if the specified point is contained within this ellipse.
48
44
  * @param {number} x - The x coordinate of the point to check.
49
45
  * @param {number} y - The y coordinate of the point to check.
50
46
  * @returns {boolean} True if the point is contained within this ellipse, false otherwise.
51
47
  */
52
- contains(x: number, y: number): boolean;
48
+ contains(x: any, y: any): boolean;
53
49
  /**
54
50
  * Returns a random point within this ellipse.
55
51
  * @param {Point} output - The point to store the result in (optional).
56
52
  * @returns {Point} A random point within this ellipse.
57
53
  */
58
- random(output?: Point): Point;
54
+ random(output?: any): any;
59
55
  /**
60
56
  * Returns a string representation of this ellipse.
61
57
  * @returns {string} A string representation of the ellipse.
62
58
  */
63
59
  toString(): string;
64
60
  }
65
- import { Rectangle } from './rectangle.js';
66
- import { Point } from './point.js';
67
61
  //# sourceMappingURL=ellipse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/ellipse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,OAAO;IAClB,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;;;;;;;OAOG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAQzB;;;OAGG;IACH,SAAS;IAIT;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAIf;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAQX;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAIb;;;;OAIG;IACH,MAAM,CAAC,MAAM,MAAO;IAWpB;;;OAGG;IACH,QAAQ;CAGT"}
@@ -1,4 +1,8 @@
1
- export class Line {
1
+ import { Point } from './point.js';
2
+ export declare class Line {
3
+ start: Point;
4
+ end: Point;
5
+ type: number;
2
6
  /**
3
7
  * Creates a new Line instance.
4
8
  * @param {number} x1 - The x coordinate of the start point (default: 0).
@@ -7,12 +11,6 @@ export class Line {
7
11
  * @param {number} y2 - The y coordinate of the end point (default: 0).
8
12
  */
9
13
  constructor(x1?: number, y1?: number, x2?: number, y2?: number);
10
- /** @type {Point} */
11
- start: Point;
12
- /** @type {Point} */
13
- end: Point;
14
- /** @type {number} */
15
- type: number;
16
14
  /**
17
15
  * Sets the coordinates of this line to new values.
18
16
  * @param {number} x1 - The new x coordinate of the start point.
@@ -21,7 +19,7 @@ export class Line {
21
19
  * @param {number} y2 - The new y coordinate of the end point.
22
20
  * @returns {Line} This line instance for chaining.
23
21
  */
24
- setTo(x1: number, y1: number, x2: number, y2: number): Line;
22
+ setTo(x1: any, y1: any, x2: any, y2: any): this;
25
23
  /**
26
24
  * Sets the coordinates of this line to match the positions of two sprites.
27
25
  * @param {object} startSprite - The starting sprite to get the position from.
@@ -29,7 +27,7 @@ export class Line {
29
27
  * @param {boolean} useCenter - Whether to use the center of the sprites (default: false).
30
28
  * @returns {Line} This line instance for chaining.
31
29
  */
32
- fromSprite(startSprite: object, endSprite: object, useCenter?: boolean): Line;
30
+ fromSprite(startSprite: any, endSprite: any, useCenter?: boolean): this;
33
31
  /**
34
32
  * Sets the coordinates of this line to a point at a specific angle and distance.
35
33
  * @param {number} x - The x coordinate of the starting point.
@@ -38,14 +36,14 @@ export class Line {
38
36
  * @param {number} length - The length of the line.
39
37
  * @returns {Line} This line instance for chaining.
40
38
  */
41
- fromAngle(x: number, y: number, angle: number, length: number): Line;
39
+ fromAngle(x: any, y: any, angle: any, length: any): this;
42
40
  /**
43
41
  * Rotates this line around its center point by the specified angle.
44
42
  * @param {number} angle - The angle in radians (or degrees if asDegrees is true) to rotate by.
45
43
  * @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
46
44
  * @returns {Line} This line instance for chaining.
47
45
  */
48
- rotate(angle: number, asDegrees?: boolean): Line;
46
+ rotate(angle: any, asDegrees?: boolean): this;
49
47
  /**
50
48
  * Rotates this line around a specific point by the specified angle.
51
49
  * @param {number} x - The x coordinate of the center point to rotate around.
@@ -54,7 +52,7 @@ export class Line {
54
52
  * @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
55
53
  * @returns {Line} This line instance for chaining.
56
54
  */
57
- rotateAround(x: number, y: number, angle: number, asDegrees?: boolean): Line;
55
+ rotateAround(x: any, y: any, angle: any, asDegrees?: boolean): this;
58
56
  /**
59
57
  * Checks if this line intersects with another line.
60
58
  * @param {Line} line - The other line to check for intersection with.
@@ -62,57 +60,57 @@ export class Line {
62
60
  * @param {Point} result - The point to store the intersection in (optional).
63
61
  * @returns {Point} The intersection point, or null if no intersection occurs.
64
62
  */
65
- intersects(line: Line, asSegment: boolean, result: Point): Point;
63
+ intersects(line: any, asSegment: any, result: any): any;
66
64
  /**
67
65
  * Calculates the reflection of this line off another line.
68
66
  * @param {Line} line - The line to reflect off.
69
67
  * @returns {number} The angle of reflection in radians.
70
68
  */
71
- reflect(line: Line): number;
69
+ reflect(line: any): number;
72
70
  /**
73
71
  * Returns the midpoint of this line.
74
72
  * @param {Point} output - The point to store the result in (optional).
75
73
  * @returns {Point} The midpoint of this line.
76
74
  */
77
- midPoint(output?: Point): Point;
75
+ midPoint(output?: any): any;
78
76
  /**
79
77
  * Centers this line on the specified point.
80
78
  * @param {number} x - The x coordinate to center the line on.
81
79
  * @param {number} y - The y coordinate to center the line on.
82
80
  */
83
- centerOn(x: number, y: number): void;
81
+ centerOn(x: any, y: any): void;
84
82
  /**
85
83
  * Checks if the specified point lies on this line (not necessarily on the segment).
86
84
  * @param {number} x - The x coordinate of the point to check.
87
85
  * @param {number} y - The y coordinate of the point to check.
88
86
  * @returns {boolean} True if the point lies on this line, false otherwise.
89
87
  */
90
- pointOnLine(x: number, y: number): boolean;
88
+ pointOnLine(x: any, y: any): boolean;
91
89
  /**
92
90
  * Checks if the specified point lies on this line segment.
93
91
  * @param {number} x - The x coordinate of the point to check.
94
92
  * @param {number} y - The y coordinate of the point to check.
95
93
  * @returns {boolean} True if the point lies on this line segment, false otherwise.
96
94
  */
97
- pointOnSegment(x: number, y: number): boolean;
95
+ pointOnSegment(x: any, y: any): boolean;
98
96
  /**
99
97
  * Returns a random point on this line.
100
98
  * @param {Point} output - The point to store the result in (optional).
101
99
  * @returns {Point} A random point on this line.
102
100
  */
103
- random(output?: Point): Point;
101
+ random(output?: any): any;
104
102
  /**
105
103
  * Gets coordinates of points along this line at regular intervals.
106
104
  * @param {number} stepRate - The interval between points (default: 1).
107
105
  * @param {number[][]} results - The array to store the results in (optional).
108
106
  * @returns {number[][]} An array of coordinate pairs representing points along this line.
109
107
  */
110
- coordinatesOnLine(stepRate?: number, results?: number[][]): number[][];
108
+ coordinatesOnLine(stepRate?: number, results?: any[]): any[];
111
109
  /**
112
110
  * Creates a clone of this line.
113
111
  * @returns {Line} A new line with the same values as this one.
114
112
  */
115
- clone(): Line;
113
+ clone(): any;
116
114
  /**
117
115
  * Gets the length of this line.
118
116
  * @returns {number} The length of this line.
@@ -187,7 +185,6 @@ export class Line {
187
185
  * Gets the angle of the normal vector of this line in radians.
188
186
  * @returns {number} The angle of the normal vector of this line in radians.
189
187
  */
190
- get normalAngle(): number;
188
+ get normalAngle(): any;
191
189
  }
192
- import { Point } from './point.js';
193
190
  //# sourceMappingURL=line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAKnC,qBAAa,IAAI;IACf,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;gBACS,EAAE,SAAI,EAAE,EAAE,SAAI,EAAE,EAAE,SAAI,EAAE,EAAE,SAAI;IAS1C;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,EAAE,KAAA;IAMpB;;;;;;OAMG;IACH,UAAU,CAAC,WAAW,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,UAAQ;IAOpD;;;;;;;OAOG;IACH,SAAS,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAM7B;;;;;OAKG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,SAAS,UAAQ;IAQ/B;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,SAAS,UAAQ;IAM3C;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,KAAA,EAAE,SAAS,KAAA,EAAE,MAAM,KAAA;IAIlC;;;;OAIG;IACH,OAAO,CAAC,IAAI,KAAA;IAIZ;;;;OAIG;IACH,QAAQ,CAAC,MAAM,MAAO;IAOtB;;;;OAIG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IASb;;;;;OAKG;IACH,WAAW,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAIhB;;;;;OAKG;IACH,cAAc,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAQnB;;;;OAIG;IACH,MAAM,CAAC,MAAM,MAAO;IAQpB;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,SAAI,EAAE,OAAO,QAAK;IA8B5C;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI,MAAM,WAKT;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,WAAW,QAEd;CACF"}
@@ -1,4 +1,11 @@
1
- export class Matrix {
1
+ export declare class Matrix {
2
+ a: number;
3
+ b: number;
4
+ c: number;
5
+ d: number;
6
+ tx: number;
7
+ ty: number;
8
+ type: number;
2
9
  /**
3
10
  * Creates a new Matrix instance.
4
11
  * @param {number} a - The a component of the matrix (default: 1).
@@ -9,26 +16,12 @@ export class Matrix {
9
16
  * @param {number} ty - The ty component of the matrix (default: 0).
10
17
  */
11
18
  constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
12
- /** @type {number} */
13
- a: number;
14
- /** @type {number} */
15
- b: number;
16
- /** @type {number} */
17
- c: number;
18
- /** @type {number} */
19
- d: number;
20
- /** @type {number} */
21
- tx: number;
22
- /** @type {number} */
23
- ty: number;
24
- /** @type {number} */
25
- type: number;
26
19
  /**
27
20
  * Sets the matrix components from an array.
28
21
  * @param {number[]} array - The array to read the matrix components from (should have 6 elements).
29
22
  * @returns {Matrix} This matrix instance for chaining.
30
23
  */
31
- fromArray(array: number[]): Matrix;
24
+ fromArray(array: any): this;
32
25
  /**
33
26
  * Sets the matrix components to new values.
34
27
  * @param {number} a - The new a component of the matrix.
@@ -39,76 +32,75 @@ export class Matrix {
39
32
  * @param {number} ty - The new ty component of the matrix.
40
33
  * @returns {Matrix} This matrix instance for chaining.
41
34
  */
42
- setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix;
35
+ setTo(a: any, b: any, c: any, d: any, tx: any, ty: any): this;
43
36
  /**
44
37
  * Creates a clone of this matrix.
45
38
  * @returns {Matrix} A new matrix with the same values as this one.
46
39
  */
47
- clone(): Matrix;
40
+ clone(): any;
48
41
  /**
49
42
  * Copies the values of this matrix to another matrix.
50
43
  * @param {Matrix} matrix - The matrix to copy values to.
51
44
  * @returns {Matrix} The destination matrix.
52
45
  */
53
- copyTo(matrix: Matrix): Matrix;
46
+ copyTo(matrix: any): any;
54
47
  /**
55
48
  * Copies the values from another matrix to this matrix.
56
49
  * @param {Matrix} matrix - The matrix to copy values from.
57
50
  * @returns {Matrix} This matrix instance for chaining.
58
51
  */
59
- copyFrom(matrix: Matrix): Matrix;
52
+ copyFrom(matrix: any): this;
60
53
  /**
61
54
  * Converts this matrix to a Float32Array.
62
55
  * @param {boolean} transpose - Whether to transpose the matrix (default: false).
63
56
  * @param {Float32Array} output - The array to store the result in (optional).
64
57
  * @returns {Float32Array} A Float32Array containing the matrix elements.
65
58
  */
66
- toArray(transpose?: boolean, output?: Float32Array): Float32Array;
59
+ toArray(transpose?: boolean, output?: any): any;
67
60
  /**
68
61
  * Applies this matrix to a point.
69
62
  * @param {Point} pos - The point to apply the matrix to.
70
63
  * @param {Point} output - The point to store the result in (optional).
71
64
  * @returns {Point} The transformed point.
72
65
  */
73
- apply(pos: Point, output?: Point): Point;
66
+ apply(pos: any, output?: any): any;
74
67
  /**
75
68
  * Applies the inverse of this matrix to a point.
76
69
  * @param {Point} pos - The point to apply the inverse matrix to.
77
70
  * @param {Point} output - The point to store the result in (optional).
78
71
  * @returns {Point} The transformed point.
79
72
  */
80
- applyInverse(pos: Point, output?: Point): Point;
73
+ applyInverse(pos: any, output?: any): any;
81
74
  /**
82
75
  * Translates this matrix by the specified amounts.
83
76
  * @param {number} x - The amount to translate in the x direction.
84
77
  * @param {number} y - The amount to translate in the y direction.
85
78
  * @returns {Matrix} This matrix instance for chaining.
86
79
  */
87
- translate(x: number, y: number): Matrix;
80
+ translate(x: any, y: any): this;
88
81
  /**
89
82
  * Scales this matrix by the specified amounts.
90
83
  * @param {number} x - The amount to scale in the x direction.
91
84
  * @param {number} y - The amount to scale in the y direction.
92
85
  * @returns {Matrix} This matrix instance for chaining.
93
86
  */
94
- scale(x: number, y: number): Matrix;
87
+ scale(x: any, y: any): this;
95
88
  /**
96
89
  * Rotates this matrix by the specified angle.
97
90
  * @param {number} angle - The angle in radians to rotate by.
98
91
  * @returns {Matrix} This matrix instance for chaining.
99
92
  */
100
- rotate(angle: number): Matrix;
93
+ rotate(angle: any): this;
101
94
  /**
102
95
  * Appends another matrix to this matrix (multiplying matrices).
103
96
  * @param {Matrix} matrix - The matrix to append.
104
97
  * @returns {Matrix} This matrix instance for chaining.
105
98
  */
106
- append(matrix: Matrix): Matrix;
99
+ append(matrix: any): this;
107
100
  /**
108
101
  * Sets this matrix to an identity matrix (no transformation).
109
102
  * @returns {Matrix} This matrix instance for chaining.
110
103
  */
111
- identity(): Matrix;
104
+ identity(): this;
112
105
  }
113
- import { Point } from './point.js';
114
106
  //# sourceMappingURL=matrix.d.ts.map
@@ -0,0 +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,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,EAAE,KAAA,EAAE,EAAE,KAAA;IAUxB;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,MAAM,KAAA;IAKb;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAUf;;;;;OAKG;IACH,OAAO,CAAC,SAAS,UAAQ,EAAE,MAAM,MAAO;IA0BxC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,KAAA,EAAE,MAAM,MAAO;IAOxB;;;;;OAKG;IACH,YAAY,CAAC,GAAG,KAAA,EAAE,MAAM,MAAO;IAU/B;;;;;OAKG;IACH,SAAS,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMd;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAUV;;;;OAIG;IACH,MAAM,CAAC,KAAK,KAAA;IAeZ;;;;OAIG;IACH,MAAM,CAAC,MAAM,KAAA;IAcb;;;OAGG;IACH,QAAQ;CAGT"}
@@ -1,34 +1,31 @@
1
- export class Point {
1
+ export declare class Point {
2
+ x: number;
3
+ y: number;
4
+ type: number;
2
5
  /**
3
6
  * Creates a new Point instance.
4
7
  * @param {number} x - The x coordinate of the point (default: 0).
5
8
  * @param {number} y - The y coordinate of the point (default: 0).
6
9
  */
7
10
  constructor(x?: number, y?: number);
8
- /** @type {number} */
9
- x: number;
10
- /** @type {number} */
11
- y: number;
12
- /** @type {number} */
13
- type: number;
14
11
  /**
15
12
  * Copies the coordinates from another point to this point.
16
13
  * @param {Point} source - The point to copy coordinates from.
17
14
  * @returns {Point} This point instance for chaining.
18
15
  */
19
- copyFrom(source: Point): Point;
16
+ copyFrom(source: any): this;
20
17
  /**
21
18
  * Returns a new point with the x and y coordinates swapped.
22
19
  * @returns {Point} A new point instance with swapped coordinates.
23
20
  */
24
- invert(): Point;
21
+ invert(): this;
25
22
  /**
26
23
  * Sets the coordinates of this point to new values.
27
24
  * @param {number} x - The new x coordinate for the point.
28
25
  * @param {number} y - The new y coordinate for the point.
29
26
  * @returns {Point} This point instance for chaining.
30
27
  */
31
- setTo(x: number, y: number): Point;
28
+ setTo(x: any, y?: any): this;
32
29
  /**
33
30
  * Sets the coordinates of this point to new values.
34
31
  * @param {number} x - The new x coordinate for the point.
@@ -36,86 +33,86 @@ export class Point {
36
33
  * @returns {Point} This point instance for chaining.
37
34
  * @deprecated Use setTo instead.
38
35
  */
39
- set(x: number, y: number): Point;
36
+ set(x: any, y: any): this;
40
37
  /**
41
38
  * Adds the given x and y values to the point's coordinates.
42
39
  * @param {number} x - The amount to add to the x coordinate.
43
40
  * @param {number} y - The amount to add to the y coordinate.
44
41
  * @returns {Point} This point instance for chaining.
45
42
  */
46
- add(x: number, y: number): Point;
43
+ add(x: any, y: any): this;
47
44
  /**
48
45
  * Subtracts the given x and y values from the point's coordinates.
49
46
  * @param {number} x - The amount to subtract from the x coordinate.
50
47
  * @param {number} y - The amount to subtract from the y coordinate.
51
48
  * @returns {Point} This point instance for chaining.
52
49
  */
53
- subtract(x: number, y: number): Point;
50
+ subtract(x: any, y: any): this;
54
51
  /**
55
52
  * Multiplies the point's coordinates by the given x and y values.
56
53
  * @param {number} x - The amount to multiply the x coordinate by.
57
54
  * @param {number} y - The amount to multiply the y coordinate by.
58
55
  * @returns {Point} This point instance for chaining.
59
56
  */
60
- multiply(x: number, y: number): Point;
57
+ multiply(x: any, y: any): this;
61
58
  /**
62
59
  * Divides the point's coordinates by the given x and y values.
63
60
  * @param {number} x - The amount to divide the x coordinate by.
64
61
  * @param {number} y - The amount to divide the y coordinate by.
65
62
  * @returns {Point} This point instance for chaining.
66
63
  */
67
- divide(x: number, y: number): Point;
64
+ divide(x: any, y: any): this;
68
65
  /**
69
66
  * Constrains the x coordinate of this point to the given range.
70
67
  * @param {number} min - The minimum value for the x coordinate.
71
68
  * @param {number} max - The maximum value for the x coordinate.
72
69
  * @returns {Point} This point instance for chaining.
73
70
  */
74
- clampX(min: number, max: number): Point;
71
+ clampX(min: any, max: any): this;
75
72
  /**
76
73
  * Constrains the y coordinate of this point to the given range.
77
74
  * @param {number} min - The minimum value for the y coordinate.
78
75
  * @param {number} max - The maximum value for the y coordinate.
79
76
  * @returns {Point} This point instance for chaining.
80
77
  */
81
- clampY(min: number, max: number): Point;
78
+ clampY(min: any, max: any): this;
82
79
  /**
83
80
  * Constrains both coordinates of this point to the given range.
84
81
  * @param {number} min - The minimum value for both coordinates.
85
82
  * @param {number} max - The maximum value for both coordinates.
86
83
  * @returns {Point} This point instance for chaining.
87
84
  */
88
- clamp(min: number, max: number): Point;
85
+ clamp(min: any, max: any): this;
89
86
  /**
90
87
  * Creates a clone of this point.
91
88
  * @returns {Point} A new point with the same coordinates as this one.
92
89
  */
93
- clone(): Point;
90
+ clone(): any;
94
91
  /**
95
92
  * Copies the coordinates of this point to another point.
96
93
  * @param {Point} dest - The point to copy coordinates to.
97
94
  * @returns {Point} The destination point.
98
95
  */
99
- copyTo(dest: Point): Point;
96
+ copyTo(dest: any): any;
100
97
  /**
101
98
  * Calculates the distance between this point and another point.
102
99
  * @param {Point} b - The other point to calculate the distance to.
103
100
  * @returns {number} The distance between the two points.
104
101
  */
105
- distance(b: Point): number;
102
+ distance(b: any): number;
106
103
  /**
107
104
  * Checks if this point is equal to another point.
108
105
  * @param {Point} a - The other point to compare with.
109
106
  * @returns {boolean} True if the points have the same coordinates, false otherwise.
110
107
  */
111
- equals(a: Point): boolean;
108
+ equals(a: any): boolean;
112
109
  /**
113
110
  * Calculates the angle between this point and another point.
114
111
  * @param {Point} a - The other point to calculate the angle to.
115
112
  * @param {boolean} asDegrees - Whether to return the result in degrees (default: false).
116
113
  * @returns {number} The angle between the two points in radians or degrees.
117
114
  */
118
- angle(a: Point, asDegrees?: boolean): number;
115
+ angle(a: any, asDegrees?: boolean): number;
119
116
  /**
120
117
  * Rotates this point around another point by a given angle.
121
118
  * @param {number} x - The x coordinate of the center point to rotate around.
@@ -125,7 +122,7 @@ export class Point {
125
122
  * @param {number | null | undefined} dist - The distance to rotate from (default: null).
126
123
  * @returns {Point} This point instance for chaining.
127
124
  */
128
- rotate(x: number, y: number, angle: number, asDegrees: boolean, dist?: number | null | undefined): Point;
125
+ rotate(x: any, y: any, angle: any, asDegrees: any, dist?: any): any;
129
126
  /**
130
127
  * Calculates the magnitude (length) of this point from the origin.
131
128
  * @returns {number} The magnitude of the point.
@@ -141,12 +138,12 @@ export class Point {
141
138
  * @param {number} magnitude - The new magnitude for the point.
142
139
  * @returns {Point} This point instance for chaining.
143
140
  */
144
- setMagnitude(magnitude: number): Point;
141
+ setMagnitude(magnitude: any): this;
145
142
  /**
146
143
  * Normalizes this point to have a magnitude of 1 while preserving its direction.
147
144
  * @returns {Point} This point instance for chaining.
148
145
  */
149
- normalize(): Point;
146
+ normalize(): this;
150
147
  /**
151
148
  * Checks if this point has zero magnitude (is at the origin).
152
149
  * @returns {boolean} True if both x and y coordinates are zero, false otherwise.
@@ -157,38 +154,38 @@ export class Point {
157
154
  * @param {Point} a - The other point to calculate the dot product with.
158
155
  * @returns {number} The dot product of the two points.
159
156
  */
160
- dot(a: Point): number;
157
+ dot(a: any): number;
161
158
  /**
162
159
  * Calculates the cross product of this point and another point.
163
160
  * @param {Point} a - The other point to calculate the cross product with.
164
161
  * @returns {number} The cross product of the two points.
165
162
  */
166
- cross(a: Point): number;
163
+ cross(a: any): number;
167
164
  /**
168
165
  * Returns a perpendicular point (rotated 90 degrees counter-clockwise).
169
166
  * @returns {Point} A new point that is perpendicular to this one.
170
167
  */
171
- perp(): Point;
168
+ perp(): this;
172
169
  /**
173
170
  * Returns a perpendicular point (rotated 90 degrees clockwise).
174
171
  * @returns {Point} A new point that is perpendicular to this one (rotated clockwise).
175
172
  */
176
- rperp(): Point;
173
+ rperp(): this;
177
174
  /**
178
175
  * Returns a point with the same direction as this one but with y coordinate negated.
179
176
  * @returns {Point} A new point with the same x coordinate but negated y coordinate.
180
177
  */
181
- normalRightHand(): Point;
178
+ normalRightHand(): this;
182
179
  /**
183
180
  * Returns a new point with the x and y coordinates rounded down to the nearest integer.
184
181
  * @returns {Point} A new point with floored coordinates.
185
182
  */
186
- floor(): Point;
183
+ floor(): this;
187
184
  /**
188
185
  * Returns a new point with the x and y coordinates rounded up to the nearest integer.
189
186
  * @returns {Point} A new point with ceiled coordinates.
190
187
  */
191
- ceil(): Point;
188
+ ceil(): this;
192
189
  /**
193
190
  * Returns a string representation of this point.
194
191
  * @returns {string} A string representation of the point in the format "[Point (x=value y=value)]".
@@ -0,0 +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,CAAC,KAAA;IAMb;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMb;;;;;OAKG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMX;;;;;OAKG;IACH,MAAM,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAKf;;;;;OAKG;IACH,MAAM,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAKf;;;;;OAKG;IACH,KAAK,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAMd;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAMX;;;;OAIG;IACH,QAAQ,CAAC,CAAC,KAAA;IAIV;;;;OAIG;IACH,MAAM,CAAC,CAAC,KAAA;IAIR;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,SAAS,UAAQ;IAO1B;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,SAAS,KAAA,EAAE,IAAI,MAAO;IAI1C;;;OAGG;IACH,YAAY;IAIZ;;;OAGG;IACH,cAAc;IAId;;;;OAIG;IACH,YAAY,CAAC,SAAS,KAAA;IAItB;;;OAGG;IACH,SAAS;IAST;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,GAAG,CAAC,CAAC,KAAA;IAIL;;;;OAIG;IACH,KAAK,CAAC,CAAC,KAAA;IAIP;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,QAAQ;CAGT"}
@@ -1,63 +1,57 @@
1
- export class Polygon {
2
- /**
3
- * Creates a new Polygon instance.
4
- * @param {object[]} points - The array of points to define the polygon (optional).
5
- */
6
- constructor(points?: object[]);
7
- /** @type {number} */
1
+ export declare class Polygon {
8
2
  area: number;
9
- /** @type {Point[]} */
10
- _points: Point[];
11
- /** @type {boolean} */
3
+ _points: any[];
12
4
  closed: boolean;
13
- /** @type {boolean} */
14
5
  flattened: boolean;
15
- /** @type {number} */
16
6
  type: number;
7
+ /**
8
+ * Creates a new Polygon instance.
9
+ * @param {object[]} points - The array of points to define the polygon (optional).
10
+ */
11
+ constructor(points?: any);
17
12
  /**
18
13
  * Converts the polygon's points to a number array.
19
14
  * @param {number[]} output - The array to store the result in (optional).
20
15
  * @returns {number[]} An array of numbers representing the polygon's points.
21
16
  */
22
- toNumberArray(output?: number[]): number[];
17
+ toNumberArray(output?: any[]): any[];
23
18
  /**
24
19
  * Flattens the polygon's point array to a simple numeric array.
25
20
  * @returns {Polygon} This polygon instance for chaining.
26
21
  */
27
- flatten(): Polygon;
22
+ flatten(): this;
28
23
  /**
29
24
  * Creates a clone of this polygon.
30
25
  * @returns {Polygon} A new polygon with the same values as this one.
31
26
  */
32
- clone(): Polygon;
27
+ clone(): any;
33
28
  /**
34
29
  * Checks if the specified point is contained within this polygon.
35
30
  * @param {number} x - The x coordinate of the point to check.
36
31
  * @param {number} y - The y coordinate of the point to check.
37
32
  * @returns {boolean} True if the point is contained within this polygon, false otherwise.
38
33
  */
39
- contains(x: number, y: number): boolean;
34
+ contains(x: any, y: any): boolean;
40
35
  /**
41
36
  * Sets the polygon's points to new values.
42
37
  * @param {object[]} points - The array of points to define the polygon.
43
38
  * @returns {Polygon} This polygon instance for chaining.
44
39
  */
45
- setTo(points: object[]): Polygon;
40
+ setTo(points: any): this;
46
41
  /**
47
42
  * Calculates the area of this polygon.
48
43
  * @param {number} y0 - The y coordinate of the lowest boundary (internal use).
49
44
  * @returns {number} The area of this polygon.
50
45
  */
51
- calculateArea(y0: number): number;
52
- /**
53
- * Sets the points of this polygon.
54
- */
55
- set points(value: object[]);
46
+ calculateArea(y0: any): number;
56
47
  /**
57
48
  * Gets the points of this polygon.
58
49
  * @returns {object[]} The array of points that define this polygon.
59
50
  */
60
- get points(): object[];
51
+ get points(): any[];
52
+ /**
53
+ * Sets the points of this polygon.
54
+ */
55
+ set points(value: any[]);
61
56
  }
62
- import { Point } from './point.js';
63
57
  //# sourceMappingURL=polygon.d.ts.map
@@ -0,0 +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"}