@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,4 +1,10 @@
|
|
|
1
|
-
export class RoundedRectangle {
|
|
1
|
+
export declare class RoundedRectangle {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
radius: number;
|
|
7
|
+
type: number;
|
|
2
8
|
/**
|
|
3
9
|
* Creates a new RoundedRectangle instance.
|
|
4
10
|
* @param {number} x - The x coordinate of the top-left corner of the rectangle (default: 0).
|
|
@@ -8,23 +14,17 @@ export class RoundedRectangle {
|
|
|
8
14
|
* @param {number} radius - The corner radius (default: 20).
|
|
9
15
|
*/
|
|
10
16
|
constructor(x?: number, y?: number, width?: number, height?: number, radius?: number);
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
radius: number;
|
|
16
|
-
type: number;
|
|
17
17
|
/**
|
|
18
18
|
* Checks if the specified point is contained within this rounded rectangle.
|
|
19
19
|
* @param {number} x - The x coordinate of the point to check.
|
|
20
20
|
* @param {number} y - The y coordinate of the point to check.
|
|
21
21
|
* @returns {boolean} True if the point is contained within this rounded rectangle, false otherwise.
|
|
22
22
|
*/
|
|
23
|
-
contains(x:
|
|
23
|
+
contains(x: any, y: any): boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Creates a clone of this rounded rectangle.
|
|
26
26
|
* @returns {RoundedRectangle} A new rounded rectangle with the same values as this one.
|
|
27
27
|
*/
|
|
28
|
-
clone():
|
|
28
|
+
clone(): any;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=rounded_rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rounded_rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rounded_rectangle.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI,EAAE,MAAM,SAAK;IAS5D;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAYb;;;OAGG;IACH,KAAK;CAGN"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clones a circle.
|
|
3
|
+
* @param {Circle} input - The circle to clone.
|
|
4
|
+
* @param {Circle} output - Optional circle to store the result in.
|
|
5
|
+
* @returns {Circle} The cloned circle.
|
|
6
|
+
*/
|
|
7
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a point is contained within the circle.
|
|
10
|
+
* @param {Circle} a - The circle to check.
|
|
11
|
+
* @param {number} x - The x coordinate of the point.
|
|
12
|
+
* @param {number} y - The y coordinate of the point.
|
|
13
|
+
* @returns {boolean} True if the point is contained within the circle, false otherwise.
|
|
14
|
+
*/
|
|
15
|
+
export declare const contains: (a: any, x: any, y: any) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Checks if two circles are equal.
|
|
18
|
+
* @param {Circle} a - The first circle to compare.
|
|
19
|
+
* @param {Circle} b - The second circle to compare.
|
|
20
|
+
* @returns {boolean} True if the circles are equal, false otherwise.
|
|
21
|
+
*/
|
|
22
|
+
export declare const equals: (a: any, b: any) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Checks if two circles intersect.
|
|
25
|
+
* @param {Circle} a - The first circle to check.
|
|
26
|
+
* @param {Circle} b - The second circle to check.
|
|
27
|
+
* @returns {boolean} True if the circles intersect, false otherwise.
|
|
28
|
+
*/
|
|
29
|
+
export declare const intersects: (a: any, b: any) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Gets a point on the circumference of the circle at the specified angle.
|
|
32
|
+
* @param {Circle} a - The circle to get the point from.
|
|
33
|
+
* @param {number} angle - The angle in radians or degrees (depending on asDegrees).
|
|
34
|
+
* @param {boolean} asDegrees - True if the angle is in degrees, false if in radians.
|
|
35
|
+
* @param {Point} output - Optional point to store the result in.
|
|
36
|
+
* @returns {Point} The point on the circumference of the circle.
|
|
37
|
+
*/
|
|
38
|
+
export declare const circumferencePoint: (a: any, angle: any, asDegrees?: boolean, output?: any) => any;
|
|
39
|
+
/**
|
|
40
|
+
* Gets a point on the circumference of the circle at the specified angle.
|
|
41
|
+
* @param {Circle} a - The circle to get the point from.
|
|
42
|
+
* @param {number} angle - The angle in radians or degrees (depending on asDegrees).
|
|
43
|
+
* @param {boolean} asDegrees - True if the angle is in degrees, false if in radians.
|
|
44
|
+
* @param {Point} output - Optional point to store the result in.
|
|
45
|
+
* @returns {Point} The point on the circumference of the circle.
|
|
46
|
+
*/
|
|
47
|
+
export declare const intersectsPoint: (a: any, angle: any, asDegrees?: boolean, output?: any) => any;
|
|
48
|
+
/**
|
|
49
|
+
* Checks if a circle intersects with a rectangle.
|
|
50
|
+
* @param {Circle} c - The circle to check.
|
|
51
|
+
* @param {object} r - The rectangle to check.
|
|
52
|
+
* @returns {boolean} True if the circle intersects with the rectangle, false otherwise.
|
|
53
|
+
*/
|
|
54
|
+
export declare const intersectsRectangle: (c: any, r: any) => boolean;
|
|
55
|
+
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/circle.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAMzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,YAO/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,MAAC,EAAE,MAAC,YAE1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,YAE9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAC,EAAE,UAAK,EAAE,mBAAiB,EAAE,YAAa,QAQ5E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,MAAC,EAAE,UAAK,EAAE,mBAAiB,EAAE,YAAa,QAQzE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAC,EAAE,MAAC,YAoBvC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a point is contained within the ellipse.
|
|
3
|
+
* @param {import('../ellipse.js').Ellipse} a - The ellipse to check.
|
|
4
|
+
* @param {number} x - The x coordinate of the point.
|
|
5
|
+
* @param {number} y - The y coordinate of the point.
|
|
6
|
+
* @returns {boolean} True if the point is contained within the ellipse, false otherwise.
|
|
7
|
+
*/
|
|
8
|
+
export declare const contains: (a: any, x: any, y: any) => boolean;
|
|
9
|
+
//# sourceMappingURL=ellipse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/ellipse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,YAU/B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clones a line.
|
|
3
|
+
* @param {Line} input - The line to clone.
|
|
4
|
+
* @param {Line} output - Optional line to store the result in.
|
|
5
|
+
* @returns {Line} The cloned line.
|
|
6
|
+
*/
|
|
7
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* Gets the intersection point of two lines.
|
|
10
|
+
* @param {object} a - The first line (with x1, y1, x2, y2 properties).
|
|
11
|
+
* @param {object} b - The second line (with x1, y1, x2, y2 properties).
|
|
12
|
+
* @param {object} e - The first endpoint of the first line (with x, y properties).
|
|
13
|
+
* @param {object} f - The second endpoint of the second line (with x, y properties).
|
|
14
|
+
* @param {boolean} asSegment - True if the lines are treated as segments, false if infinite lines.
|
|
15
|
+
* @param {Point} output - Optional point to store the result in.
|
|
16
|
+
* @returns {Point} The intersection point, or null if there is no intersection.
|
|
17
|
+
*/
|
|
18
|
+
export declare const intersectsPoints: (a: any, b: any, e: any, f: any, asSegment?: boolean, output?: any) => any;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the intersection point of two lines (alternative implementation).
|
|
21
|
+
* @param {object} a - The first line (with x1, y1, x2, y2 properties).
|
|
22
|
+
* @param {object} b - The second line (with x1, y1, x2, y2 properties).
|
|
23
|
+
* @param {boolean} asSegment - True if the lines are treated as segments, false if infinite lines.
|
|
24
|
+
* @param {Point} result - Optional point to store the result in.
|
|
25
|
+
* @returns {Point} The intersection point, or null if there is no intersection.
|
|
26
|
+
*/
|
|
27
|
+
export declare const intersects: (a: any, b: any, asSegment: any, result: any) => any;
|
|
28
|
+
/**
|
|
29
|
+
* Checks if a line intersects with a rectangle.
|
|
30
|
+
* @param {object} line - The line to check (with x1, y1, x2, y2 properties).
|
|
31
|
+
* @param {object} rect - The rectangle to check (with x, y, width, height properties).
|
|
32
|
+
* @returns {boolean} True if the line intersects with the rectangle, false otherwise.
|
|
33
|
+
*/
|
|
34
|
+
export declare const intersectsRectangle: (line: any, rect: any) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Calculates the distance between two points (line length).
|
|
37
|
+
* @param {object} a - The first point (with x, y properties).
|
|
38
|
+
* @param {object} b - The second point (with x, y properties).
|
|
39
|
+
* @returns {number} The distance between the points.
|
|
40
|
+
*/
|
|
41
|
+
export declare const reflect: (a: any, b: any) => number;
|
|
42
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/line.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QAOzC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,MAAC,EAAE,mBAAgB,EAAE,YAAa,QAwB3E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,MAAC,EAAE,MAAC,EAAE,cAAS,EAAE,WAAM,QAEjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAI,EAAE,SAAI,YA8C7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,MAAC,EAAE,MAAC,WAE3B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clones a matrix.
|
|
3
|
+
* @param {Matrix} input - The matrix to clone.
|
|
4
|
+
* @param {Matrix} output - Optional matrix to store the result in.
|
|
5
|
+
* @returns {Matrix} The cloned matrix.
|
|
6
|
+
*/
|
|
7
|
+
export declare const clone: (input: any, output?: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new identity matrix.
|
|
10
|
+
* @returns {Matrix} A new identity matrix.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getIdentityMatrix: () => any;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new matrix with the specified values.
|
|
15
|
+
* @returns {Matrix} A new matrix.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getTempMatrix: () => any;
|
|
18
|
+
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/matrix.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,UAAK,EAAE,YAAa,QASzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAQ7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,WAQzB,CAAC"}
|
|
@@ -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
|