@vpmedia/phaser 1.104.0 → 1.105.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 (297) hide show
  1. package/dist/index.js +151 -574
  2. package/dist/index.js.map +1 -1
  3. package/dist/phaser/core/animation.d.ts +35 -57
  4. package/dist/phaser/core/animation.d.ts.map +1 -1
  5. package/dist/phaser/core/animation_manager.d.ts +11 -10
  6. package/dist/phaser/core/animation_manager.d.ts.map +1 -1
  7. package/dist/phaser/core/animation_parser.d.ts +2 -2
  8. package/dist/phaser/core/animation_parser.d.ts.map +1 -1
  9. package/dist/phaser/core/array_set.d.ts +3 -3
  10. package/dist/phaser/core/array_set.d.ts.map +1 -1
  11. package/dist/phaser/core/cache.d.ts +60 -60
  12. package/dist/phaser/core/cache.d.ts.map +1 -1
  13. package/dist/phaser/core/device.d.ts.map +1 -1
  14. package/dist/phaser/core/device_util.d.ts +10 -10
  15. package/dist/phaser/core/device_util.d.ts.map +1 -1
  16. package/dist/phaser/core/dom.d.ts +6 -5
  17. package/dist/phaser/core/dom.d.ts.map +1 -1
  18. package/dist/phaser/core/event_manager.d.ts +49 -174
  19. package/dist/phaser/core/event_manager.d.ts.map +1 -1
  20. package/dist/phaser/core/factory.d.ts +7 -7
  21. package/dist/phaser/core/factory.d.ts.map +1 -1
  22. package/dist/phaser/core/frame.d.ts +27 -48
  23. package/dist/phaser/core/frame.d.ts.map +1 -1
  24. package/dist/phaser/core/frame_data.d.ts +11 -60
  25. package/dist/phaser/core/frame_data.d.ts.map +1 -1
  26. package/dist/phaser/core/frame_util.d.ts +4 -14
  27. package/dist/phaser/core/frame_util.d.ts.map +1 -1
  28. package/dist/phaser/core/game.d.ts +49 -58
  29. package/dist/phaser/core/game.d.ts.map +1 -1
  30. package/dist/phaser/core/input.d.ts +15 -13
  31. package/dist/phaser/core/input.d.ts.map +1 -1
  32. package/dist/phaser/core/input_handler.d.ts +23 -20
  33. package/dist/phaser/core/input_handler.d.ts.map +1 -1
  34. package/dist/phaser/core/input_mouse.d.ts +26 -1
  35. package/dist/phaser/core/input_mouse.d.ts.map +1 -1
  36. package/dist/phaser/core/input_mspointer.d.ts +2 -2
  37. package/dist/phaser/core/input_mspointer.d.ts.map +1 -1
  38. package/dist/phaser/core/input_pointer.d.ts +9 -9
  39. package/dist/phaser/core/input_pointer.d.ts.map +1 -1
  40. package/dist/phaser/core/input_touch.d.ts +2 -1
  41. package/dist/phaser/core/input_touch.d.ts.map +1 -1
  42. package/dist/phaser/core/loader.d.ts +28 -28
  43. package/dist/phaser/core/loader.d.ts.map +1 -1
  44. package/dist/phaser/core/loader_parser.d.ts +4 -4
  45. package/dist/phaser/core/loader_parser.d.ts.map +1 -1
  46. package/dist/phaser/core/raf.d.ts +2 -2
  47. package/dist/phaser/core/raf.d.ts.map +1 -1
  48. package/dist/phaser/core/scale_manager.d.ts +22 -17
  49. package/dist/phaser/core/scale_manager.d.ts.map +1 -1
  50. package/dist/phaser/core/scene.d.ts +1 -1
  51. package/dist/phaser/core/scene.d.ts.map +1 -1
  52. package/dist/phaser/core/scene_manager.d.ts +10 -9
  53. package/dist/phaser/core/scene_manager.d.ts.map +1 -1
  54. package/dist/phaser/core/signal.d.ts +9 -8
  55. package/dist/phaser/core/signal.d.ts.map +1 -1
  56. package/dist/phaser/core/signal_binding.d.ts +2 -2
  57. package/dist/phaser/core/signal_binding.d.ts.map +1 -1
  58. package/dist/phaser/core/sound.d.ts +56 -101
  59. package/dist/phaser/core/sound.d.ts.map +1 -1
  60. package/dist/phaser/core/sound_manager.d.ts +11 -9
  61. package/dist/phaser/core/sound_manager.d.ts.map +1 -1
  62. package/dist/phaser/core/sound_sprite.d.ts +4 -4
  63. package/dist/phaser/core/sound_sprite.d.ts.map +1 -1
  64. package/dist/phaser/core/stage.d.ts +3 -3
  65. package/dist/phaser/core/stage.d.ts.map +1 -1
  66. package/dist/phaser/core/time.d.ts +5 -5
  67. package/dist/phaser/core/time.d.ts.map +1 -1
  68. package/dist/phaser/core/timer.d.ts +10 -10
  69. package/dist/phaser/core/timer.d.ts.map +1 -1
  70. package/dist/phaser/core/timer_event.d.ts +11 -21
  71. package/dist/phaser/core/timer_event.d.ts.map +1 -1
  72. package/dist/phaser/core/tween.d.ts +37 -59
  73. package/dist/phaser/core/tween.d.ts.map +1 -1
  74. package/dist/phaser/core/tween_data.d.ts +6 -5
  75. package/dist/phaser/core/tween_data.d.ts.map +1 -1
  76. package/dist/phaser/core/tween_easing.d.ts +31 -31
  77. package/dist/phaser/core/tween_easing.d.ts.map +1 -1
  78. package/dist/phaser/core/tween_manager.d.ts +4 -4
  79. package/dist/phaser/core/tween_manager.d.ts.map +1 -1
  80. package/dist/phaser/core/world.d.ts +1 -1
  81. package/dist/phaser/core/world.d.ts.map +1 -1
  82. package/dist/phaser/display/bitmap_text.d.ts +22 -20
  83. package/dist/phaser/display/bitmap_text.d.ts.map +1 -1
  84. package/dist/phaser/display/button.d.ts +23 -35
  85. package/dist/phaser/display/button.d.ts.map +1 -1
  86. package/dist/phaser/display/canvas/buffer.d.ts +2 -2
  87. package/dist/phaser/display/canvas/buffer.d.ts.map +1 -1
  88. package/dist/phaser/display/canvas/graphics.d.ts +3 -3
  89. package/dist/phaser/display/canvas/graphics.d.ts.map +1 -1
  90. package/dist/phaser/display/canvas/masker.d.ts.map +1 -1
  91. package/dist/phaser/display/canvas/pool.d.ts +2 -2
  92. package/dist/phaser/display/canvas/pool.d.ts.map +1 -1
  93. package/dist/phaser/display/canvas/renderer.d.ts +5 -5
  94. package/dist/phaser/display/canvas/renderer.d.ts.map +1 -1
  95. package/dist/phaser/display/canvas/tinter.d.ts +3 -3
  96. package/dist/phaser/display/canvas/tinter.d.ts.map +1 -1
  97. package/dist/phaser/display/canvas/util.d.ts +9 -9
  98. package/dist/phaser/display/canvas/util.d.ts.map +1 -1
  99. package/dist/phaser/display/display_object.d.ts +45 -42
  100. package/dist/phaser/display/display_object.d.ts.map +1 -1
  101. package/dist/phaser/display/graphics.d.ts +24 -16
  102. package/dist/phaser/display/graphics.d.ts.map +1 -1
  103. package/dist/phaser/display/graphics_data.d.ts +1 -1
  104. package/dist/phaser/display/graphics_data.d.ts.map +1 -1
  105. package/dist/phaser/display/graphics_data_util.d.ts +1 -1
  106. package/dist/phaser/display/graphics_data_util.d.ts.map +1 -1
  107. package/dist/phaser/display/group.d.ts +24 -37
  108. package/dist/phaser/display/group.d.ts.map +1 -1
  109. package/dist/phaser/display/image.d.ts +34 -49
  110. package/dist/phaser/display/image.d.ts.map +1 -1
  111. package/dist/phaser/display/sprite_batch.d.ts +1 -1
  112. package/dist/phaser/display/sprite_batch.d.ts.map +1 -1
  113. package/dist/phaser/display/sprite_util.d.ts +5 -5
  114. package/dist/phaser/display/sprite_util.d.ts.map +1 -1
  115. package/dist/phaser/display/text.d.ts +86 -66
  116. package/dist/phaser/display/text.d.ts.map +1 -1
  117. package/dist/phaser/display/webgl/abstract_filter.d.ts +2 -1
  118. package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
  119. package/dist/phaser/display/webgl/base_texture.d.ts +2 -2
  120. package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -1
  121. package/dist/phaser/display/webgl/blend_manager.d.ts +3 -2
  122. package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -1
  123. package/dist/phaser/display/webgl/earcut.d.ts +10 -10
  124. package/dist/phaser/display/webgl/earcut.d.ts.map +1 -1
  125. package/dist/phaser/display/webgl/earcut_node.d.ts +1 -1
  126. package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -1
  127. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts +2 -1
  128. package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
  129. package/dist/phaser/display/webgl/filter_manager.d.ts +2 -1
  130. package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -1
  131. package/dist/phaser/display/webgl/filter_texture.d.ts +3 -2
  132. package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -1
  133. package/dist/phaser/display/webgl/graphics.d.ts +11 -10
  134. package/dist/phaser/display/webgl/graphics.d.ts.map +1 -1
  135. package/dist/phaser/display/webgl/graphics_data.d.ts +2 -1
  136. package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -1
  137. package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -1
  138. package/dist/phaser/display/webgl/render_texture.d.ts +2 -1
  139. package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -1
  140. package/dist/phaser/display/webgl/renderer.d.ts +8 -6
  141. package/dist/phaser/display/webgl/renderer.d.ts.map +1 -1
  142. package/dist/phaser/display/webgl/shader/complex.d.ts +2 -1
  143. package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -1
  144. package/dist/phaser/display/webgl/shader/fast.d.ts +2 -1
  145. package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -1
  146. package/dist/phaser/display/webgl/shader/normal.d.ts +1 -0
  147. package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -1
  148. package/dist/phaser/display/webgl/shader/primitive.d.ts +2 -1
  149. package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
  150. package/dist/phaser/display/webgl/shader/strip.d.ts +2 -1
  151. package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -1
  152. package/dist/phaser/display/webgl/shader_manager.d.ts +4 -2
  153. package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -1
  154. package/dist/phaser/display/webgl/sprite_batch.d.ts +3 -2
  155. package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
  156. package/dist/phaser/display/webgl/stencil_manager.d.ts +5 -4
  157. package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
  158. package/dist/phaser/display/webgl/texture.d.ts +15 -2
  159. package/dist/phaser/display/webgl/texture.d.ts.map +1 -1
  160. package/dist/phaser/display/webgl/texture_util.d.ts +2 -2
  161. package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -1
  162. package/dist/phaser/display/webgl/util.d.ts +6 -6
  163. package/dist/phaser/display/webgl/util.d.ts.map +1 -1
  164. package/dist/phaser/geom/circle.d.ts +11 -10
  165. package/dist/phaser/geom/circle.d.ts.map +1 -1
  166. package/dist/phaser/geom/ellipse.d.ts +6 -5
  167. package/dist/phaser/geom/ellipse.d.ts.map +1 -1
  168. package/dist/phaser/geom/line.d.ts +14 -14
  169. package/dist/phaser/geom/line.d.ts.map +1 -1
  170. package/dist/phaser/geom/matrix.d.ts +13 -12
  171. package/dist/phaser/geom/matrix.d.ts.map +1 -1
  172. package/dist/phaser/geom/point.d.ts +19 -19
  173. package/dist/phaser/geom/point.d.ts.map +1 -1
  174. package/dist/phaser/geom/polygon.d.ts +6 -6
  175. package/dist/phaser/geom/polygon.d.ts.map +1 -1
  176. package/dist/phaser/geom/rectangle.d.ts +20 -20
  177. package/dist/phaser/geom/rectangle.d.ts.map +1 -1
  178. package/dist/phaser/geom/rounded_rectangle.d.ts +2 -2
  179. package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -1
  180. package/dist/phaser/geom/util/circle.d.ts +9 -7
  181. package/dist/phaser/geom/util/circle.d.ts.map +1 -1
  182. package/dist/phaser/geom/util/ellipse.d.ts +1 -1
  183. package/dist/phaser/geom/util/ellipse.d.ts.map +1 -1
  184. package/dist/phaser/geom/util/line.d.ts +5 -3
  185. package/dist/phaser/geom/util/line.d.ts.map +1 -1
  186. package/dist/phaser/geom/util/matrix.d.ts +2 -1
  187. package/dist/phaser/geom/util/matrix.d.ts.map +1 -1
  188. package/dist/phaser/geom/util/point.d.ts +19 -19
  189. package/dist/phaser/geom/util/point.d.ts.map +1 -1
  190. package/dist/phaser/geom/util/polygon.d.ts +2 -1
  191. package/dist/phaser/geom/util/polygon.d.ts.map +1 -1
  192. package/dist/phaser/geom/util/rectangle.d.ts +17 -15
  193. package/dist/phaser/geom/util/rectangle.d.ts.map +1 -1
  194. package/dist/phaser/geom/util/rounded_rectangle.d.ts +2 -1
  195. package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
  196. package/dist/phaser/util/math.d.ts +51 -142
  197. package/dist/phaser/util/math.d.ts.map +1 -1
  198. package/package.json +1 -1
  199. package/src/phaser/core/animation.ts +38 -61
  200. package/src/phaser/core/animation_manager.ts +21 -21
  201. package/src/phaser/core/animation_parser.ts +11 -3
  202. package/src/phaser/core/array_set.ts +8 -8
  203. package/src/phaser/core/cache.ts +75 -68
  204. package/src/phaser/core/device.ts +23 -24
  205. package/src/phaser/core/device_util.ts +10 -10
  206. package/src/phaser/core/dom.ts +5 -5
  207. package/src/phaser/core/event_manager.ts +52 -193
  208. package/src/phaser/core/factory.ts +25 -18
  209. package/src/phaser/core/frame.ts +37 -51
  210. package/src/phaser/core/frame_data.ts +29 -76
  211. package/src/phaser/core/frame_util.ts +3 -16
  212. package/src/phaser/core/game.ts +36 -63
  213. package/src/phaser/core/input.ts +68 -68
  214. package/src/phaser/core/input_handler.ts +81 -86
  215. package/src/phaser/core/input_mouse.ts +42 -36
  216. package/src/phaser/core/input_mspointer.ts +24 -25
  217. package/src/phaser/core/input_pointer.ts +55 -56
  218. package/src/phaser/core/input_touch.ts +26 -26
  219. package/src/phaser/core/loader.ts +97 -70
  220. package/src/phaser/core/loader_parser.ts +6 -7
  221. package/src/phaser/core/raf.ts +2 -2
  222. package/src/phaser/core/scale_manager.ts +85 -82
  223. package/src/phaser/core/scene.ts +3 -4
  224. package/src/phaser/core/scene_manager.ts +26 -26
  225. package/src/phaser/core/signal.ts +10 -10
  226. package/src/phaser/core/signal_binding.ts +2 -2
  227. package/src/phaser/core/sound.ts +65 -112
  228. package/src/phaser/core/sound_manager.ts +31 -30
  229. package/src/phaser/core/sound_sprite.ts +10 -11
  230. package/src/phaser/core/stage.ts +8 -8
  231. package/src/phaser/core/time.ts +33 -34
  232. package/src/phaser/core/timer.ts +40 -34
  233. package/src/phaser/core/timer_event.ts +23 -23
  234. package/src/phaser/core/tween.ts +42 -68
  235. package/src/phaser/core/tween_data.ts +31 -31
  236. package/src/phaser/core/tween_easing.ts +31 -31
  237. package/src/phaser/core/tween_manager.ts +10 -11
  238. package/src/phaser/core/world.ts +1 -2
  239. package/src/phaser/display/bitmap_text.ts +41 -31
  240. package/src/phaser/display/button.ts +24 -51
  241. package/src/phaser/display/canvas/buffer.ts +6 -7
  242. package/src/phaser/display/canvas/graphics.ts +3 -4
  243. package/src/phaser/display/canvas/masker.ts +2 -3
  244. package/src/phaser/display/canvas/pool.ts +3 -4
  245. package/src/phaser/display/canvas/renderer.ts +19 -20
  246. package/src/phaser/display/canvas/tinter.ts +4 -5
  247. package/src/phaser/display/canvas/util.ts +9 -9
  248. package/src/phaser/display/display_object.ts +49 -50
  249. package/src/phaser/display/graphics.ts +56 -43
  250. package/src/phaser/display/graphics_data.ts +11 -12
  251. package/src/phaser/display/graphics_data_util.ts +1 -2
  252. package/src/phaser/display/group.ts +32 -42
  253. package/src/phaser/display/image.ts +32 -52
  254. package/src/phaser/display/sprite_batch.ts +1 -2
  255. package/src/phaser/display/sprite_util.ts +5 -6
  256. package/src/phaser/display/text.ts +82 -56
  257. package/src/phaser/display/webgl/abstract_filter.ts +8 -8
  258. package/src/phaser/display/webgl/base_texture.ts +14 -15
  259. package/src/phaser/display/webgl/blend_manager.ts +5 -5
  260. package/src/phaser/display/webgl/earcut.ts +27 -27
  261. package/src/phaser/display/webgl/earcut_node.ts +1 -1
  262. package/src/phaser/display/webgl/fast_sprite_batch.ts +19 -19
  263. package/src/phaser/display/webgl/filter_manager.ts +5 -5
  264. package/src/phaser/display/webgl/filter_texture.ts +7 -7
  265. package/src/phaser/display/webgl/graphics.ts +10 -11
  266. package/src/phaser/display/webgl/graphics_data.ts +11 -11
  267. package/src/phaser/display/webgl/mask_manager.ts +2 -3
  268. package/src/phaser/display/webgl/render_texture.ts +12 -12
  269. package/src/phaser/display/webgl/renderer.ts +24 -24
  270. package/src/phaser/display/webgl/shader/complex.ts +7 -7
  271. package/src/phaser/display/webgl/shader/fast.ts +8 -8
  272. package/src/phaser/display/webgl/shader/normal.ts +12 -12
  273. package/src/phaser/display/webgl/shader/primitive.ts +7 -7
  274. package/src/phaser/display/webgl/shader/strip.ts +7 -7
  275. package/src/phaser/display/webgl/shader_manager.ts +13 -13
  276. package/src/phaser/display/webgl/sprite_batch.ts +20 -20
  277. package/src/phaser/display/webgl/stencil_manager.ts +8 -8
  278. package/src/phaser/display/webgl/texture.ts +35 -24
  279. package/src/phaser/display/webgl/texture_util.ts +2 -3
  280. package/src/phaser/display/webgl/util.ts +6 -6
  281. package/src/phaser/geom/circle.ts +10 -10
  282. package/src/phaser/geom/ellipse.ts +6 -6
  283. package/src/phaser/geom/line.ts +14 -14
  284. package/src/phaser/geom/matrix.ts +12 -12
  285. package/src/phaser/geom/point.ts +19 -19
  286. package/src/phaser/geom/polygon.ts +5 -5
  287. package/src/phaser/geom/rectangle.ts +21 -21
  288. package/src/phaser/geom/rounded_rectangle.ts +2 -2
  289. package/src/phaser/geom/util/circle.ts +7 -7
  290. package/src/phaser/geom/util/ellipse.ts +1 -1
  291. package/src/phaser/geom/util/line.ts +5 -5
  292. package/src/phaser/geom/util/matrix.ts +1 -1
  293. package/src/phaser/geom/util/point.ts +20 -20
  294. package/src/phaser/geom/util/polygon.ts +1 -1
  295. package/src/phaser/geom/util/rectangle.ts +15 -15
  296. package/src/phaser/geom/util/rounded_rectangle.ts +1 -1
  297. package/src/phaser/util/math.ts +65 -151
@@ -24,7 +24,7 @@ export declare class Cache {
24
24
  * Creates a new Cache instance.
25
25
  * @param {import('./game.js').Game} game - The game instance.
26
26
  */
27
- constructor(game: any);
27
+ constructor(game: import('./game.js').Game);
28
28
  /**
29
29
  * Adds the default image to the cache.
30
30
  */
@@ -40,10 +40,10 @@ export declare class Cache {
40
40
  * @param {HTMLImageElement} data - The image data to cache.
41
41
  * @returns {object} The cached image object.
42
42
  */
43
- addImage(key: any, url: any, data: any): {
44
- key: any;
45
- url: any;
46
- data: any;
43
+ addImage(key: string, url: string, data: HTMLImageElement): {
44
+ key: string;
45
+ url: string;
46
+ data: HTMLImageElement;
47
47
  base: BaseTexture;
48
48
  frame: Frame;
49
49
  frameData: FrameData;
@@ -55,21 +55,21 @@ export declare class Cache {
55
55
  * @param {HTMLCanvasElement} data - The canvas data for the atlas.
56
56
  * @param {object} atlasData - The atlas data to cache.
57
57
  */
58
- addTextureAtlas(key: any, url: any, data: any, atlasData: any): void;
58
+ addTextureAtlas(key: string, url: string, data: HTMLCanvasElement, atlasData: any): void;
59
59
  /**
60
60
  * Adds sound data to the cache.
61
61
  * @param {string} key - The unique key for this cache entry.
62
62
  * @param {string} url - The URL the sound was loaded from.
63
63
  * @param {object} data - The sound data to cache.
64
64
  */
65
- addSound(key: any, url: any, data: any): void;
65
+ addSound(key: string, url: string, data: any): void;
66
66
  /**
67
67
  * Adds text data to the cache.
68
68
  * @param {string} key - The unique key for this cache entry.
69
69
  * @param {string} url - The URL the text was loaded from.
70
70
  * @param {string} data - The text data to cache.
71
71
  */
72
- addText(key: any, url: any, data: any): void;
72
+ addText(key: string, url: string, data: string): void;
73
73
  /**
74
74
  * Adds a bitmap font to the cache.
75
75
  * @param {string} key - The unique key for this cache entry.
@@ -80,113 +80,113 @@ export declare class Cache {
80
80
  * @param {number} xSpacing - Horizontal spacing between characters.
81
81
  * @param {number} ySpacing - Vertical spacing between characters.
82
82
  */
83
- addBitmapFont(key: any, url: any, data: any, atlasData: any, atlasType: any, xSpacing?: number, ySpacing?: number): void;
83
+ addBitmapFont(key: string, url: string, data: HTMLCanvasElement, atlasData: any, atlasType: string, xSpacing?: number, ySpacing?: number): void;
84
84
  /**
85
85
  * Adds JSON data to the cache.
86
86
  * @param {string} key - The unique key for this cache entry.
87
87
  * @param {string} url - The URL the JSON was loaded from.
88
88
  * @param {object} data - The JSON data to cache.
89
89
  */
90
- addJSON(key: any, url: any, data: any): void;
90
+ addJSON(key: string, url: string, data: any): void;
91
91
  /**
92
92
  * Adds XML data to the cache.
93
93
  * @param {string} key - The unique key for this cache entry.
94
94
  * @param {string} url - The URL the XML was loaded from.
95
95
  * @param {XMLDocument} data - The XML data to cache.
96
96
  */
97
- addXML(key: any, url: any, data: any): void;
97
+ addXML(key: string, url: string, data: XMLDocument): void;
98
98
  /**
99
99
  * Updates a sound property in the cache.
100
100
  * @param {string} key - The unique key for the cached sound.
101
101
  * @param {string} property - The property to update.
102
102
  * @param {any} value - The new value for the property.
103
103
  */
104
- updateSound(key: any, property: any, value: any): void;
104
+ updateSound(key: string, property: string, value: any): void;
105
105
  /**
106
106
  * Marks a sound as decoded in the cache.
107
107
  * @param {string} key - The unique key for the cached sound.
108
108
  * @param {AudioBuffer} data - The decoded audio buffer.
109
109
  */
110
- decodedSound(key: any, data: any): void;
110
+ decodedSound(key: string, data: AudioBuffer): void;
111
111
  /**
112
112
  * Checks if a sound has been decoded in the cache.
113
113
  * @param {string} key - The unique key for the cached sound.
114
114
  * @returns {boolean} True if the sound is decoded, false otherwise.
115
115
  */
116
- isSoundDecoded(key: any): any;
116
+ isSoundDecoded(key: string): any;
117
117
  /**
118
118
  * Checks if a sound is ready to play (decoded and not locked).
119
119
  * @param {string} key - The unique key for the cached sound.
120
120
  * @returns {boolean} True if the sound is ready, false otherwise.
121
121
  */
122
- isSoundReady(key: any): boolean;
122
+ isSoundReady(key: string): boolean;
123
123
  /**
124
124
  * Checks if a cache entry exists.
125
125
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
126
126
  * @param {string} key - The unique key for the cache entry.
127
127
  * @returns {boolean} True if the entry exists, false otherwise.
128
128
  */
129
- checkKey(cache: any, key: any): boolean;
129
+ checkKey(cache: number, key: string): boolean;
130
130
  /**
131
131
  * Checks if a URL has been resolved and cached.
132
132
  * @param {string} url - The URL to check.
133
133
  * @returns {boolean} True if the URL has been resolved and cached, false otherwise.
134
134
  */
135
- checkURL(url: any): boolean;
135
+ checkURL(url: string): boolean;
136
136
  /**
137
137
  * Checks if a canvas cache entry exists.
138
138
  * @param {string} key - The unique key for the cache entry.
139
139
  * @returns {boolean} True if the entry exists, false otherwise.
140
140
  */
141
- checkCanvasKey(key: any): boolean;
141
+ checkCanvasKey(key: string): boolean;
142
142
  /**
143
143
  * Checks if an image cache entry exists.
144
144
  * @param {string} key - The unique key for the cache entry.
145
145
  * @returns {boolean} True if the entry exists, false otherwise.
146
146
  */
147
- checkImageKey(key: any): boolean;
147
+ checkImageKey(key: string): boolean;
148
148
  /**
149
149
  * Checks if a texture cache entry exists.
150
150
  * @param {string} key - The unique key for the cache entry.
151
151
  * @returns {boolean} True if the entry exists, false otherwise.
152
152
  */
153
- checkTextureKey(key: any): boolean;
153
+ checkTextureKey(key: string): boolean;
154
154
  /**
155
155
  * Checks if a sound cache entry exists.
156
156
  * @param {string} key - The unique key for the cache entry.
157
157
  * @returns {boolean} True if the entry exists, false otherwise.
158
158
  */
159
- checkSoundKey(key: any): boolean;
159
+ checkSoundKey(key: string): boolean;
160
160
  /**
161
161
  * Checks if a text cache entry exists.
162
162
  * @param {string} key - The unique key for the cache entry.
163
163
  * @returns {boolean} True if the entry exists, false otherwise.
164
164
  */
165
- checkTextKey(key: any): boolean;
165
+ checkTextKey(key: string): boolean;
166
166
  /**
167
167
  * Checks if a bitmap data cache entry exists.
168
168
  * @param {string} key - The unique key for the cache entry.
169
169
  * @returns {boolean} True if the entry exists, false otherwise.
170
170
  */
171
- checkBitmapDataKey(key: any): boolean;
171
+ checkBitmapDataKey(key: string): boolean;
172
172
  /**
173
173
  * Checks if a bitmap font cache entry exists.
174
174
  * @param {string} key - The unique key for the cache entry.
175
175
  * @returns {boolean} True if the entry exists, false otherwise.
176
176
  */
177
- checkBitmapFontKey(key: any): boolean;
177
+ checkBitmapFontKey(key: string): boolean;
178
178
  /**
179
179
  * Checks if a JSON cache entry exists.
180
180
  * @param {string} key - The unique key for the cache entry.
181
181
  * @returns {boolean} True if the entry exists, false otherwise.
182
182
  */
183
- checkJSONKey(key: any): boolean;
183
+ checkJSONKey(key: string): boolean;
184
184
  /**
185
185
  * Checks if an XML cache entry exists.
186
186
  * @param {string} key - The unique key for the cache entry.
187
187
  * @returns {boolean} True if the entry exists, false otherwise.
188
188
  */
189
- checkXMLKey(key: any): boolean;
189
+ checkXMLKey(key: string): boolean;
190
190
  /**
191
191
  * TBD.
192
192
  * @param {string} key - TBD.
@@ -195,117 +195,117 @@ export declare class Cache {
195
195
  * @param {string} property - TBD.
196
196
  * @returns {*} TBD.
197
197
  */
198
- getItem(key: any, cache: any, method: any, property?: any): any;
198
+ getItem(key: string, cache: number, method: string, property?: string): any;
199
199
  /**
200
200
  * TBD.
201
201
  * @param {string} key - TBD.
202
202
  * @returns {HTMLCanvasElement} TBD.
203
203
  */
204
- getCanvas(key: any): any;
204
+ getCanvas(key: string): any;
205
205
  /**
206
206
  * TBD.
207
207
  * @param {string} key - TBD.
208
208
  * @param {boolean} full - TBD.
209
209
  * @returns {HTMLImageElement} TBD.
210
210
  */
211
- getImage(key?: string, full?: boolean): any;
211
+ getImage(key?: any, full?: boolean): any;
212
212
  /**
213
213
  * TBD.
214
214
  * @param {string} key - TBD.
215
215
  * @returns {object} TBD.
216
216
  */
217
- getTextureFrame(key: any): any;
217
+ getTextureFrame(key: string): any;
218
218
  /**
219
219
  * TBD.
220
220
  * @param {string} key - TBD.
221
221
  * @returns {object} TBD.
222
222
  */
223
- getSound(key: any): any;
223
+ getSound(key: string): any;
224
224
  /**
225
225
  * TBD.
226
226
  * @param {string} key - TBD.
227
227
  * @returns {object} TBD.
228
228
  */
229
- getSoundData(key: any): any;
229
+ getSoundData(key: string): any;
230
230
  /**
231
231
  * TBD.
232
232
  * @param {string} key - TBD.
233
233
  * @returns {object} TBD.
234
234
  */
235
- getText(key: any): any;
235
+ getText(key: string): any;
236
236
  /**
237
237
  * TBD.
238
238
  * @param {string} key - TBD.
239
239
  * @returns {object} TBD.
240
240
  */
241
- getBitmapData(key: any): any;
241
+ getBitmapData(key: string): any;
242
242
  /**
243
243
  * TBD.
244
244
  * @param {string} key - TBD.
245
245
  * @returns {object} TBD.
246
246
  */
247
- getBitmapFont(key: any): any;
247
+ getBitmapFont(key: string): any;
248
248
  /**
249
249
  * TBD.
250
250
  * @param {string} key - TBD.
251
251
  * @param {boolean} isClone - TBD.
252
252
  * @returns {object} TBD.
253
253
  */
254
- getJSON(key: any, isClone?: boolean): any;
254
+ getJSON(key: string, isClone?: boolean): any;
255
255
  /**
256
256
  * TBD.
257
257
  * @param {string} key - TBD.
258
258
  * @returns {XMLDocument} TBD.
259
259
  */
260
- getXML(key: any): any;
260
+ getXML(key: string): any;
261
261
  /**
262
262
  * TBD.
263
263
  * @param {string} key - TBD.
264
264
  * @returns {import('../display/webgl/render_texture.js').RenderTexture} TBD.
265
265
  */
266
- getRenderTexture(key: any): any;
266
+ getRenderTexture(key: string): any;
267
267
  /**
268
268
  * Gets the base texture of a cache entry.
269
269
  * @param {string} key - The unique key for the cache entry.
270
270
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
271
271
  * @returns {BaseTexture} The base texture.
272
272
  */
273
- getBaseTexture(key: any, cache?: number): any;
273
+ getBaseTexture(key: string, cache?: number): any;
274
274
  /**
275
275
  * Gets a frame from the cache.
276
276
  * @param {string} key - The unique key for the cache entry.
277
277
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
278
278
  * @returns {Frame} The frame.
279
279
  */
280
- getFrame(key: any, cache?: number): any;
280
+ getFrame(key: string, cache?: number): any;
281
281
  /**
282
282
  * Gets the frame count of a cache entry.
283
283
  * @param {string} key - The unique key for the cache entry.
284
284
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
285
285
  * @returns {number} The number of frames.
286
286
  */
287
- getFrameCount(key: any, cache?: number): any;
287
+ getFrameCount(key: string, cache?: number): any;
288
288
  /**
289
289
  * Gets the frame data of a cache entry.
290
290
  * @param {string} key - The unique key for the cache entry.
291
291
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
292
292
  * @returns {FrameData} The frame data.
293
293
  */
294
- getFrameData(key: any, cache?: number): any;
294
+ getFrameData(key: string, cache?: number): any;
295
295
  /**
296
296
  * Checks if a cache entry has frame data.
297
297
  * @param {string} key - The unique key for the cache entry.
298
298
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
299
299
  * @returns {boolean} True if the entry has frame data, false otherwise.
300
300
  */
301
- hasFrameData(key: any, cache?: number): boolean;
301
+ hasFrameData(key: string, cache?: number): boolean;
302
302
  /**
303
303
  * Updates the frame data of a cache entry.
304
304
  * @param {string} key - The unique key for the cache entry.
305
305
  * @param {FrameData} frameData - The new frame data.
306
306
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
307
307
  */
308
- updateFrameData(key: any, frameData: any, cache?: number): void;
308
+ updateFrameData(key: string, frameData: FrameData, cache?: number): void;
309
309
  /**
310
310
  * Gets a frame by index from the cache.
311
311
  * @param {string} key - The unique key for the cache entry.
@@ -313,7 +313,7 @@ export declare class Cache {
313
313
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
314
314
  * @returns {Frame} The frame at the specified index.
315
315
  */
316
- getFrameByIndex(key: any, index: any, cache?: number): any;
316
+ getFrameByIndex(key: string, index: number, cache?: number): any;
317
317
  /**
318
318
  * Gets a frame by name from the cache.
319
319
  * @param {string} key - The unique key for the cache entry.
@@ -321,75 +321,75 @@ export declare class Cache {
321
321
  * @param {number} cache - The cache type (CANVAS, IMAGE, etc.).
322
322
  * @returns {Frame} The frame with the specified name.
323
323
  */
324
- getFrameByName(key: any, name: any, cache?: number): any;
324
+ getFrameByName(key: string, name: string, cache?: number): any;
325
325
  /**
326
326
  * Gets the resolved URL from cache.
327
327
  * @param {string} url - The original URL to resolve.
328
328
  * @returns {string} The resolved URL or null if not found.
329
329
  */
330
- getURL(url: any): any;
330
+ getURL(url: string): any;
331
331
  /**
332
332
  * Gets all keys from a cache type.
333
333
  * @param {object} cache - The cache type (CANVAS, IMAGE, etc.).
334
334
  * @returns {string[]} An array of cache keys.
335
335
  */
336
- getKeys(cache?: number): any[];
336
+ getKeys(cache?: any): any[];
337
337
  /**
338
338
  * Removes a canvas cache entry.
339
339
  * @param {string} key - The unique key for the cache entry to remove.
340
340
  */
341
- removeCanvas(key: any): void;
341
+ removeCanvas(key: string): void;
342
342
  /**
343
343
  * Removes an image cache entry.
344
344
  * @param {string} key - The unique key for the cache entry to remove.
345
345
  * @param {boolean} destroyBaseTexture - Whether to destroy the base texture (default: true).
346
346
  */
347
- removeImage(key: any, destroyBaseTexture?: boolean): void;
347
+ removeImage(key: string, destroyBaseTexture?: boolean): void;
348
348
  /**
349
349
  * Removes a sound cache entry.
350
350
  * @param {string} key - The unique key for the cache entry to remove.
351
351
  */
352
- removeSound(key: any): void;
352
+ removeSound(key: string): void;
353
353
  /**
354
354
  * Removes a text cache entry.
355
355
  * @param {string} key - The unique key for the cache entry to remove.
356
356
  */
357
- removeText(key: any): void;
357
+ removeText(key: string): void;
358
358
  /**
359
359
  * Removes a bitmap data cache entry.
360
360
  * @param {string} key - The unique key for the cache entry to remove.
361
361
  */
362
- removeBitmapData(key: any): void;
362
+ removeBitmapData(key: string): void;
363
363
  /**
364
364
  * Removes a bitmap font cache entry.
365
365
  * @param {string} key - The unique key for the cache entry to remove.
366
366
  */
367
- removeBitmapFont(key: any): void;
367
+ removeBitmapFont(key: string): void;
368
368
  /**
369
369
  * Removes a JSON cache entry.
370
370
  * @param {string} key - The unique key for the cache entry to remove.
371
371
  */
372
- removeJSON(key: any): void;
372
+ removeJSON(key: string): void;
373
373
  /**
374
374
  * Removes an XML cache entry.
375
375
  * @param {string} key - The unique key for the cache entry to remove.
376
376
  */
377
- removeXML(key: any): void;
377
+ removeXML(key: string): void;
378
378
  /**
379
379
  * Removes a render texture cache entry.
380
380
  * @param {string} key - The unique key for the cache entry to remove.
381
381
  */
382
- removeRenderTexture(key: any): void;
382
+ removeRenderTexture(key: string): void;
383
383
  /**
384
384
  * Removes a sprite sheet cache entry.
385
385
  * @param {string} key - The unique key for the cache entry to remove.
386
386
  */
387
- removeSpriteSheet(key: any): void;
387
+ removeSpriteSheet(key: string): void;
388
388
  /**
389
389
  * Removes a texture atlas cache entry.
390
390
  * @param {string} key - The unique key for the cache entry to remove.
391
391
  */
392
- removeTextureAtlas(key: any): void;
392
+ removeTextureAtlas(key: string): void;
393
393
  /**
394
394
  * Clears all GL textures from the cache.
395
395
  */
@@ -400,7 +400,7 @@ export declare class Cache {
400
400
  * @param {object} data - The data to associate with the resolved URL.
401
401
  * @returns {string} The resolved URL or null if not enabled.
402
402
  */
403
- _resolveURL(url: any, data: any): any;
403
+ _resolveURL(url: string, data?: any): any;
404
404
  /**
405
405
  * Destroys the cache and cleans up resources.
406
406
  */
@@ -1 +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,CAAC;AACtB,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,GAAG,IAAI,CAAC;AACrB,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,qBAAa,KAAK;IAClB,IAAI,MAAC;IACL,cAAc,MAAC;IACf,MAAM,MAAC;IACP,OAAO,MAAC;IACR,YAAY,MAAC;IACb,QAAQ,MAAC;IACT,aAAa,MAAC;IACd,SAAS,MAAC;IACR;;;OAGG;gBACS,IAAI,KAAA;IAkChB;;OAEG;IACH,eAAe;IASf;;OAEG;IACH,eAAe;IAQ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AY,MAAC;IACb,MAAM,MAAC;IACP,KAAK,MAAC;IACN,SAAS,MAAC;IACV,UAAU,MAAC;IACX,MAAM,MAAC;IACP,OAAO,MAAC;IACR,IAAI,MAAC;IACL,MAAM,MAAC;IACP,UAAU,MAAC;IACX,iBAAiB,MAAC;IAClB,gBAAgB,MAAC;IACjB,kBAAkB,MAAC;IACnB,aAAa,MAAC;IACd,qBAAqB,MAAC;IACtB,qBAAqB,MAAC;IACpB;;;OAGG;;CA4FJ"}
1
+ {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/device.ts"],"names":[],"mappings":"AAAA,qBAAa,MAAM;IACnB,OAAO,EAAG,GAAG,CAAC;IACd,GAAG,EAAG,GAAG,CAAC;IACV,OAAO,EAAG,GAAG,CAAC;IACd,QAAQ,EAAG,GAAG,CAAC;IACf,KAAK,EAAG,GAAG,CAAC;IACZ,KAAK,EAAG,GAAG,CAAC;IACZ,OAAO,EAAG,GAAG,CAAC;IACd,YAAY,EAAG,GAAG,CAAC;IACnB,MAAM,EAAG,GAAG,CAAC;IACb,KAAK,EAAG,GAAG,CAAC;IACZ,SAAS,EAAG,GAAG,CAAC;IAChB,UAAU,EAAG,GAAG,CAAC;IACjB,MAAM,EAAG,GAAG,CAAC;IACb,OAAO,EAAG,GAAG,CAAC;IACd,IAAI,EAAG,GAAG,CAAC;IACX,MAAM,EAAG,GAAG,CAAC;IACb,UAAU,EAAG,GAAG,CAAC;IACjB,iBAAiB,EAAG,GAAG,CAAC;IACxB,gBAAgB,EAAG,GAAG,CAAC;IACvB,kBAAkB,EAAG,GAAG,CAAC;IACzB,aAAa,EAAG,GAAG,CAAC;IACpB,qBAAqB,EAAG,GAAG,CAAC;IAC5B,qBAAqB,EAAG,GAAG,CAAC;IAC1B;;;OAGG;;CA4FJ"}
@@ -5,40 +5,40 @@ import { Device } from './device.js';
5
5
  * @param {string} type - The audio format type to check.
6
6
  * @returns {boolean} True if the device can play this audio format, false otherwise.
7
7
  */
8
- export declare const canPlayAudio: (device: any, type: any) => boolean;
8
+ export declare const canPlayAudio: (device: Device, type: string) => boolean;
9
9
  /**
10
10
  * Detect the operating system of the device.
11
11
  * @param {Device} device - The device instance to update.
12
12
  */
13
- export declare const checkOS: (device: any) => void;
13
+ export declare const checkOS: (device: Device) => void;
14
14
  /**
15
15
  * Detect input capabilities of the device.
16
16
  * @param {Device} device - The device instance to update.
17
17
  */
18
- export declare const checkInput: (device: any) => void;
18
+ export declare const checkInput: (device: Device) => void;
19
19
  /**
20
20
  * Check for fullscreen support capabilities.
21
21
  * @param {Device} device - The device instance to update.
22
22
  */
23
- export declare const checkFullScreenSupport: (device: any) => void;
23
+ export declare const checkFullScreenSupport: (device: Device) => void;
24
24
  /**
25
25
  * Detect the browser type.
26
26
  * @param {Device} device - The device instance to update.
27
27
  */
28
- export declare const checkBrowser: (device: any) => void;
28
+ export declare const checkBrowser: (device: Device) => void;
29
29
  /**
30
30
  * Check if an audio element can play a specific codec.
31
31
  * @param {HTMLAudioElement} audioElement - The audio element to test.
32
32
  * @param {string} type - The codec type to check.
33
33
  * @returns {boolean} True if the codec is supported, false otherwise.
34
34
  */
35
- export declare const canPlayType: (audioElement: any, type: any) => boolean;
35
+ export declare const canPlayType: (audioElement: HTMLAudioElement, type: string) => boolean;
36
36
  /**
37
37
  * Check if a media source type is supported by the browser.
38
38
  * @param {string} type - The media source type to check.
39
39
  * @returns {boolean} True if the media source type is supported, false otherwise.
40
40
  */
41
- export declare const isMediaSourceTypeSupported: (type: any) => boolean;
41
+ export declare const isMediaSourceTypeSupported: (type: string) => boolean;
42
42
  /**
43
43
  * Check for supported audio formats on the device.
44
44
  * @param {Device} device - The device instance to update with audio format support.
@@ -46,17 +46,17 @@ export declare const isMediaSourceTypeSupported: (type: any) => boolean;
46
46
  * @see https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements
47
47
  * @see https://bit.ly/iphoneoscodecs
48
48
  */
49
- export declare const checkAudio: (device: any) => void;
49
+ export declare const checkAudio: (device: Device) => void;
50
50
  /**
51
51
  * Check for supported image formats on the device.
52
52
  * @param {Device} device - The device instance to update with image format support.
53
53
  */
54
- export declare const checkImage: (device: any) => void;
54
+ export declare const checkImage: (device: Device) => void;
55
55
  /**
56
56
  * Initialize device capabilities detection.
57
57
  * @param {Device} device - The device instance to initialize.
58
58
  */
59
- export declare const initialize: (device: any) => void;
59
+ export declare const initialize: (device: Device) => void;
60
60
  /**
61
61
  * Create a new Device instance.
62
62
  * @returns {Device} A new Device instance.
@@ -1 +1 @@
1
- {"version":3,"file":"device_util.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/device_util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,SAAI,YAExC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,WAAM,SA+B7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,WAAM,SAchC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAM,SAyC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,WAAM,SAWlC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,iBAAY,EAAE,SAAI,YAS7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,SAAI,YAW9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,WAAM,SA0BhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,WAAM,SAsBhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,WAAM,SAQhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,cAExB,CAAC"}
1
+ {"version":3,"file":"device_util.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/device_util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,EAAE,MAAM,MAAM,YAExD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,SA+BrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAcxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,MAAM,SAyCpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,SAW1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,cAAc,gBAAgB,EAAE,MAAM,MAAM,YASvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,MAAM,MAAM,YAWtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SA0BxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAsBxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAQxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,cAExB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Point } from '../geom/point.js';
1
2
  export declare class DOM {
2
3
  treatAsDesktop: boolean;
3
4
  visualBounds: any;
@@ -9,21 +10,21 @@ export declare class DOM {
9
10
  * TBD.
10
11
  * @param {import('./device.js').Device} device - TBD.
11
12
  */
12
- constructor(device: any);
13
+ constructor(device: import('./device.js').Device);
13
14
  /**
14
15
  * Gets the offset position of an element relative to the document.
15
16
  * @param {HTMLCanvasElement} element - The element to get the offset for.
16
17
  * @param {Point} point - Optional Point object to store the result.
17
18
  * @returns {Point} The offset position of the element.
18
19
  */
19
- getOffset(element: any, point?: any): any;
20
+ getOffset(element: HTMLCanvasElement, point?: Point): Point;
20
21
  /**
21
22
  * Gets the bounding rectangle of an element with optional cushion.
22
23
  * @param {HTMLCanvasElement} element - The element to get bounds for.
23
24
  * @param {number} cushion - Optional padding to add around the element.
24
25
  * @returns {boolean} True if bounds were successfully retrieved, false otherwise.
25
26
  */
26
- getBounds(element: any, cushion?: number): false | {
27
+ getBounds(element: HTMLCanvasElement, cushion?: number): false | {
27
28
  width: number;
28
29
  height: number;
29
30
  left: number;
@@ -37,7 +38,7 @@ export declare class DOM {
37
38
  * @param {number} cushion - Optional padding to add around the rectangle.
38
39
  * @returns {{width: number, height: number, left: number, right: number, top: number, bottom: number}} The calibrated rectangle.
39
40
  */
40
- calibrate(coords: any, cushion?: number): {
41
+ calibrate(coords: DOMRect, cushion?: number): {
41
42
  width: number;
42
43
  height: number;
43
44
  left: number;
@@ -50,7 +51,7 @@ export declare class DOM {
50
51
  * @param {string} primaryFallback - The fallback method to use if screen orientation API is not available.
51
52
  * @returns {string} The screen orientation ('portrait-primary', 'landscape-primary', etc.).
52
53
  */
53
- getScreenOrientation(primaryFallback: any): any;
54
+ getScreenOrientation(primaryFallback: string): any;
54
55
  /**
55
56
  * Gets the horizontal scroll position of the window.
56
57
  * @returns {number} The horizontal scroll position in pixels.
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/dom.ts"],"names":[],"mappings":"AAqLA,qBAAa,GAAG;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,EAAE,GAAG,CAAC;IACpB,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,MAAM,CAAC;IAE9B;;;OAGG;gBACS,MAAM,KAAA;IAclB;;;;;OAKG;IACH,SAAS,CAAC,OAAO,KAAA,EAAE,KAAK,MAAO;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