@vpmedia/phaser 1.102.0 → 1.104.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 (479) hide show
  1. package/dist/index.d.ts +38 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +21129 -0
  4. package/dist/index.js.map +1 -0
  5. package/{types → dist}/phaser/core/animation.d.ts +80 -76
  6. package/dist/phaser/core/animation.d.ts.map +1 -0
  7. package/{types → dist}/phaser/core/animation_manager.d.ts +46 -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 +86 -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 +31 -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 +33 -35
  26. package/dist/phaser/core/event_manager.d.ts.map +1 -0
  27. package/{types → dist}/phaser/core/factory.d.ts +10 -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 +14 -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 +63 -74
  36. package/dist/phaser/core/game.d.ts.map +1 -0
  37. package/{types → dist}/phaser/core/input.d.ts +68 -76
  38. package/dist/phaser/core/input.d.ts.map +1 -0
  39. package/{types → dist}/phaser/core/input_handler.d.ts +73 -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 +67 -0
  44. package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
  45. package/dist/phaser/core/input_pointer.d.ts +150 -0
  46. package/dist/phaser/core/input_pointer.d.ts.map +1 -0
  47. package/{types → dist}/phaser/core/input_touch.d.ts +24 -25
  48. package/dist/phaser/core/input_touch.d.ts.map +1 -0
  49. package/{types → dist}/phaser/core/loader.d.ts +67 -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 +96 -124
  56. package/dist/phaser/core/scale_manager.d.ts.map +1 -0
  57. package/{types → dist}/phaser/core/scene.d.ts +7 -3
  58. package/dist/phaser/core/scene.d.ts.map +1 -0
  59. package/{types → dist}/phaser/core/scene_manager.d.ts +25 -27
  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 +115 -75
  66. package/dist/phaser/core/sound.d.ts.map +1 -0
  67. package/{types → dist}/phaser/core/sound_manager.d.ts +37 -43
  68. package/dist/phaser/core/sound_manager.d.ts.map +1 -0
  69. package/dist/phaser/core/sound_sprite.d.ts +33 -0
  70. package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
  71. package/{types → dist}/phaser/core/stage.d.ts +33 -17
  72. package/dist/phaser/core/stage.d.ts.map +1 -0
  73. package/{types → dist}/phaser/core/time.d.ts +39 -64
  74. package/dist/phaser/core/time.d.ts.map +1 -0
  75. package/{types → dist}/phaser/core/timer.d.ts +34 -54
  76. package/dist/phaser/core/timer.d.ts.map +1 -0
  77. package/{types → dist}/phaser/core/timer_event.d.ts +11 -11
  78. package/dist/phaser/core/timer_event.d.ts.map +1 -0
  79. package/{types → dist}/phaser/core/tween.d.ts +54 -49
  80. package/dist/phaser/core/tween.d.ts.map +1 -0
  81. package/{types → dist}/phaser/core/tween_data.d.ts +33 -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 +13 -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 +65 -71
  90. package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
  91. package/{types → dist}/phaser/display/button.d.ts +53 -37
  92. package/dist/phaser/display/button.d.ts.map +1 -0
  93. package/{types → dist}/phaser/display/canvas/buffer.d.ts +7 -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 +19 -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 +90 -95
  108. package/dist/phaser/display/display_object.d.ts.map +1 -0
  109. package/{types → dist}/phaser/display/graphics.d.ts +77 -65
  110. package/dist/phaser/display/graphics.d.ts.map +1 -0
  111. package/{types → dist}/phaser/display/graphics_data.d.ts +12 -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 +50 -40
  116. package/dist/phaser/display/group.d.ts.map +1 -0
  117. package/{types → dist}/phaser/display/image.d.ts +89 -50
  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 +8 -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 +15 -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 +9 -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 +21 -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 +9 -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 +7 -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 +25 -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 +15 -13
  148. package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
  149. package/dist/phaser/display/webgl/renderer.d.ts +68 -0
  150. package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
  151. package/dist/phaser/display/webgl/shader/complex.d.ts +21 -0
  152. package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
  153. package/dist/phaser/display/webgl/shader/fast.d.ts +22 -0
  154. package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
  155. package/dist/phaser/display/webgl/shader/normal.d.ts +39 -0
  156. package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
  157. package/dist/phaser/display/webgl/shader/primitive.d.ts +21 -0
  158. package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
  159. package/dist/phaser/display/webgl/shader/strip.d.ts +21 -0
  160. package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
  161. package/dist/phaser/display/webgl/shader_manager.d.ts +37 -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 +24 -31
  164. package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
  165. package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +12 -9
  166. package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
  167. package/dist/phaser/display/webgl/texture.d.ts +56 -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 +26 -12
  208. package/src/phaser/core/{animation.js → animation.ts} +50 -3
  209. package/src/phaser/core/{animation_manager.js → animation_manager.ts} +11 -1
  210. package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
  211. package/src/phaser/core/{cache.js → cache.ts} +10 -1
  212. package/src/phaser/core/{device.js → device.ts} +25 -1
  213. package/src/phaser/core/{dom.js → dom.ts} +7 -0
  214. package/src/phaser/core/{event_manager.js → event_manager.ts} +18 -1
  215. package/src/phaser/core/{factory.js → factory.ts} +2 -0
  216. package/src/phaser/core/{frame.js → frame.ts} +2 -1
  217. package/src/phaser/core/{frame_data.js → frame_data.ts} +4 -1
  218. package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
  219. package/src/phaser/core/{game.js → game.ts} +61 -4
  220. package/src/phaser/core/{input.js → input.ts} +52 -0
  221. package/src/phaser/core/{input_handler.js → input_handler.ts} +42 -0
  222. package/src/phaser/core/{input_mouse.js → input_mouse.ts} +24 -0
  223. package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +17 -0
  224. package/src/phaser/core/{input_pointer.js → input_pointer.ts} +45 -0
  225. package/src/phaser/core/{input_touch.js → input_touch.ts} +18 -0
  226. package/src/phaser/core/{loader.js → loader.ts} +30 -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} +56 -0
  230. package/src/phaser/core/{scene.js → scene.ts} +3 -0
  231. package/src/phaser/core/{scene_manager.js → scene_manager.ts} +16 -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} +100 -6
  235. package/src/phaser/core/{sound_manager.js → sound_manager.ts} +19 -1
  236. package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +8 -1
  237. package/src/phaser/core/{stage.js → stage.ts} +5 -0
  238. package/src/phaser/core/{time.js → time.ts} +29 -1
  239. package/src/phaser/core/{timer.js → timer.ts} +22 -1
  240. package/src/phaser/core/{timer_event.js → timer_event.ts} +11 -1
  241. package/src/phaser/core/{tween.js → tween.ts} +49 -2
  242. package/src/phaser/core/{tween_data.js → tween_data.ts} +26 -1
  243. package/src/phaser/core/{tween_manager.js → tween_manager.ts} +6 -1
  244. package/src/phaser/core/{world.js → world.ts} +1 -0
  245. package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +14 -0
  246. package/src/phaser/display/{button.js → button.ts} +29 -0
  247. package/src/phaser/display/canvas/{buffer.js → buffer.ts} +5 -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} +14 -0
  252. package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
  253. package/src/phaser/display/{display_object.js → display_object.ts} +92 -31
  254. package/src/phaser/display/{graphics.js → graphics.ts} +19 -0
  255. package/src/phaser/display/{graphics_data.js → graphics_data.ts} +11 -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} +29 -0
  258. package/src/phaser/display/{image.js → image.ts} +45 -6
  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} +7 -0
  263. package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +13 -0
  264. package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +3 -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} +16 -0
  268. package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +4 -0
  269. package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +5 -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} +10 -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} +11 -0
  274. package/src/phaser/display/webgl/{renderer.js → renderer.ts} +18 -0
  275. package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +6 -0
  276. package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +7 -0
  277. package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +11 -0
  278. package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +6 -0
  279. package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +6 -0
  280. package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +11 -0
  281. package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +17 -0
  282. package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +4 -0
  283. package/src/phaser/display/webgl/{texture.js → texture.ts} +21 -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/.vscode/extensions.json +0 -6
  294. package/.vscode/settings.json +0 -27
  295. package/AGENTS.md +0 -1
  296. package/CHANGELOG.md +0 -336
  297. package/CLAUDE.md +0 -1
  298. package/SECURITY.md +0 -5
  299. package/typedefs/global.d.ts +0 -7
  300. package/types/index.d.ts +0 -38
  301. package/types/index.d.ts.map +0 -1
  302. package/types/phaser/core/animation.d.ts.map +0 -1
  303. package/types/phaser/core/animation_manager.d.ts.map +0 -1
  304. package/types/phaser/core/animation_parser.d.ts +0 -4
  305. package/types/phaser/core/animation_parser.d.ts.map +0 -1
  306. package/types/phaser/core/array_set.d.ts.map +0 -1
  307. package/types/phaser/core/cache.d.ts.map +0 -1
  308. package/types/phaser/core/const.d.ts +0 -262
  309. package/types/phaser/core/const.d.ts.map +0 -1
  310. package/types/phaser/core/device.d.ts +0 -96
  311. package/types/phaser/core/device.d.ts.map +0 -1
  312. package/types/phaser/core/device_util.d.ts +0 -13
  313. package/types/phaser/core/device_util.d.ts.map +0 -1
  314. package/types/phaser/core/dom.d.ts +0 -180
  315. package/types/phaser/core/dom.d.ts.map +0 -1
  316. package/types/phaser/core/error_code.d.ts +0 -9
  317. package/types/phaser/core/error_code.d.ts.map +0 -1
  318. package/types/phaser/core/event_manager.d.ts.map +0 -1
  319. package/types/phaser/core/factory.d.ts.map +0 -1
  320. package/types/phaser/core/frame.d.ts.map +0 -1
  321. package/types/phaser/core/frame_data.d.ts.map +0 -1
  322. package/types/phaser/core/frame_util.d.ts +0 -5
  323. package/types/phaser/core/frame_util.d.ts.map +0 -1
  324. package/types/phaser/core/game.d.ts.map +0 -1
  325. package/types/phaser/core/input.d.ts.map +0 -1
  326. package/types/phaser/core/input_handler.d.ts.map +0 -1
  327. package/types/phaser/core/input_mouse.d.ts +0 -86
  328. package/types/phaser/core/input_mouse.d.ts.map +0 -1
  329. package/types/phaser/core/input_mspointer.d.ts +0 -67
  330. package/types/phaser/core/input_mspointer.d.ts.map +0 -1
  331. package/types/phaser/core/input_pointer.d.ts +0 -170
  332. package/types/phaser/core/input_pointer.d.ts.map +0 -1
  333. package/types/phaser/core/input_touch.d.ts.map +0 -1
  334. package/types/phaser/core/loader.d.ts.map +0 -1
  335. package/types/phaser/core/loader_parser.d.ts +0 -5
  336. package/types/phaser/core/loader_parser.d.ts.map +0 -1
  337. package/types/phaser/core/raf.d.ts.map +0 -1
  338. package/types/phaser/core/scale_manager.d.ts.map +0 -1
  339. package/types/phaser/core/scene.d.ts.map +0 -1
  340. package/types/phaser/core/scene_manager.d.ts.map +0 -1
  341. package/types/phaser/core/signal.d.ts.map +0 -1
  342. package/types/phaser/core/signal_binding.d.ts.map +0 -1
  343. package/types/phaser/core/sound.d.ts.map +0 -1
  344. package/types/phaser/core/sound_manager.d.ts.map +0 -1
  345. package/types/phaser/core/sound_sprite.d.ts +0 -36
  346. package/types/phaser/core/sound_sprite.d.ts.map +0 -1
  347. package/types/phaser/core/stage.d.ts.map +0 -1
  348. package/types/phaser/core/time.d.ts.map +0 -1
  349. package/types/phaser/core/timer.d.ts.map +0 -1
  350. package/types/phaser/core/timer_event.d.ts.map +0 -1
  351. package/types/phaser/core/tween.d.ts.map +0 -1
  352. package/types/phaser/core/tween_data.d.ts.map +0 -1
  353. package/types/phaser/core/tween_easing.d.ts +0 -32
  354. package/types/phaser/core/tween_easing.d.ts.map +0 -1
  355. package/types/phaser/core/tween_manager.d.ts.map +0 -1
  356. package/types/phaser/core/world.d.ts.map +0 -1
  357. package/types/phaser/display/bitmap_text.d.ts.map +0 -1
  358. package/types/phaser/display/button.d.ts.map +0 -1
  359. package/types/phaser/display/canvas/buffer.d.ts.map +0 -1
  360. package/types/phaser/display/canvas/graphics.d.ts +0 -4
  361. package/types/phaser/display/canvas/graphics.d.ts.map +0 -1
  362. package/types/phaser/display/canvas/masker.d.ts +0 -3
  363. package/types/phaser/display/canvas/masker.d.ts.map +0 -1
  364. package/types/phaser/display/canvas/pool.d.ts +0 -11
  365. package/types/phaser/display/canvas/pool.d.ts.map +0 -1
  366. package/types/phaser/display/canvas/renderer.d.ts.map +0 -1
  367. package/types/phaser/display/canvas/tinter.d.ts +0 -7
  368. package/types/phaser/display/canvas/tinter.d.ts.map +0 -1
  369. package/types/phaser/display/canvas/util.d.ts +0 -10
  370. package/types/phaser/display/canvas/util.d.ts.map +0 -1
  371. package/types/phaser/display/display_object.d.ts.map +0 -1
  372. package/types/phaser/display/graphics.d.ts.map +0 -1
  373. package/types/phaser/display/graphics_data.d.ts.map +0 -1
  374. package/types/phaser/display/graphics_data_util.d.ts +0 -3
  375. package/types/phaser/display/graphics_data_util.d.ts.map +0 -1
  376. package/types/phaser/display/group.d.ts.map +0 -1
  377. package/types/phaser/display/image.d.ts.map +0 -1
  378. package/types/phaser/display/sprite_batch.d.ts +0 -4
  379. package/types/phaser/display/sprite_batch.d.ts.map +0 -1
  380. package/types/phaser/display/sprite_util.d.ts +0 -6
  381. package/types/phaser/display/sprite_util.d.ts.map +0 -1
  382. package/types/phaser/display/text.d.ts.map +0 -1
  383. package/types/phaser/display/webgl/abstract_filter.d.ts.map +0 -1
  384. package/types/phaser/display/webgl/base_texture.d.ts.map +0 -1
  385. package/types/phaser/display/webgl/blend_manager.d.ts.map +0 -1
  386. package/types/phaser/display/webgl/earcut.d.ts.map +0 -1
  387. package/types/phaser/display/webgl/earcut_node.d.ts.map +0 -1
  388. package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +0 -1
  389. package/types/phaser/display/webgl/filter_manager.d.ts.map +0 -1
  390. package/types/phaser/display/webgl/filter_texture.d.ts.map +0 -1
  391. package/types/phaser/display/webgl/graphics.d.ts +0 -16
  392. package/types/phaser/display/webgl/graphics.d.ts.map +0 -1
  393. package/types/phaser/display/webgl/graphics_data.d.ts +0 -27
  394. package/types/phaser/display/webgl/graphics_data.d.ts.map +0 -1
  395. package/types/phaser/display/webgl/mask_manager.d.ts +0 -3
  396. package/types/phaser/display/webgl/mask_manager.d.ts.map +0 -1
  397. package/types/phaser/display/webgl/render_texture.d.ts.map +0 -1
  398. package/types/phaser/display/webgl/renderer.d.ts +0 -87
  399. package/types/phaser/display/webgl/renderer.d.ts.map +0 -1
  400. package/types/phaser/display/webgl/shader/complex.d.ts +0 -33
  401. package/types/phaser/display/webgl/shader/complex.d.ts.map +0 -1
  402. package/types/phaser/display/webgl/shader/fast.d.ts +0 -36
  403. package/types/phaser/display/webgl/shader/fast.d.ts.map +0 -1
  404. package/types/phaser/display/webgl/shader/normal.d.ts +0 -52
  405. package/types/phaser/display/webgl/shader/normal.d.ts.map +0 -1
  406. package/types/phaser/display/webgl/shader/primitive.d.ts +0 -32
  407. package/types/phaser/display/webgl/shader/primitive.d.ts.map +0 -1
  408. package/types/phaser/display/webgl/shader/strip.d.ts +0 -33
  409. package/types/phaser/display/webgl/shader/strip.d.ts.map +0 -1
  410. package/types/phaser/display/webgl/shader_manager.d.ts +0 -44
  411. package/types/phaser/display/webgl/shader_manager.d.ts.map +0 -1
  412. package/types/phaser/display/webgl/sprite_batch.d.ts.map +0 -1
  413. package/types/phaser/display/webgl/stencil_manager.d.ts.map +0 -1
  414. package/types/phaser/display/webgl/texture.d.ts +0 -63
  415. package/types/phaser/display/webgl/texture.d.ts.map +0 -1
  416. package/types/phaser/display/webgl/texture_util.d.ts +0 -5
  417. package/types/phaser/display/webgl/texture_util.d.ts.map +0 -1
  418. package/types/phaser/display/webgl/util.d.ts +0 -15
  419. package/types/phaser/display/webgl/util.d.ts.map +0 -1
  420. package/types/phaser/geom/circle.d.ts.map +0 -1
  421. package/types/phaser/geom/ellipse.d.ts.map +0 -1
  422. package/types/phaser/geom/line.d.ts.map +0 -1
  423. package/types/phaser/geom/matrix.d.ts.map +0 -1
  424. package/types/phaser/geom/point.d.ts.map +0 -1
  425. package/types/phaser/geom/polygon.d.ts.map +0 -1
  426. package/types/phaser/geom/rectangle.d.ts.map +0 -1
  427. package/types/phaser/geom/rounded_rectangle.d.ts.map +0 -1
  428. package/types/phaser/geom/util/circle.d.ts +0 -10
  429. package/types/phaser/geom/util/circle.d.ts.map +0 -1
  430. package/types/phaser/geom/util/ellipse.d.ts +0 -2
  431. package/types/phaser/geom/util/ellipse.d.ts.map +0 -1
  432. package/types/phaser/geom/util/line.d.ts +0 -8
  433. package/types/phaser/geom/util/line.d.ts.map +0 -1
  434. package/types/phaser/geom/util/matrix.d.ts +0 -5
  435. package/types/phaser/geom/util/matrix.d.ts.map +0 -1
  436. package/types/phaser/geom/util/point.d.ts +0 -22
  437. package/types/phaser/geom/util/point.d.ts.map +0 -1
  438. package/types/phaser/geom/util/polygon.d.ts +0 -3
  439. package/types/phaser/geom/util/polygon.d.ts.map +0 -1
  440. package/types/phaser/geom/util/rectangle.d.ts +0 -19
  441. package/types/phaser/geom/util/rectangle.d.ts.map +0 -1
  442. package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -3
  443. package/types/phaser/geom/util/rounded_rectangle.d.ts.map +0 -1
  444. package/types/phaser/util/math.d.ts +0 -58
  445. package/types/phaser/util/math.d.ts.map +0 -1
  446. /package/src/{index.js → index.ts} +0 -0
  447. /package/src/phaser/core/{animation_parser.js → animation_parser.ts} +0 -0
  448. /package/src/phaser/core/{const.js → const.ts} +0 -0
  449. /package/src/phaser/core/{device_util.js → device_util.ts} +0 -0
  450. /package/src/phaser/core/{error_code.js → error_code.ts} +0 -0
  451. /package/src/phaser/core/{signal.test.js → signal.test.ts} +0 -0
  452. /package/src/phaser/core/{tween_easing.js → tween_easing.ts} +0 -0
  453. /package/src/phaser/display/canvas/{util.js → util.ts} +0 -0
  454. /package/src/phaser/display/webgl/{util.js → util.ts} +0 -0
  455. /package/src/phaser/geom/{circle.test.js → circle.test.ts} +0 -0
  456. /package/src/phaser/geom/{ellipse.test.js → ellipse.test.ts} +0 -0
  457. /package/src/phaser/geom/{line.test.js → line.test.ts} +0 -0
  458. /package/src/phaser/geom/{matrix.test.js → matrix.test.ts} +0 -0
  459. /package/src/phaser/geom/{point.test.js → point.test.ts} +0 -0
  460. /package/src/phaser/geom/{rectangle.test.js → rectangle.test.ts} +0 -0
  461. /package/src/phaser/geom/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  462. /package/src/phaser/geom/util/{circle.test.js → circle.test.ts} +0 -0
  463. /package/src/phaser/geom/util/{circle.js → circle.ts} +0 -0
  464. /package/src/phaser/geom/util/{ellipse.test.js → ellipse.test.ts} +0 -0
  465. /package/src/phaser/geom/util/{ellipse.js → ellipse.ts} +0 -0
  466. /package/src/phaser/geom/util/{line.test.js → line.test.ts} +0 -0
  467. /package/src/phaser/geom/util/{line.js → line.ts} +0 -0
  468. /package/src/phaser/geom/util/{matrix.test.js → matrix.test.ts} +0 -0
  469. /package/src/phaser/geom/util/{matrix.js → matrix.ts} +0 -0
  470. /package/src/phaser/geom/util/{point.test.js → point.test.ts} +0 -0
  471. /package/src/phaser/geom/util/{point.js → point.ts} +0 -0
  472. /package/src/phaser/geom/util/{polygon.test.js → polygon.test.ts} +0 -0
  473. /package/src/phaser/geom/util/{polygon.js → polygon.ts} +0 -0
  474. /package/src/phaser/geom/util/{rectangle.test.js → rectangle.test.ts} +0 -0
  475. /package/src/phaser/geom/util/{rectangle.js → rectangle.ts} +0 -0
  476. /package/src/phaser/geom/util/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  477. /package/src/phaser/geom/util/{rounded_rectangle.js → rounded_rectangle.ts} +0 -0
  478. /package/src/phaser/util/{math.test.js → math.test.ts} +0 -0
  479. /package/src/phaser/util/{math.js → math.ts} +0 -0
@@ -1,44 +1,35 @@
1
- export class Graphics extends DisplayObject {
1
+ import { DisplayObject } from './display_object.js';
2
+ import { GraphicsData } from './graphics_data.js';
3
+ export declare class Graphics extends DisplayObject {
4
+ type: any;
5
+ renderable: any;
6
+ fillAlpha: any;
7
+ lineWidth: any;
8
+ lineColor: any;
9
+ graphicsData: any;
10
+ tint: any;
11
+ blendMode: any;
12
+ currentPath: any;
13
+ _webGL: any;
14
+ isMask: any;
15
+ boundsPadding: any;
16
+ _localBounds: any;
17
+ dirty: any;
18
+ _boundsDirty: any;
19
+ _cacheAsBitmap: any;
20
+ webGLDirty: any;
21
+ cachedSpriteDirty: any;
2
22
  /**
3
23
  * Creates a new Graphics object.
4
24
  * @param {import('../core/game.js').Game} game - The game instance.
5
25
  * @param {number} x - The x coordinate of the graphics object.
6
26
  * @param {number} y - The y coordinate of the graphics object.
7
27
  */
8
- constructor(game: import("../core/game.js").Game, x?: number, y?: number);
9
- /** @type {number} */
10
- type: number;
11
- /** @type {number} */
12
- fillAlpha: number;
13
- /** @type {number} */
14
- lineWidth: number;
15
- /** @type {number} */
16
- lineColor: number;
17
- graphicsData: any[];
18
- /** @type {number} */
19
- tint: number;
20
- /** @type {number} */
21
- blendMode: number;
22
- /** @type {GraphicsData} */
23
- currentPath: GraphicsData;
24
- /** @type {object[]} */
25
- _webGL: object[];
26
- /** @type {boolean} */
27
- isMask: boolean;
28
- /** @type {number} */
29
- boundsPadding: number;
30
- /** @type {Rectangle} */
31
- _localBounds: Rectangle;
32
- /** @type {boolean} */
33
- dirty: boolean;
34
- /** @type {boolean} */
35
- _boundsDirty: boolean;
36
- /** @type {boolean} */
37
- _cacheAsBitmap: boolean;
38
- /** @type {boolean} */
39
- webGLDirty: boolean;
40
- /** @type {boolean} */
41
- cachedSpriteDirty: boolean;
28
+ constructor(game: any, x?: number, y?: number);
29
+ /**
30
+ * Destroys the graphics object and clears all data.
31
+ */
32
+ destroy(): void;
42
33
  /**
43
34
  * Sets the line style for subsequent drawing operations.
44
35
  * @param {number} lineWidth - The width of the line to draw.
@@ -46,22 +37,21 @@ export class Graphics extends DisplayObject {
46
37
  * @param {number} alpha - The alpha (transparency) of the line to draw.
47
38
  * @returns {Graphics} This Graphics object for chaining.
48
39
  */
49
- lineStyle(lineWidth?: number, color?: number, alpha?: number): Graphics;
50
- lineAlpha: number;
40
+ lineStyle(lineWidth?: number, color?: number, alpha?: number): this;
51
41
  /**
52
42
  * Moves the drawing cursor to the specified point.
53
43
  * @param {number} x - The x coordinate to move to.
54
44
  * @param {number} y - The y coordinate to move to.
55
45
  * @returns {Graphics} This Graphics object for chaining.
56
46
  */
57
- moveTo(x: number, y: number): Graphics;
47
+ moveTo(x: any, y: any): this;
58
48
  /**
59
49
  * Draws a line from the current drawing position to the specified point.
60
50
  * @param {number} x - The x coordinate to draw to.
61
51
  * @param {number} y - The y coordinate to draw to.
62
52
  * @returns {Graphics} This Graphics object for chaining.
63
53
  */
64
- lineTo(x: number, y: number): Graphics;
54
+ lineTo(x: any, y: any): this;
65
55
  /**
66
56
  * Draws a quadratic curve from the current position to the specified point.
67
57
  * @param {number} cpX - The x coordinate of the control point.
@@ -70,7 +60,7 @@ export class Graphics extends DisplayObject {
70
60
  * @param {number} toY - The y coordinate to draw to.
71
61
  * @returns {Graphics} This Graphics object for chaining.
72
62
  */
73
- quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): Graphics;
63
+ quadraticCurveTo(cpX: any, cpY: any, toX: any, toY: any): this;
74
64
  /**
75
65
  * Draws a cubic Bezier curve from the current position to the specified point.
76
66
  * @param {number} cpX - The x coordinate of the first control point.
@@ -81,7 +71,7 @@ export class Graphics extends DisplayObject {
81
71
  * @param {number} toY - The y coordinate to draw to.
82
72
  * @returns {Graphics} This Graphics object for chaining.
83
73
  */
84
- bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): Graphics;
74
+ bezierCurveTo(cpX: any, cpY: any, cpX2: any, cpY2: any, toX: any, toY: any): this;
85
75
  /**
86
76
  * Draws an arc from the current position to the specified point.
87
77
  * @param {number} x1 - The x coordinate of the starting point.
@@ -91,7 +81,7 @@ export class Graphics extends DisplayObject {
91
81
  * @param {number} radius - The radius of the arc.
92
82
  * @returns {Graphics} This Graphics object for chaining.
93
83
  */
94
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): Graphics;
84
+ arcTo(x1: any, y1: any, x2: any, y2: any, radius: any): this;
95
85
  /**
96
86
  * Draws an arc with the specified center, radius, and angles.
97
87
  * @param {number} cx - The x coordinate of the center point.
@@ -103,21 +93,19 @@ export class Graphics extends DisplayObject {
103
93
  * @param {number} segments - The number of segments to use for drawing the arc.
104
94
  * @returns {Graphics} This Graphics object for chaining.
105
95
  */
106
- arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean, segments?: number): Graphics;
96
+ arc(cx: any, cy: any, radius: any, startAngle: any, endAngle: any, anticlockwise?: boolean, segments?: number): this;
107
97
  /**
108
98
  * Begins filling with the specified color and alpha.
109
99
  * @param {number} color - The fill color to use.
110
100
  * @param {number} alpha - The fill alpha (transparency) to use.
111
101
  * @returns {Graphics} This Graphics object for chaining.
112
102
  */
113
- beginFill(color?: number, alpha?: number): Graphics;
114
- filling: boolean;
115
- fillColor: number;
103
+ beginFill(color?: number, alpha?: number): this;
116
104
  /**
117
105
  * Ends the current fill operation.
118
106
  * @returns {Graphics} This Graphics object for chaining.
119
107
  */
120
- endFill(): Graphics;
108
+ endFill(): this;
121
109
  /**
122
110
  * Draws a rectangle with the specified properties.
123
111
  * @param {number} x - The x coordinate of the rectangle.
@@ -126,7 +114,7 @@ export class Graphics extends DisplayObject {
126
114
  * @param {number} height - The height of the rectangle.
127
115
  * @returns {Graphics} This Graphics object for chaining.
128
116
  */
129
- drawRect(x: number, y: number, width: number, height: number): Graphics;
117
+ drawRect(x: any, y: any, width: any, height: any): this;
130
118
  /**
131
119
  * Draws a rounded rectangle with the specified properties.
132
120
  * @param {number} x - The x coordinate of the rectangle.
@@ -136,7 +124,7 @@ export class Graphics extends DisplayObject {
136
124
  * @param {number} radius - The radius of the rounded corners.
137
125
  * @returns {Graphics} This Graphics object for chaining.
138
126
  */
139
- drawRoundedRect(x: number, y: number, width: number, height: number, radius: number): Graphics;
127
+ drawRoundedRect(x: any, y: any, width: any, height: any, radius: any): this;
140
128
  /**
141
129
  * Draws a circle with the specified properties.
142
130
  * @param {number} x - The x coordinate of the center point.
@@ -144,7 +132,7 @@ export class Graphics extends DisplayObject {
144
132
  * @param {number} diameter - The diameter of the circle.
145
133
  * @returns {Graphics} This Graphics object for chaining.
146
134
  */
147
- drawCircle(x: number, y: number, diameter: number): Graphics;
135
+ drawCircle(x: any, y: any, diameter: any): this;
148
136
  /**
149
137
  * Draws an ellipse with the specified properties.
150
138
  * @param {number} x - The x coordinate of the center point.
@@ -153,64 +141,88 @@ export class Graphics extends DisplayObject {
153
141
  * @param {number} height - The height of the ellipse.
154
142
  * @returns {Graphics} This Graphics object for chaining.
155
143
  */
156
- drawEllipse(x: number, y: number, width: number, height: number): Graphics;
144
+ drawEllipse(x: any, y: any, width: any, height: any): this;
157
145
  /**
158
146
  * Draws a polygon with the specified path.
159
147
  * @param {Polygon} path - The polygon to draw.
160
148
  * @returns {Graphics} This Graphics object for chaining.
161
149
  */
162
- drawPolygon(path: Polygon): Graphics;
150
+ drawPolygon(path: any): this;
163
151
  /**
164
152
  * Clears all graphics data.
165
153
  * @returns {Graphics} This Graphics object for chaining.
166
154
  */
167
- clear(): Graphics;
168
- clearDirty: boolean;
169
- _prevTint: any;
155
+ clear(): this;
156
+ /**
157
+ * Generates a texture from the graphics object (not implemented).
158
+ */
159
+ generateTexture(): void;
160
+ /**
161
+ * Renders the graphics object using WebGL.
162
+ * @param {object} renderSession - The render session to use.
163
+ */
164
+ renderWebGL(renderSession: any): void;
165
+ /**
166
+ * Renders the graphics object using Canvas.
167
+ * @param {object} renderSession - The render session to use.
168
+ */
169
+ renderCanvas(renderSession: any): void;
170
170
  /**
171
171
  * Gets the bounds of the graphics object.
172
172
  * @param {import('../geom/matrix.js').Matrix} matrix - The transformation matrix to use.
173
173
  * @returns {Rectangle} The bounds rectangle of the graphics object.
174
174
  */
175
- getBounds(matrix?: import("../geom/matrix.js").Matrix): Rectangle;
175
+ getBounds(matrix?: any): any;
176
+ /**
177
+ * Gets the local bounds of the graphics object.
178
+ * @returns {Rectangle} The local bounds rectangle of the graphics object.
179
+ */
180
+ getLocalBounds(): any;
176
181
  /**
177
182
  * Checks if the graphics object contains a point.
178
183
  * @param {Point} point - The point to check.
179
184
  * @param {Point} tempPoint - A temporary point object to use.
180
185
  * @returns {boolean} True if the graphics object contains the point, otherwise false.
181
186
  */
182
- containsPoint(point: Point, tempPoint: Point): boolean;
187
+ containsPoint(point: any, tempPoint: any): boolean;
183
188
  /**
184
189
  * Updates the local bounds of the graphics object.
185
190
  */
186
191
  updateLocalBounds(): void;
192
+ /**
193
+ * Generates a cached sprite representation of the graphics object.
194
+ */
195
+ generateCachedSprite(): void;
187
196
  /**
188
197
  * Updates the cached sprite texture.
189
198
  */
190
199
  updateCachedSpriteTexture(): void;
200
+ /**
201
+ * Destroys the cached sprite.
202
+ */
203
+ destroyCachedSprite(): void;
191
204
  /**
192
205
  * Draws a shape with the specified properties.
193
206
  * @param {object} shape - The shape to draw.
194
207
  * @returns {GraphicsData} The graphics data for the drawn shape.
195
208
  */
196
- drawShape(shape: object): GraphicsData;
209
+ drawShape(shape: any): GraphicsData;
210
+ /**
211
+ * Performs post-update operations for the graphics object.
212
+ */
213
+ postUpdate(): void;
197
214
  /**
198
215
  * Draws a triangle with the specified points and culling options.
199
216
  * @param {Point[]} points - The points of the triangle.
200
217
  * @param {boolean} cull - Whether to perform backface culling.
201
218
  */
202
- drawTriangle(points: Point[], cull?: boolean): void;
219
+ drawTriangle(points: any, cull?: boolean): void;
203
220
  /**
204
221
  * Draws triangles with the specified vertices and indices.
205
222
  * @param {number[]|Point[]} vertices - The vertices of the triangles.
206
223
  * @param {number[]} indices - The indices of the vertices to use.
207
224
  * @param {boolean} cull - Whether to perform backface culling.
208
225
  */
209
- drawTriangles(vertices: number[] | Point[], indices: number[], cull?: boolean): void;
226
+ drawTriangles(vertices: any, indices: any, cull?: boolean): void;
210
227
  }
211
- import { DisplayObject } from './display_object.js';
212
- import { GraphicsData } from './graphics_data.js';
213
- import { Rectangle } from '../geom/rectangle.js';
214
- import { Polygon } from '../geom/polygon.js';
215
- import { Point } from '../geom/point.js';
216
228
  //# sourceMappingURL=graphics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,QAAS,SAAQ,aAAa;IAC3C,IAAI,MAAC;IACL,UAAU,MAAC;IACX,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,YAAY,MAAC;IACb,IAAI,MAAC;IACL,SAAS,MAAC;IACV,WAAW,MAAC;IACZ,MAAM,MAAC;IACP,MAAM,MAAC;IACP,aAAa,MAAC;IACd,YAAY,MAAC;IACb,KAAK,MAAC;IACN,YAAY,MAAC;IACb,cAAc,MAAC;IACf,UAAU,MAAC;IACX,iBAAiB,MAAC;IAChB;;;;;OAKG;gBACS,IAAI,KAAA,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAwC9B;;OAEG;IACH,OAAO;IAMP;;;;;;OAMG;IACH,SAAS,CAAC,SAAS,SAAI,EAAE,KAAK,SAAI,EAAE,KAAK,SAAI;IAkB7C;;;;;OAKG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAKX;;;;;OAKG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAUX;;;;;;;OAOG;IACH,gBAAgB,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,GAAG,KAAA;IA6BnC;;;;;;;;;OASG;IACH,aAAa,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,IAAI,KAAA,EAAE,IAAI,KAAA,EAAE,GAAG,KAAA,EAAE,GAAG,KAAA;IAmC5C;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,MAAM,KAAA;IA2C5B;;;;;;;;;;OAUG;IACH,GAAG,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA,EAAE,MAAM,KAAA,EAAE,UAAU,KAAA,EAAE,QAAQ,KAAA,EAAE,aAAa,UAAQ,EAAE,QAAQ,SAAK;IA2C9E;;;;;OAKG;IACH,SAAS,CAAC,KAAK,SAAI,EAAE,KAAK,SAAI;IAc9B;;;OAGG;IACH,OAAO;IAOP;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAK5B;;;;;;;;OAQG;IACH,eAAe,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA;IAK3C;;;;;;OAMG;IACH,UAAU,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,QAAQ,KAAA;IAKzB;;;;;;;OAOG;IACH,WAAW,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAK/B;;;;OAIG;IACH,WAAW,CAAC,IAAI,KAAA;IAoBhB;;;OAGG;IACH,KAAK;IAWL;;OAEG;IACH,eAAe;IAKf;;;OAGG;IACH,WAAW,CAAC,aAAa,KAAA;IAwDzB;;;OAGG;IACH,YAAY,CAAC,aAAa,KAAA;IAoD1B;;;;OAIG;IACH,SAAS,CAAC,MAAM,MAAO;IAwDvB;;;OAGG;IACH,cAAc;IAcd;;;;;OAKG;IACH,aAAa,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAc9B;;OAEG;IACH,iBAAiB;IA8EjB;;OAEG;IACH,oBAAoB;IAuBpB;;OAEG;IACH,yBAAyB;IAgBzB;;OAEG;IACH,mBAAmB;IAQnB;;;;OAIG;IACH,SAAS,CAAC,KAAK,KAAA;IAgCf;;OAEG;IACH,UAAU;IAUV;;;;OAIG;IACH,YAAY,CAAC,MAAM,KAAA,EAAE,IAAI,UAAQ;IAejC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,EAAE,IAAI,UAAQ;CA4C9C"}
@@ -1,4 +1,14 @@
1
- export class GraphicsData {
1
+ export declare class GraphicsData {
2
+ lineWidth: any;
3
+ lineColor: any;
4
+ lineAlpha: any;
5
+ _lineTint: any;
6
+ fillColor: any;
7
+ fillAlpha: any;
8
+ _fillTint: any;
9
+ fill: any;
10
+ shape: any;
11
+ type: any;
2
12
  /**
3
13
  * Creates a new GraphicsData object.
4
14
  * @param {number} lineWidth - The line width.
@@ -9,17 +19,7 @@ export class GraphicsData {
9
19
  * @param {boolean} fill - Whether to fill the shape.
10
20
  * @param {object} shape - The shape to draw.
11
21
  */
12
- constructor(lineWidth: number, lineColor: number, lineAlpha: number, fillColor: number, fillAlpha: number, fill: boolean, shape: object);
13
- lineWidth: number;
14
- lineColor: number;
15
- lineAlpha: number;
16
- _lineTint: number;
17
- fillColor: number;
18
- fillAlpha: number;
19
- _fillTint: number;
20
- fill: boolean;
21
- shape: any;
22
- type: any;
22
+ constructor(lineWidth: any, lineColor: any, lineAlpha: any, fillColor: any, fillAlpha: any, fill: any, shape: any);
23
23
  /**
24
24
  * Clones this GraphicsData object.
25
25
  * @returns {GraphicsData} A new cloned GraphicsData object.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphics_data.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics_data.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IACzB,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,SAAS,MAAC;IACV,IAAI,MAAC;IACL,KAAK,MAAC;IACN,IAAI,MAAC;IACH;;;;;;;;;OASG;gBACS,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,IAAI,KAAA,EAAE,KAAK,KAAA;IAa9E;;;OAGG;IACH,KAAK;CAGN"}
@@ -0,0 +1,8 @@
1
+ import { GraphicsData } from './graphics_data.js';
2
+ /**
3
+ * Clones a GraphicsData object.
4
+ * @param {GraphicsData} source - The source GraphicsData to clone.
5
+ * @returns {GraphicsData} A new cloned GraphicsData object.
6
+ */
7
+ export declare const clone: (source: any) => GraphicsData;
8
+ //# sourceMappingURL=graphics_data_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphics_data_util.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics_data_util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,WAAM,iBAU3B,CAAC"}
@@ -1,47 +1,49 @@
1
- export const SORT_ASCENDING: -1;
2
- export const SORT_DESCENDING: 1;
3
- export class Group extends DisplayObject {
4
- /**
5
- * Creates a new Group object.
6
- * @param {import('../core/game.js').Game} game - The game instance this group belongs to.
7
- * @param {DisplayObject} parent - The parent display object.
8
- * @param {string} name - The name of this group.
9
- * @param {boolean} addToStage - Whether to add this group to the stage.
10
- */
11
- constructor(game: import("../core/game.js").Game, parent?: DisplayObject, name?: string, addToStage?: boolean);
12
- /** @type {number} */
13
- type: number;
1
+ import { DisplayObject } from './display_object.js';
2
+ export declare const SORT_ASCENDING = -1;
3
+ export declare const SORT_DESCENDING = 1;
4
+ export declare class Group extends DisplayObject {
14
5
  /** @type {number} */
15
- z: number;
6
+ z: any;
16
7
  /** @type {boolean} */
17
- ignoreDestroy: boolean;
8
+ ignoreDestroy: any;
18
9
  /** @type {boolean} */
19
- pendingDestroy: boolean;
20
- classType: typeof Image;
10
+ pendingDestroy: any;
11
+ /** @type {Function} */
12
+ classType: any;
13
+ /** @type {DisplayObject | null} */
21
14
  cursor: any;
22
15
  /** @type {boolean} */
23
- inputEnableChildren: boolean;
16
+ inputEnableChildren: any;
24
17
  /** @type {Signal} */
25
- onChildInputDown: Signal;
18
+ onChildInputDown: any;
26
19
  /** @type {Signal} */
27
- onChildInputUp: Signal;
20
+ onChildInputUp: any;
28
21
  /** @type {Signal} */
29
- onChildInputOver: Signal;
22
+ onChildInputOver: any;
30
23
  /** @type {Signal} */
31
- onChildInputOut: Signal;
24
+ onChildInputOut: any;
32
25
  /** @type {Signal} */
33
- onDestroy: Signal;
26
+ onDestroy: any;
34
27
  /** @type {number} */
35
- cursorIndex: number;
28
+ cursorIndex: any;
36
29
  /** @type {string} */
37
- _sortProperty: string;
30
+ _sortProperty: any;
31
+ /** @type {object[] | null} */
32
+ filters: any;
33
+ /**
34
+ * Creates a new Group object.
35
+ * @param {import('../core/game.js').Game} game - The game instance this group belongs to.
36
+ * @param {DisplayObject} parent - The parent display object.
37
+ * @param {string} name - The name of this group.
38
+ * @param {boolean} addToStage - Whether to add this group to the stage.
39
+ */
40
+ constructor(game: any, parent?: any, name?: any, addToStage?: boolean);
38
41
  /**
39
42
  * Destroys this group and cleans up resources.
40
43
  * @param {boolean} destroyChildren - Whether to destroy children as well.
41
44
  * @param {boolean} soft - Whether to perform a soft destroy (leaving the group in the parent's children list).
42
45
  */
43
46
  destroy(destroyChildren?: boolean, soft?: boolean): void;
44
- filters: any;
45
47
  /**
46
48
  * Adds a child to this group.
47
49
  * @param {DisplayObject} child - The child to add.
@@ -49,20 +51,20 @@ export class Group extends DisplayObject {
49
51
  * @param {number} index - The index to add the child at.
50
52
  * @returns {DisplayObject} The added child.
51
53
  */
52
- add(child: DisplayObject, silent?: boolean, index?: number): DisplayObject;
54
+ add(child: any, silent?: boolean, index?: number): any;
53
55
  /**
54
56
  * Adds a child to this group at a specific index.
55
57
  * @param {DisplayObject} child - The child to add.
56
58
  * @param {number} index - The index to add the child at.
57
59
  * @param {boolean} silent - Whether to dispatch events.
58
60
  */
59
- addAt(child: DisplayObject, index: number, silent: boolean): void;
61
+ addAt(child: any, index: any, silent: any): void;
60
62
  /**
61
63
  * Gets a child at the specified index.
62
64
  * @param {number} index - The index of the child to get.
63
65
  * @returns {DisplayObject} The child at the specified index, or -1 if not found.
64
66
  */
65
- getAt(index: number): DisplayObject;
67
+ getAt(index: any): any;
66
68
  /**
67
69
  * Updates the Z indices of all children in this group.
68
70
  */
@@ -71,30 +73,30 @@ export class Group extends DisplayObject {
71
73
  * Gets the next child in this group (with circular wrapping).
72
74
  * @returns {DisplayObject} The next child, or null if no children exist.
73
75
  */
74
- next(): DisplayObject;
76
+ next(): any;
75
77
  /**
76
78
  * Gets the previous child in this group (with circular wrapping).
77
79
  * @returns {DisplayObject} The previous child, or null if no children exist.
78
80
  */
79
- previous(): DisplayObject;
81
+ previous(): any;
80
82
  /**
81
83
  * Swaps the positions of two children in this group.
82
84
  * @param {DisplayObject} child1 - The first child to swap.
83
85
  * @param {DisplayObject} child2 - The second child to swap.
84
86
  */
85
- swap(child1: DisplayObject, child2: DisplayObject): void;
87
+ swap(child1: any, child2: any): void;
86
88
  /**
87
89
  * Brings a child to the top of this group.
88
90
  * @param {DisplayObject} child - The child to bring to the top.
89
91
  * @returns {DisplayObject} The child that was brought to the top.
90
92
  */
91
- bringToTop(child: DisplayObject): DisplayObject;
93
+ bringToTop(child: any): any;
92
94
  /**
93
95
  * Sends a child to the back of this group.
94
96
  * @param {DisplayObject} child - The child to send to the back.
95
97
  * @returns {DisplayObject} The child that was sent to the back.
96
98
  */
97
- sendToBack(child: DisplayObject): DisplayObject;
99
+ sendToBack(child: any): any;
98
100
  /**
99
101
  * Reverses the order of children in this group.
100
102
  */
@@ -104,8 +106,19 @@ export class Group extends DisplayObject {
104
106
  * @param {DisplayObject} child - The child to get the index of.
105
107
  * @returns {number} The index of the child, or -1 if not found.
106
108
  */
107
- getIndex(child: DisplayObject): number;
108
- renderOrderID: number;
109
+ getIndex(child: any): any;
110
+ /**
111
+ * Updates the Z indices of all children in this group before the update cycle.
112
+ */
113
+ preUpdate(): void;
114
+ /**
115
+ * Updates all children in this group during the update cycle.
116
+ */
117
+ update(): void;
118
+ /**
119
+ * Updates all children in this group after the update cycle.
120
+ */
121
+ postUpdate(): void;
109
122
  /**
110
123
  * Removes a child from this group.
111
124
  * @param {DisplayObject} child - The child to remove.
@@ -113,7 +126,7 @@ export class Group extends DisplayObject {
113
126
  * @param {boolean} silent - Whether to dispatch events.
114
127
  * @returns {boolean} True if the child was removed, false otherwise.
115
128
  */
116
- remove(child: DisplayObject, destroy?: boolean, silent?: boolean): boolean;
129
+ remove(child: any, destroy?: boolean, silent?: boolean): boolean;
117
130
  /**
118
131
  * Removes all children from this group.
119
132
  * @param {boolean} destroy - Whether to destroy children as well.
@@ -122,7 +135,4 @@ export class Group extends DisplayObject {
122
135
  */
123
136
  removeAll(destroy?: boolean, silent?: boolean, destroyTexture?: boolean): void;
124
137
  }
125
- import { DisplayObject } from './display_object.js';
126
- import { Image } from './image.js';
127
- import { Signal } from '../core/signal.js';
128
138
  //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/group.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,qBAAa,KAAM,SAAQ,aAAa;IACtC,qBAAqB;IACrB,CAAC,MAAC;IACF,sBAAsB;IACtB,aAAa,MAAC;IACd,sBAAsB;IACtB,cAAc,MAAC;IACf,uBAAuB;IACvB,SAAS,MAAC;IACV,mCAAmC;IACnC,MAAM,MAAC;IACP,sBAAsB;IACtB,mBAAmB,MAAC;IACpB,qBAAqB;IACrB,gBAAgB,MAAC;IACjB,qBAAqB;IACrB,cAAc,MAAC;IACf,qBAAqB;IACrB,gBAAgB,MAAC;IACjB,qBAAqB;IACrB,eAAe,MAAC;IAChB,qBAAqB;IACrB,SAAS,MAAC;IACV,qBAAqB;IACrB,WAAW,MAAC;IACZ,qBAAqB;IACrB,aAAa,MAAC;IACd,8BAA8B;IAC9B,OAAO,MAAC;IACR;;;;;;OAMG;gBACS,IAAI,KAAA,EAAE,MAAM,MAAO,EAAE,IAAI,MAAO,EAAE,UAAU,UAAQ;IA0ChE;;;;OAIG;IACH,OAAO,CAAC,eAAe,UAAO,EAAE,IAAI,UAAQ;IAkB5C;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,KAAA,EAAE,MAAM,UAAQ,EAAE,KAAK,SAAK;IAuBrC;;;;;OAKG;IACH,KAAK,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAI1B;;;;OAIG;IACH,KAAK,CAAC,KAAK,KAAA;IAOX;;OAEG;IACH,OAAO;IAQP;;;OAGG;IACH,IAAI;IAcJ;;;OAGG;IACH,QAAQ;IAcR;;;;OAIG;IACH,IAAI,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA;IAKnB;;;;OAIG;IACH,UAAU,CAAC,KAAK,KAAA;IAQhB;;;;OAIG;IACH,UAAU,CAAC,KAAK,KAAA;IAQhB;;OAEG;IACH,OAAO;IAKP;;;;OAIG;IACH,QAAQ,CAAC,KAAK,KAAA;IAId;;OAEG;IACH,SAAS;IAcT;;OAEG;IACH,MAAM;IAQN;;OAEG;IACH,UAAU;IAMV;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,OAAO,UAAO,EAAE,MAAM,UAAQ;IAkB5C;;;;;OAKG;IACH,SAAS,CAAC,OAAO,UAAO,EAAE,MAAM,UAAQ,EAAE,cAAc,UAAQ;CAejE"}