@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,123 +1,81 @@
|
|
|
1
|
-
export class ScaleManager {
|
|
1
|
+
export declare class ScaleManager {
|
|
2
|
+
game: any;
|
|
3
|
+
dom: any;
|
|
4
|
+
width: any;
|
|
5
|
+
height: any;
|
|
6
|
+
minWidth: any;
|
|
7
|
+
maxWidth: any;
|
|
8
|
+
minHeight: any;
|
|
9
|
+
maxHeight: any;
|
|
10
|
+
offset: any;
|
|
11
|
+
forceLandscape: any;
|
|
12
|
+
forcePortrait: any;
|
|
13
|
+
incorrectOrientation: any;
|
|
14
|
+
_pageAlignHorizontally: any;
|
|
15
|
+
_pageAlignVertically: any;
|
|
16
|
+
onOrientationChange: any;
|
|
17
|
+
enterIncorrectOrientation: any;
|
|
18
|
+
leaveIncorrectOrientation: any;
|
|
19
|
+
hasPhaserSetFullScreen: any;
|
|
20
|
+
fullScreenTarget: any;
|
|
21
|
+
_createdFullScreenTarget: any;
|
|
22
|
+
onFullScreenInit: any;
|
|
23
|
+
onFullScreenChange: any;
|
|
24
|
+
onFullScreenError: any;
|
|
25
|
+
screenOrientation: any;
|
|
26
|
+
scaleFactor: any;
|
|
27
|
+
scaleFactorInversed: any;
|
|
28
|
+
margin: any;
|
|
29
|
+
bounds: any;
|
|
30
|
+
aspectRatio: any;
|
|
31
|
+
sourceAspectRatio: any;
|
|
32
|
+
event: any;
|
|
33
|
+
windowConstraints: any;
|
|
34
|
+
compatibility: any;
|
|
35
|
+
_scaleMode: any;
|
|
36
|
+
_fullScreenScaleMode: any;
|
|
37
|
+
parentIsWindow: any;
|
|
38
|
+
parentNode: any;
|
|
39
|
+
parentScaleFactor: any;
|
|
40
|
+
trackParentInterval: any;
|
|
41
|
+
onSizeChange: any;
|
|
42
|
+
onResize: any;
|
|
43
|
+
onResizeContext: any;
|
|
44
|
+
_pendingScaleMode: any;
|
|
45
|
+
_fullScreenRestore: any;
|
|
46
|
+
_gameSize: any;
|
|
47
|
+
_userScaleFactor: any;
|
|
48
|
+
_userScaleTrim: any;
|
|
49
|
+
_lastUpdate: any;
|
|
50
|
+
_updateThrottle: any;
|
|
51
|
+
_updateThrottleReset: any;
|
|
52
|
+
_parentBounds: any;
|
|
53
|
+
_tempBounds: any;
|
|
54
|
+
_lastReportedCanvasSize: any;
|
|
55
|
+
_lastReportedGameSize: any;
|
|
56
|
+
_booted: any;
|
|
2
57
|
/**
|
|
3
58
|
* TBD.
|
|
4
59
|
* @param {import('./game.js').Game} game - TBD.
|
|
5
60
|
* @param {number} width - TBD.
|
|
6
61
|
* @param {number} height - TBD.
|
|
7
62
|
*/
|
|
8
|
-
constructor(game:
|
|
9
|
-
game: import("./game.js").Game;
|
|
10
|
-
dom: DOM;
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
minWidth: number;
|
|
14
|
-
maxWidth: number;
|
|
15
|
-
minHeight: number;
|
|
16
|
-
maxHeight: number;
|
|
17
|
-
offset: Point;
|
|
18
|
-
forceLandscape: boolean;
|
|
19
|
-
forcePortrait: boolean;
|
|
20
|
-
incorrectOrientation: boolean;
|
|
21
|
-
_pageAlignHorizontally: boolean;
|
|
22
|
-
_pageAlignVertically: boolean;
|
|
23
|
-
onOrientationChange: Signal;
|
|
24
|
-
enterIncorrectOrientation: Signal;
|
|
25
|
-
leaveIncorrectOrientation: Signal;
|
|
26
|
-
hasPhaserSetFullScreen: boolean;
|
|
27
|
-
fullScreenTarget: any;
|
|
28
|
-
_createdFullScreenTarget: HTMLDivElement;
|
|
29
|
-
onFullScreenInit: Signal;
|
|
30
|
-
onFullScreenChange: Signal;
|
|
31
|
-
onFullScreenError: Signal;
|
|
32
|
-
screenOrientation: string;
|
|
33
|
-
scaleFactor: Point;
|
|
34
|
-
scaleFactorInversed: Point;
|
|
35
|
-
margin: {
|
|
36
|
-
left: number;
|
|
37
|
-
top: number;
|
|
38
|
-
right: number;
|
|
39
|
-
bottom: number;
|
|
40
|
-
x: number;
|
|
41
|
-
y: number;
|
|
42
|
-
};
|
|
43
|
-
bounds: Rectangle;
|
|
44
|
-
aspectRatio: number;
|
|
45
|
-
sourceAspectRatio: number;
|
|
46
|
-
/** @type {Event | null | undefined} */
|
|
47
|
-
event: Event | null | undefined;
|
|
48
|
-
windowConstraints: {
|
|
49
|
-
right: string;
|
|
50
|
-
bottom: string;
|
|
51
|
-
};
|
|
52
|
-
compatibility: {
|
|
53
|
-
supportsFullScreen: boolean;
|
|
54
|
-
orientationFallback: any;
|
|
55
|
-
noMargins: boolean;
|
|
56
|
-
canExpandParent: boolean;
|
|
57
|
-
clickTrampoline: string;
|
|
58
|
-
};
|
|
59
|
-
_scaleMode: number;
|
|
60
|
-
_fullScreenScaleMode: number;
|
|
61
|
-
parentIsWindow: boolean;
|
|
62
|
-
parentNode: HTMLElement;
|
|
63
|
-
parentScaleFactor: Point;
|
|
64
|
-
trackParentInterval: number;
|
|
65
|
-
onSizeChange: Signal;
|
|
66
|
-
onResize: Function;
|
|
67
|
-
onResizeContext: any;
|
|
68
|
-
_pendingScaleMode: any;
|
|
69
|
-
_fullScreenRestore: {
|
|
70
|
-
targetWidth: any;
|
|
71
|
-
targetHeight: any;
|
|
72
|
-
};
|
|
73
|
-
_gameSize: Rectangle;
|
|
74
|
-
_userScaleFactor: Point;
|
|
75
|
-
_userScaleTrim: Point;
|
|
76
|
-
_lastUpdate: number;
|
|
77
|
-
_updateThrottle: number;
|
|
78
|
-
_updateThrottleReset: number;
|
|
79
|
-
_parentBounds: Rectangle;
|
|
80
|
-
_tempBounds: Rectangle;
|
|
81
|
-
_lastReportedCanvasSize: Rectangle;
|
|
82
|
-
_lastReportedGameSize: Rectangle;
|
|
83
|
-
_booted: boolean;
|
|
63
|
+
constructor(game: any, width: any, height: any);
|
|
84
64
|
/**
|
|
85
65
|
* TBD.
|
|
86
66
|
*/
|
|
87
67
|
boot(): void;
|
|
88
|
-
_orientationChange: (event: any) => void;
|
|
89
|
-
_windowResize: (event: any) => void;
|
|
90
|
-
_fullScreenChange: (event: any) => void;
|
|
91
|
-
_fullScreenError: (event: any) => void;
|
|
92
|
-
/**
|
|
93
|
-
* TBD.
|
|
94
|
-
*/
|
|
95
|
-
set scaleMode(value: number);
|
|
96
|
-
/**
|
|
97
|
-
* TBD.
|
|
98
|
-
* @returns {number} TBD.
|
|
99
|
-
*/
|
|
100
|
-
get scaleMode(): number;
|
|
101
68
|
/**
|
|
102
69
|
* TBD.
|
|
103
70
|
* @param {object} config - TBD.
|
|
104
71
|
*/
|
|
105
|
-
parseConfig(config:
|
|
106
|
-
/**
|
|
107
|
-
* TBD.
|
|
108
|
-
*/
|
|
109
|
-
set fullScreenScaleMode(value: number);
|
|
110
|
-
/**
|
|
111
|
-
* TBD.
|
|
112
|
-
* @returns {number} TBD.
|
|
113
|
-
*/
|
|
114
|
-
get fullScreenScaleMode(): number;
|
|
72
|
+
parseConfig(config: any): void;
|
|
115
73
|
/**
|
|
116
74
|
* TBD.
|
|
117
75
|
* @param {number} width - TBD.
|
|
118
76
|
* @param {number} height - TBD.
|
|
119
77
|
*/
|
|
120
|
-
setupScale(width:
|
|
78
|
+
setupScale(width: any, height: any): void;
|
|
121
79
|
/**
|
|
122
80
|
* TBD.
|
|
123
81
|
*/
|
|
@@ -127,7 +85,7 @@ export class ScaleManager {
|
|
|
127
85
|
* @param {number} width - TBD.
|
|
128
86
|
* @param {number} height - TBD.
|
|
129
87
|
*/
|
|
130
|
-
setGameSize(width:
|
|
88
|
+
setGameSize(width: any, height: any): void;
|
|
131
89
|
/**
|
|
132
90
|
* TBD.
|
|
133
91
|
* @param {number} hScale - TBD.
|
|
@@ -135,13 +93,13 @@ export class ScaleManager {
|
|
|
135
93
|
* @param {number} hTrim - TBD.
|
|
136
94
|
* @param {number} vTrim - TBD.
|
|
137
95
|
*/
|
|
138
|
-
setUserScale(hScale:
|
|
96
|
+
setUserScale(hScale: any, vScale: any, hTrim: any, vTrim: any): void;
|
|
139
97
|
/**
|
|
140
98
|
* TBD.
|
|
141
99
|
* @param {Function} callback - TBD.
|
|
142
100
|
* @param {object} context - TBD.
|
|
143
101
|
*/
|
|
144
|
-
setResizeCallback(callback:
|
|
102
|
+
setResizeCallback(callback: any, context: any): void;
|
|
145
103
|
/**
|
|
146
104
|
* TBD.
|
|
147
105
|
*/
|
|
@@ -153,7 +111,7 @@ export class ScaleManager {
|
|
|
153
111
|
* @param {number} maxWidth - TBD.
|
|
154
112
|
* @param {number} maxHeight - TBD.
|
|
155
113
|
*/
|
|
156
|
-
setMinMax(minWidth:
|
|
114
|
+
setMinMax(minWidth: any, minHeight: any, maxWidth: any, maxHeight: any): void;
|
|
157
115
|
/**
|
|
158
116
|
* TBD.
|
|
159
117
|
*/
|
|
@@ -168,7 +126,7 @@ export class ScaleManager {
|
|
|
168
126
|
* @param {number} height - TBD.
|
|
169
127
|
* @param {boolean} resize - TBD.
|
|
170
128
|
*/
|
|
171
|
-
updateDimensions(width:
|
|
129
|
+
updateDimensions(width: any, height: any, resize: any): void;
|
|
172
130
|
/**
|
|
173
131
|
* TBD.
|
|
174
132
|
*/
|
|
@@ -184,7 +142,7 @@ export class ScaleManager {
|
|
|
184
142
|
* @param {string} orientation - TBD.
|
|
185
143
|
* @returns {string} TBD.
|
|
186
144
|
*/
|
|
187
|
-
classifyOrientation(orientation:
|
|
145
|
+
classifyOrientation(orientation: any): "portrait" | "landscape";
|
|
188
146
|
/**
|
|
189
147
|
* TBD.
|
|
190
148
|
* @returns {boolean} TBD.
|
|
@@ -194,12 +152,12 @@ export class ScaleManager {
|
|
|
194
152
|
* TBD.
|
|
195
153
|
* @param {Event} event - TBD.
|
|
196
154
|
*/
|
|
197
|
-
orientationChange(event:
|
|
155
|
+
orientationChange(event: any): void;
|
|
198
156
|
/**
|
|
199
157
|
* TBD.
|
|
200
158
|
* @param {Event} event - TBD.
|
|
201
159
|
*/
|
|
202
|
-
windowResize(event:
|
|
160
|
+
windowResize(event: any): void;
|
|
203
161
|
/**
|
|
204
162
|
* TBD.
|
|
205
163
|
*/
|
|
@@ -213,13 +171,13 @@ export class ScaleManager {
|
|
|
213
171
|
* @param {Rectangle} target - TBD.
|
|
214
172
|
* @returns {Rectangle} TBD.
|
|
215
173
|
*/
|
|
216
|
-
getParentBounds(target:
|
|
174
|
+
getParentBounds(target: any): any;
|
|
217
175
|
/**
|
|
218
176
|
* TBD.
|
|
219
177
|
* @param {boolean} horizontal - TBD.
|
|
220
178
|
* @param {boolean} vertical - TBD.
|
|
221
179
|
*/
|
|
222
|
-
alignCanvas(horizontal:
|
|
180
|
+
alignCanvas(horizontal: any, vertical: any): void;
|
|
223
181
|
/**
|
|
224
182
|
* TBD.
|
|
225
183
|
*/
|
|
@@ -238,7 +196,7 @@ export class ScaleManager {
|
|
|
238
196
|
* TBD.
|
|
239
197
|
* @param {boolean} force - TBD.
|
|
240
198
|
*/
|
|
241
|
-
queueUpdate(force:
|
|
199
|
+
queueUpdate(force: any): void;
|
|
242
200
|
/**
|
|
243
201
|
* TBD.
|
|
244
202
|
*/
|
|
@@ -267,7 +225,7 @@ export class ScaleManager {
|
|
|
267
225
|
* @param {boolean} allowTrampoline - TBD.
|
|
268
226
|
* @returns {boolean} TBD.
|
|
269
227
|
*/
|
|
270
|
-
startFullScreen(antialias:
|
|
228
|
+
startFullScreen(antialias: any, allowTrampoline: any): boolean;
|
|
271
229
|
/**
|
|
272
230
|
* TBD.
|
|
273
231
|
* @returns {boolean} TBD.
|
|
@@ -281,17 +239,17 @@ export class ScaleManager {
|
|
|
281
239
|
* TBD.
|
|
282
240
|
* @param {boolean} enteringFullscreen - TBD.
|
|
283
241
|
*/
|
|
284
|
-
prepScreenMode(enteringFullscreen:
|
|
242
|
+
prepScreenMode(enteringFullscreen: any): void;
|
|
285
243
|
/**
|
|
286
244
|
* TBD.
|
|
287
245
|
* @param {Event} event - TBD.
|
|
288
246
|
*/
|
|
289
|
-
fullScreenChange(event:
|
|
247
|
+
fullScreenChange(event: any): void;
|
|
290
248
|
/**
|
|
291
249
|
* TBD.
|
|
292
250
|
* @param {Event} [event] - TBD.
|
|
293
251
|
*/
|
|
294
|
-
fullScreenError(event
|
|
252
|
+
fullScreenError(event: any): void;
|
|
295
253
|
/**
|
|
296
254
|
* TBD.
|
|
297
255
|
*/
|
|
@@ -300,22 +258,40 @@ export class ScaleManager {
|
|
|
300
258
|
* TBD.
|
|
301
259
|
* @returns {ParentNode | null} TBD.
|
|
302
260
|
*/
|
|
303
|
-
get boundingParent():
|
|
261
|
+
get boundingParent(): any;
|
|
262
|
+
/**
|
|
263
|
+
* TBD.
|
|
264
|
+
* @returns {number} TBD.
|
|
265
|
+
*/
|
|
266
|
+
get scaleMode(): any;
|
|
267
|
+
/**
|
|
268
|
+
* TBD.
|
|
269
|
+
*/
|
|
270
|
+
set scaleMode(value: any);
|
|
271
|
+
/**
|
|
272
|
+
* TBD.
|
|
273
|
+
* @returns {number} TBD.
|
|
274
|
+
*/
|
|
275
|
+
get fullScreenScaleMode(): any;
|
|
276
|
+
/**
|
|
277
|
+
* TBD.
|
|
278
|
+
*/
|
|
279
|
+
set fullScreenScaleMode(value: any);
|
|
304
280
|
/**
|
|
305
281
|
* TBD.
|
|
306
282
|
* @returns {number} TBD.
|
|
307
283
|
*/
|
|
308
|
-
get currentScaleMode():
|
|
284
|
+
get currentScaleMode(): any;
|
|
309
285
|
/**
|
|
310
286
|
* TBD.
|
|
311
287
|
* @returns {boolean} TBD.
|
|
312
288
|
*/
|
|
313
|
-
get pageAlignHorizontally():
|
|
289
|
+
get pageAlignHorizontally(): any;
|
|
314
290
|
/**
|
|
315
291
|
* TBD.
|
|
316
292
|
* @returns {boolean} TBD.
|
|
317
293
|
*/
|
|
318
|
-
get pageAlignVertically():
|
|
294
|
+
get pageAlignVertically(): any;
|
|
319
295
|
/**
|
|
320
296
|
* TBD.
|
|
321
297
|
* @returns {boolean} TBD.
|
|
@@ -342,8 +318,4 @@ export class ScaleManager {
|
|
|
342
318
|
*/
|
|
343
319
|
get isGameLandscape(): boolean;
|
|
344
320
|
}
|
|
345
|
-
import { DOM } from './dom.js';
|
|
346
|
-
import { Point } from '../geom/point.js';
|
|
347
|
-
import { Signal } from './signal.js';
|
|
348
|
-
import { Rectangle } from '../geom/rectangle.js';
|
|
349
321
|
//# sourceMappingURL=scale_manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scale_manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
export class Scene {
|
|
1
|
+
export declare class Scene {
|
|
2
2
|
game: any;
|
|
3
|
-
key:
|
|
3
|
+
key: any;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new Scene instance.
|
|
6
|
+
*/
|
|
7
|
+
constructor();
|
|
4
8
|
/**
|
|
5
9
|
* Initialize the scene.
|
|
6
10
|
* This method is called before preload() and create().
|
|
@@ -26,7 +30,7 @@ export class Scene {
|
|
|
26
30
|
* @param {number} width - The new width of the scene.
|
|
27
31
|
* @param {number} height - The new height of the scene.
|
|
28
32
|
*/
|
|
29
|
-
resize(width:
|
|
33
|
+
resize(width: any, height: any): void;
|
|
30
34
|
/**
|
|
31
35
|
* Update the scene while paused.
|
|
32
36
|
* This method is called every frame while the scene is paused.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene.ts"],"names":[],"mappings":"AACA,qBAAa,KAAK;IAClB,IAAI,MAAC;IACL,GAAG,MAAC;IACF;;OAEG;;IAMH;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,OAAO;IAIP;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA;IAIpB;;;OAGG;IACH,WAAW;IAIX;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
export class SceneManager {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_pendingState: string;
|
|
11
|
-
_clearWorld: boolean;
|
|
12
|
-
_clearCache: boolean;
|
|
13
|
-
_created: boolean;
|
|
14
|
-
_args: any[];
|
|
15
|
-
current: string;
|
|
1
|
+
export declare class SceneManager {
|
|
2
|
+
game: any;
|
|
3
|
+
states: any;
|
|
4
|
+
_pendingState: any;
|
|
5
|
+
_clearWorld: any;
|
|
6
|
+
_clearCache: any;
|
|
7
|
+
_created: any;
|
|
8
|
+
_args: any;
|
|
9
|
+
current: any;
|
|
16
10
|
onInitCallback: any;
|
|
17
11
|
onPreloadCallback: any;
|
|
18
12
|
onCreateCallback: any;
|
|
@@ -20,6 +14,12 @@ export class SceneManager {
|
|
|
20
14
|
onResizeCallback: any;
|
|
21
15
|
onPauseUpdateCallback: any;
|
|
22
16
|
onShutDownCallback: any;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new SceneManager instance.
|
|
19
|
+
* @param {import('./game.js').Game} game - The game instance this manager belongs to.
|
|
20
|
+
* @param {string} pendingState - The state to load when the game boots.
|
|
21
|
+
*/
|
|
22
|
+
constructor(game: any, pendingState: any);
|
|
23
23
|
/**
|
|
24
24
|
* Initialize the scene manager.
|
|
25
25
|
* This method is called when the game boots and sets up the initial state.
|
|
@@ -32,13 +32,12 @@ export class SceneManager {
|
|
|
32
32
|
* @param {boolean} autoStart - Whether to start this state immediately.
|
|
33
33
|
* @returns {Scene|object} The created scene or state object.
|
|
34
34
|
*/
|
|
35
|
-
add(key:
|
|
35
|
+
add(key: any, state: any, autoStart?: boolean): any;
|
|
36
36
|
/**
|
|
37
37
|
* Remove a scene state from the manager.
|
|
38
38
|
* @param {string} key - The unique key for the state to remove.
|
|
39
39
|
*/
|
|
40
|
-
remove(key:
|
|
41
|
-
callbackContext: any;
|
|
40
|
+
remove(key: any): void;
|
|
42
41
|
/**
|
|
43
42
|
* Start a scene state.
|
|
44
43
|
* @param {string} key - The unique key for the state to start.
|
|
@@ -46,7 +45,7 @@ export class SceneManager {
|
|
|
46
45
|
* @param {boolean} clearCache - Whether to clear the cache before starting.
|
|
47
46
|
* @param {...any} args - Additional arguments to pass to the state.
|
|
48
47
|
*/
|
|
49
|
-
start(key:
|
|
48
|
+
start(key: any, clearWorld?: boolean, clearCache?: boolean, ...args: any[]): void;
|
|
50
49
|
/**
|
|
51
50
|
* Restart the current scene state.
|
|
52
51
|
* @param {boolean} clearWorld - Whether to clear the world before restarting.
|
|
@@ -69,27 +68,27 @@ export class SceneManager {
|
|
|
69
68
|
* @param {string} key - The unique key for the state to check.
|
|
70
69
|
* @returns {boolean} True if the scene exists, false otherwise.
|
|
71
70
|
*/
|
|
72
|
-
checkState(key:
|
|
71
|
+
checkState(key: any): boolean;
|
|
73
72
|
/**
|
|
74
73
|
* Link a scene state to the manager.
|
|
75
74
|
* @param {string} key - The unique key for the state to link.
|
|
76
75
|
*/
|
|
77
|
-
link(key:
|
|
76
|
+
link(key: any): void;
|
|
78
77
|
/**
|
|
79
78
|
* Unlink a scene state from the manager.
|
|
80
79
|
* @param {string} key - The unique key for the state to unlink.
|
|
81
80
|
*/
|
|
82
|
-
unlink(key:
|
|
81
|
+
unlink(key: any): void;
|
|
83
82
|
/**
|
|
84
83
|
* Set the current scene state.
|
|
85
84
|
* @param {string} key - The unique key for the state to set as current.
|
|
86
85
|
*/
|
|
87
|
-
setCurrentState(key:
|
|
86
|
+
setCurrentState(key: any): void;
|
|
88
87
|
/**
|
|
89
88
|
* Get the current scene state.
|
|
90
89
|
* @returns {Scene} The current scene state.
|
|
91
90
|
*/
|
|
92
|
-
getCurrentState():
|
|
91
|
+
getCurrentState(): any;
|
|
93
92
|
/**
|
|
94
93
|
* Handle loading completion.
|
|
95
94
|
* This method is called when scene loading is complete.
|
|
@@ -110,7 +109,7 @@ export class SceneManager {
|
|
|
110
109
|
* @param {number} width - The new width of the scene.
|
|
111
110
|
* @param {number} height - The new height of the scene.
|
|
112
111
|
*/
|
|
113
|
-
resize(width:
|
|
112
|
+
resize(width: any, height: any): void;
|
|
114
113
|
/**
|
|
115
114
|
* Destroy the scene manager.
|
|
116
115
|
* This method is called when the scene manager is about to be destroyed.
|
|
@@ -125,7 +124,6 @@ export class SceneManager {
|
|
|
125
124
|
* Get whether the scene has been created.
|
|
126
125
|
* @returns {boolean} True if the scene has been created, false otherwise.
|
|
127
126
|
*/
|
|
128
|
-
get created():
|
|
127
|
+
get created(): any;
|
|
129
128
|
}
|
|
130
|
-
import { Scene } from './scene.js';
|
|
131
129
|
//# sourceMappingURL=scene_manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene_manager.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IACzB,IAAI,MAAC;IACL,MAAM,MAAC;IACP,aAAa,MAAC;IACd,WAAW,MAAC;IACZ,WAAW,MAAC;IACZ,QAAQ,MAAC;IACT,KAAK,MAAC;IACN,OAAO,MAAC;IACR,cAAc,MAAC;IACf,iBAAiB,MAAC;IAClB,gBAAgB,MAAC;IACjB,gBAAgB,MAAC;IACjB,gBAAgB,MAAC;IACjB,qBAAqB,MAAC;IACtB,kBAAkB,MAAC;IACjB;;;;OAIG;gBACS,IAAI,KAAA,EAAE,YAAY,KAAA;IAqB9B;;;OAGG;IACH,IAAI;IAMJ;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,EAAE,SAAS,UAAQ;IAqBjC;;;OAGG;IACH,MAAM,CAAC,GAAG,KAAA;IAcV;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,KAAA,EAAE,UAAU,UAAO,EAAE,UAAU,UAAQ,EAAE,GAAG,IAAI,OAAA;IAYzD;;;;;OAKG;IACH,OAAO,CAAC,UAAU,UAAO,EAAE,UAAU,UAAQ,EAAE,GAAG,IAAI,OAAA;IAStD;;;OAGG;IACH,SAAS;IA+BT;;;OAGG;IACH,iBAAiB;IAkBjB;;;;OAIG;IACH,UAAU,CAAC,GAAG,KAAA;IAUd;;;OAGG;IACH,IAAI,CAAC,GAAG,KAAA;IAKR;;;OAGG;IACH,MAAM,CAAC,GAAG,KAAA;IAMV;;;OAGG;IACH,eAAe,CAAC,GAAG,KAAA;IAoBnB;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,YAAY;IASZ;;;OAGG;IACH,MAAM;IAMN;;;OAGG;IACH,WAAW;IAMX;;;;OAIG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA;IAMpB;;;OAGG;IACH,OAAO;IAiBP;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI,OAAO,QAEV;CACF"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
export class Signal {
|
|
2
|
-
_bindings: any
|
|
3
|
-
_prevParams: any
|
|
1
|
+
export declare class Signal {
|
|
2
|
+
_bindings: any;
|
|
3
|
+
_prevParams: any;
|
|
4
4
|
memorize: boolean;
|
|
5
5
|
_shouldPropagate: boolean;
|
|
6
6
|
active: boolean;
|
|
7
|
-
_boundDispatch:
|
|
7
|
+
_boundDispatch: any;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Signal instance.
|
|
10
|
+
* A Signal is a simple event system that allows you to dispatch events and listen for them.
|
|
11
|
+
*/
|
|
12
|
+
constructor();
|
|
8
13
|
/**
|
|
9
14
|
* Validates that a listener is a function.
|
|
10
15
|
* @param {Function} listener - The listener to validate.
|
|
11
16
|
* @param {string} fnName - The name of the function this validation is for.
|
|
12
17
|
* @throws {Error} If the listener is not a function.
|
|
13
18
|
*/
|
|
14
|
-
validateListener(listener:
|
|
19
|
+
validateListener(listener: any, fnName: any): void;
|
|
15
20
|
/**
|
|
16
21
|
* Register a new listener with the signal.
|
|
17
22
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -22,26 +27,26 @@ export class Signal {
|
|
|
22
27
|
* @returns {SignalBinding} The binding for this listener.
|
|
23
28
|
* @throws {Error} If the listener is already registered with a different once setting.
|
|
24
29
|
*/
|
|
25
|
-
_registerListener(listener:
|
|
30
|
+
_registerListener(listener: any, isOnce?: boolean, listenerContext?: any, priority?: number, args?: any): any;
|
|
26
31
|
/**
|
|
27
32
|
* Add a binding to the list of listeners.
|
|
28
33
|
* @param {SignalBinding} binding - The binding to add.
|
|
29
34
|
*/
|
|
30
|
-
_addBinding(binding:
|
|
35
|
+
_addBinding(binding: any): void;
|
|
31
36
|
/**
|
|
32
37
|
* Find the index of a listener in the bindings array.
|
|
33
38
|
* @param {Function} listener - The listener to find.
|
|
34
39
|
* @param {object} context - The context of the listener.
|
|
35
40
|
* @returns {number} The index of the listener in the bindings array, or -1 if not found.
|
|
36
41
|
*/
|
|
37
|
-
_indexOfListener(listener:
|
|
42
|
+
_indexOfListener(listener: any, context?: any): any;
|
|
38
43
|
/**
|
|
39
44
|
* Check if a listener is registered with the signal.
|
|
40
45
|
* @param {Function} listener - The listener to check.
|
|
41
46
|
* @param {object} context - The context of the listener.
|
|
42
47
|
* @returns {boolean} True if the listener is registered, false otherwise.
|
|
43
48
|
*/
|
|
44
|
-
has(listener:
|
|
49
|
+
has(listener: any, context?: any): boolean;
|
|
45
50
|
/**
|
|
46
51
|
* Add a listener that will be called every time the signal is dispatched.
|
|
47
52
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -50,7 +55,7 @@ export class Signal {
|
|
|
50
55
|
* @param {...any} args - Additional arguments to pass to the listener.
|
|
51
56
|
* @returns {SignalBinding} The binding for this listener.
|
|
52
57
|
*/
|
|
53
|
-
add(listener:
|
|
58
|
+
add(listener: any, listenerContext?: any, priority?: number, ...args: any[]): any;
|
|
54
59
|
/**
|
|
55
60
|
* Add a listener that will be called only once when the signal is dispatched.
|
|
56
61
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -59,24 +64,24 @@ export class Signal {
|
|
|
59
64
|
* @param {...any} args - Additional arguments to pass to the listener.
|
|
60
65
|
* @returns {SignalBinding} The binding for this listener.
|
|
61
66
|
*/
|
|
62
|
-
addOnce(listener:
|
|
67
|
+
addOnce(listener: any, listenerContext?: any, priority?: number, ...args: any[]): any;
|
|
63
68
|
/**
|
|
64
69
|
* Remove a listener from the signal.
|
|
65
70
|
* @param {Function} listener - The listener to remove.
|
|
66
71
|
* @param {object} context - The context of the listener.
|
|
67
72
|
* @returns {Function} The removed listener function.
|
|
68
73
|
*/
|
|
69
|
-
remove(listener:
|
|
74
|
+
remove(listener: any, context?: any): any;
|
|
70
75
|
/**
|
|
71
76
|
* Remove all listeners from the signal, or only those in a specific context.
|
|
72
77
|
* @param {object} context - The context to filter listeners by, or null to remove all.
|
|
73
78
|
*/
|
|
74
|
-
removeAll(context?:
|
|
79
|
+
removeAll(context?: any): void;
|
|
75
80
|
/**
|
|
76
81
|
* Get the number of listeners registered with the signal.
|
|
77
82
|
* @returns {number} The number of registered listeners.
|
|
78
83
|
*/
|
|
79
|
-
getNumListeners():
|
|
84
|
+
getNumListeners(): any;
|
|
80
85
|
/**
|
|
81
86
|
* Stop the signal from propagating to other listeners.
|
|
82
87
|
* This method prevents any remaining listeners from being called.
|
|
@@ -106,12 +111,11 @@ export class Signal {
|
|
|
106
111
|
* Get a bound version of the dispatch function.
|
|
107
112
|
* @returns {Function} A function that will dispatch the signal with the correct context.
|
|
108
113
|
*/
|
|
109
|
-
get boundDispatch():
|
|
114
|
+
get boundDispatch(): any;
|
|
110
115
|
/**
|
|
111
116
|
* Promisify the Signal.
|
|
112
117
|
* @returns {Promise<any>} The resolved result.
|
|
113
118
|
*/
|
|
114
|
-
toPromise(): Promise<
|
|
119
|
+
toPromise(): Promise<unknown>;
|
|
115
120
|
}
|
|
116
|
-
import { SignalBinding } from './signal_binding.js';
|
|
117
121
|
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/signal.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,GAAG,CAAC;IAEpB;;;OAGG;;IAUH;;;;;OAKG;IACH,gBAAgB,CAAC,QAAQ,KAAA,EAAE,MAAM,KAAA;IAQjC;;;;;;;;;OASG;IACH,iBAAiB,CAAC,QAAQ,KAAA,EAAE,MAAM,UAAQ,EAAE,eAAe,MAAO,EAAE,QAAQ,SAAI,EAAE,IAAI,MAAO;IAsB7F;;;OAGG;IACH,WAAW,CAAC,OAAO,KAAA;IAYnB;;;;;OAKG;IACH,gBAAgB,CAAC,QAAQ,KAAA,EAAE,OAAO,MAAO;IAgBzC;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,KAAA,EAAE,OAAO,MAAO;IAI5B;;;;;;;OAOG;IACH,GAAG,CAAC,QAAQ,KAAA,EAAE,eAAe,MAAO,EAAE,QAAQ,SAAI,EAAE,GAAG,IAAI,OAAA;IAK3D;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,KAAA,EAAE,eAAe,MAAO,EAAE,QAAQ,SAAI,EAAE,GAAG,IAAI,OAAA;IAK/D;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,KAAA,EAAE,OAAO,MAAO;IAW/B;;;OAGG;IACH,SAAS,CAAC,OAAO,MAAO;IAqBxB;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,QAAQ,CAAC,GAAG,IAAI,OAAA;IAwBhB;;;OAGG;IACH,MAAM;IAMN;;;OAGG;IACH,OAAO;IAMP;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,IAAI,aAAa,QAMhB;IAED;;;OAGG;IACH,SAAS;CAOV"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export class SignalBinding {
|
|
1
|
+
export declare class SignalBinding {
|
|
2
|
+
_signal: any;
|
|
3
|
+
_listener: any;
|
|
4
|
+
_args: any;
|
|
5
|
+
_priority: number;
|
|
6
|
+
_isOnce: boolean;
|
|
7
|
+
context: any;
|
|
8
|
+
callCount: number;
|
|
9
|
+
active: boolean;
|
|
10
|
+
params: any;
|
|
2
11
|
/**
|
|
3
12
|
* TBD.
|
|
4
13
|
* @param {import('./signal.js').Signal} signal - TBD.
|
|
@@ -8,27 +17,18 @@ export class SignalBinding {
|
|
|
8
17
|
* @param {number} priority - TBD.
|
|
9
18
|
* @param {...any} args - TBD.
|
|
10
19
|
*/
|
|
11
|
-
constructor(signal:
|
|
12
|
-
_signal: import("./signal.js").Signal;
|
|
13
|
-
_listener: Function;
|
|
14
|
-
_args: any;
|
|
15
|
-
_priority: number;
|
|
16
|
-
_isOnce: boolean;
|
|
17
|
-
context: any;
|
|
18
|
-
callCount: number;
|
|
19
|
-
active: boolean;
|
|
20
|
-
params: any;
|
|
20
|
+
constructor(signal: any, listener: any, isOnce?: boolean, listenerContext?: any, priority?: number, args?: any);
|
|
21
21
|
/**
|
|
22
22
|
* TBD.
|
|
23
23
|
* @param {any[]} paramsArr - TBD.
|
|
24
24
|
* @returns {Function} TBD.
|
|
25
25
|
*/
|
|
26
|
-
execute(paramsArr: any
|
|
26
|
+
execute(paramsArr: any): any;
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
29
|
* @returns {Function} TBD.
|
|
30
30
|
*/
|
|
31
|
-
detach():
|
|
31
|
+
detach(): any;
|
|
32
32
|
/**
|
|
33
33
|
* TBD.
|
|
34
34
|
* @returns {boolean} TBD.
|
|
@@ -43,12 +43,12 @@ export class SignalBinding {
|
|
|
43
43
|
* TBD.
|
|
44
44
|
* @returns {Function} TBD.
|
|
45
45
|
*/
|
|
46
|
-
getListener():
|
|
46
|
+
getListener(): any;
|
|
47
47
|
/**
|
|
48
48
|
* TBD.
|
|
49
49
|
* @returns {import('./signal.js').Signal} TBD.
|
|
50
50
|
*/
|
|
51
|
-
getSignal():
|
|
51
|
+
getSignal(): any;
|
|
52
52
|
/**
|
|
53
53
|
* TBD.
|
|
54
54
|
*/
|