@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
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Tints a sprite with the given color.
3
+ * @param {object} sprite - The sprite to tint.
4
+ * @param {object} color - The color to tint with.
5
+ * @returns {object} The tinted sprite.
6
+ */
7
+ export declare const getTintedTexture: (sprite: any, color: any) => any;
8
+ /**
9
+ * Tints a texture with the given color.
10
+ * @param {object} texture - The texture to tint.
11
+ * @param {object} color - The color to tint with.
12
+ * @param {HTMLCanvasElement} canvas - The canvas to render to.
13
+ * @throws {Error} If the operation fails.
14
+ */
15
+ export declare const tintWithMultiply: (texture: any, color: any, canvas: any) => void;
16
+ /**
17
+ * Tints a texture with the given color.
18
+ * @param {object} texture - The texture to tint.
19
+ * @param {object} color - The color to tint with.
20
+ * @param {HTMLCanvasElement} canvas - The canvas to render to.
21
+ * @throws {Error} If the operation fails.
22
+ */
23
+ export declare const tintWithPerPixel: (texture: any, color: any, canvas: any) => void;
24
+ /**
25
+ * Checks if the tinter can handle the given texture.
26
+ * @returns {boolean} True if the tinter can handle the texture, false otherwise.
27
+ * @throws {Error} If the operation fails.
28
+ */
29
+ export declare const checkInverseAlpha: () => boolean;
30
+ /**
31
+ * Checks if the tinter can handle the given texture.
32
+ * @returns {boolean} True if the tinter can handle the texture, false otherwise.
33
+ * @throws {Error} If the operation fails.
34
+ */
35
+ export declare const canUseNewCanvasBlendModes: () => boolean;
36
+ /**
37
+ * Creates a new Tinter instance.
38
+ * @param {import('../../core/game.js').Game} game - The game instance.
39
+ */
40
+ export declare const detectCapabilities: (game: any) => void;
41
+ //# sourceMappingURL=tinter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tinter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/tinter.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAM,EAAE,UAAK,QAI7C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,YAAO,EAAE,UAAK,EAAE,WAAM,SAiBtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,YAAO,EAAE,UAAK,EAAE,WAAM,SA6BtD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAmC7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,eAmCrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAI,SAwBtC,CAAC"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Creates a new HTML canvas element.
3
+ * @param {object} parent - The parent element to append the canvas to.
4
+ * @param {number} width - The width of the canvas.
5
+ * @param {number} height - The height of the canvas.
6
+ * @param {string} id - The ID to assign to the canvas.
7
+ * @param {boolean} skipPool - Whether to skip using the canvas pool.
8
+ * @returns {HTMLCanvasElement} The created HTML canvas element.
9
+ */
10
+ export declare const create: (parent: any, width: any, height: any, id: any, skipPool: any) => any;
11
+ /**
12
+ * Sets the background color of a canvas element.
13
+ * @param {HTMLCanvasElement} canvas - The canvas element to modify.
14
+ * @param {string} color - The background color to set.
15
+ * @returns {HTMLCanvasElement} The modified canvas element.
16
+ */
17
+ export declare const setBackgroundColor: (canvas: any, color: any) => any;
18
+ /**
19
+ * Sets the touch action property of a canvas element.
20
+ * @param {HTMLCanvasElement} canvas - The canvas element to modify.
21
+ * @param {string} value - The touch action value to set.
22
+ * @returns {HTMLCanvasElement} The modified canvas element.
23
+ */
24
+ export declare const setTouchAction: (canvas: any, value?: string) => any;
25
+ /**
26
+ * Sets the user select property of a canvas element.
27
+ * @param {HTMLCanvasElement} canvas - The canvas element to modify.
28
+ * @param {string} value - The user select value to set.
29
+ * @returns {HTMLCanvasElement} The modified canvas element.
30
+ */
31
+ export declare const setUserSelect: (canvas: any, value?: string) => any;
32
+ /**
33
+ * Adds a canvas element to the DOM.
34
+ * @param {HTMLCanvasElement} canvas - The canvas element to add.
35
+ * @param {object} parent - The parent element to append the canvas to.
36
+ * @param {boolean} overflowHidden - Whether to set overflow hidden on the parent.
37
+ * @returns {HTMLCanvasElement} The added canvas element.
38
+ */
39
+ export declare const addToDOM: (canvas: any, parent: any, overflowHidden?: boolean) => any;
40
+ /**
41
+ * Removes a canvas element from the DOM.
42
+ * @param {HTMLCanvasElement} canvas - The canvas element to remove.
43
+ */
44
+ export declare const removeFromDOM: (canvas: any) => void;
45
+ /**
46
+ * Sets the transformation matrix on a canvas rendering context.
47
+ * @param {CanvasRenderingContext2D} context - The canvas rendering context.
48
+ * @param {number} translateX - The X translation value.
49
+ * @param {number} translateY - The Y translation value.
50
+ * @param {number} scaleX - The X scale value.
51
+ * @param {number} scaleY - The Y scale value.
52
+ * @param {number} skewX - The X skew value.
53
+ * @param {number} skewY - The Y skew value.
54
+ * @returns {CanvasRenderingContext2D} The modified rendering context.
55
+ */
56
+ export declare const setTransform: (context: any, translateX: any, translateY: any, scaleX: any, scaleY: any, skewX: any, skewY: any) => any;
57
+ /**
58
+ * Gets the smoothing prefix for a canvas rendering context.
59
+ * @param {CanvasRenderingContext2D} context - The canvas rendering context.
60
+ * @returns {string | null} The smoothing property name or null if not found.
61
+ */
62
+ export declare const getSmoothingPrefix: (context: any) => string;
63
+ /**
64
+ * Sets the smoothing enabled property on a canvas rendering context.
65
+ * @param {object} context - The canvas rendering context.
66
+ * @param {number} value - The smoothing enabled value to set.
67
+ * @returns {object} The modified rendering context.
68
+ */
69
+ export declare const setSmoothingEnabled: (context: any, value: any) => any;
70
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/util.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,WAAM,EAAE,UAAK,EAAE,WAAM,EAAE,OAAE,EAAE,aAAQ,QAWzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAM,EAAE,UAAK,QAI/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,WAAM,EAAE,cAAc,QAOpD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,WAAM,EAAE,cAAc,QAUnD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,WAAM,EAAE,WAAM,EAAE,wBAAqB,QAoB7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,WAAM,SAInC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAI,YAAO,EAAE,eAAU,EAAE,eAAU,EAAE,WAAM,EAAE,WAAM,EAAE,UAAK,EAAE,UAAK,QAGzF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAO,WASzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAO,EAAE,UAAK,QAMjD,CAAC"}
@@ -1,62 +1,9 @@
1
- export class DisplayObject {
1
+ export declare class DisplayObject {
2
2
  /**
3
3
  * Creates a new DisplayObject instance.
4
4
  * @param {import('../core/game.js').Game} game - The game instance this display object belongs to.
5
5
  */
6
- constructor(game: import("../core/game.js").Game);
7
- /** @type {boolean} */
8
- exists: boolean;
9
- /** @type {boolean} */
10
- renderable: boolean;
11
- /** @type {boolean} */
12
- visible: boolean;
13
- /** @type {Point} */
14
- position: Point;
15
- /** @type {Point} */
16
- scale: Point;
17
- /** @type {Point} */
18
- pivot: Point;
19
- /** @type {Point} */
20
- anchor: Point;
21
- /** @type {number} */
22
- rotation: number;
23
- /** @type {number} */
24
- alpha: number;
25
- /** @type {Rectangle} */
26
- hitArea: Rectangle;
27
- /** @type {DisplayObject} */
28
- parent: DisplayObject;
29
- /** @type {number} */
30
- worldAlpha: number;
31
- /** @type {Matrix} */
32
- worldTransform: Matrix;
33
- /** @type {Point} */
34
- worldScale: Point;
35
- /** @type {Rectangle} */
36
- filterArea: Rectangle;
37
- /** @type {number} */
38
- _sr: number;
39
- /** @type {number} */
40
- _cr: number;
41
- /** @type {Rectangle} */
42
- cachedBounds: Rectangle;
43
- /** @type {Rectangle} */
44
- currentBounds: Rectangle;
45
- /** @type {import('./graphics.js').Graphics} */
46
- _mask: import("./graphics.js").Graphics;
47
- /** @type {object[]} */
48
- _filters: object[];
49
- /** @type {object} */
50
- _filterBlock: object;
51
- children: any[];
52
- /** @type {boolean} */
53
- ignoreChildInput: boolean;
54
- /** @type {string | null } */
55
- name: string | null;
56
- /** @type {object | null } */
57
- data: object | null;
58
- /** @type {import('../core/game.js').Game } */
59
- game: import("../core/game.js").Game;
6
+ constructor(game: any);
60
7
  /**
61
8
  * Destroys this display object and cleans up resources.
62
9
  */
@@ -66,7 +13,7 @@ export class DisplayObject {
66
13
  * @param {DisplayObject} child - The child display object to add.
67
14
  * @returns {DisplayObject} The added child display object.
68
15
  */
69
- addChild(child: DisplayObject): DisplayObject;
16
+ addChild(child: any): any;
70
17
  /**
71
18
  * Adds a child display object at a specific index in the children list.
72
19
  * @param {DisplayObject} child - The child display object to add.
@@ -74,47 +21,47 @@ export class DisplayObject {
74
21
  * @returns {DisplayObject} The added child display object.
75
22
  * @throws {Error} If the index is out of bounds.
76
23
  */
77
- addChildAt(child: DisplayObject, index: number): DisplayObject;
24
+ addChildAt(child: any, index: any): any;
78
25
  /**
79
26
  * Swaps the positions of two child display objects.
80
27
  * @param {DisplayObject} child - The first child display object.
81
28
  * @param {DisplayObject} child2 - The second child display object.
82
29
  * @throws {Error} If either child is not a child of this container.
83
30
  */
84
- swapChildren(child: DisplayObject, child2: DisplayObject): void;
31
+ swapChildren(child: any, child2: any): void;
85
32
  /**
86
33
  * Gets the index of a child display object in the children list.
87
34
  * @param {DisplayObject} child - The child display object to find.
88
35
  * @returns {number} The index of the child in the children list.
89
36
  * @throws {Error} If the child is not a child of this container.
90
37
  */
91
- getChildIndex(child: DisplayObject): number;
38
+ getChildIndex(child: any): any;
92
39
  /**
93
40
  * Sets the index of a child display object in the children list.
94
41
  * @param {DisplayObject} child - The child display object to move.
95
42
  * @param {number} index - The new index for the child.
96
43
  * @throws {Error} If the index is out of bounds.
97
44
  */
98
- setChildIndex(child: DisplayObject, index: number): void;
45
+ setChildIndex(child: any, index: any): void;
99
46
  /**
100
47
  * Gets a child display object at a specific index.
101
48
  * @param {number} index - The index of the child to get.
102
49
  * @returns {DisplayObject} The child display object at the specified index.
103
50
  * @throws {Error} If the index is out of bounds.
104
51
  */
105
- getChildAt(index: number): DisplayObject;
52
+ getChildAt(index: any): any;
106
53
  /**
107
54
  * Removes a child display object from this container.
108
55
  * @param {DisplayObject} child - The child display object to remove.
109
56
  * @returns {DisplayObject} The removed child display object.
110
57
  */
111
- removeChild(child: DisplayObject): DisplayObject;
58
+ removeChild(child: any): any;
112
59
  /**
113
60
  * Removes a child display object at a specific index.
114
61
  * @param {number} index - The index of the child to remove.
115
62
  * @returns {DisplayObject} The removed child display object.
116
63
  */
117
- removeChildAt(index: number): DisplayObject;
64
+ removeChildAt(index: any): any;
118
65
  /**
119
66
  * Removes a range of child display objects from this container.
120
67
  * @param {number} beginIndex - The starting index of the range to remove.
@@ -122,42 +69,40 @@ export class DisplayObject {
122
69
  * @returns {DisplayObject[]} The array of removed child display objects.
123
70
  * @throws {Error} If the range is invalid.
124
71
  */
125
- removeChildren(beginIndex: number, endIndex: number): DisplayObject[];
72
+ removeChildren(beginIndex: any, endIndex: any): any;
126
73
  /**
127
74
  * Updates the world transform of this display object and its children.
128
75
  * @param {DisplayObject | null | undefined} parent - The parent display object to use for the world transform calculation.
129
76
  * @returns {DisplayObject} This DisplayObject instance for chaining.
130
77
  */
131
- updateTransform(parent?: DisplayObject | null | undefined): DisplayObject;
132
- rotationCache: any;
133
- worldRotation: number;
78
+ updateTransform(parent?: any): this;
134
79
  /**
135
80
  * Gets the bounds of this display object in world coordinates.
136
81
  * @param {DisplayObject} targetCoordinateSpace - The coordinate space to calculate bounds in.
137
82
  * @returns {Rectangle} The bounds rectangle of this display object.
138
83
  */
139
- getBounds(targetCoordinateSpace: DisplayObject): Rectangle;
84
+ getBounds(targetCoordinateSpace: any): any;
140
85
  /**
141
86
  * Gets the bounds of this display object in local coordinates.
142
87
  * @returns {Rectangle} The bounds rectangle of this display object in local space.
143
88
  */
144
- getLocalBounds(): Rectangle;
89
+ getLocalBounds(): any;
145
90
  /**
146
91
  * Checks if a child display object is contained within this container.
147
92
  * @param {DisplayObject} child - The child display object to check.
148
93
  * @returns {boolean} True if the child is contained within this container, false otherwise.
149
94
  */
150
- contains(child: DisplayObject): boolean;
95
+ contains(child: any): any;
151
96
  /**
152
97
  * Renders this display object using WebGL.
153
98
  * @param {object} renderSession - The WebGL rendering session.
154
99
  */
155
- renderWebGL(renderSession: object): void;
100
+ renderWebGL(renderSession: any): void;
156
101
  /**
157
102
  * Renders this display object using Canvas.
158
103
  * @param {object} renderSession - The Canvas rendering session.
159
104
  */
160
- renderCanvas(renderSession: object): void;
105
+ renderCanvas(renderSession: any): void;
161
106
  /**
162
107
  * Called before the update cycle for this display object.
163
108
  */
@@ -180,19 +125,19 @@ export class DisplayObject {
180
125
  * @param {Point} position - The local position to convert.
181
126
  * @returns {Point} The converted global position.
182
127
  */
183
- toGlobal(position: Point): Point;
128
+ toGlobal(position: any): any;
184
129
  /**
185
130
  * Converts a global (world) position to local coordinates.
186
131
  * @param {Point} position - The global position to convert.
187
132
  * @param {DisplayObject} from - The display object to convert from (defaults to this).
188
133
  * @returns {Point} The converted local position.
189
134
  */
190
- toLocal(position: Point, from: DisplayObject): Point;
135
+ toLocal(position: any, from: any): any;
191
136
  /**
192
137
  * Renders a cached sprite for this display object.
193
138
  * @param {object} renderSession - The rendering session.
194
139
  */
195
- renderCachedSprite(renderSession: object): void;
140
+ renderCachedSprite(renderSession: any): void;
196
141
  /**
197
142
  * Generates a cached sprite for this display object.
198
143
  */
@@ -201,64 +146,61 @@ export class DisplayObject {
201
146
  * Destroys the cached sprite for this display object.
202
147
  */
203
148
  destroyCachedSprite(): void;
204
- _cachedSprite: any;
205
- /**
206
- * Sets the width of this display object.
207
- * @param {number} value - The new width in pixels.
208
- */
209
- set width(value: number);
210
149
  /**
211
150
  * Gets the width of this display object.
212
151
  * @returns {number} The width in pixels.
213
152
  */
214
153
  get width(): number;
215
- _width: number;
216
154
  /**
217
- * Sets the height of this display object.
218
- * @param {number} value - The new height in pixels.
155
+ * Sets the width of this display object.
156
+ * @param {number} value - The new width in pixels.
219
157
  */
220
- set height(value: number);
158
+ set width(value: number);
221
159
  /**
222
160
  * Gets the height of this display object.
223
161
  * @returns {number} The height in pixels.
224
162
  */
225
163
  get height(): number;
226
- _height: number;
227
164
  /**
228
- * Sets the x position of this display object.
229
- * @param {number} value - The new x position in pixels.
165
+ * Sets the height of this display object.
166
+ * @param {number} value - The new height in pixels.
230
167
  */
231
- set x(value: number);
168
+ set height(value: number);
232
169
  /**
233
170
  * Gets the x position of this display object.
234
171
  * @returns {number} The x position in pixels.
235
172
  */
236
- get x(): number;
173
+ get x(): any;
237
174
  /**
238
- * Sets the y position of this display object.
239
- * @param {number} value - The new y position in pixels.
175
+ * Sets the x position of this display object.
176
+ * @param {number} value - The new x position in pixels.
240
177
  */
241
- set y(value: number);
178
+ set x(value: any);
242
179
  /**
243
180
  * Gets the y position of this display object.
244
181
  * @returns {number} The y position in pixels.
245
182
  */
246
- get y(): number;
183
+ get y(): any;
247
184
  /**
248
- * Gets whether this display object is visible in the world.
249
- * @returns {boolean} True if the object is visible, false otherwise.
185
+ * Sets the y position of this display object.
186
+ * @param {number} value - The new y position in pixels.
250
187
  */
251
- get worldVisible(): boolean;
188
+ set y(value: any);
252
189
  /**
253
- * Sets the mask for this display object.
254
- * @param {import('./graphics.js').Graphics} value - The mask object to set, or null to remove the mask.
190
+ * Gets whether this display object is visible in the world.
191
+ * @returns {boolean} True if the object is visible, false otherwise.
255
192
  */
256
- set mask(value: import("./graphics.js").Graphics);
193
+ get worldVisible(): any;
257
194
  /**
258
195
  * Gets the mask for this display object.
259
196
  * @returns {import('./graphics.js').Graphics} The mask object or null if none is set.
260
197
  */
261
- get mask(): import("./graphics.js").Graphics;
198
+ get mask(): any;
199
+ /**
200
+ * Sets the mask for this display object.
201
+ * @param {import('./graphics.js').Graphics} value - The mask object to set, or null to remove the mask.
202
+ */
203
+ set mask(value: any);
262
204
  /**
263
205
  * Gets the x offset for this display object (based on anchor point).
264
206
  * @returns {number} The x offset in pixels.
@@ -269,68 +211,65 @@ export class DisplayObject {
269
211
  * @returns {number} The y offset in pixels.
270
212
  */
271
213
  get offsetY(): number;
272
- /**
273
- * Sets the center x position of this display object.
274
- * @param {number} value - The new center x position in pixels.
275
- */
276
- set centerX(value: number);
277
214
  /**
278
215
  * Gets the center x position of this display object.
279
216
  * @returns {number} The center x position in pixels.
280
217
  */
281
218
  get centerX(): number;
282
219
  /**
283
- * Sets the center y position of this display object.
284
- * @param {number} value - The new center y position in pixels.
220
+ * Sets the center x position of this display object.
221
+ * @param {number} value - The new center x position in pixels.
285
222
  */
286
- set centerY(value: number);
223
+ set centerX(value: number);
287
224
  /**
288
225
  * Gets the center y position of this display object.
289
226
  * @returns {number} The center y position in pixels.
290
227
  */
291
228
  get centerY(): number;
292
229
  /**
293
- * Sets the left x position of this display object.
294
- * @param {number} value - The new left x position in pixels.
230
+ * Sets the center y position of this display object.
231
+ * @param {number} value - The new center y position in pixels.
295
232
  */
296
- set left(value: number);
233
+ set centerY(value: number);
297
234
  /**
298
235
  * Gets the left x position of this display object.
299
236
  * @returns {number} The left x position in pixels.
300
237
  */
301
238
  get left(): number;
302
239
  /**
303
- * Sets the right x position of this display object.
304
- * @param {number} value - The new right x position in pixels.
240
+ * Sets the left x position of this display object.
241
+ * @param {number} value - The new left x position in pixels.
305
242
  */
306
- set right(value: number);
243
+ set left(value: number);
307
244
  /**
308
245
  * Gets the right x position of this display object.
309
246
  * @returns {number} The right x position in pixels.
310
247
  */
311
248
  get right(): number;
312
249
  /**
313
- * Sets the top y position of this display object.
314
- * @param {number} value - The new top y position in pixels.
250
+ * Sets the right x position of this display object.
251
+ * @param {number} value - The new right x position in pixels.
315
252
  */
316
- set top(value: number);
253
+ set right(value: number);
317
254
  /**
318
255
  * Gets the top y position of this display object.
319
256
  * @returns {number} The top y position in pixels.
320
257
  */
321
258
  get top(): number;
322
259
  /**
323
- * Sets the bottom y position of this display object.
324
- * @param {number} value - The new bottom y position in pixels.
260
+ * Sets the top y position of this display object.
261
+ * @param {number} value - The new top y position in pixels.
325
262
  */
326
- set bottom(value: number);
263
+ set top(value: number);
327
264
  /**
328
265
  * Gets the bottom y position of this display object.
329
266
  * @returns {number} The bottom y position in pixels.
330
267
  */
331
268
  get bottom(): number;
269
+ /**
270
+ * Sets the bottom y position of this display object.
271
+ * @param {number} value - The new bottom y position in pixels.
272
+ */
273
+ set bottom(value: number);
332
274
  }
333
- import { Point } from '../geom/point.js';
334
- import { Rectangle } from '../geom/rectangle.js';
335
- import { Matrix } from '../geom/matrix.js';
336
275
  //# sourceMappingURL=display_object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.ts"],"names":[],"mappings":"AAQA,qBAAa,aAAa;IACxB;;;OAGG;gBACS,IAAI,KAAA;IA0DhB;;OAEG;IACH,OAAO;IA+BP;;;;OAIG;IACH,QAAQ,CAAC,KAAK,KAAA;IAId;;;;;;OAMG;IACH,UAAU,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IAYvB;;;;;OAKG;IACH,YAAY,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA;IAa1B;;;;;OAKG;IACH,aAAa,CAAC,KAAK,KAAA;IAQnB;;;;;OAKG;IACH,aAAa,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IAS1B;;;;;OAKG;IACH,UAAU,CAAC,KAAK,KAAA;IAWhB;;;;OAIG;IACH,WAAW,CAAC,KAAK,KAAA;IAQjB;;;;OAIG;IACH,aAAa,CAAC,KAAK,KAAA;IASnB;;;;;;OAMG;IACH,cAAc,CAAC,UAAU,KAAA,EAAE,QAAQ,KAAA;IAsBnC;;;;OAIG;IACH,eAAe,CAAC,MAAM,MAAO;IAmF7B;;;;OAIG;IACH,SAAS,CAAC,qBAAqB,KAAA;IAiG/B;;;OAGG;IACH,cAAc;IAId;;;;OAIG;IACH,QAAQ,CAAC,KAAK,KAAA;IAUd;;;OAGG;IACH,WAAW,CAAC,aAAa,KAAA;IA8BzB;;;OAGG;IACH,YAAY,CAAC,aAAa,KAAA;IAe1B;;OAEG;IACH,SAAS;IAIT;;OAEG;IACH,MAAM;IAIN;;OAEG;IACH,UAAU;IAIV;;;OAGG;IACH,eAAe;IAKf;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,KAAA;IAKjB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,KAAA,EAAE,IAAI,KAAA;IAQtB;;;OAGG;IACH,kBAAkB,CAAC,aAAa,KAAA;IAYhC;;OAEG;IACH,oBAAoB;IAIpB;;OAEG;IACH,mBAAmB;IAUnB;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAQd;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAQf;IAED;;;OAGG;IACH,IAAI,CAAC,QAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,KAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,QAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,KAAA,EAEV;IAED;;;OAGG;IACH,IAAI,YAAY,QAef;IAID;;;OAGG;IACH,IAAI,IAAI,QAEP;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,KAAA,EAQb;IAID;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,QAAA,EAEb;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAEd;IAED;;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;;OAGG;IACH,IAAI,GAAG,CAAC,KAAK,QAAA,EAEZ;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAEf;CACF"}