@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,38 +1,30 @@
1
- export const CANVAS: 0;
2
- export const IMAGE: 1;
3
- export const TEXTURE: 2;
4
- export const SOUND: 3;
5
- export const TEXT: 4;
6
- export const BITMAPDATA: 5;
7
- export const BITMAPFONT: 6;
8
- export const JSONDATA: 7;
9
- export const XML: 8;
10
- export const RENDER_TEXTURE: 9;
11
- export class Cache {
1
+ import { BaseTexture } from '../display/webgl/base_texture.js';
2
+ import { Frame } from './frame.js';
3
+ import { FrameData } from './frame_data.js';
4
+ export declare const CANVAS = 0;
5
+ export declare const IMAGE = 1;
6
+ export declare const TEXTURE = 2;
7
+ export declare const SOUND = 3;
8
+ export declare const TEXT = 4;
9
+ export declare const BITMAPDATA = 5;
10
+ export declare const BITMAPFONT = 6;
11
+ export declare const JSONDATA = 7;
12
+ export declare const XML = 8;
13
+ export declare const RENDER_TEXTURE = 9;
14
+ export declare class Cache {
15
+ game: any;
16
+ autoResolveURL: any;
17
+ _cache: any;
18
+ _urlMap: any;
19
+ _urlResolver: any;
20
+ _urlTemp: any;
21
+ onSoundUnlock: any;
22
+ _cacheMap: any;
12
23
  /**
13
24
  * Creates a new Cache instance.
14
25
  * @param {import('./game.js').Game} game - The game instance.
15
26
  */
16
- constructor(game: import("./game.js").Game);
17
- game: import("./game.js").Game;
18
- autoResolveURL: boolean;
19
- _cache: {
20
- canvas: {};
21
- image: {};
22
- texture: {};
23
- sound: {};
24
- text: {};
25
- json: {};
26
- xml: {};
27
- bitmapData: {};
28
- bitmapFont: {};
29
- renderTexture: {};
30
- };
31
- _urlMap: {};
32
- _urlResolver: HTMLImageElement;
33
- _urlTemp: string;
34
- onSoundUnlock: Signal;
35
- _cacheMap: {}[];
27
+ constructor(game: any);
36
28
  /**
37
29
  * Adds the default image to the cache.
38
30
  */
@@ -48,7 +40,14 @@ export class Cache {
48
40
  * @param {HTMLImageElement} data - The image data to cache.
49
41
  * @returns {object} The cached image object.
50
42
  */
51
- addImage(key: string, url: string, data: HTMLImageElement): object;
43
+ addImage(key: any, url: any, data: any): {
44
+ key: any;
45
+ url: any;
46
+ data: any;
47
+ base: BaseTexture;
48
+ frame: Frame;
49
+ frameData: FrameData;
50
+ };
52
51
  /**
53
52
  * Adds a texture atlas to the cache.
54
53
  * @param {string} key - The unique key for this cache entry.
@@ -56,21 +55,21 @@ export class Cache {
56
55
  * @param {HTMLCanvasElement} data - The canvas data for the atlas.
57
56
  * @param {object} atlasData - The atlas data to cache.
58
57
  */
59
- addTextureAtlas(key: string, url: string, data: HTMLCanvasElement, atlasData: object): void;
58
+ addTextureAtlas(key: any, url: any, data: any, atlasData: any): void;
60
59
  /**
61
60
  * Adds sound data to the cache.
62
61
  * @param {string} key - The unique key for this cache entry.
63
62
  * @param {string} url - The URL the sound was loaded from.
64
63
  * @param {object} data - The sound data to cache.
65
64
  */
66
- addSound(key: string, url: string, data: object): void;
65
+ addSound(key: any, url: any, data: any): void;
67
66
  /**
68
67
  * Adds text data to the cache.
69
68
  * @param {string} key - The unique key for this cache entry.
70
69
  * @param {string} url - The URL the text was loaded from.
71
70
  * @param {string} data - The text data to cache.
72
71
  */
73
- addText(key: string, url: string, data: string): void;
72
+ addText(key: any, url: any, data: any): void;
74
73
  /**
75
74
  * Adds a bitmap font to the cache.
76
75
  * @param {string} key - The unique key for this cache entry.
@@ -81,113 +80,113 @@ export class Cache {
81
80
  * @param {number} xSpacing - Horizontal spacing between characters.
82
81
  * @param {number} ySpacing - Vertical spacing between characters.
83
82
  */
84
- addBitmapFont(key: string, url: string, data: HTMLCanvasElement, atlasData: object, atlasType: string, xSpacing?: number, ySpacing?: number): void;
83
+ addBitmapFont(key: any, url: any, data: any, atlasData: any, atlasType: any, xSpacing?: number, ySpacing?: number): void;
85
84
  /**
86
85
  * Adds JSON data to the cache.
87
86
  * @param {string} key - The unique key for this cache entry.
88
87
  * @param {string} url - The URL the JSON was loaded from.
89
88
  * @param {object} data - The JSON data to cache.
90
89
  */
91
- addJSON(key: string, url: string, data: object): void;
90
+ addJSON(key: any, url: any, data: any): void;
92
91
  /**
93
92
  * Adds XML data to the cache.
94
93
  * @param {string} key - The unique key for this cache entry.
95
94
  * @param {string} url - The URL the XML was loaded from.
96
95
  * @param {XMLDocument} data - The XML data to cache.
97
96
  */
98
- addXML(key: string, url: string, data: XMLDocument): void;
97
+ addXML(key: any, url: any, data: any): void;
99
98
  /**
100
99
  * Updates a sound property in the cache.
101
100
  * @param {string} key - The unique key for the cached sound.
102
101
  * @param {string} property - The property to update.
103
102
  * @param {any} value - The new value for the property.
104
103
  */
105
- updateSound(key: string, property: string, value: any): void;
104
+ updateSound(key: any, property: any, value: any): void;
106
105
  /**
107
106
  * Marks a sound as decoded in the cache.
108
107
  * @param {string} key - The unique key for the cached sound.
109
108
  * @param {AudioBuffer} data - The decoded audio buffer.
110
109
  */
111
- decodedSound(key: string, data: AudioBuffer): void;
110
+ decodedSound(key: any, data: any): void;
112
111
  /**
113
112
  * Checks if a sound has been decoded in the cache.
114
113
  * @param {string} key - The unique key for the cached sound.
115
114
  * @returns {boolean} True if the sound is decoded, false otherwise.
116
115
  */
117
- isSoundDecoded(key: string): boolean;
116
+ isSoundDecoded(key: any): any;
118
117
  /**
119
118
  * Checks if a sound is ready to play (decoded and not locked).
120
119
  * @param {string} key - The unique key for the cached sound.
121
120
  * @returns {boolean} True if the sound is ready, false otherwise.
122
121
  */
123
- isSoundReady(key: string): boolean;
122
+ isSoundReady(key: any): boolean;
124
123
  /**
125
124
  * Checks if a cache entry exists.
126
125
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
127
126
  * @param {string} key - The unique key for the cache entry.
128
127
  * @returns {boolean} True if the entry exists, false otherwise.
129
128
  */
130
- checkKey(cache: number, key: string): boolean;
129
+ checkKey(cache: any, key: any): boolean;
131
130
  /**
132
131
  * Checks if a URL has been resolved and cached.
133
132
  * @param {string} url - The URL to check.
134
133
  * @returns {boolean} True if the URL has been resolved and cached, false otherwise.
135
134
  */
136
- checkURL(url: string): boolean;
135
+ checkURL(url: any): boolean;
137
136
  /**
138
137
  * Checks if a canvas cache entry exists.
139
138
  * @param {string} key - The unique key for the cache entry.
140
139
  * @returns {boolean} True if the entry exists, false otherwise.
141
140
  */
142
- checkCanvasKey(key: string): boolean;
141
+ checkCanvasKey(key: any): boolean;
143
142
  /**
144
143
  * Checks if an image cache entry exists.
145
144
  * @param {string} key - The unique key for the cache entry.
146
145
  * @returns {boolean} True if the entry exists, false otherwise.
147
146
  */
148
- checkImageKey(key: string): boolean;
147
+ checkImageKey(key: any): boolean;
149
148
  /**
150
149
  * Checks if a texture cache entry exists.
151
150
  * @param {string} key - The unique key for the cache entry.
152
151
  * @returns {boolean} True if the entry exists, false otherwise.
153
152
  */
154
- checkTextureKey(key: string): boolean;
153
+ checkTextureKey(key: any): boolean;
155
154
  /**
156
155
  * Checks if a sound cache entry exists.
157
156
  * @param {string} key - The unique key for the cache entry.
158
157
  * @returns {boolean} True if the entry exists, false otherwise.
159
158
  */
160
- checkSoundKey(key: string): boolean;
159
+ checkSoundKey(key: any): boolean;
161
160
  /**
162
161
  * Checks if a text cache entry exists.
163
162
  * @param {string} key - The unique key for the cache entry.
164
163
  * @returns {boolean} True if the entry exists, false otherwise.
165
164
  */
166
- checkTextKey(key: string): boolean;
165
+ checkTextKey(key: any): boolean;
167
166
  /**
168
167
  * Checks if a bitmap data cache entry exists.
169
168
  * @param {string} key - The unique key for the cache entry.
170
169
  * @returns {boolean} True if the entry exists, false otherwise.
171
170
  */
172
- checkBitmapDataKey(key: string): boolean;
171
+ checkBitmapDataKey(key: any): boolean;
173
172
  /**
174
173
  * Checks if a bitmap font cache entry exists.
175
174
  * @param {string} key - The unique key for the cache entry.
176
175
  * @returns {boolean} True if the entry exists, false otherwise.
177
176
  */
178
- checkBitmapFontKey(key: string): boolean;
177
+ checkBitmapFontKey(key: any): boolean;
179
178
  /**
180
179
  * Checks if a JSON cache entry exists.
181
180
  * @param {string} key - The unique key for the cache entry.
182
181
  * @returns {boolean} True if the entry exists, false otherwise.
183
182
  */
184
- checkJSONKey(key: string): boolean;
183
+ checkJSONKey(key: any): boolean;
185
184
  /**
186
185
  * Checks if an XML cache entry exists.
187
186
  * @param {string} key - The unique key for the cache entry.
188
187
  * @returns {boolean} True if the entry exists, false otherwise.
189
188
  */
190
- checkXMLKey(key: string): boolean;
189
+ checkXMLKey(key: any): boolean;
191
190
  /**
192
191
  * TBD.
193
192
  * @param {string} key - TBD.
@@ -196,117 +195,117 @@ export class Cache {
196
195
  * @param {string} property - TBD.
197
196
  * @returns {*} TBD.
198
197
  */
199
- getItem(key: string, cache: number, method: string, property?: string): any;
198
+ getItem(key: any, cache: any, method: any, property?: any): any;
200
199
  /**
201
200
  * TBD.
202
201
  * @param {string} key - TBD.
203
202
  * @returns {HTMLCanvasElement} TBD.
204
203
  */
205
- getCanvas(key: string): HTMLCanvasElement;
204
+ getCanvas(key: any): any;
206
205
  /**
207
206
  * TBD.
208
207
  * @param {string} key - TBD.
209
208
  * @param {boolean} full - TBD.
210
209
  * @returns {HTMLImageElement} TBD.
211
210
  */
212
- getImage(key?: string, full?: boolean): HTMLImageElement;
211
+ getImage(key?: string, full?: boolean): any;
213
212
  /**
214
213
  * TBD.
215
214
  * @param {string} key - TBD.
216
215
  * @returns {object} TBD.
217
216
  */
218
- getTextureFrame(key: string): object;
217
+ getTextureFrame(key: any): any;
219
218
  /**
220
219
  * TBD.
221
220
  * @param {string} key - TBD.
222
221
  * @returns {object} TBD.
223
222
  */
224
- getSound(key: string): object;
223
+ getSound(key: any): any;
225
224
  /**
226
225
  * TBD.
227
226
  * @param {string} key - TBD.
228
227
  * @returns {object} TBD.
229
228
  */
230
- getSoundData(key: string): object;
229
+ getSoundData(key: any): any;
231
230
  /**
232
231
  * TBD.
233
232
  * @param {string} key - TBD.
234
233
  * @returns {object} TBD.
235
234
  */
236
- getText(key: string): object;
235
+ getText(key: any): any;
237
236
  /**
238
237
  * TBD.
239
238
  * @param {string} key - TBD.
240
239
  * @returns {object} TBD.
241
240
  */
242
- getBitmapData(key: string): object;
241
+ getBitmapData(key: any): any;
243
242
  /**
244
243
  * TBD.
245
244
  * @param {string} key - TBD.
246
245
  * @returns {object} TBD.
247
246
  */
248
- getBitmapFont(key: string): object;
247
+ getBitmapFont(key: any): any;
249
248
  /**
250
249
  * TBD.
251
250
  * @param {string} key - TBD.
252
251
  * @param {boolean} isClone - TBD.
253
252
  * @returns {object} TBD.
254
253
  */
255
- getJSON(key: string, isClone?: boolean): object;
254
+ getJSON(key: any, isClone?: boolean): any;
256
255
  /**
257
256
  * TBD.
258
257
  * @param {string} key - TBD.
259
258
  * @returns {XMLDocument} TBD.
260
259
  */
261
- getXML(key: string): XMLDocument;
260
+ getXML(key: any): any;
262
261
  /**
263
262
  * TBD.
264
263
  * @param {string} key - TBD.
265
264
  * @returns {import('../display/webgl/render_texture.js').RenderTexture} TBD.
266
265
  */
267
- getRenderTexture(key: string): import("../display/webgl/render_texture.js").RenderTexture;
266
+ getRenderTexture(key: any): any;
268
267
  /**
269
268
  * Gets the base texture of a cache entry.
270
269
  * @param {string} key - The unique key for the cache entry.
271
270
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
272
271
  * @returns {BaseTexture} The base texture.
273
272
  */
274
- getBaseTexture(key: string, cache?: number): BaseTexture;
273
+ getBaseTexture(key: any, cache?: number): any;
275
274
  /**
276
275
  * Gets a frame from the cache.
277
276
  * @param {string} key - The unique key for the cache entry.
278
277
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
279
278
  * @returns {Frame} The frame.
280
279
  */
281
- getFrame(key: string, cache?: number): Frame;
280
+ getFrame(key: any, cache?: number): any;
282
281
  /**
283
282
  * Gets the frame count of a cache entry.
284
283
  * @param {string} key - The unique key for the cache entry.
285
284
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
286
285
  * @returns {number} The number of frames.
287
286
  */
288
- getFrameCount(key: string, cache?: number): number;
287
+ getFrameCount(key: any, cache?: number): any;
289
288
  /**
290
289
  * Gets the frame data of a cache entry.
291
290
  * @param {string} key - The unique key for the cache entry.
292
291
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
293
292
  * @returns {FrameData} The frame data.
294
293
  */
295
- getFrameData(key: string, cache?: number): FrameData;
294
+ getFrameData(key: any, cache?: number): any;
296
295
  /**
297
296
  * Checks if a cache entry has frame data.
298
297
  * @param {string} key - The unique key for the cache entry.
299
298
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
300
299
  * @returns {boolean} True if the entry has frame data, false otherwise.
301
300
  */
302
- hasFrameData(key: string, cache?: number): boolean;
301
+ hasFrameData(key: any, cache?: number): boolean;
303
302
  /**
304
303
  * Updates the frame data of a cache entry.
305
304
  * @param {string} key - The unique key for the cache entry.
306
305
  * @param {FrameData} frameData - The new frame data.
307
306
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
308
307
  */
309
- updateFrameData(key: string, frameData: FrameData, cache?: number): void;
308
+ updateFrameData(key: any, frameData: any, cache?: number): void;
310
309
  /**
311
310
  * Gets a frame by index from the cache.
312
311
  * @param {string} key - The unique key for the cache entry.
@@ -314,7 +313,7 @@ export class Cache {
314
313
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
315
314
  * @returns {Frame} The frame at the specified index.
316
315
  */
317
- getFrameByIndex(key: string, index: number, cache?: number): Frame;
316
+ getFrameByIndex(key: any, index: any, cache?: number): any;
318
317
  /**
319
318
  * Gets a frame by name from the cache.
320
319
  * @param {string} key - The unique key for the cache entry.
@@ -322,75 +321,75 @@ export class Cache {
322
321
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
323
322
  * @returns {Frame} The frame with the specified name.
324
323
  */
325
- getFrameByName(key: string, name: string, cache?: number): Frame;
324
+ getFrameByName(key: any, name: any, cache?: number): any;
326
325
  /**
327
326
  * Gets the resolved URL from cache.
328
327
  * @param {string} url - The original URL to resolve.
329
328
  * @returns {string} The resolved URL or null if not found.
330
329
  */
331
- getURL(url: string): string;
330
+ getURL(url: any): any;
332
331
  /**
333
332
  * Gets all keys from a cache type.
334
333
  * @param {object} cache - The cache type (CANVAS, IMAGE, etc.).
335
334
  * @returns {string[]} An array of cache keys.
336
335
  */
337
- getKeys(cache?: object): string[];
336
+ getKeys(cache?: number): any[];
338
337
  /**
339
338
  * Removes a canvas cache entry.
340
339
  * @param {string} key - The unique key for the cache entry to remove.
341
340
  */
342
- removeCanvas(key: string): void;
341
+ removeCanvas(key: any): void;
343
342
  /**
344
343
  * Removes an image cache entry.
345
344
  * @param {string} key - The unique key for the cache entry to remove.
346
345
  * @param {boolean} destroyBaseTexture - Whether to destroy the base texture (default: true).
347
346
  */
348
- removeImage(key: string, destroyBaseTexture?: boolean): void;
347
+ removeImage(key: any, destroyBaseTexture?: boolean): void;
349
348
  /**
350
349
  * Removes a sound cache entry.
351
350
  * @param {string} key - The unique key for the cache entry to remove.
352
351
  */
353
- removeSound(key: string): void;
352
+ removeSound(key: any): void;
354
353
  /**
355
354
  * Removes a text cache entry.
356
355
  * @param {string} key - The unique key for the cache entry to remove.
357
356
  */
358
- removeText(key: string): void;
357
+ removeText(key: any): void;
359
358
  /**
360
359
  * Removes a bitmap data cache entry.
361
360
  * @param {string} key - The unique key for the cache entry to remove.
362
361
  */
363
- removeBitmapData(key: string): void;
362
+ removeBitmapData(key: any): void;
364
363
  /**
365
364
  * Removes a bitmap font cache entry.
366
365
  * @param {string} key - The unique key for the cache entry to remove.
367
366
  */
368
- removeBitmapFont(key: string): void;
367
+ removeBitmapFont(key: any): void;
369
368
  /**
370
369
  * Removes a JSON cache entry.
371
370
  * @param {string} key - The unique key for the cache entry to remove.
372
371
  */
373
- removeJSON(key: string): void;
372
+ removeJSON(key: any): void;
374
373
  /**
375
374
  * Removes an XML cache entry.
376
375
  * @param {string} key - The unique key for the cache entry to remove.
377
376
  */
378
- removeXML(key: string): void;
377
+ removeXML(key: any): void;
379
378
  /**
380
379
  * Removes a render texture cache entry.
381
380
  * @param {string} key - The unique key for the cache entry to remove.
382
381
  */
383
- removeRenderTexture(key: string): void;
382
+ removeRenderTexture(key: any): void;
384
383
  /**
385
384
  * Removes a sprite sheet cache entry.
386
385
  * @param {string} key - The unique key for the cache entry to remove.
387
386
  */
388
- removeSpriteSheet(key: string): void;
387
+ removeSpriteSheet(key: any): void;
389
388
  /**
390
389
  * Removes a texture atlas cache entry.
391
390
  * @param {string} key - The unique key for the cache entry to remove.
392
391
  */
393
- removeTextureAtlas(key: string): void;
392
+ removeTextureAtlas(key: any): void;
394
393
  /**
395
394
  * Clears all GL textures from the cache.
396
395
  */
@@ -401,14 +400,10 @@ export class Cache {
401
400
  * @param {object} data - The data to associate with the resolved URL.
402
401
  * @returns {string} The resolved URL or null if not enabled.
403
402
  */
404
- _resolveURL(url: string, data: object): string;
403
+ _resolveURL(url: any, data: any): any;
405
404
  /**
406
405
  * Destroys the cache and cleans up resources.
407
406
  */
408
407
  destroy(): void;
409
408
  }
410
- import { Signal } from './signal.js';
411
- import { BaseTexture } from '../display/webgl/base_texture.js';
412
- import { Frame } from './frame.js';
413
- import { FrameData } from './frame_data.js';
414
409
  //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,e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