@vpmedia/phaser 1.102.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.
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20112 -0
- package/dist/index.js.map +1 -0
- package/{types → dist}/phaser/core/animation.d.ts +41 -83
- package/dist/phaser/core/animation.d.ts.map +1 -0
- package/{types → dist}/phaser/core/animation_manager.d.ts +37 -55
- package/dist/phaser/core/animation_manager.d.ts.map +1 -0
- package/dist/phaser/core/animation_parser.d.ts +21 -0
- package/dist/phaser/core/animation_parser.d.ts.map +1 -0
- package/{types → dist}/phaser/core/array_set.d.ts +13 -13
- package/dist/phaser/core/array_set.d.ts.map +1 -0
- package/{types → dist}/phaser/core/cache.d.ts +78 -91
- package/dist/phaser/core/cache.d.ts.map +1 -0
- package/dist/phaser/core/const.d.ts +262 -0
- package/dist/phaser/core/const.d.ts.map +1 -0
- package/dist/phaser/core/device.d.ts +8 -0
- package/dist/phaser/core/device.d.ts.map +1 -0
- package/dist/phaser/core/device_util.d.ts +65 -0
- package/dist/phaser/core/device_util.d.ts.map +1 -0
- package/dist/phaser/core/dom.d.ts +75 -0
- package/dist/phaser/core/dom.d.ts.map +1 -0
- package/dist/phaser/core/error_code.d.ts +9 -0
- package/dist/phaser/core/error_code.d.ts.map +1 -0
- package/{types → dist}/phaser/core/event_manager.d.ts +17 -35
- package/dist/phaser/core/event_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/factory.d.ts +9 -15
- package/dist/phaser/core/factory.d.ts.map +1 -0
- package/{types → dist}/phaser/core/frame.d.ts +7 -28
- package/dist/phaser/core/frame.d.ts.map +1 -0
- package/{types → dist}/phaser/core/frame_data.d.ts +12 -15
- package/dist/phaser/core/frame_data.d.ts.map +1 -0
- package/dist/phaser/core/frame_util.d.ts +15 -0
- package/dist/phaser/core/frame_util.d.ts.map +1 -0
- package/{types → dist}/phaser/core/game.d.ts +7 -74
- package/dist/phaser/core/game.d.ts.map +1 -0
- package/dist/phaser/core/input.d.ts +160 -0
- package/dist/phaser/core/input.d.ts.map +1 -0
- package/{types → dist}/phaser/core/input_handler.d.ts +32 -93
- package/dist/phaser/core/input_handler.d.ts.map +1 -0
- package/dist/phaser/core/input_mouse.d.ts +61 -0
- package/dist/phaser/core/input_mouse.d.ts.map +1 -0
- package/dist/phaser/core/input_mspointer.d.ts +51 -0
- package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
- package/dist/phaser/core/input_pointer.d.ts +106 -0
- package/dist/phaser/core/input_pointer.d.ts.map +1 -0
- package/dist/phaser/core/input_touch.d.ts +55 -0
- package/dist/phaser/core/input_touch.d.ts.map +1 -0
- package/{types → dist}/phaser/core/loader.d.ts +39 -78
- package/dist/phaser/core/loader.d.ts.map +1 -0
- package/dist/phaser/core/loader_parser.d.ts +35 -0
- package/dist/phaser/core/loader_parser.d.ts.map +1 -0
- package/{types → dist}/phaser/core/raf.d.ts +5 -5
- package/dist/phaser/core/raf.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scale_manager.d.ts +41 -124
- package/dist/phaser/core/scale_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene.d.ts +6 -4
- package/dist/phaser/core/scene.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene_manager.d.ts +12 -29
- package/dist/phaser/core/scene_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/signal.d.ts +21 -17
- package/dist/phaser/core/signal.d.ts.map +1 -0
- package/{types → dist}/phaser/core/signal_binding.d.ts +15 -15
- package/dist/phaser/core/signal_binding.d.ts.map +1 -0
- package/{types → dist}/phaser/core/sound.d.ts +22 -75
- package/dist/phaser/core/sound.d.ts.map +1 -0
- package/{types → dist}/phaser/core/sound_manager.d.ts +20 -43
- package/dist/phaser/core/sound_manager.d.ts.map +1 -0
- package/dist/phaser/core/sound_sprite.d.ts +27 -0
- package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
- package/{types → dist}/phaser/core/stage.d.ts +29 -17
- package/dist/phaser/core/stage.d.ts.map +1 -0
- package/{types → dist}/phaser/core/time.d.ts +12 -64
- package/dist/phaser/core/time.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer.d.ts +14 -54
- package/dist/phaser/core/timer.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer_event.d.ts +2 -11
- package/dist/phaser/core/timer_event.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween.d.ts +21 -62
- package/dist/phaser/core/tween.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween_data.d.ts +9 -35
- package/dist/phaser/core/tween_data.d.ts.map +1 -0
- package/dist/phaser/core/tween_easing.d.ts +187 -0
- package/dist/phaser/core/tween_easing.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween_manager.d.ts +9 -18
- package/dist/phaser/core/tween_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/world.d.ts +3 -3
- package/dist/phaser/core/world.d.ts.map +1 -0
- package/{types → dist}/phaser/display/bitmap_text.d.ts +52 -71
- package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
- package/{types → dist}/phaser/display/button.d.ts +25 -37
- package/dist/phaser/display/button.d.ts.map +1 -0
- package/{types → dist}/phaser/display/canvas/buffer.d.ts +3 -7
- package/dist/phaser/display/canvas/buffer.d.ts.map +1 -0
- package/dist/phaser/display/canvas/graphics.d.ts +18 -0
- package/dist/phaser/display/canvas/graphics.d.ts.map +1 -0
- package/dist/phaser/display/canvas/masker.d.ts +12 -0
- package/dist/phaser/display/canvas/masker.d.ts.map +1 -0
- package/dist/phaser/display/canvas/pool.d.ts +40 -0
- package/dist/phaser/display/canvas/pool.d.ts.map +1 -0
- package/{types → dist}/phaser/display/canvas/renderer.d.ts +6 -28
- package/dist/phaser/display/canvas/renderer.d.ts.map +1 -0
- package/dist/phaser/display/canvas/tinter.d.ts +41 -0
- package/dist/phaser/display/canvas/tinter.d.ts.map +1 -0
- package/dist/phaser/display/canvas/util.d.ts +70 -0
- package/dist/phaser/display/canvas/util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/display_object.d.ts +63 -124
- package/dist/phaser/display/display_object.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics.d.ts +59 -65
- package/dist/phaser/display/graphics.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics_data.d.ts +2 -12
- package/dist/phaser/display/graphics_data.d.ts.map +1 -0
- package/dist/phaser/display/graphics_data_util.d.ts +8 -0
- package/dist/phaser/display/graphics_data_util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/group.d.ts +27 -45
- package/dist/phaser/display/group.d.ts.map +1 -0
- package/{types → dist}/phaser/display/image.d.ts +54 -53
- package/dist/phaser/display/image.d.ts.map +1 -0
- package/dist/phaser/display/sprite_batch.d.ts +9 -0
- package/dist/phaser/display/sprite_batch.d.ts.map +1 -0
- package/dist/phaser/display/sprite_util.d.ts +35 -0
- package/dist/phaser/display/sprite_util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/text.d.ts +176 -181
- package/dist/phaser/display/text.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/abstract_filter.d.ts +2 -8
- package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/base_texture.d.ts +3 -15
- package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/blend_manager.d.ts +7 -5
- package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/earcut.d.ts +28 -27
- package/dist/phaser/display/webgl/earcut.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/earcut_node.d.ts +11 -11
- package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/fast_sprite_batch.d.ts +6 -28
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_manager.d.ts +6 -7
- package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_texture.d.ts +3 -9
- package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/graphics.d.ts +78 -0
- package/dist/phaser/display/webgl/graphics.d.ts.map +1 -0
- package/dist/phaser/display/webgl/graphics_data.d.ts +16 -0
- package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -0
- package/dist/phaser/display/webgl/mask_manager.d.ts +13 -0
- package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/render_texture.d.ts +5 -13
- package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/renderer.d.ts +51 -0
- package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts +29 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts +27 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/sprite_batch.d.ts +9 -32
- package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +9 -9
- package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
- package/dist/phaser/display/webgl/texture.d.ts +36 -0
- package/dist/phaser/display/webgl/texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/texture_util.d.ts +17 -0
- package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -0
- package/dist/phaser/display/webgl/util.d.ts +54 -0
- package/dist/phaser/display/webgl/util.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/circle.d.ts +35 -41
- package/dist/phaser/geom/circle.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/ellipse.d.ts +12 -18
- package/dist/phaser/geom/ellipse.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/line.d.ts +20 -23
- package/dist/phaser/geom/line.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/matrix.d.ts +21 -29
- package/dist/phaser/geom/matrix.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/point.d.ts +30 -33
- package/dist/phaser/geom/point.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/polygon.d.ts +18 -24
- package/dist/phaser/geom/polygon.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/rectangle.d.ts +74 -79
- package/dist/phaser/geom/rectangle.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/rounded_rectangle.d.ts +9 -9
- package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -0
- package/dist/phaser/geom/util/circle.d.ts +55 -0
- package/dist/phaser/geom/util/circle.d.ts.map +1 -0
- package/dist/phaser/geom/util/ellipse.d.ts +9 -0
- package/dist/phaser/geom/util/ellipse.d.ts.map +1 -0
- package/dist/phaser/geom/util/line.d.ts +42 -0
- package/dist/phaser/geom/util/line.d.ts.map +1 -0
- package/dist/phaser/geom/util/matrix.d.ts +18 -0
- package/dist/phaser/geom/util/matrix.d.ts.map +1 -0
- package/dist/phaser/geom/util/point.d.ts +159 -0
- package/dist/phaser/geom/util/point.d.ts.map +1 -0
- package/dist/phaser/geom/util/polygon.d.ts +8 -0
- package/dist/phaser/geom/util/polygon.d.ts.map +1 -0
- package/dist/phaser/geom/util/rectangle.d.ts +123 -0
- package/dist/phaser/geom/util/rectangle.d.ts.map +1 -0
- package/dist/phaser/geom/util/rounded_rectangle.d.ts +8 -0
- package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -0
- package/dist/phaser/util/math.d.ts +154 -0
- package/dist/phaser/util/math.d.ts.map +1 -0
- package/package.json +25 -11
- package/src/phaser/core/{animation.js → animation.ts} +2 -1
- package/src/phaser/core/{animation_manager.js → animation_manager.ts} +2 -1
- package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
- package/src/phaser/core/{cache.js → cache.ts} +2 -1
- package/src/phaser/core/{device.js → device.ts} +2 -1
- package/src/phaser/core/{dom.js → dom.ts} +7 -0
- package/src/phaser/core/{event_manager.js → event_manager.ts} +2 -1
- package/src/phaser/core/{factory.js → factory.ts} +1 -0
- package/src/phaser/core/{frame.js → frame.ts} +2 -1
- package/src/phaser/core/{frame_data.js → frame_data.ts} +2 -1
- package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
- package/src/phaser/core/{game.js → game.ts} +1 -0
- package/src/phaser/core/{input.js → input.ts} +1 -0
- package/src/phaser/core/{input_handler.js → input_handler.ts} +1 -0
- package/src/phaser/core/{input_mouse.js → input_mouse.ts} +1 -0
- package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +1 -0
- package/src/phaser/core/{input_pointer.js → input_pointer.ts} +1 -0
- package/src/phaser/core/{input_touch.js → input_touch.ts} +1 -0
- package/src/phaser/core/{loader.js → loader.ts} +2 -1
- package/src/phaser/core/{loader_parser.js → loader_parser.ts} +2 -1
- package/src/phaser/core/{raf.js → raf.ts} +3 -0
- package/src/phaser/core/{scale_manager.js → scale_manager.ts} +1 -0
- package/src/phaser/core/{scene.js → scene.ts} +1 -0
- package/src/phaser/core/{scene_manager.js → scene_manager.ts} +1 -0
- package/src/phaser/core/{signal.js → signal.ts} +7 -0
- package/src/phaser/core/{signal_binding.js → signal_binding.ts} +10 -0
- package/src/phaser/core/{sound.js → sound.ts} +2 -1
- package/src/phaser/core/{sound_manager.js → sound_manager.ts} +2 -1
- package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +2 -1
- package/src/phaser/core/{stage.js → stage.ts} +1 -0
- package/src/phaser/core/{time.js → time.ts} +2 -1
- package/src/phaser/core/{timer.js → timer.ts} +2 -1
- package/src/phaser/core/{timer_event.js → timer_event.ts} +2 -1
- package/src/phaser/core/{tween.js → tween.ts} +2 -1
- package/src/phaser/core/{tween_data.js → tween_data.ts} +2 -1
- package/src/phaser/core/{tween_manager.js → tween_manager.ts} +2 -1
- package/src/phaser/core/{world.js → world.ts} +1 -0
- package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +1 -0
- package/src/phaser/display/{button.js → button.ts} +1 -0
- package/src/phaser/display/canvas/{buffer.js → buffer.ts} +1 -0
- package/src/phaser/display/canvas/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/canvas/{masker.js → masker.ts} +1 -0
- package/src/phaser/display/canvas/{pool.js → pool.ts} +1 -0
- package/src/phaser/display/canvas/{renderer.js → renderer.ts} +1 -0
- package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
- package/src/phaser/display/{display_object.js → display_object.ts} +1 -0
- package/src/phaser/display/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/{graphics_data.js → graphics_data.ts} +1 -0
- package/src/phaser/display/{graphics_data_util.js → graphics_data_util.ts} +1 -0
- package/src/phaser/display/{group.js → group.ts} +1 -0
- package/src/phaser/display/{image.js → image.ts} +1 -0
- package/src/phaser/display/{sprite_batch.js → sprite_batch.ts} +1 -0
- package/src/phaser/display/{sprite_util.js → sprite_util.ts} +1 -0
- package/src/phaser/display/{text.js → text.ts} +1 -0
- package/src/phaser/display/webgl/{abstract_filter.js → abstract_filter.ts} +1 -0
- package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +1 -0
- package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +1 -0
- package/src/phaser/display/webgl/{earcut.js → earcut.ts} +2 -2
- package/src/phaser/display/webgl/{earcut_node.js → earcut_node.ts} +10 -0
- package/src/phaser/display/webgl/{fast_sprite_batch.js → fast_sprite_batch.ts} +1 -0
- package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +1 -0
- package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +1 -0
- package/src/phaser/display/webgl/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/webgl/{graphics_data.js → graphics_data.ts} +1 -0
- package/src/phaser/display/webgl/{mask_manager.js → mask_manager.ts} +1 -0
- package/src/phaser/display/webgl/{render_texture.js → render_texture.ts} +1 -0
- package/src/phaser/display/webgl/{renderer.js → renderer.ts} +1 -0
- package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +1 -0
- package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +1 -0
- package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +1 -0
- package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +1 -0
- package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +1 -0
- package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +1 -0
- package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +1 -0
- package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +1 -0
- package/src/phaser/display/webgl/{texture.js → texture.ts} +1 -0
- package/src/phaser/display/webgl/{texture_util.js → texture_util.ts} +1 -0
- package/src/phaser/geom/{circle.js → circle.ts} +7 -1
- package/src/phaser/geom/{ellipse.js → ellipse.ts} +6 -0
- package/src/phaser/geom/{line.js → line.ts} +4 -0
- package/src/phaser/geom/{matrix.js → matrix.ts} +8 -0
- package/src/phaser/geom/{point.js → point.ts} +5 -1
- package/src/phaser/geom/{polygon.js → polygon.ts} +6 -0
- package/src/phaser/geom/{rectangle.js → rectangle.ts} +10 -4
- package/src/phaser/geom/{rounded_rectangle.js → rounded_rectangle.ts} +7 -0
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -27
- package/AGENTS.md +0 -1
- package/CHANGELOG.md +0 -336
- package/CLAUDE.md +0 -1
- package/SECURITY.md +0 -5
- package/typedefs/global.d.ts +0 -7
- package/types/index.d.ts +0 -38
- package/types/index.d.ts.map +0 -1
- package/types/phaser/core/animation.d.ts.map +0 -1
- package/types/phaser/core/animation_manager.d.ts.map +0 -1
- package/types/phaser/core/animation_parser.d.ts +0 -4
- package/types/phaser/core/animation_parser.d.ts.map +0 -1
- package/types/phaser/core/array_set.d.ts.map +0 -1
- package/types/phaser/core/cache.d.ts.map +0 -1
- package/types/phaser/core/const.d.ts +0 -262
- package/types/phaser/core/const.d.ts.map +0 -1
- package/types/phaser/core/device.d.ts +0 -96
- package/types/phaser/core/device.d.ts.map +0 -1
- package/types/phaser/core/device_util.d.ts +0 -13
- package/types/phaser/core/device_util.d.ts.map +0 -1
- package/types/phaser/core/dom.d.ts +0 -180
- package/types/phaser/core/dom.d.ts.map +0 -1
- package/types/phaser/core/error_code.d.ts +0 -9
- package/types/phaser/core/error_code.d.ts.map +0 -1
- package/types/phaser/core/event_manager.d.ts.map +0 -1
- package/types/phaser/core/factory.d.ts.map +0 -1
- package/types/phaser/core/frame.d.ts.map +0 -1
- package/types/phaser/core/frame_data.d.ts.map +0 -1
- package/types/phaser/core/frame_util.d.ts +0 -5
- package/types/phaser/core/frame_util.d.ts.map +0 -1
- package/types/phaser/core/game.d.ts.map +0 -1
- package/types/phaser/core/input.d.ts +0 -219
- package/types/phaser/core/input.d.ts.map +0 -1
- package/types/phaser/core/input_handler.d.ts.map +0 -1
- package/types/phaser/core/input_mouse.d.ts +0 -86
- package/types/phaser/core/input_mouse.d.ts.map +0 -1
- package/types/phaser/core/input_mspointer.d.ts +0 -67
- package/types/phaser/core/input_mspointer.d.ts.map +0 -1
- package/types/phaser/core/input_pointer.d.ts +0 -170
- package/types/phaser/core/input_pointer.d.ts.map +0 -1
- package/types/phaser/core/input_touch.d.ts +0 -73
- package/types/phaser/core/input_touch.d.ts.map +0 -1
- package/types/phaser/core/loader.d.ts.map +0 -1
- package/types/phaser/core/loader_parser.d.ts +0 -5
- package/types/phaser/core/loader_parser.d.ts.map +0 -1
- package/types/phaser/core/raf.d.ts.map +0 -1
- package/types/phaser/core/scale_manager.d.ts.map +0 -1
- package/types/phaser/core/scene.d.ts.map +0 -1
- package/types/phaser/core/scene_manager.d.ts.map +0 -1
- package/types/phaser/core/signal.d.ts.map +0 -1
- package/types/phaser/core/signal_binding.d.ts.map +0 -1
- package/types/phaser/core/sound.d.ts.map +0 -1
- package/types/phaser/core/sound_manager.d.ts.map +0 -1
- package/types/phaser/core/sound_sprite.d.ts +0 -36
- package/types/phaser/core/sound_sprite.d.ts.map +0 -1
- package/types/phaser/core/stage.d.ts.map +0 -1
- package/types/phaser/core/time.d.ts.map +0 -1
- package/types/phaser/core/timer.d.ts.map +0 -1
- package/types/phaser/core/timer_event.d.ts.map +0 -1
- package/types/phaser/core/tween.d.ts.map +0 -1
- package/types/phaser/core/tween_data.d.ts.map +0 -1
- package/types/phaser/core/tween_easing.d.ts +0 -32
- package/types/phaser/core/tween_easing.d.ts.map +0 -1
- package/types/phaser/core/tween_manager.d.ts.map +0 -1
- package/types/phaser/core/world.d.ts.map +0 -1
- package/types/phaser/display/bitmap_text.d.ts.map +0 -1
- package/types/phaser/display/button.d.ts.map +0 -1
- package/types/phaser/display/canvas/buffer.d.ts.map +0 -1
- package/types/phaser/display/canvas/graphics.d.ts +0 -4
- package/types/phaser/display/canvas/graphics.d.ts.map +0 -1
- package/types/phaser/display/canvas/masker.d.ts +0 -3
- package/types/phaser/display/canvas/masker.d.ts.map +0 -1
- package/types/phaser/display/canvas/pool.d.ts +0 -11
- package/types/phaser/display/canvas/pool.d.ts.map +0 -1
- package/types/phaser/display/canvas/renderer.d.ts.map +0 -1
- package/types/phaser/display/canvas/tinter.d.ts +0 -7
- package/types/phaser/display/canvas/tinter.d.ts.map +0 -1
- package/types/phaser/display/canvas/util.d.ts +0 -10
- package/types/phaser/display/canvas/util.d.ts.map +0 -1
- package/types/phaser/display/display_object.d.ts.map +0 -1
- package/types/phaser/display/graphics.d.ts.map +0 -1
- package/types/phaser/display/graphics_data.d.ts.map +0 -1
- package/types/phaser/display/graphics_data_util.d.ts +0 -3
- package/types/phaser/display/graphics_data_util.d.ts.map +0 -1
- package/types/phaser/display/group.d.ts.map +0 -1
- package/types/phaser/display/image.d.ts.map +0 -1
- package/types/phaser/display/sprite_batch.d.ts +0 -4
- package/types/phaser/display/sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/sprite_util.d.ts +0 -6
- package/types/phaser/display/sprite_util.d.ts.map +0 -1
- package/types/phaser/display/text.d.ts.map +0 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +0 -1
- package/types/phaser/display/webgl/base_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/blend_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/earcut.d.ts.map +0 -1
- package/types/phaser/display/webgl/earcut_node.d.ts.map +0 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/webgl/filter_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/filter_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/graphics.d.ts +0 -16
- package/types/phaser/display/webgl/graphics.d.ts.map +0 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +0 -27
- package/types/phaser/display/webgl/graphics_data.d.ts.map +0 -1
- package/types/phaser/display/webgl/mask_manager.d.ts +0 -3
- package/types/phaser/display/webgl/mask_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/render_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/renderer.d.ts +0 -87
- package/types/phaser/display/webgl/renderer.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +0 -33
- package/types/phaser/display/webgl/shader/complex.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +0 -36
- package/types/phaser/display/webgl/shader/fast.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +0 -52
- package/types/phaser/display/webgl/shader/normal.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +0 -32
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +0 -33
- package/types/phaser/display/webgl/shader/strip.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +0 -44
- package/types/phaser/display/webgl/shader_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/texture.d.ts +0 -63
- package/types/phaser/display/webgl/texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/texture_util.d.ts +0 -5
- package/types/phaser/display/webgl/texture_util.d.ts.map +0 -1
- package/types/phaser/display/webgl/util.d.ts +0 -15
- package/types/phaser/display/webgl/util.d.ts.map +0 -1
- package/types/phaser/geom/circle.d.ts.map +0 -1
- package/types/phaser/geom/ellipse.d.ts.map +0 -1
- package/types/phaser/geom/line.d.ts.map +0 -1
- package/types/phaser/geom/matrix.d.ts.map +0 -1
- package/types/phaser/geom/point.d.ts.map +0 -1
- package/types/phaser/geom/polygon.d.ts.map +0 -1
- package/types/phaser/geom/rectangle.d.ts.map +0 -1
- package/types/phaser/geom/rounded_rectangle.d.ts.map +0 -1
- package/types/phaser/geom/util/circle.d.ts +0 -10
- package/types/phaser/geom/util/circle.d.ts.map +0 -1
- package/types/phaser/geom/util/ellipse.d.ts +0 -2
- package/types/phaser/geom/util/ellipse.d.ts.map +0 -1
- package/types/phaser/geom/util/line.d.ts +0 -8
- package/types/phaser/geom/util/line.d.ts.map +0 -1
- package/types/phaser/geom/util/matrix.d.ts +0 -5
- package/types/phaser/geom/util/matrix.d.ts.map +0 -1
- package/types/phaser/geom/util/point.d.ts +0 -22
- package/types/phaser/geom/util/point.d.ts.map +0 -1
- package/types/phaser/geom/util/polygon.d.ts +0 -3
- package/types/phaser/geom/util/polygon.d.ts.map +0 -1
- package/types/phaser/geom/util/rectangle.d.ts +0 -19
- package/types/phaser/geom/util/rectangle.d.ts.map +0 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -3
- package/types/phaser/geom/util/rounded_rectangle.d.ts.map +0 -1
- package/types/phaser/util/math.d.ts +0 -58
- package/types/phaser/util/math.d.ts.map +0 -1
- /package/src/{index.js → index.ts} +0 -0
- /package/src/phaser/core/{animation_parser.js → animation_parser.ts} +0 -0
- /package/src/phaser/core/{const.js → const.ts} +0 -0
- /package/src/phaser/core/{device_util.js → device_util.ts} +0 -0
- /package/src/phaser/core/{error_code.js → error_code.ts} +0 -0
- /package/src/phaser/core/{signal.test.js → signal.test.ts} +0 -0
- /package/src/phaser/core/{tween_easing.js → tween_easing.ts} +0 -0
- /package/src/phaser/display/canvas/{util.js → util.ts} +0 -0
- /package/src/phaser/display/webgl/{util.js → util.ts} +0 -0
- /package/src/phaser/geom/{circle.test.js → circle.test.ts} +0 -0
- /package/src/phaser/geom/{ellipse.test.js → ellipse.test.ts} +0 -0
- /package/src/phaser/geom/{line.test.js → line.test.ts} +0 -0
- /package/src/phaser/geom/{matrix.test.js → matrix.test.ts} +0 -0
- /package/src/phaser/geom/{point.test.js → point.test.ts} +0 -0
- /package/src/phaser/geom/{rectangle.test.js → rectangle.test.ts} +0 -0
- /package/src/phaser/geom/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{circle.test.js → circle.test.ts} +0 -0
- /package/src/phaser/geom/util/{circle.js → circle.ts} +0 -0
- /package/src/phaser/geom/util/{ellipse.test.js → ellipse.test.ts} +0 -0
- /package/src/phaser/geom/util/{ellipse.js → ellipse.ts} +0 -0
- /package/src/phaser/geom/util/{line.test.js → line.test.ts} +0 -0
- /package/src/phaser/geom/util/{line.js → line.ts} +0 -0
- /package/src/phaser/geom/util/{matrix.test.js → matrix.test.ts} +0 -0
- /package/src/phaser/geom/util/{matrix.js → matrix.ts} +0 -0
- /package/src/phaser/geom/util/{point.test.js → point.test.ts} +0 -0
- /package/src/phaser/geom/util/{point.js → point.ts} +0 -0
- /package/src/phaser/geom/util/{polygon.test.js → polygon.test.ts} +0 -0
- /package/src/phaser/geom/util/{polygon.js → polygon.ts} +0 -0
- /package/src/phaser/geom/util/{rectangle.test.js → rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{rectangle.js → rectangle.ts} +0 -0
- /package/src/phaser/geom/util/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{rounded_rectangle.js → rounded_rectangle.ts} +0 -0
- /package/src/phaser/util/{math.test.js → math.test.ts} +0 -0
- /package/src/phaser/util/{math.js → math.ts} +0 -0
|
@@ -1,53 +1,15 @@
|
|
|
1
|
-
export class Loader {
|
|
1
|
+
export declare class Loader {
|
|
2
2
|
/**
|
|
3
3
|
* Creates a new Loader instance.
|
|
4
4
|
* @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
|
|
5
5
|
*/
|
|
6
|
-
constructor(game:
|
|
7
|
-
game: import("./game.js").Game;
|
|
8
|
-
cache: import("./cache.js").Cache;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
isUseLog: boolean;
|
|
11
|
-
isUseRetry: boolean;
|
|
12
|
-
maxRetry: number;
|
|
13
|
-
hasLoaded: boolean;
|
|
14
|
-
preloadSprite: {
|
|
15
|
-
sprite: import("../display/image.js").Image;
|
|
16
|
-
direction: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
rect: any;
|
|
20
|
-
};
|
|
21
|
-
crossOrigin: boolean;
|
|
22
|
-
baseURL: string;
|
|
23
|
-
path: string;
|
|
24
|
-
headers: {
|
|
25
|
-
requestedWith: boolean;
|
|
26
|
-
json: string;
|
|
27
|
-
xml: string;
|
|
28
|
-
};
|
|
29
|
-
onLoadStart: Signal;
|
|
30
|
-
onLoadComplete: Signal;
|
|
31
|
-
onPackComplete: Signal;
|
|
32
|
-
onFileStart: Signal;
|
|
33
|
-
onFileComplete: Signal;
|
|
34
|
-
onFileError: Signal;
|
|
35
|
-
maxParallelDownloads: any;
|
|
36
|
-
_withSyncPointDepth: number;
|
|
37
|
-
_fileList: any[];
|
|
38
|
-
_flightQueue: any[];
|
|
39
|
-
_processingHead: number;
|
|
40
|
-
_fileLoadStarted: boolean;
|
|
41
|
-
_totalPackCount: number;
|
|
42
|
-
_totalFileCount: number;
|
|
43
|
-
_loadedPackCount: number;
|
|
44
|
-
_loadedFileCount: number;
|
|
6
|
+
constructor(game: any);
|
|
45
7
|
/**
|
|
46
8
|
* Sets the preload sprite for displaying loading progress.
|
|
47
9
|
* @param {import('../display/image.js').Image} sprite - The image to use as the preload sprite.
|
|
48
10
|
* @param {number} direction - The direction of the progress (0 = horizontal, 1 = vertical).
|
|
49
11
|
*/
|
|
50
|
-
setPreloadSprite(sprite:
|
|
12
|
+
setPreloadSprite(sprite: any, direction?: number): void;
|
|
51
13
|
/**
|
|
52
14
|
* Resizes the preload sprite when the window is resized.
|
|
53
15
|
*/
|
|
@@ -58,24 +20,24 @@ export class Loader {
|
|
|
58
20
|
* @param {string} key - The key of the file to check for.
|
|
59
21
|
* @returns {boolean} True if the file exists, false otherwise.
|
|
60
22
|
*/
|
|
61
|
-
checkKeyExists(type:
|
|
23
|
+
checkKeyExists(type: any, key: any): boolean;
|
|
62
24
|
/**
|
|
63
25
|
* Gets the index of a file in the file list by type and key.
|
|
64
26
|
* @param {string} type - The type of file to find.
|
|
65
27
|
* @param {string} key - The key of the file to find.
|
|
66
28
|
* @returns {number} The index of the file in the list, or -1 if not found.
|
|
67
29
|
*/
|
|
68
|
-
getAssetIndex(type:
|
|
30
|
+
getAssetIndex(type: any, key: any): number;
|
|
69
31
|
/**
|
|
70
32
|
* Gets a file from the file list by type and key.
|
|
71
33
|
* @param {string} type - The type of file to get.
|
|
72
34
|
* @param {string} key - The key of the file to get.
|
|
73
35
|
* @returns {{index: number, file: object} | null} The file and its index, or null if not found.
|
|
74
36
|
*/
|
|
75
|
-
getAsset(type:
|
|
37
|
+
getAsset(type: any, key: any): {
|
|
76
38
|
index: number;
|
|
77
|
-
file:
|
|
78
|
-
}
|
|
39
|
+
file: any;
|
|
40
|
+
};
|
|
79
41
|
/**
|
|
80
42
|
* Resets the loader state, optionally clearing event listeners.
|
|
81
43
|
* @param {boolean} hard - Whether to perform a hard reset (clears preload sprite).
|
|
@@ -92,7 +54,7 @@ export class Loader {
|
|
|
92
54
|
* @param {string} extension - The file extension to use if URL is not provided.
|
|
93
55
|
* @returns {Loader} This Loader instance for chaining.
|
|
94
56
|
*/
|
|
95
|
-
addToFileList(type:
|
|
57
|
+
addToFileList(type: any, key?: string, url?: any, properties?: any, overwrite?: boolean, extension?: any): this;
|
|
96
58
|
/**
|
|
97
59
|
* Replaces a file in the file list with new properties.
|
|
98
60
|
* @param {string} type - The type of file to replace.
|
|
@@ -101,7 +63,7 @@ export class Loader {
|
|
|
101
63
|
* @param {object} properties - The new properties for the file.
|
|
102
64
|
* @returns {Loader} This Loader instance for chaining.
|
|
103
65
|
*/
|
|
104
|
-
replaceInFileList(type:
|
|
66
|
+
replaceInFileList(type: any, key: any, url: any, properties: any): this;
|
|
105
67
|
/**
|
|
106
68
|
* Adds a pack file to the file list.
|
|
107
69
|
* @param {string} key - The key to identify the pack file.
|
|
@@ -110,7 +72,7 @@ export class Loader {
|
|
|
110
72
|
* @param {object} callbackContext - The context in which to call the callback.
|
|
111
73
|
* @returns {Loader} This Loader instance for chaining.
|
|
112
74
|
*/
|
|
113
|
-
pack(key:
|
|
75
|
+
pack(key: any, url: any, data: any, callbackContext: any): this;
|
|
114
76
|
/**
|
|
115
77
|
* Adds an image file to the file list.
|
|
116
78
|
* @param {string} key - The key to identify the image file.
|
|
@@ -118,14 +80,14 @@ export class Loader {
|
|
|
118
80
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
119
81
|
* @returns {Loader} This Loader instance for chaining.
|
|
120
82
|
*/
|
|
121
|
-
image(key:
|
|
83
|
+
image(key: any, url: any, overwrite?: boolean): this;
|
|
122
84
|
/**
|
|
123
85
|
* Adds multiple image files to the file list.
|
|
124
86
|
* @param {string[]} keys - The keys to identify the image files.
|
|
125
87
|
* @param {string[]} urls - The URLs of the image files to load.
|
|
126
88
|
* @returns {Loader} This Loader instance for chaining.
|
|
127
89
|
*/
|
|
128
|
-
images(keys:
|
|
90
|
+
images(keys: any, urls: any): this;
|
|
129
91
|
/**
|
|
130
92
|
* Adds a text file to the file list.
|
|
131
93
|
* @param {string} key - The key to identify the text file.
|
|
@@ -133,7 +95,7 @@ export class Loader {
|
|
|
133
95
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
134
96
|
* @returns {Loader} This Loader instance for chaining.
|
|
135
97
|
*/
|
|
136
|
-
text(key:
|
|
98
|
+
text(key: any, url: any, overwrite?: boolean): this;
|
|
137
99
|
/**
|
|
138
100
|
* Adds a JSON file to the file list.
|
|
139
101
|
* @param {string} key - The key to identify the JSON file.
|
|
@@ -141,7 +103,7 @@ export class Loader {
|
|
|
141
103
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
142
104
|
* @returns {Loader} This Loader instance for chaining.
|
|
143
105
|
*/
|
|
144
|
-
json(key:
|
|
106
|
+
json(key: any, url: any, overwrite?: boolean): this;
|
|
145
107
|
/**
|
|
146
108
|
* Adds an XML file to the file list.
|
|
147
109
|
* @param {string} key - The key to identify the XML file.
|
|
@@ -149,7 +111,7 @@ export class Loader {
|
|
|
149
111
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
150
112
|
* @returns {Loader} This Loader instance for chaining.
|
|
151
113
|
*/
|
|
152
|
-
xml(key:
|
|
114
|
+
xml(key: any, url: any, overwrite?: boolean): this;
|
|
153
115
|
/**
|
|
154
116
|
* Adds a spritesheet file to the file list.
|
|
155
117
|
* @param {string} key - The key to identify the spritesheet file.
|
|
@@ -161,7 +123,7 @@ export class Loader {
|
|
|
161
123
|
* @param {number} spacing - The spacing between frames in pixels.
|
|
162
124
|
* @returns {Loader} This Loader instance for chaining.
|
|
163
125
|
*/
|
|
164
|
-
spritesheet(key:
|
|
126
|
+
spritesheet(key: any, url: any, frameWidth: any, frameHeight: any, frameMax?: number, margin?: number, spacing?: number): this;
|
|
165
127
|
/**
|
|
166
128
|
* Adds an audio file to the file list.
|
|
167
129
|
* @param {string} key - The key to identify the audio file.
|
|
@@ -169,7 +131,7 @@ export class Loader {
|
|
|
169
131
|
* @param {boolean} autoDecode - Whether to automatically decode the audio file.
|
|
170
132
|
* @returns {Loader} This Loader instance for chaining.
|
|
171
133
|
*/
|
|
172
|
-
audio(key:
|
|
134
|
+
audio(key: any, urls: any, autoDecode?: boolean): this;
|
|
173
135
|
/**
|
|
174
136
|
* Adds an audio sprite file to the file list.
|
|
175
137
|
* @param {string} key - The key to identify the audio sprite file.
|
|
@@ -179,7 +141,7 @@ export class Loader {
|
|
|
179
141
|
* @param {boolean} autoDecode - Whether to automatically decode the audio file.
|
|
180
142
|
* @returns {Loader} This Loader instance for chaining.
|
|
181
143
|
*/
|
|
182
|
-
audioSprite(key:
|
|
144
|
+
audioSprite(key: any, urls: any, jsonURL: any, jsonData: any, autoDecode?: boolean): this;
|
|
183
145
|
/**
|
|
184
146
|
* Adds a bitmap font file to the file list.
|
|
185
147
|
* @param {string} key - The key to identify the bitmap font file.
|
|
@@ -191,7 +153,7 @@ export class Loader {
|
|
|
191
153
|
* @returns {Loader} This Loader instance for chaining.
|
|
192
154
|
* @throws {Error} If the bitmap font atlas data is invalid.
|
|
193
155
|
*/
|
|
194
|
-
bitmapFont(key:
|
|
156
|
+
bitmapFont(key: any, textureURL?: any, atlasURL?: any, atlasData?: any, xSpacing?: number, ySpacing?: number): this;
|
|
195
157
|
/**
|
|
196
158
|
* Adds a texture atlas file to the file list.
|
|
197
159
|
* @param {string} key - The key to identify the texture atlas file.
|
|
@@ -201,27 +163,27 @@ export class Loader {
|
|
|
201
163
|
* @param {number} format - The format of the atlas file (JSON or XML).
|
|
202
164
|
* @returns {Loader} This Loader instance for chaining.
|
|
203
165
|
*/
|
|
204
|
-
atlas(key:
|
|
166
|
+
atlas(key: any, textureURL: any, atlasURL?: any, atlasData?: any, format?: number): this;
|
|
205
167
|
/**
|
|
206
168
|
* Creates a sync point for loading files, ensuring all files in the block are loaded before continuing.
|
|
207
169
|
* @param {Function} callback - The callback function to execute within the sync point.
|
|
208
170
|
* @param {object} callbackContext - The context in which to call the callback.
|
|
209
171
|
* @returns {Loader} This Loader instance for chaining.
|
|
210
172
|
*/
|
|
211
|
-
withSyncPoint(callback:
|
|
173
|
+
withSyncPoint(callback: any, callbackContext: any): this;
|
|
212
174
|
/**
|
|
213
175
|
* Adds a sync point to a specific file, preventing other files from loading until this one is processed.
|
|
214
176
|
* @param {string} type - The type of file to add a sync point to.
|
|
215
177
|
* @param {string} key - The key of the file to add a sync point to.
|
|
216
178
|
* @returns {Loader} This Loader instance for chaining.
|
|
217
179
|
*/
|
|
218
|
-
addSyncPoint(type:
|
|
180
|
+
addSyncPoint(type: any, key: any): this;
|
|
219
181
|
/**
|
|
220
182
|
* Removes a file from the file list if it's not currently loading or loaded.
|
|
221
183
|
* @param {string} type - The type of file to remove.
|
|
222
184
|
* @param {string} key - The key of the file to remove.
|
|
223
185
|
*/
|
|
224
|
-
removeFile(type:
|
|
186
|
+
removeFile(type: any, key: any): void;
|
|
225
187
|
/**
|
|
226
188
|
* Removes all files from the file list.
|
|
227
189
|
*/
|
|
@@ -244,29 +206,29 @@ export class Loader {
|
|
|
244
206
|
* @param {object} file - The file to complete or mark as failed.
|
|
245
207
|
* @param {string} errorMessage - An error message if the file failed to load.
|
|
246
208
|
*/
|
|
247
|
-
asyncComplete(file:
|
|
209
|
+
asyncComplete(file: any, errorMessage?: string): void;
|
|
248
210
|
/**
|
|
249
211
|
* Processes a pack file, adding its contained files to the loader.
|
|
250
212
|
* @param {object} pack - The pack file object to process.
|
|
251
213
|
*/
|
|
252
|
-
processPack(pack:
|
|
214
|
+
processPack(pack: any): void;
|
|
253
215
|
/**
|
|
254
216
|
* Transforms a URL by adding the base URL and path prefix if needed.
|
|
255
217
|
* @param {string} url - The original URL to transform.
|
|
256
218
|
* @param {object} file - The file object containing path information.
|
|
257
219
|
* @returns {string} The transformed URL.
|
|
258
220
|
*/
|
|
259
|
-
transformUrl(url:
|
|
221
|
+
transformUrl(url: any, file: any): any;
|
|
260
222
|
/**
|
|
261
223
|
* Loads a file using XMLHttpRequest, handling image files specially.
|
|
262
224
|
* @param {object} file - The file object to load.
|
|
263
225
|
*/
|
|
264
|
-
loadFile(file:
|
|
226
|
+
loadFile(file: any): void;
|
|
265
227
|
/**
|
|
266
228
|
* Loads an image file using the Image DOM element.
|
|
267
229
|
* @param {object} file - The file object to load.
|
|
268
230
|
*/
|
|
269
|
-
loadImageTag(file:
|
|
231
|
+
loadImageTag(file: any): void;
|
|
270
232
|
/**
|
|
271
233
|
* Loads a file using XMLHttpRequest with the specified parameters.
|
|
272
234
|
* @param {object} file - The file object to load.
|
|
@@ -275,7 +237,7 @@ export class Loader {
|
|
|
275
237
|
* @param {Function} onload - The function to call when the file loads successfully.
|
|
276
238
|
* @param {Function} onerror - The function to call if the file fails to load.
|
|
277
239
|
*/
|
|
278
|
-
xhrLoad(file:
|
|
240
|
+
xhrLoad(file: any, url: any, type: any, onload: any, onerror?: any): void;
|
|
279
241
|
/**
|
|
280
242
|
* Placeholder for XDomainRequest loading (not implemented).
|
|
281
243
|
*/
|
|
@@ -285,27 +247,27 @@ export class Loader {
|
|
|
285
247
|
* @param {object[]} urls - The array of URLs to check for supported audio formats.
|
|
286
248
|
* @returns {string} The first URL with a supported audio format, or null if none found.
|
|
287
249
|
*/
|
|
288
|
-
getAudioURL(urls:
|
|
250
|
+
getAudioURL(urls: any): any;
|
|
289
251
|
/**
|
|
290
252
|
* Handles file loading errors, optionally retrying or marking the file as failed.
|
|
291
253
|
* @param {object} file - The file object that failed to load.
|
|
292
254
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object that failed.
|
|
293
255
|
* @param {number | string} reason - The error code or message explaining the failure.
|
|
294
256
|
*/
|
|
295
|
-
fileError(file:
|
|
257
|
+
fileError(file: any, xhr?: any, reason?: number): void;
|
|
296
258
|
/**
|
|
297
259
|
* TBD.
|
|
298
260
|
* @param {object} file - TBD.
|
|
299
261
|
* @param {XMLHttpRequest} xhr - TBD.
|
|
300
262
|
* @throws {Error}
|
|
301
263
|
*/
|
|
302
|
-
fileComplete(file:
|
|
264
|
+
fileComplete(file: any, xhr: any): void;
|
|
303
265
|
/**
|
|
304
266
|
* Handles successful file loading, processing the file content appropriately.
|
|
305
267
|
* @param {object} file - The file object that was loaded successfully.
|
|
306
268
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object containing the file data.
|
|
307
269
|
*/
|
|
308
|
-
jsonLoadComplete(file:
|
|
270
|
+
jsonLoadComplete(file: any, xhr: any): void;
|
|
309
271
|
/**
|
|
310
272
|
* TBD.
|
|
311
273
|
*/
|
|
@@ -315,13 +277,13 @@ export class Loader {
|
|
|
315
277
|
* @param {object} file - The file object containing the JSON data.
|
|
316
278
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object containing the file data.
|
|
317
279
|
*/
|
|
318
|
-
xmlLoadComplete(file:
|
|
280
|
+
xmlLoadComplete(file: any, xhr: any): void;
|
|
319
281
|
/**
|
|
320
282
|
* Parses XML string data into a DOM Document object.
|
|
321
283
|
* @param {object} data - The XML string data to parse.
|
|
322
284
|
* @returns {Document} The parsed DOM Document, or null if parsing failed.
|
|
323
285
|
*/
|
|
324
|
-
parseXml(data:
|
|
286
|
+
parseXml(data: any): any;
|
|
325
287
|
/**
|
|
326
288
|
* Updates the preload sprite's progress indicator.
|
|
327
289
|
*/
|
|
@@ -331,12 +293,12 @@ export class Loader {
|
|
|
331
293
|
* @param {string} message - The message to log.
|
|
332
294
|
* @param {string|object} data - Additional data to log with the message.
|
|
333
295
|
*/
|
|
334
|
-
log(message:
|
|
296
|
+
log(message: any, data?: string): void;
|
|
335
297
|
/**
|
|
336
298
|
* Gets the number of files that have been loaded.
|
|
337
299
|
* @returns {number} The total number of loaded files.
|
|
338
300
|
*/
|
|
339
|
-
totalLoadedFiles():
|
|
301
|
+
totalLoadedFiles(): any;
|
|
340
302
|
/**
|
|
341
303
|
* Gets the number of files that are still queued for loading.
|
|
342
304
|
* @returns {number} The total number of queued files.
|
|
@@ -346,7 +308,7 @@ export class Loader {
|
|
|
346
308
|
* Gets the number of pack files that have been loaded.
|
|
347
309
|
* @returns {number} The total number of loaded pack files.
|
|
348
310
|
*/
|
|
349
|
-
totalLoadedPacks():
|
|
311
|
+
totalLoadedPacks(): any;
|
|
350
312
|
/**
|
|
351
313
|
* Gets the number of pack files that are still queued for loading.
|
|
352
314
|
* @returns {number} The total number of queued pack files.
|
|
@@ -363,5 +325,4 @@ export class Loader {
|
|
|
363
325
|
*/
|
|
364
326
|
get progress(): number;
|
|
365
327
|
}
|
|
366
|
-
import { Signal } from './signal.js';
|
|
367
328
|
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finalizes bitmap font data by attaching textures to characters.
|
|
3
|
+
* @param {import('../display/webgl/base_texture.js').BaseTexture} baseTexture - The base texture for the font.
|
|
4
|
+
* @param {object} bitmapFontData - The bitmap font data to finalize.
|
|
5
|
+
* @returns {object} The finalized bitmap font data.
|
|
6
|
+
*/
|
|
7
|
+
export declare const finalizeBitmapFont: (baseTexture: any, bitmapFontData: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* Parses XML bitmap font data.
|
|
10
|
+
* @param {object} xml - The XML document containing the bitmap font data.
|
|
11
|
+
* @param {import('../display/webgl/base_texture.js').BaseTexture} baseTexture - The base texture for the font.
|
|
12
|
+
* @param {number} xSpacing - Horizontal spacing between characters.
|
|
13
|
+
* @param {number} ySpacing - Vertical spacing between characters.
|
|
14
|
+
* @returns {object} The parsed bitmap font data.
|
|
15
|
+
*/
|
|
16
|
+
export declare const xmlBitmapFont: (xml: any, baseTexture: any, xSpacing: any, ySpacing: any) => any;
|
|
17
|
+
/**
|
|
18
|
+
* Parses XML bitmap font data (alias for xmlBitmapFont).
|
|
19
|
+
* @param {object} xml - The XML document containing the bitmap font data.
|
|
20
|
+
* @param {import('../display/webgl/base_texture.js').BaseTexture} baseTexture - The base texture for the font.
|
|
21
|
+
* @param {number} xSpacing - Horizontal spacing between characters.
|
|
22
|
+
* @param {number} ySpacing - Vertical spacing between characters.
|
|
23
|
+
* @returns {object} The parsed bitmap font data.
|
|
24
|
+
*/
|
|
25
|
+
export declare const bitmapFont: (xml: any, baseTexture: any, xSpacing: any, ySpacing: any) => any;
|
|
26
|
+
/**
|
|
27
|
+
* Parses JSON bitmap font data.
|
|
28
|
+
* @param {object} json - The JSON object containing the bitmap font data.
|
|
29
|
+
* @param {import('../display/webgl/base_texture.js').BaseTexture} baseTexture - The base texture for the font.
|
|
30
|
+
* @param {number} xSpacing - Horizontal spacing between characters.
|
|
31
|
+
* @param {number} ySpacing - Vertical spacing between characters.
|
|
32
|
+
* @returns {object} The parsed bitmap font data.
|
|
33
|
+
*/
|
|
34
|
+
export declare const jsonBitmapFont: (json: any, baseTexture: any, xSpacing: any, ySpacing: any) => any;
|
|
35
|
+
//# sourceMappingURL=loader_parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader_parser.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,gBAAW,EAAE,mBAAc,QAM7D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,QAAG,EAAE,gBAAW,EAAE,aAAQ,EAAE,aAAQ,QA8BjE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,QAAG,EAAE,gBAAW,EAAE,aAAQ,EAAE,aAAQ,QAE9D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,SAAI,EAAE,gBAAW,EAAE,aAAQ,EAAE,aAAQ,QA0BnE,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export class RequestAnimationFrame {
|
|
1
|
+
export declare class RequestAnimationFrame {
|
|
2
|
+
game: any;
|
|
3
|
+
rafId: number;
|
|
2
4
|
/**
|
|
3
5
|
* Constructor.
|
|
4
6
|
* @param {import('./game.js').Game} game - Reference to the game instance.
|
|
5
7
|
*/
|
|
6
|
-
constructor(game:
|
|
7
|
-
game: import("./game.js").Game;
|
|
8
|
-
rafId: number;
|
|
8
|
+
constructor(game: any);
|
|
9
9
|
/**
|
|
10
10
|
* Starts an animation frame request.
|
|
11
11
|
*/
|
|
@@ -18,6 +18,6 @@ export class RequestAnimationFrame {
|
|
|
18
18
|
* Performs an animation frame request.
|
|
19
19
|
* @param {number} rafTime - The timestamp provided by the browser's animation frame.
|
|
20
20
|
*/
|
|
21
|
-
update: (rafTime:
|
|
21
|
+
update: (rafTime: any) => void;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=raf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raf.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/raf.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAChC,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;gBACS,IAAI,KAAA;IAKhB;;OAEG;IACH,KAAK,aAEH;IAEF;;OAEG;IACH,IAAI,aAEF;IAEF;;;OAGG;IACH,MAAM,GAAI,YAAO,UAGf;CACH"}
|