@vpmedia/phaser 1.102.0 → 1.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21129 -0
- package/dist/index.js.map +1 -0
- package/{types → dist}/phaser/core/animation.d.ts +80 -76
- package/dist/phaser/core/animation.d.ts.map +1 -0
- package/{types → dist}/phaser/core/animation_manager.d.ts +46 -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 +86 -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 +31 -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 +33 -35
- package/dist/phaser/core/event_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/factory.d.ts +10 -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 +14 -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 +63 -74
- package/dist/phaser/core/game.d.ts.map +1 -0
- package/{types → dist}/phaser/core/input.d.ts +68 -76
- package/dist/phaser/core/input.d.ts.map +1 -0
- package/{types → dist}/phaser/core/input_handler.d.ts +73 -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 +67 -0
- package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
- package/dist/phaser/core/input_pointer.d.ts +150 -0
- package/dist/phaser/core/input_pointer.d.ts.map +1 -0
- package/{types → dist}/phaser/core/input_touch.d.ts +24 -25
- package/dist/phaser/core/input_touch.d.ts.map +1 -0
- package/{types → dist}/phaser/core/loader.d.ts +67 -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 +96 -124
- package/dist/phaser/core/scale_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene.d.ts +7 -3
- package/dist/phaser/core/scene.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene_manager.d.ts +25 -27
- 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 +115 -75
- package/dist/phaser/core/sound.d.ts.map +1 -0
- package/{types → dist}/phaser/core/sound_manager.d.ts +37 -43
- package/dist/phaser/core/sound_manager.d.ts.map +1 -0
- package/dist/phaser/core/sound_sprite.d.ts +33 -0
- package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
- package/{types → dist}/phaser/core/stage.d.ts +33 -17
- package/dist/phaser/core/stage.d.ts.map +1 -0
- package/{types → dist}/phaser/core/time.d.ts +39 -64
- package/dist/phaser/core/time.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer.d.ts +34 -54
- package/dist/phaser/core/timer.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer_event.d.ts +11 -11
- package/dist/phaser/core/timer_event.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween.d.ts +54 -49
- package/dist/phaser/core/tween.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween_data.d.ts +33 -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 +13 -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 +65 -71
- package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
- package/{types → dist}/phaser/display/button.d.ts +53 -37
- package/dist/phaser/display/button.d.ts.map +1 -0
- package/{types → dist}/phaser/display/canvas/buffer.d.ts +7 -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 +19 -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 +90 -95
- package/dist/phaser/display/display_object.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics.d.ts +77 -65
- package/dist/phaser/display/graphics.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics_data.d.ts +12 -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 +50 -40
- package/dist/phaser/display/group.d.ts.map +1 -0
- package/{types → dist}/phaser/display/image.d.ts +89 -50
- 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 +8 -8
- package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/base_texture.d.ts +15 -15
- package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/blend_manager.d.ts +9 -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 +21 -28
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_manager.d.ts +9 -7
- package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_texture.d.ts +7 -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 +25 -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 +15 -13
- package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/renderer.d.ts +68 -0
- package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts +21 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts +22 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts +39 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts +21 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts +21 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts +37 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/sprite_batch.d.ts +24 -31
- package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +12 -9
- package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
- package/dist/phaser/display/webgl/texture.d.ts +56 -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 +26 -12
- package/src/phaser/core/{animation.js → animation.ts} +50 -3
- package/src/phaser/core/{animation_manager.js → animation_manager.ts} +11 -1
- package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
- package/src/phaser/core/{cache.js → cache.ts} +10 -1
- package/src/phaser/core/{device.js → device.ts} +25 -1
- package/src/phaser/core/{dom.js → dom.ts} +7 -0
- package/src/phaser/core/{event_manager.js → event_manager.ts} +18 -1
- package/src/phaser/core/{factory.js → factory.ts} +2 -0
- package/src/phaser/core/{frame.js → frame.ts} +2 -1
- package/src/phaser/core/{frame_data.js → frame_data.ts} +4 -1
- package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
- package/src/phaser/core/{game.js → game.ts} +61 -4
- package/src/phaser/core/{input.js → input.ts} +52 -0
- package/src/phaser/core/{input_handler.js → input_handler.ts} +42 -0
- package/src/phaser/core/{input_mouse.js → input_mouse.ts} +24 -0
- package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +17 -0
- package/src/phaser/core/{input_pointer.js → input_pointer.ts} +45 -0
- package/src/phaser/core/{input_touch.js → input_touch.ts} +18 -0
- package/src/phaser/core/{loader.js → loader.ts} +30 -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} +56 -0
- package/src/phaser/core/{scene.js → scene.ts} +3 -0
- package/src/phaser/core/{scene_manager.js → scene_manager.ts} +16 -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} +100 -6
- package/src/phaser/core/{sound_manager.js → sound_manager.ts} +19 -1
- package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +8 -1
- package/src/phaser/core/{stage.js → stage.ts} +5 -0
- package/src/phaser/core/{time.js → time.ts} +29 -1
- package/src/phaser/core/{timer.js → timer.ts} +22 -1
- package/src/phaser/core/{timer_event.js → timer_event.ts} +11 -1
- package/src/phaser/core/{tween.js → tween.ts} +49 -2
- package/src/phaser/core/{tween_data.js → tween_data.ts} +26 -1
- package/src/phaser/core/{tween_manager.js → tween_manager.ts} +6 -1
- package/src/phaser/core/{world.js → world.ts} +1 -0
- package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +14 -0
- package/src/phaser/display/{button.js → button.ts} +29 -0
- package/src/phaser/display/canvas/{buffer.js → buffer.ts} +5 -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} +14 -0
- package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
- package/src/phaser/display/{display_object.js → display_object.ts} +92 -31
- package/src/phaser/display/{graphics.js → graphics.ts} +19 -0
- package/src/phaser/display/{graphics_data.js → graphics_data.ts} +11 -0
- package/src/phaser/display/{graphics_data_util.js → graphics_data_util.ts} +1 -0
- package/src/phaser/display/{group.js → group.ts} +29 -0
- package/src/phaser/display/{image.js → image.ts} +45 -6
- 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} +7 -0
- package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +13 -0
- package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +3 -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} +16 -0
- package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +4 -0
- package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +5 -0
- package/src/phaser/display/webgl/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/webgl/{graphics_data.js → graphics_data.ts} +10 -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} +11 -0
- package/src/phaser/display/webgl/{renderer.js → renderer.ts} +18 -0
- package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +6 -0
- package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +7 -0
- package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +11 -0
- package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +6 -0
- package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +6 -0
- package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +11 -0
- package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +17 -0
- package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +4 -0
- package/src/phaser/display/webgl/{texture.js → texture.ts} +21 -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.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.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,73 +1,68 @@
|
|
|
1
|
-
export class Animation {
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Animation instance.
|
|
4
|
-
* @param {import('./game.js').Game} game - The game instance this animation belongs to.
|
|
5
|
-
* @param {import('../display/image.js').Image} parent - The Image object that owns this animation.
|
|
6
|
-
* @param {string} name - The unique name of this animation.
|
|
7
|
-
* @param {import('./frame_data.js').FrameData} frameData - The FrameData object that contains the frames for this animation.
|
|
8
|
-
* @param {string[]|number[]} frames - An array of frame identifiers (names or indices) to use in this animation.
|
|
9
|
-
* @param {number} frameRate - The frame rate at which this animation should play (frames per second).
|
|
10
|
-
* @param {boolean} loop - Whether the animation should loop when it completes.
|
|
11
|
-
*/
|
|
12
|
-
constructor(game: import("./game.js").Game, parent: import("../display/image.js").Image, name: string, frameData: import("./frame_data.js").FrameData, frames: string[] | number[], frameRate: number, loop?: boolean);
|
|
1
|
+
export declare class Animation {
|
|
13
2
|
/** @type {import('./game.js').Game} */
|
|
14
|
-
game:
|
|
15
|
-
|
|
3
|
+
game: any;
|
|
4
|
+
/** @type {import('../display/image.js').Image} */
|
|
5
|
+
_parent: any;
|
|
16
6
|
/** @type {import('./frame_data.js').FrameData} */
|
|
17
|
-
_frameData:
|
|
7
|
+
_frameData: any;
|
|
18
8
|
/** @type {string} */
|
|
19
|
-
name:
|
|
20
|
-
|
|
9
|
+
name: any;
|
|
10
|
+
/** @type {Array<string|number>} */
|
|
11
|
+
_frames: any;
|
|
21
12
|
/** @type {number} */
|
|
22
|
-
delay:
|
|
13
|
+
delay: any;
|
|
23
14
|
/** @type {boolean} */
|
|
24
|
-
loop:
|
|
15
|
+
loop: any;
|
|
25
16
|
/** @type {number} */
|
|
26
|
-
loopCount:
|
|
17
|
+
loopCount: any;
|
|
27
18
|
/** @type {boolean} */
|
|
28
|
-
isFinished:
|
|
19
|
+
isFinished: any;
|
|
29
20
|
/** @type {boolean} */
|
|
30
|
-
isPlaying:
|
|
21
|
+
isPlaying: any;
|
|
31
22
|
/** @type {boolean} */
|
|
32
|
-
isPaused:
|
|
23
|
+
isPaused: any;
|
|
33
24
|
/** @type {number} */
|
|
34
|
-
_pauseStartTime:
|
|
25
|
+
_pauseStartTime: any;
|
|
35
26
|
/** @type {number} */
|
|
36
|
-
_frameIndex:
|
|
27
|
+
_frameIndex: any;
|
|
37
28
|
/** @type {number} */
|
|
38
|
-
_frameDiff:
|
|
29
|
+
_frameDiff: any;
|
|
39
30
|
/** @type {number} */
|
|
40
|
-
_frameSkip:
|
|
41
|
-
|
|
31
|
+
_frameSkip: any;
|
|
32
|
+
/** @type {import('./frame.js').Frame} */
|
|
33
|
+
currentFrame: any;
|
|
42
34
|
/** @type {Signal} */
|
|
43
|
-
onStart:
|
|
35
|
+
onStart: any;
|
|
36
|
+
/** @type {Signal | null} */
|
|
37
|
+
onUpdate: any;
|
|
44
38
|
/** @type {Signal} */
|
|
45
|
-
|
|
39
|
+
onComplete: any;
|
|
46
40
|
/** @type {Signal} */
|
|
47
|
-
|
|
48
|
-
/** @type {Signal} */
|
|
49
|
-
onLoop: Signal;
|
|
41
|
+
onLoop: any;
|
|
50
42
|
/** @type {boolean} */
|
|
51
|
-
isReversed:
|
|
43
|
+
isReversed: any;
|
|
44
|
+
/** @type {number} */
|
|
45
|
+
_timeLastFrame: any;
|
|
46
|
+
/** @type {number} */
|
|
47
|
+
_timeNextFrame: any;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new Animation instance.
|
|
50
|
+
* @param {import('./game.js').Game} game - The game instance this animation belongs to.
|
|
51
|
+
* @param {import('../display/image.js').Image} parent - The Image object that owns this animation.
|
|
52
|
+
* @param {string} name - The unique name of this animation.
|
|
53
|
+
* @param {import('./frame_data.js').FrameData} frameData - The FrameData object that contains the frames for this animation.
|
|
54
|
+
* @param {string[]|number[]} frames - An array of frame identifiers (names or indices) to use in this animation.
|
|
55
|
+
* @param {number} frameRate - The frame rate at which this animation should play (frames per second).
|
|
56
|
+
* @param {boolean} loop - Whether the animation should loop when it completes.
|
|
57
|
+
*/
|
|
58
|
+
constructor(game: any, parent: any, name: any, frameData: any, frames: any, frameRate: any, loop?: boolean);
|
|
52
59
|
/**
|
|
53
60
|
* Plays this animation.
|
|
54
61
|
* @param {number} frameRate - The new frame rate to use for this animation (if null, uses the original frame rate).
|
|
55
62
|
* @param {boolean} loop - Whether to loop this animation (if null, uses the original loop setting).
|
|
56
63
|
* @returns {Animation} This Animation instance for chaining.
|
|
57
64
|
*/
|
|
58
|
-
play(frameRate?:
|
|
59
|
-
/**
|
|
60
|
-
* Sets whether this animation is currently paused.
|
|
61
|
-
* @param {boolean} value - True to pause the animation, false to resume it.
|
|
62
|
-
*/
|
|
63
|
-
set paused(value: boolean);
|
|
64
|
-
/**
|
|
65
|
-
* Gets whether this animation is currently paused.
|
|
66
|
-
* @returns {boolean} True if the animation is paused, false otherwise.
|
|
67
|
-
*/
|
|
68
|
-
get paused(): boolean;
|
|
69
|
-
_timeLastFrame: number;
|
|
70
|
-
_timeNextFrame: number;
|
|
65
|
+
play(frameRate?: any, loop?: any): this;
|
|
71
66
|
/**
|
|
72
67
|
* Restarts this animation from the beginning.
|
|
73
68
|
*/
|
|
@@ -76,28 +71,18 @@ export class Animation {
|
|
|
76
71
|
* Reverses the direction of this animation.
|
|
77
72
|
* @returns {Animation} This Animation instance for chaining.
|
|
78
73
|
*/
|
|
79
|
-
reverse():
|
|
80
|
-
/**
|
|
81
|
-
* Sets whether this animation is currently reversed.
|
|
82
|
-
* @param {boolean} value - True to reverse the animation, false to normal direction.
|
|
83
|
-
*/
|
|
84
|
-
set reversed(value: boolean);
|
|
85
|
-
/**
|
|
86
|
-
* Gets whether this animation is currently reversed.
|
|
87
|
-
* @returns {boolean} True if the animation is reversed, false otherwise.
|
|
88
|
-
*/
|
|
89
|
-
get reversed(): boolean;
|
|
74
|
+
reverse(): this;
|
|
90
75
|
/**
|
|
91
76
|
* Reverses the animation direction once, then returns to normal direction.
|
|
92
77
|
* @returns {Animation} This Animation instance for chaining.
|
|
93
78
|
*/
|
|
94
|
-
reverseOnce():
|
|
79
|
+
reverseOnce(): any;
|
|
95
80
|
/**
|
|
96
81
|
* Sets the current frame of this animation.
|
|
97
82
|
* @param {string|number} frameId - The identifier (name or index) of the frame to set.
|
|
98
83
|
* @param {boolean} useLocalFrameIndex - If true, treats frameId as an index into the local frames array.
|
|
99
84
|
*/
|
|
100
|
-
setFrame(frameId:
|
|
85
|
+
setFrame(frameId: any, useLocalFrameIndex?: boolean): void;
|
|
101
86
|
/**
|
|
102
87
|
* Stops this animation.
|
|
103
88
|
* @param {boolean} resetFrame - If true, resets to the first frame.
|
|
@@ -123,7 +108,7 @@ export class Animation {
|
|
|
123
108
|
* @param {boolean} fromPlay - Whether this call is from play().
|
|
124
109
|
* @returns {boolean} True if the frame was updated, false otherwise.
|
|
125
110
|
*/
|
|
126
|
-
updateCurrentFrame(signalUpdate:
|
|
111
|
+
updateCurrentFrame(signalUpdate: any, fromPlay?: boolean): boolean;
|
|
127
112
|
/**
|
|
128
113
|
* Advances the animation to the next frame(s).
|
|
129
114
|
* @param {number} quantity - The number of frames to advance by.
|
|
@@ -138,7 +123,7 @@ export class Animation {
|
|
|
138
123
|
* Updates the frame data used by this animation.
|
|
139
124
|
* @param {import('./frame_data.js').FrameData} frameData - The new FrameData object to use.
|
|
140
125
|
*/
|
|
141
|
-
updateFrameData(frameData:
|
|
126
|
+
updateFrameData(frameData: any): void;
|
|
142
127
|
/**
|
|
143
128
|
* Destroys this animation and cleans up resources.
|
|
144
129
|
*/
|
|
@@ -148,40 +133,59 @@ export class Animation {
|
|
|
148
133
|
*/
|
|
149
134
|
complete(): void;
|
|
150
135
|
/**
|
|
151
|
-
* Gets
|
|
152
|
-
* @returns {
|
|
136
|
+
* Gets whether this animation is currently paused.
|
|
137
|
+
* @returns {boolean} True if the animation is paused, false otherwise.
|
|
153
138
|
*/
|
|
154
|
-
get
|
|
139
|
+
get paused(): any;
|
|
155
140
|
/**
|
|
156
|
-
* Sets
|
|
157
|
-
* @param {
|
|
141
|
+
* Sets whether this animation is currently paused.
|
|
142
|
+
* @param {boolean} value - True to pause the animation, false to resume it.
|
|
158
143
|
*/
|
|
159
|
-
set
|
|
144
|
+
set paused(value: any);
|
|
145
|
+
/**
|
|
146
|
+
* Gets whether this animation is currently reversed.
|
|
147
|
+
* @returns {boolean} True if the animation is reversed, false otherwise.
|
|
148
|
+
*/
|
|
149
|
+
get reversed(): any;
|
|
150
|
+
/**
|
|
151
|
+
* Sets whether this animation is currently reversed.
|
|
152
|
+
* @param {boolean} value - True to reverse the animation, false to normal direction.
|
|
153
|
+
*/
|
|
154
|
+
set reversed(value: any);
|
|
155
|
+
/**
|
|
156
|
+
* Gets the total number of frames in this animation.
|
|
157
|
+
* @returns {number} The total number of frames.
|
|
158
|
+
*/
|
|
159
|
+
get frameTotal(): any;
|
|
160
160
|
/**
|
|
161
161
|
* Gets the current frame index.
|
|
162
162
|
* @returns {number} The current frame index.
|
|
163
163
|
*/
|
|
164
|
-
get frame():
|
|
164
|
+
get frame(): any;
|
|
165
165
|
/**
|
|
166
|
-
* Sets the
|
|
167
|
-
* @param {number} value - The new frame
|
|
166
|
+
* Sets the current frame index.
|
|
167
|
+
* @param {number} value - The new frame index to set.
|
|
168
168
|
*/
|
|
169
|
-
set
|
|
169
|
+
set frame(value: any);
|
|
170
170
|
/**
|
|
171
171
|
* Gets the current animation speed (frame rate).
|
|
172
172
|
* @returns {number} The frame rate in frames per second.
|
|
173
173
|
*/
|
|
174
174
|
get speed(): number;
|
|
175
175
|
/**
|
|
176
|
-
* Sets
|
|
177
|
-
* @param {
|
|
176
|
+
* Sets the animation speed (frame rate).
|
|
177
|
+
* @param {number} value - The new frame rate in frames per second.
|
|
178
178
|
*/
|
|
179
|
-
set
|
|
179
|
+
set speed(value: number);
|
|
180
180
|
/**
|
|
181
181
|
* Gets whether the update signal is enabled.
|
|
182
182
|
* @returns {boolean} True if the update signal is enabled, false otherwise.
|
|
183
183
|
*/
|
|
184
184
|
get enableUpdate(): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Sets whether the update signal is enabled.
|
|
187
|
+
* @param {boolean} value - True to enable the update signal, false to disable it.
|
|
188
|
+
*/
|
|
189
|
+
set enableUpdate(value: boolean);
|
|
185
190
|
}
|
|
186
|
-
import { Signal } from './signal.js';
|
|
187
191
|
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IACpB,uCAAuC;IACvC,IAAI,MAAC;IACL,kDAAkD;IAClD,OAAO,MAAC;IACR,kDAAkD;IAClD,UAAU,MAAC;IACX,qBAAqB;IACrB,IAAI,MAAC;IACL,mCAAmC;IACnC,OAAO,MAAC;IACR,qBAAqB;IACrB,KAAK,MAAC;IACN,sBAAsB;IACtB,IAAI,MAAC;IACL,qBAAqB;IACrB,SAAS,MAAC;IACV,sBAAsB;IACtB,UAAU,MAAC;IACX,sBAAsB;IACtB,SAAS,MAAC;IACV,sBAAsB;IACtB,QAAQ,MAAC;IACT,qBAAqB;IACrB,eAAe,MAAC;IAChB,qBAAqB;IACrB,WAAW,MAAC;IACZ,qBAAqB;IACrB,UAAU,MAAC;IACX,qBAAqB;IACrB,UAAU,MAAC;IACX,yCAAyC;IACzC,YAAY,MAAC;IACb,qBAAqB;IACrB,OAAO,MAAC;IACR,4BAA4B;IAC5B,QAAQ,MAAC;IACT,qBAAqB;IACrB,UAAU,MAAC;IACX,qBAAqB;IACrB,MAAM,MAAC;IACP,sBAAsB;IACtB,UAAU,MAAC;IACX,qBAAqB;IACrB,cAAc,MAAC;IACf,qBAAqB;IACrB,cAAc,MAAC;IACf;;;;;;;;;OASG;gBACS,IAAI,KAAA,EAAE,MAAM,KAAA,EAAE,IAAI,KAAA,EAAE,SAAS,KAAA,EAAE,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,IAAI,UAAQ;IA8C1E;;;;;OAKG;IACH,IAAI,CAAC,SAAS,MAAO,EAAE,IAAI,MAAO;IAwBlC;;OAEG;IACH,OAAO;IAeP;;;OAGG;IACH,OAAO;IAKP;;;OAGG;IACH,WAAW;IAKX;;;;OAIG;IACH,QAAQ,CAAC,OAAO,KAAA,EAAE,kBAAkB,UAAQ;IA6B5C;;;;OAIG;IACH,IAAI,CAAC,UAAU,UAAQ,EAAE,gBAAgB,UAAQ;IAgBjD;;OAEG;IACH,OAAO;IAMP;;OAEG;IACH,QAAQ;IAMR;;;OAGG;IACH,MAAM;IAuDN;;;;;OAKG;IACH,kBAAkB,CAAC,YAAY,KAAA,EAAE,QAAQ,UAAQ;IAmBjD;;;OAGG;IACH,IAAI,CAAC,QAAQ,SAAI;IAejB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,SAAI;IAerB;;;OAGG;IACH,eAAe,CAAC,SAAS,KAAA;IAOzB;;OAEG;IACH,OAAO;IAqBP;;OAEG;IACH,QAAQ;IAUR;;;OAGG;IACH,IAAI,MAAM,QAET;IAED;;;OAGG;IACH,IAAI,MAAM,CAAC,KAAK,KAAA,EAOf;IAED;;;OAGG;IACH,IAAI,QAAQ,QAEX;IAED;;;OAGG;IACH,IAAI,QAAQ,CAAC,KAAK,KAAA,EAEjB;IAED;;;OAGG;IACH,IAAI,UAAU,QAEb;IAED;;;OAGG;IACH,IAAI,KAAK,QAKR;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,KAAA,EASd;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAId;IAED;;;OAGG;IACH,IAAI,YAAY,YAEf;IAED;;;OAGG;IACH,IAAI,YAAY,CAAC,KAAK,SAAA,EAOrB;CACF"}
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
export class AnimationManager {
|
|
1
|
+
export declare class AnimationManager {
|
|
2
|
+
sprite: any;
|
|
3
|
+
game: any;
|
|
4
|
+
currentFrame: any;
|
|
5
|
+
currentAnim: any;
|
|
6
|
+
updateIfVisible: any;
|
|
7
|
+
isLoaded: any;
|
|
8
|
+
_frameData: any;
|
|
9
|
+
_anims: any;
|
|
10
|
+
_outputFrames: any;
|
|
2
11
|
/**
|
|
3
12
|
* Creates a new AnimationManager instance.
|
|
4
13
|
* @param {import('../display/image.js').Image} sprite - Reference to the parent Sprite.
|
|
5
14
|
*/
|
|
6
|
-
constructor(sprite:
|
|
7
|
-
sprite: import("../display/image.js").Image;
|
|
8
|
-
game: import("./game.js").Game;
|
|
9
|
-
/** @type {import('./frame.js').Frame} */
|
|
10
|
-
currentFrame: import("./frame.js").Frame;
|
|
11
|
-
/** @type {Animation} */
|
|
12
|
-
currentAnim: Animation;
|
|
13
|
-
updateIfVisible: boolean;
|
|
14
|
-
isLoaded: boolean;
|
|
15
|
-
/** @type {import('./frame_data.js').FrameData} */
|
|
16
|
-
_frameData: import("./frame_data.js").FrameData;
|
|
17
|
-
/** @type {{[key: string]: Animation}} */
|
|
18
|
-
_anims: {
|
|
19
|
-
[key: string]: Animation;
|
|
20
|
-
};
|
|
21
|
-
/** @type {number[]} */
|
|
22
|
-
_outputFrames: number[];
|
|
15
|
+
constructor(sprite: any);
|
|
23
16
|
/**
|
|
24
17
|
* Destroys the AnimationManager and cleans up resources.
|
|
25
18
|
*/
|
|
@@ -30,32 +23,14 @@ export class AnimationManager {
|
|
|
30
23
|
* @param {string|number} frame - The frame index or name to set as current.
|
|
31
24
|
* @returns {boolean} True if the frame data was loaded successfully, false otherwise.
|
|
32
25
|
*/
|
|
33
|
-
loadFrameData(frameData:
|
|
34
|
-
/**
|
|
35
|
-
* Sets the current frame index.
|
|
36
|
-
*/
|
|
37
|
-
set frame(value: number);
|
|
38
|
-
/**
|
|
39
|
-
* Gets the current frame index.
|
|
40
|
-
* @returns {number} The current frame index.
|
|
41
|
-
*/
|
|
42
|
-
get frame(): number;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the current frame by name.
|
|
45
|
-
*/
|
|
46
|
-
set frameName(value: string);
|
|
47
|
-
/**
|
|
48
|
-
* Gets the current frame name.
|
|
49
|
-
* @returns {string} The current frame name, or null if no frame is set.
|
|
50
|
-
*/
|
|
51
|
-
get frameName(): string;
|
|
26
|
+
loadFrameData(frameData: any, frame: any): boolean;
|
|
52
27
|
/**
|
|
53
28
|
* Copies frame data into the AnimationManager.
|
|
54
29
|
* @param {import('./frame_data.js').FrameData} frameData - The FrameData to copy.
|
|
55
30
|
* @param {string|number} frame - The frame index or name to set as current.
|
|
56
31
|
* @returns {boolean} True if the frame data was copied successfully, false otherwise.
|
|
57
32
|
*/
|
|
58
|
-
copyFrameData(frameData:
|
|
33
|
+
copyFrameData(frameData: any, frame: any): boolean;
|
|
59
34
|
/**
|
|
60
35
|
* Adds a new animation to the AnimationManager.
|
|
61
36
|
* @param {string} name - The name of the animation.
|
|
@@ -65,14 +40,14 @@ export class AnimationManager {
|
|
|
65
40
|
* @param {boolean | undefined} useNumericIndex - Whether to treat frameList as numeric indices.
|
|
66
41
|
* @returns {Animation} The created Animation object.
|
|
67
42
|
*/
|
|
68
|
-
add(name:
|
|
43
|
+
add(name: any, frameList: any, frameRate?: number, loop?: boolean, useNumericIndex?: any): any;
|
|
69
44
|
/**
|
|
70
45
|
* Validates a list of frames against the current frame data.
|
|
71
46
|
* @param {string[] | number[]} frames - The list of frames to validate.
|
|
72
47
|
* @param {boolean} useNumericIndex - Whether to treat frameList as numeric indices.
|
|
73
48
|
* @returns {boolean} True if all frames are valid, false otherwise.
|
|
74
49
|
*/
|
|
75
|
-
validateFrames(frames:
|
|
50
|
+
validateFrames(frames: any, useNumericIndex?: boolean): boolean;
|
|
76
51
|
/**
|
|
77
52
|
* Plays an animation by name.
|
|
78
53
|
* @param {string} name - The name of the animation to play.
|
|
@@ -80,13 +55,13 @@ export class AnimationManager {
|
|
|
80
55
|
* @param {boolean} loop - Whether the animation should loop, or null to use the animation's default.
|
|
81
56
|
* @returns {Animation} The Animation object that was played, or null if not found.
|
|
82
57
|
*/
|
|
83
|
-
play(name:
|
|
58
|
+
play(name: any, frameRate?: any, loop?: any): any;
|
|
84
59
|
/**
|
|
85
60
|
* Stops an animation by name.
|
|
86
61
|
* @param {string} name - The name of the animation to stop, or null to stop the current animation.
|
|
87
62
|
* @param {boolean} resetFrame - Whether to reset the frame to the first frame of the animation.
|
|
88
63
|
*/
|
|
89
|
-
stop(name?:
|
|
64
|
+
stop(name?: any, resetFrame?: boolean): void;
|
|
90
65
|
/**
|
|
91
66
|
* Updates the animation manager state.
|
|
92
67
|
* @returns {boolean} True if an animation was updated, false otherwise.
|
|
@@ -96,18 +71,18 @@ export class AnimationManager {
|
|
|
96
71
|
* Advances the current animation by a specified number of frames.
|
|
97
72
|
* @param {number} quantity - The number of frames to advance by.
|
|
98
73
|
*/
|
|
99
|
-
next(quantity:
|
|
74
|
+
next(quantity: any): void;
|
|
100
75
|
/**
|
|
101
76
|
* Moves the current animation back by a specified number of frames.
|
|
102
77
|
* @param {number} quantity - The number of frames to move back by.
|
|
103
78
|
*/
|
|
104
|
-
previous(quantity:
|
|
79
|
+
previous(quantity: any): void;
|
|
105
80
|
/**
|
|
106
81
|
* Gets an animation by name.
|
|
107
82
|
* @param {string} name - The name of the animation to retrieve.
|
|
108
83
|
* @returns {Animation} The Animation object, or null if not found.
|
|
109
84
|
*/
|
|
110
|
-
getAnimation(name:
|
|
85
|
+
getAnimation(name: any): any;
|
|
111
86
|
/**
|
|
112
87
|
* Refreshes the current frame texture (not implemented).
|
|
113
88
|
*/
|
|
@@ -116,27 +91,43 @@ export class AnimationManager {
|
|
|
116
91
|
* Gets the frame data used by this AnimationManager.
|
|
117
92
|
* @returns {import('./frame_data.js').FrameData} The FrameData object.
|
|
118
93
|
*/
|
|
119
|
-
get frameData():
|
|
94
|
+
get frameData(): any;
|
|
120
95
|
/**
|
|
121
96
|
* Gets the total number of frames in the frame data.
|
|
122
97
|
* @returns {number} The total number of frames.
|
|
123
98
|
*/
|
|
124
|
-
get frameTotal():
|
|
125
|
-
/**
|
|
126
|
-
* Sets the paused state of the current animation.
|
|
127
|
-
*/
|
|
128
|
-
set paused(value: boolean);
|
|
99
|
+
get frameTotal(): any;
|
|
129
100
|
/**
|
|
130
101
|
* Gets the paused state of the current animation.
|
|
131
102
|
* @returns {boolean} True if the current animation is paused, false otherwise.
|
|
132
103
|
*/
|
|
133
|
-
get paused():
|
|
104
|
+
get paused(): any;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the paused state of the current animation.
|
|
107
|
+
*/
|
|
108
|
+
set paused(value: any);
|
|
134
109
|
/**
|
|
135
110
|
* Gets the name of the current animation.
|
|
136
111
|
* @returns {string} The name of the current animation, or null if no animation is active.
|
|
137
112
|
*/
|
|
138
|
-
get name():
|
|
139
|
-
|
|
113
|
+
get name(): any;
|
|
114
|
+
/**
|
|
115
|
+
* Gets the current frame index.
|
|
116
|
+
* @returns {number} The current frame index.
|
|
117
|
+
*/
|
|
118
|
+
get frame(): any;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the current frame index.
|
|
121
|
+
*/
|
|
122
|
+
set frame(value: any);
|
|
123
|
+
/**
|
|
124
|
+
* Gets the current frame name.
|
|
125
|
+
* @returns {string} The current frame name, or null if no frame is set.
|
|
126
|
+
*/
|
|
127
|
+
get frameName(): any;
|
|
128
|
+
/**
|
|
129
|
+
* Sets the current frame by name.
|
|
130
|
+
*/
|
|
131
|
+
set frameName(value: any);
|
|
140
132
|
}
|
|
141
|
-
import { Animation } from './animation.js';
|
|
142
133
|
//# sourceMappingURL=animation_manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_manager.ts"],"names":[],"mappings":"AAIA,qBAAa,gBAAgB;IAC7B,MAAM,MAAC;IACP,IAAI,MAAC;IACL,YAAY,MAAC;IACb,WAAW,MAAC;IACZ,eAAe,MAAC;IAChB,QAAQ,MAAC;IACT,UAAU,MAAC;IACX,MAAM,MAAC;IACP,aAAa,MAAC;IACZ;;;OAGG;gBACS,MAAM,KAAA;IAiBlB;;OAEG;IACH,OAAO;IAcP;;;;;OAKG;IACH,aAAa,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAwB9B;;;;;OAKG;IACH,aAAa,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAqB9B;;;;;;;;OAQG;IACH,GAAG,CAAC,IAAI,KAAA,EAAE,SAAS,KAAA,EAAE,SAAS,SAAK,EAAE,IAAI,UAAQ,EAAE,eAAe,MAAY;IA4B9E;;;;;OAKG;IACH,cAAc,CAAC,MAAM,KAAA,EAAE,eAAe,UAAQ;IAa9C;;;;;;OAMG;IACH,IAAI,CAAC,IAAI,KAAA,EAAE,SAAS,MAAO,EAAE,IAAI,MAAO;IAoBxC;;;;OAIG;IACH,IAAI,CAAC,IAAI,MAAO,EAAE,UAAU,UAAQ;IAMpC;;;OAGG;IACH,MAAM;IAWN;;;OAGG;IACH,IAAI,CAAC,QAAQ,KAAA;IAOb;;;OAGG;IACH,QAAQ,CAAC,QAAQ,KAAA;IAOjB;;;;OAIG;IACH,YAAY,CAAC,IAAI,KAAA;IAOjB;;OAEG;IACH,YAAY;IAMZ;;;OAGG;IACH,IAAI,SAAS,QAEZ;IAED;;;OAGG;IACH,IAAI,UAAU,QAEb;IAED;;;OAGG;IACH,IAAI,MAAM,QAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,KAAA,EAEf;IAED;;;OAGG;IACH,IAAI,IAAI,QAKP;IAED;;;OAGG;IACH,IAAI,KAAK,QAKR;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,KAAA,EAWd;IAED;;;OAGG;IACH,IAAI,SAAS,QAKZ;IAED;;OAEG;IACH,IAAI,SAAS,CAAC,KAAK,KAAA,EAYlB;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FrameData } from './frame_data.js';
|
|
2
|
+
/**
|
|
3
|
+
* TBD.
|
|
4
|
+
* @param {import('./game.js').Game} game - TBD.
|
|
5
|
+
* @param {string} key - TBD.
|
|
6
|
+
* @param {number} frameWidth - TBD.
|
|
7
|
+
* @param {number} frameHeight - TBD.
|
|
8
|
+
* @param {number} frameMax - TBD.
|
|
9
|
+
* @param {number} margin - TBD.
|
|
10
|
+
* @param {number} spacing - TBD.
|
|
11
|
+
* @returns {FrameData} TBD.
|
|
12
|
+
*/
|
|
13
|
+
export declare const spriteSheet: (game: any, key: any, frameWidth: any, frameHeight: any, frameMax: any, margin: any, spacing: any) => FrameData;
|
|
14
|
+
/**
|
|
15
|
+
* TBD.
|
|
16
|
+
* @param {import('./game.js').Game} game - TBD.
|
|
17
|
+
* @param {object} json - TBD.
|
|
18
|
+
* @returns {FrameData} TBD.
|
|
19
|
+
*/
|
|
20
|
+
export declare const JSONDataHash: (game: any, json: any) => FrameData;
|
|
21
|
+
//# sourceMappingURL=animation_parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GAAI,SAAI,EAAE,QAAG,EAAE,eAAU,EAAE,gBAAW,EAAE,aAAQ,EAAE,WAAM,EAAE,YAAO,cA0CxF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,SAAI,EAAE,SAAI,cA+BtC,CAAC"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export class ArraySet {
|
|
1
|
+
export declare class ArraySet {
|
|
2
|
+
position: number;
|
|
3
|
+
list: any[];
|
|
2
4
|
/**
|
|
3
5
|
* TBD.
|
|
4
6
|
* @param {object[]} list - TBD.
|
|
5
7
|
*/
|
|
6
|
-
constructor(list?:
|
|
7
|
-
position: number;
|
|
8
|
-
list: any[];
|
|
8
|
+
constructor(list?: any[]);
|
|
9
9
|
/**
|
|
10
10
|
* TBD.
|
|
11
11
|
* @param {object} item - TBD.
|
|
12
12
|
* @returns {object} TBD.
|
|
13
13
|
*/
|
|
14
|
-
add(item:
|
|
14
|
+
add(item: any): any;
|
|
15
15
|
/**
|
|
16
16
|
* TBD.
|
|
17
17
|
* @param {object} item - TBD.
|
|
18
18
|
* @returns {number} TBD.
|
|
19
19
|
*/
|
|
20
|
-
getIndex(item:
|
|
20
|
+
getIndex(item: any): number;
|
|
21
21
|
/**
|
|
22
22
|
* TBD.
|
|
23
23
|
* @param {string} property - TBD.
|
|
24
24
|
* @param {object} value - TBD.
|
|
25
25
|
* @returns {object} TBD.
|
|
26
26
|
*/
|
|
27
|
-
getByKey(property:
|
|
27
|
+
getByKey(property: any, value: any): any;
|
|
28
28
|
/**
|
|
29
29
|
* TBD.
|
|
30
30
|
* @param {object} item - TBD.
|
|
31
31
|
* @returns {boolean} TBD.
|
|
32
32
|
*/
|
|
33
|
-
exists(item:
|
|
33
|
+
exists(item: any): boolean;
|
|
34
34
|
/**
|
|
35
35
|
* TBD.
|
|
36
36
|
*/
|
|
@@ -40,19 +40,19 @@ export class ArraySet {
|
|
|
40
40
|
* @param {object} item - TBD.
|
|
41
41
|
* @returns {object} TBD.
|
|
42
42
|
*/
|
|
43
|
-
remove(item:
|
|
43
|
+
remove(item: any): any;
|
|
44
44
|
/**
|
|
45
45
|
* TBD.
|
|
46
46
|
* @param {string} key - TBD.
|
|
47
47
|
* @param {object} value - TBD.
|
|
48
48
|
*/
|
|
49
|
-
setAll(key:
|
|
49
|
+
setAll(key: any, value: any): void;
|
|
50
50
|
/**
|
|
51
51
|
* TBD.
|
|
52
52
|
* @param {string} key - TBD.
|
|
53
53
|
* @param {...any} args - TBD.
|
|
54
54
|
*/
|
|
55
|
-
callAll(key:
|
|
55
|
+
callAll(key: any, ...args: any[]): void;
|
|
56
56
|
/**
|
|
57
57
|
* TBD.
|
|
58
58
|
* @param {boolean} destroy - TBD.
|
|
@@ -67,11 +67,11 @@ export class ArraySet {
|
|
|
67
67
|
* TBD.
|
|
68
68
|
* @returns {object} TBD.
|
|
69
69
|
*/
|
|
70
|
-
get first():
|
|
70
|
+
get first(): any;
|
|
71
71
|
/**
|
|
72
72
|
* TBD.
|
|
73
73
|
* @returns {object} TBD.
|
|
74
74
|
*/
|
|
75
|
-
get next():
|
|
75
|
+
get next(): any;
|
|
76
76
|
}
|
|
77
77
|
//# sourceMappingURL=array_set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array_set.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/array_set.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ;;;OAGG;gBACS,IAAI,GAAE,GAAG,EAAO;IAK5B;;;;OAIG;IACH,GAAG,CAAC,IAAI,KAAA;IAOR;;;;OAIG;IACH,QAAQ,CAAC,IAAI,KAAA;IAIb;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,KAAA,EAAE,KAAK,KAAA;IAWxB;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAIX;;OAEG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IASX;;;;OAIG;IACH,MAAM,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;IAUjB;;;;OAIG;IACH,OAAO,CAAC,GAAG,KAAA,EAAE,GAAG,IAAI,OAAA;IAUpB;;;OAGG;IACH,SAAS,CAAC,OAAO,UAAQ;IAezB;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,QAMR;IAED;;;OAGG;IACH,IAAI,IAAI,QAMP;CACF"}
|