@vpmedia/phaser 1.101.0 → 1.103.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/dist/index.d.ts +38 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +20112 -0
  4. package/dist/index.js.map +1 -0
  5. package/{types → dist}/phaser/core/animation.d.ts +41 -83
  6. package/dist/phaser/core/animation.d.ts.map +1 -0
  7. package/{types → dist}/phaser/core/animation_manager.d.ts +37 -55
  8. package/dist/phaser/core/animation_manager.d.ts.map +1 -0
  9. package/dist/phaser/core/animation_parser.d.ts +21 -0
  10. package/dist/phaser/core/animation_parser.d.ts.map +1 -0
  11. package/{types → dist}/phaser/core/array_set.d.ts +13 -13
  12. package/dist/phaser/core/array_set.d.ts.map +1 -0
  13. package/{types → dist}/phaser/core/cache.d.ts +78 -91
  14. package/dist/phaser/core/cache.d.ts.map +1 -0
  15. package/dist/phaser/core/const.d.ts +262 -0
  16. package/dist/phaser/core/const.d.ts.map +1 -0
  17. package/dist/phaser/core/device.d.ts +8 -0
  18. package/dist/phaser/core/device.d.ts.map +1 -0
  19. package/dist/phaser/core/device_util.d.ts +65 -0
  20. package/dist/phaser/core/device_util.d.ts.map +1 -0
  21. package/dist/phaser/core/dom.d.ts +75 -0
  22. package/dist/phaser/core/dom.d.ts.map +1 -0
  23. package/dist/phaser/core/error_code.d.ts +9 -0
  24. package/dist/phaser/core/error_code.d.ts.map +1 -0
  25. package/{types → dist}/phaser/core/event_manager.d.ts +17 -35
  26. package/dist/phaser/core/event_manager.d.ts.map +1 -0
  27. package/{types → dist}/phaser/core/factory.d.ts +9 -15
  28. package/dist/phaser/core/factory.d.ts.map +1 -0
  29. package/{types → dist}/phaser/core/frame.d.ts +7 -28
  30. package/dist/phaser/core/frame.d.ts.map +1 -0
  31. package/{types → dist}/phaser/core/frame_data.d.ts +12 -15
  32. package/dist/phaser/core/frame_data.d.ts.map +1 -0
  33. package/dist/phaser/core/frame_util.d.ts +15 -0
  34. package/dist/phaser/core/frame_util.d.ts.map +1 -0
  35. package/{types → dist}/phaser/core/game.d.ts +7 -74
  36. package/dist/phaser/core/game.d.ts.map +1 -0
  37. package/dist/phaser/core/input.d.ts +160 -0
  38. package/dist/phaser/core/input.d.ts.map +1 -0
  39. package/{types → dist}/phaser/core/input_handler.d.ts +32 -93
  40. package/dist/phaser/core/input_handler.d.ts.map +1 -0
  41. package/dist/phaser/core/input_mouse.d.ts +61 -0
  42. package/dist/phaser/core/input_mouse.d.ts.map +1 -0
  43. package/dist/phaser/core/input_mspointer.d.ts +51 -0
  44. package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
  45. package/dist/phaser/core/input_pointer.d.ts +106 -0
  46. package/dist/phaser/core/input_pointer.d.ts.map +1 -0
  47. package/dist/phaser/core/input_touch.d.ts +55 -0
  48. package/dist/phaser/core/input_touch.d.ts.map +1 -0
  49. package/{types → dist}/phaser/core/loader.d.ts +39 -78
  50. package/dist/phaser/core/loader.d.ts.map +1 -0
  51. package/dist/phaser/core/loader_parser.d.ts +35 -0
  52. package/dist/phaser/core/loader_parser.d.ts.map +1 -0
  53. package/{types → dist}/phaser/core/raf.d.ts +5 -5
  54. package/dist/phaser/core/raf.d.ts.map +1 -0
  55. package/{types → dist}/phaser/core/scale_manager.d.ts +41 -124
  56. package/dist/phaser/core/scale_manager.d.ts.map +1 -0
  57. package/{types → dist}/phaser/core/scene.d.ts +6 -4
  58. package/dist/phaser/core/scene.d.ts.map +1 -0
  59. package/{types → dist}/phaser/core/scene_manager.d.ts +12 -29
  60. package/dist/phaser/core/scene_manager.d.ts.map +1 -0
  61. package/{types → dist}/phaser/core/signal.d.ts +21 -17
  62. package/dist/phaser/core/signal.d.ts.map +1 -0
  63. package/{types → dist}/phaser/core/signal_binding.d.ts +15 -15
  64. package/dist/phaser/core/signal_binding.d.ts.map +1 -0
  65. package/{types → dist}/phaser/core/sound.d.ts +22 -75
  66. package/dist/phaser/core/sound.d.ts.map +1 -0
  67. package/{types → dist}/phaser/core/sound_manager.d.ts +20 -43
  68. package/dist/phaser/core/sound_manager.d.ts.map +1 -0
  69. package/dist/phaser/core/sound_sprite.d.ts +27 -0
  70. package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
  71. package/{types → dist}/phaser/core/stage.d.ts +29 -17
  72. package/dist/phaser/core/stage.d.ts.map +1 -0
  73. package/{types → dist}/phaser/core/time.d.ts +12 -64
  74. package/dist/phaser/core/time.d.ts.map +1 -0
  75. package/{types → dist}/phaser/core/timer.d.ts +14 -54
  76. package/dist/phaser/core/timer.d.ts.map +1 -0
  77. package/{types → dist}/phaser/core/timer_event.d.ts +2 -11
  78. package/dist/phaser/core/timer_event.d.ts.map +1 -0
  79. package/{types → dist}/phaser/core/tween.d.ts +21 -62
  80. package/dist/phaser/core/tween.d.ts.map +1 -0
  81. package/{types → dist}/phaser/core/tween_data.d.ts +9 -35
  82. package/dist/phaser/core/tween_data.d.ts.map +1 -0
  83. package/dist/phaser/core/tween_easing.d.ts +187 -0
  84. package/dist/phaser/core/tween_easing.d.ts.map +1 -0
  85. package/{types → dist}/phaser/core/tween_manager.d.ts +9 -18
  86. package/dist/phaser/core/tween_manager.d.ts.map +1 -0
  87. package/{types → dist}/phaser/core/world.d.ts +3 -3
  88. package/dist/phaser/core/world.d.ts.map +1 -0
  89. package/{types → dist}/phaser/display/bitmap_text.d.ts +52 -71
  90. package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
  91. package/{types → dist}/phaser/display/button.d.ts +25 -37
  92. package/dist/phaser/display/button.d.ts.map +1 -0
  93. package/{types → dist}/phaser/display/canvas/buffer.d.ts +3 -7
  94. package/dist/phaser/display/canvas/buffer.d.ts.map +1 -0
  95. package/dist/phaser/display/canvas/graphics.d.ts +18 -0
  96. package/dist/phaser/display/canvas/graphics.d.ts.map +1 -0
  97. package/dist/phaser/display/canvas/masker.d.ts +12 -0
  98. package/dist/phaser/display/canvas/masker.d.ts.map +1 -0
  99. package/dist/phaser/display/canvas/pool.d.ts +40 -0
  100. package/dist/phaser/display/canvas/pool.d.ts.map +1 -0
  101. package/{types → dist}/phaser/display/canvas/renderer.d.ts +6 -28
  102. package/dist/phaser/display/canvas/renderer.d.ts.map +1 -0
  103. package/dist/phaser/display/canvas/tinter.d.ts +41 -0
  104. package/dist/phaser/display/canvas/tinter.d.ts.map +1 -0
  105. package/dist/phaser/display/canvas/util.d.ts +70 -0
  106. package/dist/phaser/display/canvas/util.d.ts.map +1 -0
  107. package/{types → dist}/phaser/display/display_object.d.ts +63 -124
  108. package/dist/phaser/display/display_object.d.ts.map +1 -0
  109. package/{types → dist}/phaser/display/graphics.d.ts +59 -65
  110. package/dist/phaser/display/graphics.d.ts.map +1 -0
  111. package/{types → dist}/phaser/display/graphics_data.d.ts +2 -12
  112. package/dist/phaser/display/graphics_data.d.ts.map +1 -0
  113. package/dist/phaser/display/graphics_data_util.d.ts +8 -0
  114. package/dist/phaser/display/graphics_data_util.d.ts.map +1 -0
  115. package/{types → dist}/phaser/display/group.d.ts +27 -45
  116. package/dist/phaser/display/group.d.ts.map +1 -0
  117. package/{types → dist}/phaser/display/image.d.ts +54 -53
  118. package/dist/phaser/display/image.d.ts.map +1 -0
  119. package/dist/phaser/display/sprite_batch.d.ts +9 -0
  120. package/dist/phaser/display/sprite_batch.d.ts.map +1 -0
  121. package/dist/phaser/display/sprite_util.d.ts +35 -0
  122. package/dist/phaser/display/sprite_util.d.ts.map +1 -0
  123. package/{types → dist}/phaser/display/text.d.ts +176 -181
  124. package/dist/phaser/display/text.d.ts.map +1 -0
  125. package/{types → dist}/phaser/display/webgl/abstract_filter.d.ts +2 -8
  126. package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -0
  127. package/{types → dist}/phaser/display/webgl/base_texture.d.ts +3 -15
  128. package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -0
  129. package/{types → dist}/phaser/display/webgl/blend_manager.d.ts +7 -5
  130. package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -0
  131. package/{types → dist}/phaser/display/webgl/earcut.d.ts +28 -27
  132. package/dist/phaser/display/webgl/earcut.d.ts.map +1 -0
  133. package/{types → dist}/phaser/display/webgl/earcut_node.d.ts +11 -11
  134. package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -0
  135. package/{types → dist}/phaser/display/webgl/fast_sprite_batch.d.ts +6 -28
  136. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -0
  137. package/{types → dist}/phaser/display/webgl/filter_manager.d.ts +6 -7
  138. package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -0
  139. package/{types → dist}/phaser/display/webgl/filter_texture.d.ts +3 -9
  140. package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -0
  141. package/dist/phaser/display/webgl/graphics.d.ts +78 -0
  142. package/dist/phaser/display/webgl/graphics.d.ts.map +1 -0
  143. package/dist/phaser/display/webgl/graphics_data.d.ts +16 -0
  144. package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -0
  145. package/dist/phaser/display/webgl/mask_manager.d.ts +13 -0
  146. package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -0
  147. package/{types → dist}/phaser/display/webgl/render_texture.d.ts +5 -13
  148. package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
  149. package/dist/phaser/display/webgl/renderer.d.ts +51 -0
  150. package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
  151. package/dist/phaser/display/webgl/shader/complex.d.ts +16 -0
  152. package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
  153. package/dist/phaser/display/webgl/shader/fast.d.ts +16 -0
  154. package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
  155. package/dist/phaser/display/webgl/shader/normal.d.ts +29 -0
  156. package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
  157. package/dist/phaser/display/webgl/shader/primitive.d.ts +16 -0
  158. package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
  159. package/dist/phaser/display/webgl/shader/strip.d.ts +16 -0
  160. package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
  161. package/dist/phaser/display/webgl/shader_manager.d.ts +27 -0
  162. package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -0
  163. package/{types → dist}/phaser/display/webgl/sprite_batch.d.ts +9 -32
  164. package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
  165. package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +9 -9
  166. package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
  167. package/dist/phaser/display/webgl/texture.d.ts +36 -0
  168. package/dist/phaser/display/webgl/texture.d.ts.map +1 -0
  169. package/dist/phaser/display/webgl/texture_util.d.ts +17 -0
  170. package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -0
  171. package/dist/phaser/display/webgl/util.d.ts +54 -0
  172. package/dist/phaser/display/webgl/util.d.ts.map +1 -0
  173. package/{types → dist}/phaser/geom/circle.d.ts +35 -41
  174. package/dist/phaser/geom/circle.d.ts.map +1 -0
  175. package/{types → dist}/phaser/geom/ellipse.d.ts +12 -18
  176. package/dist/phaser/geom/ellipse.d.ts.map +1 -0
  177. package/{types → dist}/phaser/geom/line.d.ts +20 -23
  178. package/dist/phaser/geom/line.d.ts.map +1 -0
  179. package/{types → dist}/phaser/geom/matrix.d.ts +21 -29
  180. package/dist/phaser/geom/matrix.d.ts.map +1 -0
  181. package/{types → dist}/phaser/geom/point.d.ts +30 -33
  182. package/dist/phaser/geom/point.d.ts.map +1 -0
  183. package/{types → dist}/phaser/geom/polygon.d.ts +18 -24
  184. package/dist/phaser/geom/polygon.d.ts.map +1 -0
  185. package/{types → dist}/phaser/geom/rectangle.d.ts +74 -79
  186. package/dist/phaser/geom/rectangle.d.ts.map +1 -0
  187. package/{types → dist}/phaser/geom/rounded_rectangle.d.ts +9 -9
  188. package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -0
  189. package/dist/phaser/geom/util/circle.d.ts +55 -0
  190. package/dist/phaser/geom/util/circle.d.ts.map +1 -0
  191. package/dist/phaser/geom/util/ellipse.d.ts +9 -0
  192. package/dist/phaser/geom/util/ellipse.d.ts.map +1 -0
  193. package/dist/phaser/geom/util/line.d.ts +42 -0
  194. package/dist/phaser/geom/util/line.d.ts.map +1 -0
  195. package/dist/phaser/geom/util/matrix.d.ts +18 -0
  196. package/dist/phaser/geom/util/matrix.d.ts.map +1 -0
  197. package/dist/phaser/geom/util/point.d.ts +159 -0
  198. package/dist/phaser/geom/util/point.d.ts.map +1 -0
  199. package/dist/phaser/geom/util/polygon.d.ts +8 -0
  200. package/dist/phaser/geom/util/polygon.d.ts.map +1 -0
  201. package/dist/phaser/geom/util/rectangle.d.ts +123 -0
  202. package/dist/phaser/geom/util/rectangle.d.ts.map +1 -0
  203. package/dist/phaser/geom/util/rounded_rectangle.d.ts +8 -0
  204. package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -0
  205. package/dist/phaser/util/math.d.ts +154 -0
  206. package/dist/phaser/util/math.d.ts.map +1 -0
  207. package/package.json +32 -25
  208. package/src/phaser/core/{animation.js → animation.ts} +2 -1
  209. package/src/phaser/core/{animation_manager.js → animation_manager.ts} +2 -1
  210. package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
  211. package/src/phaser/core/{cache.js → cache.ts} +2 -1
  212. package/src/phaser/core/{device.js → device.ts} +2 -1
  213. package/src/phaser/core/{dom.js → dom.ts} +7 -0
  214. package/src/phaser/core/{event_manager.js → event_manager.ts} +2 -1
  215. package/src/phaser/core/{factory.js → factory.ts} +1 -0
  216. package/src/phaser/core/{frame.js → frame.ts} +2 -1
  217. package/src/phaser/core/{frame_data.js → frame_data.ts} +2 -1
  218. package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
  219. package/src/phaser/core/{game.js → game.ts} +1 -0
  220. package/src/phaser/core/{input.js → input.ts} +1 -0
  221. package/src/phaser/core/{input_handler.js → input_handler.ts} +1 -0
  222. package/src/phaser/core/{input_mouse.js → input_mouse.ts} +1 -0
  223. package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +1 -0
  224. package/src/phaser/core/{input_pointer.js → input_pointer.ts} +1 -0
  225. package/src/phaser/core/{input_touch.js → input_touch.ts} +1 -0
  226. package/src/phaser/core/{loader.js → loader.ts} +2 -1
  227. package/src/phaser/core/{loader_parser.js → loader_parser.ts} +2 -1
  228. package/src/phaser/core/{raf.js → raf.ts} +3 -0
  229. package/src/phaser/core/{scale_manager.js → scale_manager.ts} +1 -0
  230. package/src/phaser/core/{scene.js → scene.ts} +1 -0
  231. package/src/phaser/core/{scene_manager.js → scene_manager.ts} +1 -0
  232. package/src/phaser/core/{signal.js → signal.ts} +7 -0
  233. package/src/phaser/core/{signal_binding.js → signal_binding.ts} +10 -0
  234. package/src/phaser/core/{sound.js → sound.ts} +2 -1
  235. package/src/phaser/core/{sound_manager.js → sound_manager.ts} +2 -1
  236. package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +2 -1
  237. package/src/phaser/core/{stage.js → stage.ts} +1 -0
  238. package/src/phaser/core/{time.js → time.ts} +2 -1
  239. package/src/phaser/core/{timer.js → timer.ts} +2 -1
  240. package/src/phaser/core/{timer_event.js → timer_event.ts} +2 -1
  241. package/src/phaser/core/{tween.js → tween.ts} +2 -1
  242. package/src/phaser/core/{tween_data.js → tween_data.ts} +2 -1
  243. package/src/phaser/core/{tween_manager.js → tween_manager.ts} +2 -1
  244. package/src/phaser/core/{world.js → world.ts} +1 -0
  245. package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +1 -0
  246. package/src/phaser/display/{button.js → button.ts} +1 -0
  247. package/src/phaser/display/canvas/{buffer.js → buffer.ts} +1 -0
  248. package/src/phaser/display/canvas/{graphics.js → graphics.ts} +1 -0
  249. package/src/phaser/display/canvas/{masker.js → masker.ts} +1 -0
  250. package/src/phaser/display/canvas/{pool.js → pool.ts} +1 -0
  251. package/src/phaser/display/canvas/{renderer.js → renderer.ts} +1 -0
  252. package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
  253. package/src/phaser/display/{display_object.js → display_object.ts} +1 -0
  254. package/src/phaser/display/{graphics.js → graphics.ts} +1 -0
  255. package/src/phaser/display/{graphics_data.js → graphics_data.ts} +1 -0
  256. package/src/phaser/display/{graphics_data_util.js → graphics_data_util.ts} +1 -0
  257. package/src/phaser/display/{group.js → group.ts} +1 -0
  258. package/src/phaser/display/{image.js → image.ts} +1 -0
  259. package/src/phaser/display/{sprite_batch.js → sprite_batch.ts} +1 -0
  260. package/src/phaser/display/{sprite_util.js → sprite_util.ts} +1 -0
  261. package/src/phaser/display/{text.js → text.ts} +1 -0
  262. package/src/phaser/display/webgl/{abstract_filter.js → abstract_filter.ts} +1 -0
  263. package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +1 -0
  264. package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +1 -0
  265. package/src/phaser/display/webgl/{earcut.js → earcut.ts} +2 -2
  266. package/src/phaser/display/webgl/{earcut_node.js → earcut_node.ts} +10 -0
  267. package/src/phaser/display/webgl/{fast_sprite_batch.js → fast_sprite_batch.ts} +1 -0
  268. package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +1 -0
  269. package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +1 -0
  270. package/src/phaser/display/webgl/{graphics.js → graphics.ts} +1 -0
  271. package/src/phaser/display/webgl/{graphics_data.js → graphics_data.ts} +1 -0
  272. package/src/phaser/display/webgl/{mask_manager.js → mask_manager.ts} +1 -0
  273. package/src/phaser/display/webgl/{render_texture.js → render_texture.ts} +1 -0
  274. package/src/phaser/display/webgl/{renderer.js → renderer.ts} +1 -0
  275. package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +1 -0
  276. package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +1 -0
  277. package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +1 -0
  278. package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +1 -0
  279. package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +1 -0
  280. package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +1 -0
  281. package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +1 -0
  282. package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +1 -0
  283. package/src/phaser/display/webgl/{texture.js → texture.ts} +1 -0
  284. package/src/phaser/display/webgl/{texture_util.js → texture_util.ts} +1 -0
  285. package/src/phaser/geom/{circle.js → circle.ts} +7 -1
  286. package/src/phaser/geom/{ellipse.js → ellipse.ts} +6 -0
  287. package/src/phaser/geom/{line.js → line.ts} +4 -0
  288. package/src/phaser/geom/{matrix.js → matrix.ts} +8 -0
  289. package/src/phaser/geom/{point.js → point.ts} +5 -1
  290. package/src/phaser/geom/{polygon.js → polygon.ts} +6 -0
  291. package/src/phaser/geom/{rectangle.js → rectangle.ts} +10 -4
  292. package/src/phaser/geom/{rounded_rectangle.js → rounded_rectangle.ts} +7 -0
  293. package/CHANGELOG.md +0 -264
  294. package/SECURITY.md +0 -5
  295. package/typedefs/global.d.ts +0 -7
  296. package/types/index.d.ts +0 -38
  297. package/types/index.d.ts.map +0 -1
  298. package/types/phaser/core/animation.d.ts.map +0 -1
  299. package/types/phaser/core/animation_manager.d.ts.map +0 -1
  300. package/types/phaser/core/animation_parser.d.ts +0 -4
  301. package/types/phaser/core/animation_parser.d.ts.map +0 -1
  302. package/types/phaser/core/array_set.d.ts.map +0 -1
  303. package/types/phaser/core/cache.d.ts.map +0 -1
  304. package/types/phaser/core/const.d.ts +0 -262
  305. package/types/phaser/core/const.d.ts.map +0 -1
  306. package/types/phaser/core/device.d.ts +0 -96
  307. package/types/phaser/core/device.d.ts.map +0 -1
  308. package/types/phaser/core/device_util.d.ts +0 -13
  309. package/types/phaser/core/device_util.d.ts.map +0 -1
  310. package/types/phaser/core/dom.d.ts +0 -180
  311. package/types/phaser/core/dom.d.ts.map +0 -1
  312. package/types/phaser/core/error_code.d.ts +0 -9
  313. package/types/phaser/core/error_code.d.ts.map +0 -1
  314. package/types/phaser/core/event_manager.d.ts.map +0 -1
  315. package/types/phaser/core/factory.d.ts.map +0 -1
  316. package/types/phaser/core/frame.d.ts.map +0 -1
  317. package/types/phaser/core/frame_data.d.ts.map +0 -1
  318. package/types/phaser/core/frame_util.d.ts +0 -5
  319. package/types/phaser/core/frame_util.d.ts.map +0 -1
  320. package/types/phaser/core/game.d.ts.map +0 -1
  321. package/types/phaser/core/input.d.ts +0 -219
  322. package/types/phaser/core/input.d.ts.map +0 -1
  323. package/types/phaser/core/input_handler.d.ts.map +0 -1
  324. package/types/phaser/core/input_mouse.d.ts +0 -86
  325. package/types/phaser/core/input_mouse.d.ts.map +0 -1
  326. package/types/phaser/core/input_mspointer.d.ts +0 -67
  327. package/types/phaser/core/input_mspointer.d.ts.map +0 -1
  328. package/types/phaser/core/input_pointer.d.ts +0 -170
  329. package/types/phaser/core/input_pointer.d.ts.map +0 -1
  330. package/types/phaser/core/input_touch.d.ts +0 -73
  331. package/types/phaser/core/input_touch.d.ts.map +0 -1
  332. package/types/phaser/core/loader.d.ts.map +0 -1
  333. package/types/phaser/core/loader_parser.d.ts +0 -5
  334. package/types/phaser/core/loader_parser.d.ts.map +0 -1
  335. package/types/phaser/core/raf.d.ts.map +0 -1
  336. package/types/phaser/core/scale_manager.d.ts.map +0 -1
  337. package/types/phaser/core/scene.d.ts.map +0 -1
  338. package/types/phaser/core/scene_manager.d.ts.map +0 -1
  339. package/types/phaser/core/signal.d.ts.map +0 -1
  340. package/types/phaser/core/signal_binding.d.ts.map +0 -1
  341. package/types/phaser/core/sound.d.ts.map +0 -1
  342. package/types/phaser/core/sound_manager.d.ts.map +0 -1
  343. package/types/phaser/core/sound_sprite.d.ts +0 -36
  344. package/types/phaser/core/sound_sprite.d.ts.map +0 -1
  345. package/types/phaser/core/stage.d.ts.map +0 -1
  346. package/types/phaser/core/time.d.ts.map +0 -1
  347. package/types/phaser/core/timer.d.ts.map +0 -1
  348. package/types/phaser/core/timer_event.d.ts.map +0 -1
  349. package/types/phaser/core/tween.d.ts.map +0 -1
  350. package/types/phaser/core/tween_data.d.ts.map +0 -1
  351. package/types/phaser/core/tween_easing.d.ts +0 -32
  352. package/types/phaser/core/tween_easing.d.ts.map +0 -1
  353. package/types/phaser/core/tween_manager.d.ts.map +0 -1
  354. package/types/phaser/core/world.d.ts.map +0 -1
  355. package/types/phaser/display/bitmap_text.d.ts.map +0 -1
  356. package/types/phaser/display/button.d.ts.map +0 -1
  357. package/types/phaser/display/canvas/buffer.d.ts.map +0 -1
  358. package/types/phaser/display/canvas/graphics.d.ts +0 -4
  359. package/types/phaser/display/canvas/graphics.d.ts.map +0 -1
  360. package/types/phaser/display/canvas/masker.d.ts +0 -3
  361. package/types/phaser/display/canvas/masker.d.ts.map +0 -1
  362. package/types/phaser/display/canvas/pool.d.ts +0 -11
  363. package/types/phaser/display/canvas/pool.d.ts.map +0 -1
  364. package/types/phaser/display/canvas/renderer.d.ts.map +0 -1
  365. package/types/phaser/display/canvas/tinter.d.ts +0 -7
  366. package/types/phaser/display/canvas/tinter.d.ts.map +0 -1
  367. package/types/phaser/display/canvas/util.d.ts +0 -10
  368. package/types/phaser/display/canvas/util.d.ts.map +0 -1
  369. package/types/phaser/display/display_object.d.ts.map +0 -1
  370. package/types/phaser/display/graphics.d.ts.map +0 -1
  371. package/types/phaser/display/graphics_data.d.ts.map +0 -1
  372. package/types/phaser/display/graphics_data_util.d.ts +0 -3
  373. package/types/phaser/display/graphics_data_util.d.ts.map +0 -1
  374. package/types/phaser/display/group.d.ts.map +0 -1
  375. package/types/phaser/display/image.d.ts.map +0 -1
  376. package/types/phaser/display/sprite_batch.d.ts +0 -4
  377. package/types/phaser/display/sprite_batch.d.ts.map +0 -1
  378. package/types/phaser/display/sprite_util.d.ts +0 -6
  379. package/types/phaser/display/sprite_util.d.ts.map +0 -1
  380. package/types/phaser/display/text.d.ts.map +0 -1
  381. package/types/phaser/display/webgl/abstract_filter.d.ts.map +0 -1
  382. package/types/phaser/display/webgl/base_texture.d.ts.map +0 -1
  383. package/types/phaser/display/webgl/blend_manager.d.ts.map +0 -1
  384. package/types/phaser/display/webgl/earcut.d.ts.map +0 -1
  385. package/types/phaser/display/webgl/earcut_node.d.ts.map +0 -1
  386. package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +0 -1
  387. package/types/phaser/display/webgl/filter_manager.d.ts.map +0 -1
  388. package/types/phaser/display/webgl/filter_texture.d.ts.map +0 -1
  389. package/types/phaser/display/webgl/graphics.d.ts +0 -16
  390. package/types/phaser/display/webgl/graphics.d.ts.map +0 -1
  391. package/types/phaser/display/webgl/graphics_data.d.ts +0 -27
  392. package/types/phaser/display/webgl/graphics_data.d.ts.map +0 -1
  393. package/types/phaser/display/webgl/mask_manager.d.ts +0 -3
  394. package/types/phaser/display/webgl/mask_manager.d.ts.map +0 -1
  395. package/types/phaser/display/webgl/render_texture.d.ts.map +0 -1
  396. package/types/phaser/display/webgl/renderer.d.ts +0 -87
  397. package/types/phaser/display/webgl/renderer.d.ts.map +0 -1
  398. package/types/phaser/display/webgl/shader/complex.d.ts +0 -33
  399. package/types/phaser/display/webgl/shader/complex.d.ts.map +0 -1
  400. package/types/phaser/display/webgl/shader/fast.d.ts +0 -36
  401. package/types/phaser/display/webgl/shader/fast.d.ts.map +0 -1
  402. package/types/phaser/display/webgl/shader/normal.d.ts +0 -52
  403. package/types/phaser/display/webgl/shader/normal.d.ts.map +0 -1
  404. package/types/phaser/display/webgl/shader/primitive.d.ts +0 -32
  405. package/types/phaser/display/webgl/shader/primitive.d.ts.map +0 -1
  406. package/types/phaser/display/webgl/shader/strip.d.ts +0 -33
  407. package/types/phaser/display/webgl/shader/strip.d.ts.map +0 -1
  408. package/types/phaser/display/webgl/shader_manager.d.ts +0 -44
  409. package/types/phaser/display/webgl/shader_manager.d.ts.map +0 -1
  410. package/types/phaser/display/webgl/sprite_batch.d.ts.map +0 -1
  411. package/types/phaser/display/webgl/stencil_manager.d.ts.map +0 -1
  412. package/types/phaser/display/webgl/texture.d.ts +0 -63
  413. package/types/phaser/display/webgl/texture.d.ts.map +0 -1
  414. package/types/phaser/display/webgl/texture_util.d.ts +0 -5
  415. package/types/phaser/display/webgl/texture_util.d.ts.map +0 -1
  416. package/types/phaser/display/webgl/util.d.ts +0 -15
  417. package/types/phaser/display/webgl/util.d.ts.map +0 -1
  418. package/types/phaser/geom/circle.d.ts.map +0 -1
  419. package/types/phaser/geom/ellipse.d.ts.map +0 -1
  420. package/types/phaser/geom/line.d.ts.map +0 -1
  421. package/types/phaser/geom/matrix.d.ts.map +0 -1
  422. package/types/phaser/geom/point.d.ts.map +0 -1
  423. package/types/phaser/geom/polygon.d.ts.map +0 -1
  424. package/types/phaser/geom/rectangle.d.ts.map +0 -1
  425. package/types/phaser/geom/rounded_rectangle.d.ts.map +0 -1
  426. package/types/phaser/geom/util/circle.d.ts +0 -10
  427. package/types/phaser/geom/util/circle.d.ts.map +0 -1
  428. package/types/phaser/geom/util/ellipse.d.ts +0 -2
  429. package/types/phaser/geom/util/ellipse.d.ts.map +0 -1
  430. package/types/phaser/geom/util/line.d.ts +0 -8
  431. package/types/phaser/geom/util/line.d.ts.map +0 -1
  432. package/types/phaser/geom/util/matrix.d.ts +0 -5
  433. package/types/phaser/geom/util/matrix.d.ts.map +0 -1
  434. package/types/phaser/geom/util/point.d.ts +0 -22
  435. package/types/phaser/geom/util/point.d.ts.map +0 -1
  436. package/types/phaser/geom/util/polygon.d.ts +0 -3
  437. package/types/phaser/geom/util/polygon.d.ts.map +0 -1
  438. package/types/phaser/geom/util/rectangle.d.ts +0 -19
  439. package/types/phaser/geom/util/rectangle.d.ts.map +0 -1
  440. package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -3
  441. package/types/phaser/geom/util/rounded_rectangle.d.ts.map +0 -1
  442. package/types/phaser/util/math.d.ts +0 -58
  443. package/types/phaser/util/math.d.ts.map +0 -1
  444. /package/src/{index.js → index.ts} +0 -0
  445. /package/src/phaser/core/{animation_parser.js → animation_parser.ts} +0 -0
  446. /package/src/phaser/core/{const.js → const.ts} +0 -0
  447. /package/src/phaser/core/{device_util.js → device_util.ts} +0 -0
  448. /package/src/phaser/core/{error_code.js → error_code.ts} +0 -0
  449. /package/src/phaser/core/{signal.test.js → signal.test.ts} +0 -0
  450. /package/src/phaser/core/{tween_easing.js → tween_easing.ts} +0 -0
  451. /package/src/phaser/display/canvas/{util.js → util.ts} +0 -0
  452. /package/src/phaser/display/webgl/{util.js → util.ts} +0 -0
  453. /package/src/phaser/geom/{circle.test.js → circle.test.ts} +0 -0
  454. /package/src/phaser/geom/{ellipse.test.js → ellipse.test.ts} +0 -0
  455. /package/src/phaser/geom/{line.test.js → line.test.ts} +0 -0
  456. /package/src/phaser/geom/{matrix.test.js → matrix.test.ts} +0 -0
  457. /package/src/phaser/geom/{point.test.js → point.test.ts} +0 -0
  458. /package/src/phaser/geom/{rectangle.test.js → rectangle.test.ts} +0 -0
  459. /package/src/phaser/geom/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  460. /package/src/phaser/geom/util/{circle.test.js → circle.test.ts} +0 -0
  461. /package/src/phaser/geom/util/{circle.js → circle.ts} +0 -0
  462. /package/src/phaser/geom/util/{ellipse.test.js → ellipse.test.ts} +0 -0
  463. /package/src/phaser/geom/util/{ellipse.js → ellipse.ts} +0 -0
  464. /package/src/phaser/geom/util/{line.test.js → line.test.ts} +0 -0
  465. /package/src/phaser/geom/util/{line.js → line.ts} +0 -0
  466. /package/src/phaser/geom/util/{matrix.test.js → matrix.test.ts} +0 -0
  467. /package/src/phaser/geom/util/{matrix.js → matrix.ts} +0 -0
  468. /package/src/phaser/geom/util/{point.test.js → point.test.ts} +0 -0
  469. /package/src/phaser/geom/util/{point.js → point.ts} +0 -0
  470. /package/src/phaser/geom/util/{polygon.test.js → polygon.test.ts} +0 -0
  471. /package/src/phaser/geom/util/{polygon.js → polygon.ts} +0 -0
  472. /package/src/phaser/geom/util/{rectangle.test.js → rectangle.test.ts} +0 -0
  473. /package/src/phaser/geom/util/{rectangle.js → rectangle.ts} +0 -0
  474. /package/src/phaser/geom/util/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
  475. /package/src/phaser/geom/util/{rounded_rectangle.js → rounded_rectangle.ts} +0 -0
  476. /package/src/phaser/util/{math.test.js → math.test.ts} +0 -0
  477. /package/src/phaser/util/{math.js → math.ts} +0 -0
@@ -1,38 +1,22 @@
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 {
12
15
  /**
13
16
  * Creates a new Cache instance.
14
17
  * @param {import('./game.js').Game} game - The game instance.
15
18
  */
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: {}[];
19
+ constructor(game: any);
36
20
  /**
37
21
  * Adds the default image to the cache.
38
22
  */
@@ -48,7 +32,14 @@ export class Cache {
48
32
  * @param {HTMLImageElement} data - The image data to cache.
49
33
  * @returns {object} The cached image object.
50
34
  */
51
- addImage(key: string, url: string, data: HTMLImageElement): object;
35
+ addImage(key: any, url: any, data: any): {
36
+ key: any;
37
+ url: any;
38
+ data: any;
39
+ base: BaseTexture;
40
+ frame: Frame;
41
+ frameData: FrameData;
42
+ };
52
43
  /**
53
44
  * Adds a texture atlas to the cache.
54
45
  * @param {string} key - The unique key for this cache entry.
@@ -56,21 +47,21 @@ export class Cache {
56
47
  * @param {HTMLCanvasElement} data - The canvas data for the atlas.
57
48
  * @param {object} atlasData - The atlas data to cache.
58
49
  */
59
- addTextureAtlas(key: string, url: string, data: HTMLCanvasElement, atlasData: object): void;
50
+ addTextureAtlas(key: any, url: any, data: any, atlasData: any): void;
60
51
  /**
61
52
  * Adds sound data to the cache.
62
53
  * @param {string} key - The unique key for this cache entry.
63
54
  * @param {string} url - The URL the sound was loaded from.
64
55
  * @param {object} data - The sound data to cache.
65
56
  */
66
- addSound(key: string, url: string, data: object): void;
57
+ addSound(key: any, url: any, data: any): void;
67
58
  /**
68
59
  * Adds text data to the cache.
69
60
  * @param {string} key - The unique key for this cache entry.
70
61
  * @param {string} url - The URL the text was loaded from.
71
62
  * @param {string} data - The text data to cache.
72
63
  */
73
- addText(key: string, url: string, data: string): void;
64
+ addText(key: any, url: any, data: any): void;
74
65
  /**
75
66
  * Adds a bitmap font to the cache.
76
67
  * @param {string} key - The unique key for this cache entry.
@@ -81,113 +72,113 @@ export class Cache {
81
72
  * @param {number} xSpacing - Horizontal spacing between characters.
82
73
  * @param {number} ySpacing - Vertical spacing between characters.
83
74
  */
84
- addBitmapFont(key: string, url: string, data: HTMLCanvasElement, atlasData: object, atlasType: string, xSpacing?: number, ySpacing?: number): void;
75
+ addBitmapFont(key: any, url: any, data: any, atlasData: any, atlasType: any, xSpacing?: number, ySpacing?: number): void;
85
76
  /**
86
77
  * Adds JSON data to the cache.
87
78
  * @param {string} key - The unique key for this cache entry.
88
79
  * @param {string} url - The URL the JSON was loaded from.
89
80
  * @param {object} data - The JSON data to cache.
90
81
  */
91
- addJSON(key: string, url: string, data: object): void;
82
+ addJSON(key: any, url: any, data: any): void;
92
83
  /**
93
84
  * Adds XML data to the cache.
94
85
  * @param {string} key - The unique key for this cache entry.
95
86
  * @param {string} url - The URL the XML was loaded from.
96
87
  * @param {XMLDocument} data - The XML data to cache.
97
88
  */
98
- addXML(key: string, url: string, data: XMLDocument): void;
89
+ addXML(key: any, url: any, data: any): void;
99
90
  /**
100
91
  * Updates a sound property in the cache.
101
92
  * @param {string} key - The unique key for the cached sound.
102
93
  * @param {string} property - The property to update.
103
94
  * @param {any} value - The new value for the property.
104
95
  */
105
- updateSound(key: string, property: string, value: any): void;
96
+ updateSound(key: any, property: any, value: any): void;
106
97
  /**
107
98
  * Marks a sound as decoded in the cache.
108
99
  * @param {string} key - The unique key for the cached sound.
109
100
  * @param {AudioBuffer} data - The decoded audio buffer.
110
101
  */
111
- decodedSound(key: string, data: AudioBuffer): void;
102
+ decodedSound(key: any, data: any): void;
112
103
  /**
113
104
  * Checks if a sound has been decoded in the cache.
114
105
  * @param {string} key - The unique key for the cached sound.
115
106
  * @returns {boolean} True if the sound is decoded, false otherwise.
116
107
  */
117
- isSoundDecoded(key: string): boolean;
108
+ isSoundDecoded(key: any): any;
118
109
  /**
119
110
  * Checks if a sound is ready to play (decoded and not locked).
120
111
  * @param {string} key - The unique key for the cached sound.
121
112
  * @returns {boolean} True if the sound is ready, false otherwise.
122
113
  */
123
- isSoundReady(key: string): boolean;
114
+ isSoundReady(key: any): boolean;
124
115
  /**
125
116
  * Checks if a cache entry exists.
126
117
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
127
118
  * @param {string} key - The unique key for the cache entry.
128
119
  * @returns {boolean} True if the entry exists, false otherwise.
129
120
  */
130
- checkKey(cache: number, key: string): boolean;
121
+ checkKey(cache: any, key: any): boolean;
131
122
  /**
132
123
  * Checks if a URL has been resolved and cached.
133
124
  * @param {string} url - The URL to check.
134
125
  * @returns {boolean} True if the URL has been resolved and cached, false otherwise.
135
126
  */
136
- checkURL(url: string): boolean;
127
+ checkURL(url: any): boolean;
137
128
  /**
138
129
  * Checks if a canvas cache entry exists.
139
130
  * @param {string} key - The unique key for the cache entry.
140
131
  * @returns {boolean} True if the entry exists, false otherwise.
141
132
  */
142
- checkCanvasKey(key: string): boolean;
133
+ checkCanvasKey(key: any): boolean;
143
134
  /**
144
135
  * Checks if an image cache entry exists.
145
136
  * @param {string} key - The unique key for the cache entry.
146
137
  * @returns {boolean} True if the entry exists, false otherwise.
147
138
  */
148
- checkImageKey(key: string): boolean;
139
+ checkImageKey(key: any): boolean;
149
140
  /**
150
141
  * Checks if a texture cache entry exists.
151
142
  * @param {string} key - The unique key for the cache entry.
152
143
  * @returns {boolean} True if the entry exists, false otherwise.
153
144
  */
154
- checkTextureKey(key: string): boolean;
145
+ checkTextureKey(key: any): boolean;
155
146
  /**
156
147
  * Checks if a sound cache entry exists.
157
148
  * @param {string} key - The unique key for the cache entry.
158
149
  * @returns {boolean} True if the entry exists, false otherwise.
159
150
  */
160
- checkSoundKey(key: string): boolean;
151
+ checkSoundKey(key: any): boolean;
161
152
  /**
162
153
  * Checks if a text cache entry exists.
163
154
  * @param {string} key - The unique key for the cache entry.
164
155
  * @returns {boolean} True if the entry exists, false otherwise.
165
156
  */
166
- checkTextKey(key: string): boolean;
157
+ checkTextKey(key: any): boolean;
167
158
  /**
168
159
  * Checks if a bitmap data cache entry exists.
169
160
  * @param {string} key - The unique key for the cache entry.
170
161
  * @returns {boolean} True if the entry exists, false otherwise.
171
162
  */
172
- checkBitmapDataKey(key: string): boolean;
163
+ checkBitmapDataKey(key: any): boolean;
173
164
  /**
174
165
  * Checks if a bitmap font cache entry exists.
175
166
  * @param {string} key - The unique key for the cache entry.
176
167
  * @returns {boolean} True if the entry exists, false otherwise.
177
168
  */
178
- checkBitmapFontKey(key: string): boolean;
169
+ checkBitmapFontKey(key: any): boolean;
179
170
  /**
180
171
  * Checks if a JSON cache entry exists.
181
172
  * @param {string} key - The unique key for the cache entry.
182
173
  * @returns {boolean} True if the entry exists, false otherwise.
183
174
  */
184
- checkJSONKey(key: string): boolean;
175
+ checkJSONKey(key: any): boolean;
185
176
  /**
186
177
  * Checks if an XML cache entry exists.
187
178
  * @param {string} key - The unique key for the cache entry.
188
179
  * @returns {boolean} True if the entry exists, false otherwise.
189
180
  */
190
- checkXMLKey(key: string): boolean;
181
+ checkXMLKey(key: any): boolean;
191
182
  /**
192
183
  * TBD.
193
184
  * @param {string} key - TBD.
@@ -196,117 +187,117 @@ export class Cache {
196
187
  * @param {string} property - TBD.
197
188
  * @returns {*} TBD.
198
189
  */
199
- getItem(key: string, cache: number, method: string, property?: string): any;
190
+ getItem(key: any, cache: any, method: any, property?: any): any;
200
191
  /**
201
192
  * TBD.
202
193
  * @param {string} key - TBD.
203
194
  * @returns {HTMLCanvasElement} TBD.
204
195
  */
205
- getCanvas(key: string): HTMLCanvasElement;
196
+ getCanvas(key: any): any;
206
197
  /**
207
198
  * TBD.
208
199
  * @param {string} key - TBD.
209
200
  * @param {boolean} full - TBD.
210
201
  * @returns {HTMLImageElement} TBD.
211
202
  */
212
- getImage(key?: string, full?: boolean): HTMLImageElement;
203
+ getImage(key?: string, full?: boolean): any;
213
204
  /**
214
205
  * TBD.
215
206
  * @param {string} key - TBD.
216
207
  * @returns {object} TBD.
217
208
  */
218
- getTextureFrame(key: string): object;
209
+ getTextureFrame(key: any): any;
219
210
  /**
220
211
  * TBD.
221
212
  * @param {string} key - TBD.
222
213
  * @returns {object} TBD.
223
214
  */
224
- getSound(key: string): object;
215
+ getSound(key: any): any;
225
216
  /**
226
217
  * TBD.
227
218
  * @param {string} key - TBD.
228
219
  * @returns {object} TBD.
229
220
  */
230
- getSoundData(key: string): object;
221
+ getSoundData(key: any): any;
231
222
  /**
232
223
  * TBD.
233
224
  * @param {string} key - TBD.
234
225
  * @returns {object} TBD.
235
226
  */
236
- getText(key: string): object;
227
+ getText(key: any): any;
237
228
  /**
238
229
  * TBD.
239
230
  * @param {string} key - TBD.
240
231
  * @returns {object} TBD.
241
232
  */
242
- getBitmapData(key: string): object;
233
+ getBitmapData(key: any): any;
243
234
  /**
244
235
  * TBD.
245
236
  * @param {string} key - TBD.
246
237
  * @returns {object} TBD.
247
238
  */
248
- getBitmapFont(key: string): object;
239
+ getBitmapFont(key: any): any;
249
240
  /**
250
241
  * TBD.
251
242
  * @param {string} key - TBD.
252
243
  * @param {boolean} isClone - TBD.
253
244
  * @returns {object} TBD.
254
245
  */
255
- getJSON(key: string, isClone?: boolean): object;
246
+ getJSON(key: any, isClone?: boolean): any;
256
247
  /**
257
248
  * TBD.
258
249
  * @param {string} key - TBD.
259
250
  * @returns {XMLDocument} TBD.
260
251
  */
261
- getXML(key: string): XMLDocument;
252
+ getXML(key: any): any;
262
253
  /**
263
254
  * TBD.
264
255
  * @param {string} key - TBD.
265
256
  * @returns {import('../display/webgl/render_texture.js').RenderTexture} TBD.
266
257
  */
267
- getRenderTexture(key: string): import("../display/webgl/render_texture.js").RenderTexture;
258
+ getRenderTexture(key: any): any;
268
259
  /**
269
260
  * Gets the base texture of a cache entry.
270
261
  * @param {string} key - The unique key for the cache entry.
271
262
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
272
263
  * @returns {BaseTexture} The base texture.
273
264
  */
274
- getBaseTexture(key: string, cache?: number): BaseTexture;
265
+ getBaseTexture(key: any, cache?: number): any;
275
266
  /**
276
267
  * Gets a frame from the cache.
277
268
  * @param {string} key - The unique key for the cache entry.
278
269
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
279
270
  * @returns {Frame} The frame.
280
271
  */
281
- getFrame(key: string, cache?: number): Frame;
272
+ getFrame(key: any, cache?: number): any;
282
273
  /**
283
274
  * Gets the frame count of a cache entry.
284
275
  * @param {string} key - The unique key for the cache entry.
285
276
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
286
277
  * @returns {number} The number of frames.
287
278
  */
288
- getFrameCount(key: string, cache?: number): number;
279
+ getFrameCount(key: any, cache?: number): any;
289
280
  /**
290
281
  * Gets the frame data of a cache entry.
291
282
  * @param {string} key - The unique key for the cache entry.
292
283
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
293
284
  * @returns {FrameData} The frame data.
294
285
  */
295
- getFrameData(key: string, cache?: number): FrameData;
286
+ getFrameData(key: any, cache?: number): any;
296
287
  /**
297
288
  * Checks if a cache entry has frame data.
298
289
  * @param {string} key - The unique key for the cache entry.
299
290
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
300
291
  * @returns {boolean} True if the entry has frame data, false otherwise.
301
292
  */
302
- hasFrameData(key: string, cache?: number): boolean;
293
+ hasFrameData(key: any, cache?: number): boolean;
303
294
  /**
304
295
  * Updates the frame data of a cache entry.
305
296
  * @param {string} key - The unique key for the cache entry.
306
297
  * @param {FrameData} frameData - The new frame data.
307
298
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
308
299
  */
309
- updateFrameData(key: string, frameData: FrameData, cache?: number): void;
300
+ updateFrameData(key: any, frameData: any, cache?: number): void;
310
301
  /**
311
302
  * Gets a frame by index from the cache.
312
303
  * @param {string} key - The unique key for the cache entry.
@@ -314,7 +305,7 @@ export class Cache {
314
305
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
315
306
  * @returns {Frame} The frame at the specified index.
316
307
  */
317
- getFrameByIndex(key: string, index: number, cache?: number): Frame;
308
+ getFrameByIndex(key: any, index: any, cache?: number): any;
318
309
  /**
319
310
  * Gets a frame by name from the cache.
320
311
  * @param {string} key - The unique key for the cache entry.
@@ -322,75 +313,75 @@ export class Cache {
322
313
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
323
314
  * @returns {Frame} The frame with the specified name.
324
315
  */
325
- getFrameByName(key: string, name: string, cache?: number): Frame;
316
+ getFrameByName(key: any, name: any, cache?: number): any;
326
317
  /**
327
318
  * Gets the resolved URL from cache.
328
319
  * @param {string} url - The original URL to resolve.
329
320
  * @returns {string} The resolved URL or null if not found.
330
321
  */
331
- getURL(url: string): string;
322
+ getURL(url: any): any;
332
323
  /**
333
324
  * Gets all keys from a cache type.
334
325
  * @param {object} cache - The cache type (CANVAS, IMAGE, etc.).
335
326
  * @returns {string[]} An array of cache keys.
336
327
  */
337
- getKeys(cache?: object): string[];
328
+ getKeys(cache?: number): any[];
338
329
  /**
339
330
  * Removes a canvas cache entry.
340
331
  * @param {string} key - The unique key for the cache entry to remove.
341
332
  */
342
- removeCanvas(key: string): void;
333
+ removeCanvas(key: any): void;
343
334
  /**
344
335
  * Removes an image cache entry.
345
336
  * @param {string} key - The unique key for the cache entry to remove.
346
337
  * @param {boolean} destroyBaseTexture - Whether to destroy the base texture (default: true).
347
338
  */
348
- removeImage(key: string, destroyBaseTexture?: boolean): void;
339
+ removeImage(key: any, destroyBaseTexture?: boolean): void;
349
340
  /**
350
341
  * Removes a sound cache entry.
351
342
  * @param {string} key - The unique key for the cache entry to remove.
352
343
  */
353
- removeSound(key: string): void;
344
+ removeSound(key: any): void;
354
345
  /**
355
346
  * Removes a text cache entry.
356
347
  * @param {string} key - The unique key for the cache entry to remove.
357
348
  */
358
- removeText(key: string): void;
349
+ removeText(key: any): void;
359
350
  /**
360
351
  * Removes a bitmap data cache entry.
361
352
  * @param {string} key - The unique key for the cache entry to remove.
362
353
  */
363
- removeBitmapData(key: string): void;
354
+ removeBitmapData(key: any): void;
364
355
  /**
365
356
  * Removes a bitmap font cache entry.
366
357
  * @param {string} key - The unique key for the cache entry to remove.
367
358
  */
368
- removeBitmapFont(key: string): void;
359
+ removeBitmapFont(key: any): void;
369
360
  /**
370
361
  * Removes a JSON cache entry.
371
362
  * @param {string} key - The unique key for the cache entry to remove.
372
363
  */
373
- removeJSON(key: string): void;
364
+ removeJSON(key: any): void;
374
365
  /**
375
366
  * Removes an XML cache entry.
376
367
  * @param {string} key - The unique key for the cache entry to remove.
377
368
  */
378
- removeXML(key: string): void;
369
+ removeXML(key: any): void;
379
370
  /**
380
371
  * Removes a render texture cache entry.
381
372
  * @param {string} key - The unique key for the cache entry to remove.
382
373
  */
383
- removeRenderTexture(key: string): void;
374
+ removeRenderTexture(key: any): void;
384
375
  /**
385
376
  * Removes a sprite sheet cache entry.
386
377
  * @param {string} key - The unique key for the cache entry to remove.
387
378
  */
388
- removeSpriteSheet(key: string): void;
379
+ removeSpriteSheet(key: any): void;
389
380
  /**
390
381
  * Removes a texture atlas cache entry.
391
382
  * @param {string} key - The unique key for the cache entry to remove.
392
383
  */
393
- removeTextureAtlas(key: string): void;
384
+ removeTextureAtlas(key: any): void;
394
385
  /**
395
386
  * Clears all GL textures from the cache.
396
387
  */
@@ -401,14 +392,10 @@ export class Cache {
401
392
  * @param {object} data - The data to associate with the resolved URL.
402
393
  * @returns {string} The resolved URL or null if not enabled.
403
394
  */
404
- _resolveURL(url: string, data: object): string;
395
+ _resolveURL(url: any, data: any): any;
405
396
  /**
406
397
  * Destroys the cache and cleans up resources.
407
398
  */
408
399
  destroy(): void;
409
400
  }
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
401
  //# 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,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,KAAK,IAAI,CAAC;AACvB,eAAO,MAAM,OAAO,IAAI,CAAC;AACzB,eAAO,MAAM,KAAK,IAAI,CAAC;AACvB,eAAO,MAAM,IAAI,IAAI,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