@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,4 +1,4 @@
|
|
|
1
|
-
export class Animation {
|
|
1
|
+
export declare class Animation {
|
|
2
2
|
/**
|
|
3
3
|
* Creates a new Animation instance.
|
|
4
4
|
* @param {import('./game.js').Game} game - The game instance this animation belongs to.
|
|
@@ -9,65 +9,14 @@ export class Animation {
|
|
|
9
9
|
* @param {number} frameRate - The frame rate at which this animation should play (frames per second).
|
|
10
10
|
* @param {boolean} loop - Whether the animation should loop when it completes.
|
|
11
11
|
*/
|
|
12
|
-
constructor(game:
|
|
13
|
-
/** @type {import('./game.js').Game} */
|
|
14
|
-
game: import("./game.js").Game;
|
|
15
|
-
_parent: import("../display/image.js").Image;
|
|
16
|
-
/** @type {import('./frame_data.js').FrameData} */
|
|
17
|
-
_frameData: import("./frame_data.js").FrameData;
|
|
18
|
-
/** @type {string} */
|
|
19
|
-
name: string;
|
|
20
|
-
_frames: any[];
|
|
21
|
-
/** @type {number} */
|
|
22
|
-
delay: number;
|
|
23
|
-
/** @type {boolean} */
|
|
24
|
-
loop: boolean;
|
|
25
|
-
/** @type {number} */
|
|
26
|
-
loopCount: number;
|
|
27
|
-
/** @type {boolean} */
|
|
28
|
-
isFinished: boolean;
|
|
29
|
-
/** @type {boolean} */
|
|
30
|
-
isPlaying: boolean;
|
|
31
|
-
/** @type {boolean} */
|
|
32
|
-
isPaused: boolean;
|
|
33
|
-
/** @type {number} */
|
|
34
|
-
_pauseStartTime: number;
|
|
35
|
-
/** @type {number} */
|
|
36
|
-
_frameIndex: number;
|
|
37
|
-
/** @type {number} */
|
|
38
|
-
_frameDiff: number;
|
|
39
|
-
/** @type {number} */
|
|
40
|
-
_frameSkip: number;
|
|
41
|
-
currentFrame: import("./frame.js").Frame;
|
|
42
|
-
/** @type {Signal} */
|
|
43
|
-
onStart: Signal;
|
|
44
|
-
/** @type {Signal} */
|
|
45
|
-
onUpdate: Signal;
|
|
46
|
-
/** @type {Signal} */
|
|
47
|
-
onComplete: Signal;
|
|
48
|
-
/** @type {Signal} */
|
|
49
|
-
onLoop: Signal;
|
|
50
|
-
/** @type {boolean} */
|
|
51
|
-
isReversed: boolean;
|
|
12
|
+
constructor(game: any, parent: any, name: any, frameData: any, frames: any, frameRate: any, loop?: boolean);
|
|
52
13
|
/**
|
|
53
14
|
* Plays this animation.
|
|
54
15
|
* @param {number} frameRate - The new frame rate to use for this animation (if null, uses the original frame rate).
|
|
55
16
|
* @param {boolean} loop - Whether to loop this animation (if null, uses the original loop setting).
|
|
56
17
|
* @returns {Animation} This Animation instance for chaining.
|
|
57
18
|
*/
|
|
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;
|
|
19
|
+
play(frameRate?: any, loop?: any): this;
|
|
71
20
|
/**
|
|
72
21
|
* Restarts this animation from the beginning.
|
|
73
22
|
*/
|
|
@@ -76,28 +25,18 @@ export class Animation {
|
|
|
76
25
|
* Reverses the direction of this animation.
|
|
77
26
|
* @returns {Animation} This Animation instance for chaining.
|
|
78
27
|
*/
|
|
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;
|
|
28
|
+
reverse(): this;
|
|
90
29
|
/**
|
|
91
30
|
* Reverses the animation direction once, then returns to normal direction.
|
|
92
31
|
* @returns {Animation} This Animation instance for chaining.
|
|
93
32
|
*/
|
|
94
|
-
reverseOnce():
|
|
33
|
+
reverseOnce(): this;
|
|
95
34
|
/**
|
|
96
35
|
* Sets the current frame of this animation.
|
|
97
36
|
* @param {string|number} frameId - The identifier (name or index) of the frame to set.
|
|
98
37
|
* @param {boolean} useLocalFrameIndex - If true, treats frameId as an index into the local frames array.
|
|
99
38
|
*/
|
|
100
|
-
setFrame(frameId:
|
|
39
|
+
setFrame(frameId: any, useLocalFrameIndex?: boolean): void;
|
|
101
40
|
/**
|
|
102
41
|
* Stops this animation.
|
|
103
42
|
* @param {boolean} resetFrame - If true, resets to the first frame.
|
|
@@ -123,7 +62,7 @@ export class Animation {
|
|
|
123
62
|
* @param {boolean} fromPlay - Whether this call is from play().
|
|
124
63
|
* @returns {boolean} True if the frame was updated, false otherwise.
|
|
125
64
|
*/
|
|
126
|
-
updateCurrentFrame(signalUpdate:
|
|
65
|
+
updateCurrentFrame(signalUpdate: any, fromPlay?: boolean): boolean;
|
|
127
66
|
/**
|
|
128
67
|
* Advances the animation to the next frame(s).
|
|
129
68
|
* @param {number} quantity - The number of frames to advance by.
|
|
@@ -138,7 +77,7 @@ export class Animation {
|
|
|
138
77
|
* Updates the frame data used by this animation.
|
|
139
78
|
* @param {import('./frame_data.js').FrameData} frameData - The new FrameData object to use.
|
|
140
79
|
*/
|
|
141
|
-
updateFrameData(frameData:
|
|
80
|
+
updateFrameData(frameData: any): void;
|
|
142
81
|
/**
|
|
143
82
|
* Destroys this animation and cleans up resources.
|
|
144
83
|
*/
|
|
@@ -148,40 +87,59 @@ export class Animation {
|
|
|
148
87
|
*/
|
|
149
88
|
complete(): void;
|
|
150
89
|
/**
|
|
151
|
-
* Gets
|
|
152
|
-
* @returns {
|
|
90
|
+
* Gets whether this animation is currently paused.
|
|
91
|
+
* @returns {boolean} True if the animation is paused, false otherwise.
|
|
153
92
|
*/
|
|
154
|
-
get
|
|
93
|
+
get paused(): any;
|
|
155
94
|
/**
|
|
156
|
-
* Sets
|
|
157
|
-
* @param {
|
|
95
|
+
* Sets whether this animation is currently paused.
|
|
96
|
+
* @param {boolean} value - True to pause the animation, false to resume it.
|
|
97
|
+
*/
|
|
98
|
+
set paused(value: any);
|
|
99
|
+
/**
|
|
100
|
+
* Gets whether this animation is currently reversed.
|
|
101
|
+
* @returns {boolean} True if the animation is reversed, false otherwise.
|
|
158
102
|
*/
|
|
159
|
-
|
|
103
|
+
get reversed(): any;
|
|
104
|
+
/**
|
|
105
|
+
* Sets whether this animation is currently reversed.
|
|
106
|
+
* @param {boolean} value - True to reverse the animation, false to normal direction.
|
|
107
|
+
*/
|
|
108
|
+
set reversed(value: any);
|
|
109
|
+
/**
|
|
110
|
+
* Gets the total number of frames in this animation.
|
|
111
|
+
* @returns {number} The total number of frames.
|
|
112
|
+
*/
|
|
113
|
+
get frameTotal(): any;
|
|
160
114
|
/**
|
|
161
115
|
* Gets the current frame index.
|
|
162
116
|
* @returns {number} The current frame index.
|
|
163
117
|
*/
|
|
164
|
-
get frame():
|
|
118
|
+
get frame(): any;
|
|
165
119
|
/**
|
|
166
|
-
* Sets the
|
|
167
|
-
* @param {number} value - The new frame
|
|
120
|
+
* Sets the current frame index.
|
|
121
|
+
* @param {number} value - The new frame index to set.
|
|
168
122
|
*/
|
|
169
|
-
set
|
|
123
|
+
set frame(value: any);
|
|
170
124
|
/**
|
|
171
125
|
* Gets the current animation speed (frame rate).
|
|
172
126
|
* @returns {number} The frame rate in frames per second.
|
|
173
127
|
*/
|
|
174
128
|
get speed(): number;
|
|
175
129
|
/**
|
|
176
|
-
* Sets
|
|
177
|
-
* @param {
|
|
130
|
+
* Sets the animation speed (frame rate).
|
|
131
|
+
* @param {number} value - The new frame rate in frames per second.
|
|
178
132
|
*/
|
|
179
|
-
set
|
|
133
|
+
set speed(value: number);
|
|
180
134
|
/**
|
|
181
135
|
* Gets whether the update signal is enabled.
|
|
182
136
|
* @returns {boolean} True if the update signal is enabled, false otherwise.
|
|
183
137
|
*/
|
|
184
138
|
get enableUpdate(): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Sets whether the update signal is enabled.
|
|
141
|
+
* @param {boolean} value - True to enable the update signal, false to disable it.
|
|
142
|
+
*/
|
|
143
|
+
set enableUpdate(value: boolean);
|
|
185
144
|
}
|
|
186
|
-
import { Signal } from './signal.js';
|
|
187
145
|
//# 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;;;;;;;;;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,9 @@
|
|
|
1
|
-
export class AnimationManager {
|
|
1
|
+
export declare class AnimationManager {
|
|
2
2
|
/**
|
|
3
3
|
* Creates a new AnimationManager instance.
|
|
4
4
|
* @param {import('../display/image.js').Image} sprite - Reference to the parent Sprite.
|
|
5
5
|
*/
|
|
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[];
|
|
6
|
+
constructor(sprite: any);
|
|
23
7
|
/**
|
|
24
8
|
* Destroys the AnimationManager and cleans up resources.
|
|
25
9
|
*/
|
|
@@ -30,32 +14,14 @@ export class AnimationManager {
|
|
|
30
14
|
* @param {string|number} frame - The frame index or name to set as current.
|
|
31
15
|
* @returns {boolean} True if the frame data was loaded successfully, false otherwise.
|
|
32
16
|
*/
|
|
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;
|
|
17
|
+
loadFrameData(frameData: any, frame: any): boolean;
|
|
52
18
|
/**
|
|
53
19
|
* Copies frame data into the AnimationManager.
|
|
54
20
|
* @param {import('./frame_data.js').FrameData} frameData - The FrameData to copy.
|
|
55
21
|
* @param {string|number} frame - The frame index or name to set as current.
|
|
56
22
|
* @returns {boolean} True if the frame data was copied successfully, false otherwise.
|
|
57
23
|
*/
|
|
58
|
-
copyFrameData(frameData:
|
|
24
|
+
copyFrameData(frameData: any, frame: any): boolean;
|
|
59
25
|
/**
|
|
60
26
|
* Adds a new animation to the AnimationManager.
|
|
61
27
|
* @param {string} name - The name of the animation.
|
|
@@ -65,14 +31,14 @@ export class AnimationManager {
|
|
|
65
31
|
* @param {boolean | undefined} useNumericIndex - Whether to treat frameList as numeric indices.
|
|
66
32
|
* @returns {Animation} The created Animation object.
|
|
67
33
|
*/
|
|
68
|
-
add(name:
|
|
34
|
+
add(name: any, frameList: any, frameRate?: number, loop?: boolean, useNumericIndex?: any): any;
|
|
69
35
|
/**
|
|
70
36
|
* Validates a list of frames against the current frame data.
|
|
71
37
|
* @param {string[] | number[]} frames - The list of frames to validate.
|
|
72
38
|
* @param {boolean} useNumericIndex - Whether to treat frameList as numeric indices.
|
|
73
39
|
* @returns {boolean} True if all frames are valid, false otherwise.
|
|
74
40
|
*/
|
|
75
|
-
validateFrames(frames:
|
|
41
|
+
validateFrames(frames: any, useNumericIndex?: boolean): boolean;
|
|
76
42
|
/**
|
|
77
43
|
* Plays an animation by name.
|
|
78
44
|
* @param {string} name - The name of the animation to play.
|
|
@@ -80,13 +46,13 @@ export class AnimationManager {
|
|
|
80
46
|
* @param {boolean} loop - Whether the animation should loop, or null to use the animation's default.
|
|
81
47
|
* @returns {Animation} The Animation object that was played, or null if not found.
|
|
82
48
|
*/
|
|
83
|
-
play(name:
|
|
49
|
+
play(name: any, frameRate?: any, loop?: any): any;
|
|
84
50
|
/**
|
|
85
51
|
* Stops an animation by name.
|
|
86
52
|
* @param {string} name - The name of the animation to stop, or null to stop the current animation.
|
|
87
53
|
* @param {boolean} resetFrame - Whether to reset the frame to the first frame of the animation.
|
|
88
54
|
*/
|
|
89
|
-
stop(name?:
|
|
55
|
+
stop(name?: any, resetFrame?: boolean): void;
|
|
90
56
|
/**
|
|
91
57
|
* Updates the animation manager state.
|
|
92
58
|
* @returns {boolean} True if an animation was updated, false otherwise.
|
|
@@ -96,18 +62,18 @@ export class AnimationManager {
|
|
|
96
62
|
* Advances the current animation by a specified number of frames.
|
|
97
63
|
* @param {number} quantity - The number of frames to advance by.
|
|
98
64
|
*/
|
|
99
|
-
next(quantity:
|
|
65
|
+
next(quantity: any): void;
|
|
100
66
|
/**
|
|
101
67
|
* Moves the current animation back by a specified number of frames.
|
|
102
68
|
* @param {number} quantity - The number of frames to move back by.
|
|
103
69
|
*/
|
|
104
|
-
previous(quantity:
|
|
70
|
+
previous(quantity: any): void;
|
|
105
71
|
/**
|
|
106
72
|
* Gets an animation by name.
|
|
107
73
|
* @param {string} name - The name of the animation to retrieve.
|
|
108
74
|
* @returns {Animation} The Animation object, or null if not found.
|
|
109
75
|
*/
|
|
110
|
-
getAnimation(name:
|
|
76
|
+
getAnimation(name: any): any;
|
|
111
77
|
/**
|
|
112
78
|
* Refreshes the current frame texture (not implemented).
|
|
113
79
|
*/
|
|
@@ -116,27 +82,43 @@ export class AnimationManager {
|
|
|
116
82
|
* Gets the frame data used by this AnimationManager.
|
|
117
83
|
* @returns {import('./frame_data.js').FrameData} The FrameData object.
|
|
118
84
|
*/
|
|
119
|
-
get frameData():
|
|
85
|
+
get frameData(): any;
|
|
120
86
|
/**
|
|
121
87
|
* Gets the total number of frames in the frame data.
|
|
122
88
|
* @returns {number} The total number of frames.
|
|
123
89
|
*/
|
|
124
|
-
get frameTotal():
|
|
125
|
-
/**
|
|
126
|
-
* Sets the paused state of the current animation.
|
|
127
|
-
*/
|
|
128
|
-
set paused(value: boolean);
|
|
90
|
+
get frameTotal(): any;
|
|
129
91
|
/**
|
|
130
92
|
* Gets the paused state of the current animation.
|
|
131
93
|
* @returns {boolean} True if the current animation is paused, false otherwise.
|
|
132
94
|
*/
|
|
133
|
-
get paused():
|
|
95
|
+
get paused(): any;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the paused state of the current animation.
|
|
98
|
+
*/
|
|
99
|
+
set paused(value: any);
|
|
134
100
|
/**
|
|
135
101
|
* Gets the name of the current animation.
|
|
136
102
|
* @returns {string} The name of the current animation, or null if no animation is active.
|
|
137
103
|
*/
|
|
138
|
-
get name():
|
|
139
|
-
|
|
104
|
+
get name(): any;
|
|
105
|
+
/**
|
|
106
|
+
* Gets the current frame index.
|
|
107
|
+
* @returns {number} The current frame index.
|
|
108
|
+
*/
|
|
109
|
+
get frame(): any;
|
|
110
|
+
/**
|
|
111
|
+
* Sets the current frame index.
|
|
112
|
+
*/
|
|
113
|
+
set frame(value: any);
|
|
114
|
+
/**
|
|
115
|
+
* Gets the current frame name.
|
|
116
|
+
* @returns {string} The current frame name, or null if no frame is set.
|
|
117
|
+
*/
|
|
118
|
+
get frameName(): any;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the current frame by name.
|
|
121
|
+
*/
|
|
122
|
+
set frameName(value: any);
|
|
140
123
|
}
|
|
141
|
-
import { Animation } from './animation.js';
|
|
142
124
|
//# 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;IAC3B;;;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"}
|