@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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { Point } from '../point.js';
|
|
2
|
+
/**
|
|
3
|
+
* Adds two points together.
|
|
4
|
+
* @param {Point} a - The first point to add.
|
|
5
|
+
* @param {Point} b - The second point to add.
|
|
6
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
7
|
+
* @returns {Point} A new point containing the sum of the two points.
|
|
8
|
+
*/
|
|
9
|
+
export declare const add: (a: any, b: any, output?: any) => any;
|
|
10
|
+
/**
|
|
11
|
+
* Subtracts the second point from the first point.
|
|
12
|
+
* @param {Point} a - The first point to subtract from.
|
|
13
|
+
* @param {Point} b - The second point to subtract.
|
|
14
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
15
|
+
* @returns {Point} A new point containing the difference of the two points.
|
|
16
|
+
*/
|
|
17
|
+
export declare const subtract: (a: any, b: any, output?: any) => any;
|
|
18
|
+
/**
|
|
19
|
+
* Multiplies two points together.
|
|
20
|
+
* @param {Point} a - The first point to multiply.
|
|
21
|
+
* @param {Point} b - The second point to multiply.
|
|
22
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
23
|
+
* @returns {Point} A new point containing the product of the two points.
|
|
24
|
+
*/
|
|
25
|
+
export declare const multiply: (a: any, b: any, output?: any) => any;
|
|
26
|
+
/**
|
|
27
|
+
* Divides the first point by the second point.
|
|
28
|
+
* @param {Point} a - The first point to divide.
|
|
29
|
+
* @param {Point} b - The second point to divide by.
|
|
30
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
31
|
+
* @returns {Point} A new point containing the quotient of the two points.
|
|
32
|
+
*/
|
|
33
|
+
export declare const divide: (a: any, b: any, output?: any) => any;
|
|
34
|
+
/**
|
|
35
|
+
* Checks if two points are equal.
|
|
36
|
+
* @param {Point} a - The first point to compare.
|
|
37
|
+
* @param {Point} b - The second point to compare.
|
|
38
|
+
* @returns {boolean} True if the points are equal, false otherwise.
|
|
39
|
+
*/
|
|
40
|
+
export declare const equals: (a: any, b: any) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Calculates the angle between two points.
|
|
43
|
+
* @param {Point} a - The first point to calculate the angle from.
|
|
44
|
+
* @param {Point} b - The second point to calculate the angle to.
|
|
45
|
+
* @returns {number} The angle between the two points in radians.
|
|
46
|
+
*/
|
|
47
|
+
export declare const angle: (a: any, b: any) => number;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new point with the same coordinates as the input point but with inverted signs.
|
|
50
|
+
* @param {Point} a - The point to negate.
|
|
51
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
52
|
+
* @returns {Point} A new point with negated coordinates.
|
|
53
|
+
*/
|
|
54
|
+
export declare const negative: (a: any, output?: any) => any;
|
|
55
|
+
/**
|
|
56
|
+
* Multiplies the second point by a scalar and adds it to the first point.
|
|
57
|
+
* @param {Point} a - The first point to add to.
|
|
58
|
+
* @param {Point} b - The second point to multiply by the scalar and add.
|
|
59
|
+
* @param {number} s - The scalar value to multiply the second point by.
|
|
60
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
61
|
+
* @returns {Point} A new point with the result of the operation.
|
|
62
|
+
*/
|
|
63
|
+
export declare const multiplyAdd: (a: any, b: any, s: any, output?: any) => any;
|
|
64
|
+
/**
|
|
65
|
+
* Interpolates between two points at a given factor.
|
|
66
|
+
* @param {Point} a - The first point to interpolate from.
|
|
67
|
+
* @param {Point} b - The second point to interpolate to.
|
|
68
|
+
* @param {number} f - The interpolation factor (0-1).
|
|
69
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
70
|
+
* @returns {Point} A new point interpolated between the two points.
|
|
71
|
+
*/
|
|
72
|
+
export declare const interpolate: (a: any, b: any, f: any, output?: any) => any;
|
|
73
|
+
/**
|
|
74
|
+
* Returns a perpendicular point (rotated 90 degrees counter-clockwise).
|
|
75
|
+
* @param {Point} a - The point to calculate the perpendicular for.
|
|
76
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
77
|
+
* @returns {Point} A new point that is perpendicular to the input point.
|
|
78
|
+
*/
|
|
79
|
+
export declare const perp: (a: any, output?: any) => any;
|
|
80
|
+
/**
|
|
81
|
+
* Returns a perpendicular point (rotated 90 degrees clockwise).
|
|
82
|
+
* @param {Point} a - The point to calculate the perpendicular for.
|
|
83
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
84
|
+
* @returns {Point} A new point that is perpendicular to the input point (rotated clockwise).
|
|
85
|
+
*/
|
|
86
|
+
export declare const rperp: (a: any, output?: any) => any;
|
|
87
|
+
/**
|
|
88
|
+
* Calculates the distance between two points.
|
|
89
|
+
* @param {Point} a - The first point to calculate the distance from.
|
|
90
|
+
* @param {Point} b - The second point to calculate the distance to.
|
|
91
|
+
* @param {boolean} round - Whether to round the result (default: false).
|
|
92
|
+
* @returns {number} The distance between the two points.
|
|
93
|
+
*/
|
|
94
|
+
export declare const distance: (a: any, b: any, round?: boolean) => number;
|
|
95
|
+
/**
|
|
96
|
+
* Projects the first point onto the second point.
|
|
97
|
+
* @param {Point} a - The point to project.
|
|
98
|
+
* @param {Point} b - The point to project onto.
|
|
99
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
100
|
+
* @returns {Point} A new point with the projected result.
|
|
101
|
+
*/
|
|
102
|
+
export declare const project: (a: any, b: any, output?: any) => any;
|
|
103
|
+
/**
|
|
104
|
+
* Projects the first point onto the unit vector of the second point.
|
|
105
|
+
* @param {Point} a - The point to project.
|
|
106
|
+
* @param {Point} b - The point to project onto (unit vector).
|
|
107
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
108
|
+
* @returns {Point} A new point with the projected result.
|
|
109
|
+
*/
|
|
110
|
+
export declare const projectUnit: (a: any, b: any, output?: any) => any;
|
|
111
|
+
/**
|
|
112
|
+
* Returns a point with the same direction as the input point but with y coordinate negated.
|
|
113
|
+
* @param {Point} a - The point to calculate the normal for.
|
|
114
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
115
|
+
* @returns {Point} A new point with the same x coordinate but negated y coordinate.
|
|
116
|
+
*/
|
|
117
|
+
export declare const normalRightHand: (a: any, output?: any) => any;
|
|
118
|
+
/**
|
|
119
|
+
* Normalizes the input point to have a magnitude of 1 while preserving its direction.
|
|
120
|
+
* @param {Point} a - The point to normalize.
|
|
121
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
122
|
+
* @returns {Point} A new normalized point.
|
|
123
|
+
*/
|
|
124
|
+
export declare const normalize: (a: any, output?: any) => any;
|
|
125
|
+
/**
|
|
126
|
+
* Rotates a point around another point by a given angle.
|
|
127
|
+
* @param {Point} a - The point to rotate.
|
|
128
|
+
* @param {number} x - The x coordinate of the center point to rotate around.
|
|
129
|
+
* @param {number} y - The y coordinate of the center point to rotate around.
|
|
130
|
+
* @param {number} ang - The angle in radians to rotate by.
|
|
131
|
+
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
132
|
+
* @param {number | null | undefined} dist - The distance to rotate from (default: null).
|
|
133
|
+
* @returns {Point} The rotated point instance for chaining.
|
|
134
|
+
*/
|
|
135
|
+
export declare const rotate: (a: any, x: any, y: any, ang: any, asDegrees: any, dist: any) => any;
|
|
136
|
+
/**
|
|
137
|
+
* Calculates the centroid (average position) of a set of points.
|
|
138
|
+
* @param {Point[]} points - The array of points to calculate the centroid for.
|
|
139
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
140
|
+
* @returns {Point} A new point representing the centroid of the input points.
|
|
141
|
+
* @throws {Error} If the points array is empty.
|
|
142
|
+
*/
|
|
143
|
+
export declare const centroid: (points: any, output?: any) => any;
|
|
144
|
+
/**
|
|
145
|
+
* Parses an object with x and y properties into a Point.
|
|
146
|
+
* @param {object} obj - The object to parse (must have x and y properties).
|
|
147
|
+
* @param {string} xProp - The name of the property containing the x value (default: 'x').
|
|
148
|
+
* @param {string} yProp - The name of the property containing the y value (default: 'y').
|
|
149
|
+
* @returns {Point} A new point with parsed x and y values.
|
|
150
|
+
*/
|
|
151
|
+
export declare const parse: (obj: any, xProp?: string, yProp?: string) => Point;
|
|
152
|
+
/**
|
|
153
|
+
* Creates a clone of the input point.
|
|
154
|
+
* @param {Point} input - The point to clone.
|
|
155
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
156
|
+
* @returns {Point} A new point with the same coordinates as the input.
|
|
157
|
+
*/
|
|
158
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
159
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAKtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAK3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAK3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAKzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,YAE1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,MAAC,EAAE,MAAC,WAEzB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,YAAa,QAGxC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,YAAa,QAGjD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,YAAa,QAGjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GAAI,MAAC,EAAE,YAAa,QAGpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,MAAC,EAAE,YAAa,QAGrC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,eAAa,WAK3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAO1C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAO9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,MAAC,EAAE,YAAa,QAG/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,MAAC,EAAE,YAAa,QAOzC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,QAAG,EAAE,cAAS,EAAE,SAAI,QAkBnD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,WAAM,EAAE,YAAa,QAe7C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,QAAG,EAAE,cAAW,EAAE,cAAW,UASlD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAIzC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clones a polygon.
|
|
3
|
+
* @param {Polygon} input - The polygon to clone.
|
|
4
|
+
* @param {Polygon} output - Optional polygon to store the result in.
|
|
5
|
+
* @returns {Polygon} The cloned polygon.
|
|
6
|
+
*/
|
|
7
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
8
|
+
//# sourceMappingURL=polygon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/polygon.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAIzC,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inflates the rectangle by the specified amounts on each axis.
|
|
3
|
+
* @param {Rectangle} a - The rectangle to inflate.
|
|
4
|
+
* @param {number} dx - The amount to inflate the rectangle horizontally.
|
|
5
|
+
* @param {number} dy - The amount to inflate the rectangle vertically.
|
|
6
|
+
* @returns {Rectangle} The inflated rectangle.
|
|
7
|
+
*/
|
|
8
|
+
export declare const inflate: (a: any, dx: any, dy: any) => any;
|
|
9
|
+
/**
|
|
10
|
+
* Inflates the rectangle by the specified point values on each axis.
|
|
11
|
+
* @param {Rectangle} a - The rectangle to inflate.
|
|
12
|
+
* @param {object} point - The point containing x and y values to inflate the rectangle by.
|
|
13
|
+
* @returns {Rectangle} The inflated rectangle.
|
|
14
|
+
*/
|
|
15
|
+
export declare const inflatePoint: (a: any, point: any) => any;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the size of the rectangle as a point.
|
|
18
|
+
* @param {Rectangle} a - The rectangle to get the size of.
|
|
19
|
+
* @param {Point} output - Optional point to store the result in.
|
|
20
|
+
* @returns {Point} The size of the rectangle as a point (width, height).
|
|
21
|
+
*/
|
|
22
|
+
export declare const size: (a: any, output?: any) => any;
|
|
23
|
+
/**
|
|
24
|
+
* Clones a rectangle.
|
|
25
|
+
* @param {Rectangle} input - The rectangle to clone.
|
|
26
|
+
* @param {Rectangle} output - Optional rectangle to store the result in.
|
|
27
|
+
* @returns {Rectangle} The cloned rectangle.
|
|
28
|
+
*/
|
|
29
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a point is contained within the rectangle.
|
|
32
|
+
* @param {Rectangle} a - The rectangle to check.
|
|
33
|
+
* @param {number} x - The x coordinate of the point.
|
|
34
|
+
* @param {number} y - The y coordinate of the point.
|
|
35
|
+
* @returns {boolean} True if the point is contained within the rectangle, false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
export declare const contains: (a: any, x: any, y: any) => boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if a point is contained within the rectangle (raw version).
|
|
40
|
+
* @param {number} rx - The x coordinate of the rectangle.
|
|
41
|
+
* @param {number} ry - The y coordinate of the rectangle.
|
|
42
|
+
* @param {number} rw - The width of the rectangle.
|
|
43
|
+
* @param {number} rh - The height of the rectangle.
|
|
44
|
+
* @param {number} x - The x coordinate of the point.
|
|
45
|
+
* @param {number} y - The y coordinate of the point.
|
|
46
|
+
* @returns {boolean} True if the point is contained within the rectangle, false otherwise.
|
|
47
|
+
*/
|
|
48
|
+
export declare const containsRaw: (rx: any, ry: any, rw: any, rh: any, x: any, y: any) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Checks if a point is contained within the rectangle.
|
|
51
|
+
* @param {Rectangle} a - The rectangle to check.
|
|
52
|
+
* @param {Point} point - The point to check.
|
|
53
|
+
* @returns {boolean} True if the point is contained within the rectangle, false otherwise.
|
|
54
|
+
*/
|
|
55
|
+
export declare const containsPoint: (a: any, point: any) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if rectangle a contains rectangle b.
|
|
58
|
+
* @param {Rectangle} a - The first rectangle to check.
|
|
59
|
+
* @param {Rectangle} b - The second rectangle to check.
|
|
60
|
+
* @returns {boolean} True if rectangle a contains rectangle b, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
export declare const containsRect: (a: any, b: any) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Checks if two rectangles are equal.
|
|
65
|
+
* @param {Rectangle} a - The first rectangle to compare.
|
|
66
|
+
* @param {Rectangle} b - The second rectangle to compare.
|
|
67
|
+
* @returns {boolean} True if the rectangles are equal, false otherwise.
|
|
68
|
+
*/
|
|
69
|
+
export declare const equals: (a: any, b: any) => boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Checks if two rectangles have the same dimensions.
|
|
72
|
+
* @param {Rectangle} a - The first rectangle to compare.
|
|
73
|
+
* @param {Rectangle} b - The second rectangle to compare.
|
|
74
|
+
* @returns {boolean} True if the rectangles have the same dimensions, false otherwise.
|
|
75
|
+
*/
|
|
76
|
+
export declare const sameDimensions: (a: any, b: any) => boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Checks if two rectangles intersect.
|
|
79
|
+
* @param {Rectangle} a - The first rectangle to check.
|
|
80
|
+
* @param {Rectangle} b - The second rectangle to check.
|
|
81
|
+
* @returns {boolean} True if the rectangles intersect, false otherwise.
|
|
82
|
+
*/
|
|
83
|
+
export declare const intersects: (a: any, b: any) => boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the intersection of two rectangles.
|
|
86
|
+
* @param {Rectangle} a - The first rectangle.
|
|
87
|
+
* @param {Rectangle} b - The second rectangle.
|
|
88
|
+
* @param {Rectangle} output - Optional rectangle to store the result in.
|
|
89
|
+
* @returns {Rectangle} The intersection of the rectangles, or an empty rectangle if they don't intersect.
|
|
90
|
+
*/
|
|
91
|
+
export declare const intersection: (a: any, b: any, output?: any) => any;
|
|
92
|
+
/**
|
|
93
|
+
* Checks if a rectangle intersects with a set of raw coordinates.
|
|
94
|
+
* @param {Rectangle} a - The rectangle to check.
|
|
95
|
+
* @param {number} left - The left coordinate of the area to check.
|
|
96
|
+
* @param {number} right - The right coordinate of the area to check.
|
|
97
|
+
* @param {number} top - The top coordinate of the area to check.
|
|
98
|
+
* @param {number} bottom - The bottom coordinate of the area to check.
|
|
99
|
+
* @param {number} tolerance - Optional tolerance value for intersection.
|
|
100
|
+
* @returns {boolean} True if the rectangle intersects with the area, false otherwise.
|
|
101
|
+
*/
|
|
102
|
+
export declare const intersectsRaw: (a: any, left: any, right: any, top: any, bottom: any, tolerance?: number) => boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Gets the union of two rectangles.
|
|
105
|
+
* @param {Rectangle} a - The first rectangle.
|
|
106
|
+
* @param {Rectangle} b - The second rectangle.
|
|
107
|
+
* @param {Rectangle} output - Optional rectangle to store the result in.
|
|
108
|
+
* @returns {Rectangle} The union of the rectangles.
|
|
109
|
+
*/
|
|
110
|
+
export declare const union: (a: any, b: any, output?: any) => any;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the axis-aligned bounding box (AABB) of a set of points.
|
|
113
|
+
* @param {Point[]} points - The array of points to calculate the AABB for.
|
|
114
|
+
* @param {Rectangle} output - Optional rectangle to store the result in.
|
|
115
|
+
* @returns {Rectangle} The AABB of the points.
|
|
116
|
+
*/
|
|
117
|
+
export declare const aabb: (points: any, output?: any) => any;
|
|
118
|
+
/**
|
|
119
|
+
* Gets an empty rectangle instance.
|
|
120
|
+
* @returns {Rectangle} An empty rectangle.
|
|
121
|
+
*/
|
|
122
|
+
export declare const getEmptyRectangle: () => any;
|
|
123
|
+
//# sourceMappingURL=rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/rectangle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,MAAC,EAAE,OAAE,EAAE,OAAE,QAMhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,MAAC,EAAE,UAAK,QAEpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GAAI,MAAC,EAAE,YAAa,QAIpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAIzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,YAK/B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,OAAE,EAAE,OAAE,EAAE,OAAE,EAAE,OAAE,EAAE,MAAC,EAAE,MAAC,YAE/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,MAAC,EAAE,UAAK,YAErC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,MAAC,EAAE,MAAC,YAKhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,YAE1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,MAAC,EAAE,MAAC,YAElC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,YAK9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAS/C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,MAAC,EAAE,SAAI,EAAE,UAAK,EAAE,QAAG,EAAE,WAAM,EAAE,kBAAa,YAOvE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,MAAC,EAAE,MAAC,EAAE,YAAa,QAQxC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GAAI,WAAM,EAAE,YAAa,QAsBzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAQ7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clones a rounded rectangle.
|
|
3
|
+
* @param {RoundedRectangle} input - The rounded rectangle to clone.
|
|
4
|
+
* @param {RoundedRectangle} output - Optional rounded rectangle to store the result in.
|
|
5
|
+
* @returns {RoundedRectangle} The cloned rounded rectangle.
|
|
6
|
+
*/
|
|
7
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
8
|
+
//# sourceMappingURL=rounded_rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rounded_rectangle.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/rounded_rectangle.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAQzC,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare const DEG_TO_RAD: number;
|
|
2
|
+
export declare const RAD_TO_DEG: number;
|
|
3
|
+
export declare const PI_2: number;
|
|
4
|
+
/**
|
|
5
|
+
* Converts a hexadecimal color value to RGB components.
|
|
6
|
+
* @param {number} hex - The hexadecimal color value.
|
|
7
|
+
* @returns {number[]} An array containing the RGB components [r, g, b].
|
|
8
|
+
*/
|
|
9
|
+
export declare const hex2rgb: (hex: any) => number[];
|
|
10
|
+
/**
|
|
11
|
+
* Converts RGB components to a hexadecimal color value.
|
|
12
|
+
* @param {number} rgb - The RGB components array [r, g, b].
|
|
13
|
+
* @returns {number} The hexadecimal color value.
|
|
14
|
+
*/
|
|
15
|
+
export declare const rgb2hex: (rgb: any) => number;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the next power of two greater than or equal to a value.
|
|
18
|
+
* @param {number} value - The input value.
|
|
19
|
+
* @returns {number} The next power of two.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getNextPowerOfTwo: (value: any) => any;
|
|
22
|
+
/**
|
|
23
|
+
* Checks if both width and height are powers of two.
|
|
24
|
+
* @param {number} width - The width to check.
|
|
25
|
+
* @param {number} height - The height to check.
|
|
26
|
+
* @returns {boolean} True if both width and height are powers of two, false otherwise.
|
|
27
|
+
*/
|
|
28
|
+
export declare const isPowerOfTwo: (width: any, height: any) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Converts degrees to radians.
|
|
31
|
+
* @param {number} degrees - The angle in degrees.
|
|
32
|
+
* @returns {number} The angle in radians.
|
|
33
|
+
*/
|
|
34
|
+
export declare const degToRad: (degrees: any) => number;
|
|
35
|
+
/**
|
|
36
|
+
* Converts radians to degrees.
|
|
37
|
+
* @param {number} radians - The angle in radians.
|
|
38
|
+
* @returns {number} The angle in degrees.
|
|
39
|
+
*/
|
|
40
|
+
export declare const radToDeg: (radians: any) => number;
|
|
41
|
+
/**
|
|
42
|
+
* Gets a random integer between min and max (inclusive).
|
|
43
|
+
* @param {number} min - The minimum value.
|
|
44
|
+
* @param {number} max - The maximum value.
|
|
45
|
+
* @returns {number} A random integer between min and max.
|
|
46
|
+
*/
|
|
47
|
+
export declare const between: (min: any, max: any) => number;
|
|
48
|
+
/**
|
|
49
|
+
* Snaps a value to the nearest multiple of gap, starting from start.
|
|
50
|
+
* @param {number} input - The value to snap.
|
|
51
|
+
* @param {number} gap - The gap size to snap to.
|
|
52
|
+
* @param {number} start - The starting offset for snapping.
|
|
53
|
+
* @returns {number} The snapped value.
|
|
54
|
+
*/
|
|
55
|
+
export declare const snapToCeil: (input: any, gap?: number, start?: number) => any;
|
|
56
|
+
/**
|
|
57
|
+
* Wraps a value within a range.
|
|
58
|
+
* @param {number} value - The value to wrap.
|
|
59
|
+
* @param {number} min - The minimum value of the range.
|
|
60
|
+
* @param {number} max - The maximum value of the range.
|
|
61
|
+
* @returns {number} The wrapped value.
|
|
62
|
+
*/
|
|
63
|
+
export declare const wrap: (value: any, min: any, max: any) => any;
|
|
64
|
+
/**
|
|
65
|
+
* Performs linear interpolation between two values.
|
|
66
|
+
* @param {number} p0 - The first point.
|
|
67
|
+
* @param {number} p1 - The second point.
|
|
68
|
+
* @param {number} t - The interpolation factor (0 to 1).
|
|
69
|
+
* @returns {number} The interpolated value.
|
|
70
|
+
*/
|
|
71
|
+
export declare const linear: (p0: any, p1: any, t: any) => any;
|
|
72
|
+
/**
|
|
73
|
+
* Calculates the absolute difference between two numbers.
|
|
74
|
+
* @param {number} a - The first number.
|
|
75
|
+
* @param {number} b - The second number.
|
|
76
|
+
* @returns {number} The absolute difference between a and b.
|
|
77
|
+
*/
|
|
78
|
+
export declare const difference: (a: any, b: any) => number;
|
|
79
|
+
/**
|
|
80
|
+
* Performs linear interpolation on an array of values.
|
|
81
|
+
* @param {number[]} v - The array of values.
|
|
82
|
+
* @param {number} k - The interpolation factor (0 to 1).
|
|
83
|
+
* @returns {number} The interpolated value.
|
|
84
|
+
*/
|
|
85
|
+
export declare const linearInterpolation: (v: any, k: any) => any;
|
|
86
|
+
/**
|
|
87
|
+
* Calculates the distance between two points.
|
|
88
|
+
* @param {number} x1 - The x-coordinate of the first point.
|
|
89
|
+
* @param {number} y1 - The y-coordinate of the first point.
|
|
90
|
+
* @param {number} x2 - The x-coordinate of the second point.
|
|
91
|
+
* @param {number} y2 - The y-coordinate of the second point.
|
|
92
|
+
* @returns {number} The distance between the two points.
|
|
93
|
+
*/
|
|
94
|
+
export declare const distance: (x1: any, y1: any, x2: any, y2: any) => number;
|
|
95
|
+
/**
|
|
96
|
+
* Checks if two numbers are within a tolerance of each other.
|
|
97
|
+
* @param {number} a - The first number.
|
|
98
|
+
* @param {number} b - The second number.
|
|
99
|
+
* @param {number} tolerance - The tolerance value.
|
|
100
|
+
* @returns {boolean} True if the numbers are within tolerance, false otherwise.
|
|
101
|
+
*/
|
|
102
|
+
export declare const within: (a: any, b: any, tolerance: any) => boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Creates a 32-bit color value from alpha, red, green, and blue components.
|
|
105
|
+
* @param {number} a - The alpha component (0-255).
|
|
106
|
+
* @param {number} r - The red component (0-255).
|
|
107
|
+
* @param {number} g - The green component (0-255).
|
|
108
|
+
* @param {number} b - The blue component (0-255).
|
|
109
|
+
* @returns {number} The 32-bit color value.
|
|
110
|
+
*/
|
|
111
|
+
export declare const getColor32: (a: any, r: any, g: any, b: any) => number;
|
|
112
|
+
/**
|
|
113
|
+
* Creates a 24-bit color value from red, green, and blue components.
|
|
114
|
+
* @param {number} r - The red component (0-255).
|
|
115
|
+
* @param {number} g - The green component (0-255).
|
|
116
|
+
* @param {number} b - The blue component (0-255).
|
|
117
|
+
* @returns {number} The 24-bit color value.
|
|
118
|
+
*/
|
|
119
|
+
export declare const getColor: (r: any, g: any, b: any) => number;
|
|
120
|
+
/**
|
|
121
|
+
* Converts a hex color string to RGB components.
|
|
122
|
+
* @param {string} value - The hex color string (e.g. "#FF0000").
|
|
123
|
+
* @param {{r?: number, g?: number, b?: number}} out - The object to store the result in.
|
|
124
|
+
*/
|
|
125
|
+
export declare const hexToColor: (value: any, out: any) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Converts a web color string (e.g. "rgb(255, 0, 0)") to RGB components with alpha.
|
|
128
|
+
* @param {string} value - The web color string (e.g. "rgba(255, 0, 0, 0.5)").
|
|
129
|
+
* @param {{r?: number, g?: number, b?: number, a?: number}} out - The object to store the result in.
|
|
130
|
+
*/
|
|
131
|
+
export declare const webToColor: (value: any, out: any) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Extracts RGB components from a 32-bit color value.
|
|
134
|
+
* @param {number} color - The 32-bit color value.
|
|
135
|
+
* @returns {{ alpha: number, red: number, green: number, blue: number, a: number, r: number, g: number, b: number}} An object containing the color components.
|
|
136
|
+
*/
|
|
137
|
+
export declare const getRGB: (color: any) => {
|
|
138
|
+
alpha: number;
|
|
139
|
+
red: number;
|
|
140
|
+
green: number;
|
|
141
|
+
blue: number;
|
|
142
|
+
a: number;
|
|
143
|
+
r: number;
|
|
144
|
+
g: number;
|
|
145
|
+
b: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Converts a color value (string or number) to an object with various color formats.
|
|
149
|
+
* @param {string|number} value - The color value (e.g. "#FF0000" or 0xFF0000).
|
|
150
|
+
* @param {{a?: number, r?: number, g?: number, b?: number, rgba?: string, color?: number, color32?: number}} out - The object to store the result in.
|
|
151
|
+
* @returns {{a?: number, r?: number, g?: number, b?: number, rgba?: string, color?: number, color32?: number}} The updated out object.
|
|
152
|
+
*/
|
|
153
|
+
export declare const valueToColor: (value: any, out: any) => any;
|
|
154
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../src/phaser/util/math.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAgB,CAAC;AACxC,eAAO,MAAM,UAAU,QAAgB,CAAC;AACxC,eAAO,MAAM,IAAI,QAAc,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,QAAG,aAE1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,QAAG,WAE1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAK,QAUtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,UAAK,EAAE,WAAM,YAEzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,YAAO,WAE/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,YAAO,WAE/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,QAAG,EAAE,QAAG,WAE/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,UAAK,EAAE,YAAO,EAAE,cAAS,QAOnD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,GAAI,UAAK,EAAE,QAAG,EAAE,QAAG,QAUnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,OAAE,EAAE,OAAE,EAAE,MAAC,QAE/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,WAE9B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAC,EAAE,MAAC,QAWvC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAE,EAAE,OAAE,EAAE,OAAE,EAAE,OAAE,WAItC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,EAAE,cAAS,YAErC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,MAAC,WAEpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,WAE/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,UAAK,EAAE,QAAG,SASpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,UAAK,EAAE,QAAG,SAQpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,UAAK;;;;;;;;;CAwB3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,UAAK,EAAE,QAAG,QAsBtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.103.0",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,27 +19,41 @@
|
|
|
19
19
|
"webgl",
|
|
20
20
|
"canvas"
|
|
21
21
|
],
|
|
22
|
-
"main": "./
|
|
23
|
-
"
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
24
25
|
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
25
36
|
"dependencies": {
|
|
26
37
|
"@vpmedia/simplify": "^1.74.0",
|
|
27
38
|
"uuid": "^14.0.0"
|
|
28
39
|
},
|
|
29
40
|
"devDependencies": {
|
|
30
|
-
"@commitlint/cli": "^
|
|
31
|
-
"@commitlint/config-conventional": "^
|
|
32
|
-
"@types
|
|
41
|
+
"@commitlint/cli": "^21.0.0",
|
|
42
|
+
"@commitlint/config-conventional": "^21.0.0",
|
|
43
|
+
"@commitlint/types": "^21.0.0",
|
|
44
|
+
"@types/node": "^25.6.2",
|
|
33
45
|
"@vitest/coverage-v8": "^4.1.5",
|
|
34
|
-
"jsdom": "^29.
|
|
35
|
-
"oxfmt": "^0.
|
|
36
|
-
"oxlint": "^1.
|
|
37
|
-
"oxlint-tsgolint": "^0.
|
|
46
|
+
"jsdom": "^29.1.1",
|
|
47
|
+
"oxfmt": "^0.48.0",
|
|
48
|
+
"oxlint": "^1.63.0",
|
|
49
|
+
"oxlint-tsgolint": "^0.22.1",
|
|
50
|
+
"rolldown": "1.0.0",
|
|
38
51
|
"typescript": "^6.0.3",
|
|
39
52
|
"vitest": "^4.1.5"
|
|
40
53
|
},
|
|
41
54
|
"scripts": {
|
|
42
|
-
"build": "
|
|
55
|
+
"build": "rolldown -c && tsc",
|
|
56
|
+
"clean": "rm -rf dist",
|
|
43
57
|
"check": "pnpm lint && pnpm test && pnpm typecheck",
|
|
44
58
|
"format": "oxfmt --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json,css}\"",
|
|
45
59
|
"lint": "oxlint src",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import { BaseTexture } from '../display/webgl/base_texture.js';
|
|
2
3
|
import { Texture } from '../display/webgl/texture.js';
|
|
3
4
|
import { JSONDataHash } from './animation_parser.js';
|
|
@@ -770,4 +771,4 @@ export class Cache {
|
|
|
770
771
|
this._urlResolver = null;
|
|
771
772
|
this._urlTemp = null;
|
|
772
773
|
}
|
|
773
|
-
}
|
|
774
|
+
}
|
|
@@ -180,6 +180,13 @@ class DocumentBoundsRectangle {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export class DOM {
|
|
183
|
+
treatAsDesktop: boolean;
|
|
184
|
+
visualBounds: any;
|
|
185
|
+
layoutBounds: any;
|
|
186
|
+
documentBounds: any;
|
|
187
|
+
scrollXProvider: () => number;
|
|
188
|
+
scrollYProvider: () => number;
|
|
189
|
+
|
|
183
190
|
/**
|
|
184
191
|
* TBD.
|
|
185
192
|
* @param {import('./device.js').Device} device - TBD.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import { Rectangle } from '../geom/rectangle.js';
|
|
2
3
|
import { distance } from '../util/math.js';
|
|
3
4
|
import { cloneFrame } from './frame_util.js';
|
|
@@ -107,4 +108,4 @@ export class Frame {
|
|
|
107
108
|
result.setTo(this.x, this.y, this.width, this.height);
|
|
108
109
|
return result;
|
|
109
110
|
}
|
|
110
|
-
}
|
|
111
|
+
}
|