@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,34 +1,31 @@
|
|
|
1
|
-
export class Point {
|
|
1
|
+
export declare class Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
type: number;
|
|
2
5
|
/**
|
|
3
6
|
* Creates a new Point instance.
|
|
4
7
|
* @param {number} x - The x coordinate of the point (default: 0).
|
|
5
8
|
* @param {number} y - The y coordinate of the point (default: 0).
|
|
6
9
|
*/
|
|
7
10
|
constructor(x?: number, y?: number);
|
|
8
|
-
/** @type {number} */
|
|
9
|
-
x: number;
|
|
10
|
-
/** @type {number} */
|
|
11
|
-
y: number;
|
|
12
|
-
/** @type {number} */
|
|
13
|
-
type: number;
|
|
14
11
|
/**
|
|
15
12
|
* Copies the coordinates from another point to this point.
|
|
16
13
|
* @param {Point} source - The point to copy coordinates from.
|
|
17
14
|
* @returns {Point} This point instance for chaining.
|
|
18
15
|
*/
|
|
19
|
-
copyFrom(source:
|
|
16
|
+
copyFrom(source: any): this;
|
|
20
17
|
/**
|
|
21
18
|
* Returns a new point with the x and y coordinates swapped.
|
|
22
19
|
* @returns {Point} A new point instance with swapped coordinates.
|
|
23
20
|
*/
|
|
24
|
-
invert():
|
|
21
|
+
invert(): this;
|
|
25
22
|
/**
|
|
26
23
|
* Sets the coordinates of this point to new values.
|
|
27
24
|
* @param {number} x - The new x coordinate for the point.
|
|
28
25
|
* @param {number} y - The new y coordinate for the point.
|
|
29
26
|
* @returns {Point} This point instance for chaining.
|
|
30
27
|
*/
|
|
31
|
-
setTo(x:
|
|
28
|
+
setTo(x: any, y?: any): this;
|
|
32
29
|
/**
|
|
33
30
|
* Sets the coordinates of this point to new values.
|
|
34
31
|
* @param {number} x - The new x coordinate for the point.
|
|
@@ -36,86 +33,86 @@ export class Point {
|
|
|
36
33
|
* @returns {Point} This point instance for chaining.
|
|
37
34
|
* @deprecated Use setTo instead.
|
|
38
35
|
*/
|
|
39
|
-
set(x:
|
|
36
|
+
set(x: any, y: any): this;
|
|
40
37
|
/**
|
|
41
38
|
* Adds the given x and y values to the point's coordinates.
|
|
42
39
|
* @param {number} x - The amount to add to the x coordinate.
|
|
43
40
|
* @param {number} y - The amount to add to the y coordinate.
|
|
44
41
|
* @returns {Point} This point instance for chaining.
|
|
45
42
|
*/
|
|
46
|
-
add(x:
|
|
43
|
+
add(x: any, y: any): this;
|
|
47
44
|
/**
|
|
48
45
|
* Subtracts the given x and y values from the point's coordinates.
|
|
49
46
|
* @param {number} x - The amount to subtract from the x coordinate.
|
|
50
47
|
* @param {number} y - The amount to subtract from the y coordinate.
|
|
51
48
|
* @returns {Point} This point instance for chaining.
|
|
52
49
|
*/
|
|
53
|
-
subtract(x:
|
|
50
|
+
subtract(x: any, y: any): this;
|
|
54
51
|
/**
|
|
55
52
|
* Multiplies the point's coordinates by the given x and y values.
|
|
56
53
|
* @param {number} x - The amount to multiply the x coordinate by.
|
|
57
54
|
* @param {number} y - The amount to multiply the y coordinate by.
|
|
58
55
|
* @returns {Point} This point instance for chaining.
|
|
59
56
|
*/
|
|
60
|
-
multiply(x:
|
|
57
|
+
multiply(x: any, y: any): this;
|
|
61
58
|
/**
|
|
62
59
|
* Divides the point's coordinates by the given x and y values.
|
|
63
60
|
* @param {number} x - The amount to divide the x coordinate by.
|
|
64
61
|
* @param {number} y - The amount to divide the y coordinate by.
|
|
65
62
|
* @returns {Point} This point instance for chaining.
|
|
66
63
|
*/
|
|
67
|
-
divide(x:
|
|
64
|
+
divide(x: any, y: any): this;
|
|
68
65
|
/**
|
|
69
66
|
* Constrains the x coordinate of this point to the given range.
|
|
70
67
|
* @param {number} min - The minimum value for the x coordinate.
|
|
71
68
|
* @param {number} max - The maximum value for the x coordinate.
|
|
72
69
|
* @returns {Point} This point instance for chaining.
|
|
73
70
|
*/
|
|
74
|
-
clampX(min:
|
|
71
|
+
clampX(min: any, max: any): this;
|
|
75
72
|
/**
|
|
76
73
|
* Constrains the y coordinate of this point to the given range.
|
|
77
74
|
* @param {number} min - The minimum value for the y coordinate.
|
|
78
75
|
* @param {number} max - The maximum value for the y coordinate.
|
|
79
76
|
* @returns {Point} This point instance for chaining.
|
|
80
77
|
*/
|
|
81
|
-
clampY(min:
|
|
78
|
+
clampY(min: any, max: any): this;
|
|
82
79
|
/**
|
|
83
80
|
* Constrains both coordinates of this point to the given range.
|
|
84
81
|
* @param {number} min - The minimum value for both coordinates.
|
|
85
82
|
* @param {number} max - The maximum value for both coordinates.
|
|
86
83
|
* @returns {Point} This point instance for chaining.
|
|
87
84
|
*/
|
|
88
|
-
clamp(min:
|
|
85
|
+
clamp(min: any, max: any): this;
|
|
89
86
|
/**
|
|
90
87
|
* Creates a clone of this point.
|
|
91
88
|
* @returns {Point} A new point with the same coordinates as this one.
|
|
92
89
|
*/
|
|
93
|
-
clone():
|
|
90
|
+
clone(): any;
|
|
94
91
|
/**
|
|
95
92
|
* Copies the coordinates of this point to another point.
|
|
96
93
|
* @param {Point} dest - The point to copy coordinates to.
|
|
97
94
|
* @returns {Point} The destination point.
|
|
98
95
|
*/
|
|
99
|
-
copyTo(dest:
|
|
96
|
+
copyTo(dest: any): any;
|
|
100
97
|
/**
|
|
101
98
|
* Calculates the distance between this point and another point.
|
|
102
99
|
* @param {Point} b - The other point to calculate the distance to.
|
|
103
100
|
* @returns {number} The distance between the two points.
|
|
104
101
|
*/
|
|
105
|
-
distance(b:
|
|
102
|
+
distance(b: any): number;
|
|
106
103
|
/**
|
|
107
104
|
* Checks if this point is equal to another point.
|
|
108
105
|
* @param {Point} a - The other point to compare with.
|
|
109
106
|
* @returns {boolean} True if the points have the same coordinates, false otherwise.
|
|
110
107
|
*/
|
|
111
|
-
equals(a:
|
|
108
|
+
equals(a: any): boolean;
|
|
112
109
|
/**
|
|
113
110
|
* Calculates the angle between this point and another point.
|
|
114
111
|
* @param {Point} a - The other point to calculate the angle to.
|
|
115
112
|
* @param {boolean} asDegrees - Whether to return the result in degrees (default: false).
|
|
116
113
|
* @returns {number} The angle between the two points in radians or degrees.
|
|
117
114
|
*/
|
|
118
|
-
angle(a:
|
|
115
|
+
angle(a: any, asDegrees?: boolean): number;
|
|
119
116
|
/**
|
|
120
117
|
* Rotates this point around another point by a given angle.
|
|
121
118
|
* @param {number} x - The x coordinate of the center point to rotate around.
|
|
@@ -125,7 +122,7 @@ export class Point {
|
|
|
125
122
|
* @param {number | null | undefined} dist - The distance to rotate from (default: null).
|
|
126
123
|
* @returns {Point} This point instance for chaining.
|
|
127
124
|
*/
|
|
128
|
-
rotate(x:
|
|
125
|
+
rotate(x: any, y: any, angle: any, asDegrees: any, dist?: any): any;
|
|
129
126
|
/**
|
|
130
127
|
* Calculates the magnitude (length) of this point from the origin.
|
|
131
128
|
* @returns {number} The magnitude of the point.
|
|
@@ -141,12 +138,12 @@ export class Point {
|
|
|
141
138
|
* @param {number} magnitude - The new magnitude for the point.
|
|
142
139
|
* @returns {Point} This point instance for chaining.
|
|
143
140
|
*/
|
|
144
|
-
setMagnitude(magnitude:
|
|
141
|
+
setMagnitude(magnitude: any): this;
|
|
145
142
|
/**
|
|
146
143
|
* Normalizes this point to have a magnitude of 1 while preserving its direction.
|
|
147
144
|
* @returns {Point} This point instance for chaining.
|
|
148
145
|
*/
|
|
149
|
-
normalize():
|
|
146
|
+
normalize(): this;
|
|
150
147
|
/**
|
|
151
148
|
* Checks if this point has zero magnitude (is at the origin).
|
|
152
149
|
* @returns {boolean} True if both x and y coordinates are zero, false otherwise.
|
|
@@ -157,38 +154,38 @@ export class Point {
|
|
|
157
154
|
* @param {Point} a - The other point to calculate the dot product with.
|
|
158
155
|
* @returns {number} The dot product of the two points.
|
|
159
156
|
*/
|
|
160
|
-
dot(a:
|
|
157
|
+
dot(a: any): number;
|
|
161
158
|
/**
|
|
162
159
|
* Calculates the cross product of this point and another point.
|
|
163
160
|
* @param {Point} a - The other point to calculate the cross product with.
|
|
164
161
|
* @returns {number} The cross product of the two points.
|
|
165
162
|
*/
|
|
166
|
-
cross(a:
|
|
163
|
+
cross(a: any): number;
|
|
167
164
|
/**
|
|
168
165
|
* Returns a perpendicular point (rotated 90 degrees counter-clockwise).
|
|
169
166
|
* @returns {Point} A new point that is perpendicular to this one.
|
|
170
167
|
*/
|
|
171
|
-
perp():
|
|
168
|
+
perp(): this;
|
|
172
169
|
/**
|
|
173
170
|
* Returns a perpendicular point (rotated 90 degrees clockwise).
|
|
174
171
|
* @returns {Point} A new point that is perpendicular to this one (rotated clockwise).
|
|
175
172
|
*/
|
|
176
|
-
rperp():
|
|
173
|
+
rperp(): this;
|
|
177
174
|
/**
|
|
178
175
|
* Returns a point with the same direction as this one but with y coordinate negated.
|
|
179
176
|
* @returns {Point} A new point with the same x coordinate but negated y coordinate.
|
|
180
177
|
*/
|
|
181
|
-
normalRightHand():
|
|
178
|
+
normalRightHand(): this;
|
|
182
179
|
/**
|
|
183
180
|
* Returns a new point with the x and y coordinates rounded down to the nearest integer.
|
|
184
181
|
* @returns {Point} A new point with floored coordinates.
|
|
185
182
|
*/
|
|
186
|
-
floor():
|
|
183
|
+
floor(): this;
|
|
187
184
|
/**
|
|
188
185
|
* Returns a new point with the x and y coordinates rounded up to the nearest integer.
|
|
189
186
|
* @returns {Point} A new point with ceiled coordinates.
|
|
190
187
|
*/
|
|
191
|
-
ceil():
|
|
188
|
+
ceil(): this;
|
|
192
189
|
/**
|
|
193
190
|
* Returns a string representation of this point.
|
|
194
191
|
* @returns {string} A string representation of the point in the format "[Point (x=value y=value)]".
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/point.ts"],"names":[],"mappings":"AAGA,qBAAa,KAAK;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI;IASxB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAIf;;;OAGG;IACH,MAAM;IAIN;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,CAAC,KAAA;IAMX;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMR;;;;;OAKG;IACH,GAAG,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMR;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMb;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMb;;;;;OAKG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMX;;;;;OAKG;IACH,MAAM,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAKf;;;;;OAKG;IACH,MAAM,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAKf;;;;;OAKG;IACH,KAAK,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA;IAMd;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAMX;;;;OAIG;IACH,QAAQ,CAAC,CAAC,KAAA;IAIV;;;;OAIG;IACH,MAAM,CAAC,CAAC,KAAA;IAIR;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,SAAS,UAAQ;IAO1B;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,SAAS,KAAA,EAAE,IAAI,MAAO;IAI1C;;;OAGG;IACH,YAAY;IAIZ;;;OAGG;IACH,cAAc;IAId;;;;OAIG;IACH,YAAY,CAAC,SAAS,KAAA;IAItB;;;OAGG;IACH,SAAS;IAST;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,GAAG,CAAC,CAAC,KAAA;IAIL;;;;OAIG;IACH,KAAK,CAAC,CAAC,KAAA;IAIP;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -1,63 +1,57 @@
|
|
|
1
|
-
export class Polygon {
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Polygon instance.
|
|
4
|
-
* @param {object[]} points - The array of points to define the polygon (optional).
|
|
5
|
-
*/
|
|
6
|
-
constructor(points?: object[]);
|
|
7
|
-
/** @type {number} */
|
|
1
|
+
export declare class Polygon {
|
|
8
2
|
area: number;
|
|
9
|
-
|
|
10
|
-
_points: Point[];
|
|
11
|
-
/** @type {boolean} */
|
|
3
|
+
_points: any[];
|
|
12
4
|
closed: boolean;
|
|
13
|
-
/** @type {boolean} */
|
|
14
5
|
flattened: boolean;
|
|
15
|
-
/** @type {number} */
|
|
16
6
|
type: number;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new Polygon instance.
|
|
9
|
+
* @param {object[]} points - The array of points to define the polygon (optional).
|
|
10
|
+
*/
|
|
11
|
+
constructor(points?: any);
|
|
17
12
|
/**
|
|
18
13
|
* Converts the polygon's points to a number array.
|
|
19
14
|
* @param {number[]} output - The array to store the result in (optional).
|
|
20
15
|
* @returns {number[]} An array of numbers representing the polygon's points.
|
|
21
16
|
*/
|
|
22
|
-
toNumberArray(output?:
|
|
17
|
+
toNumberArray(output?: any[]): any[];
|
|
23
18
|
/**
|
|
24
19
|
* Flattens the polygon's point array to a simple numeric array.
|
|
25
20
|
* @returns {Polygon} This polygon instance for chaining.
|
|
26
21
|
*/
|
|
27
|
-
flatten():
|
|
22
|
+
flatten(): this;
|
|
28
23
|
/**
|
|
29
24
|
* Creates a clone of this polygon.
|
|
30
25
|
* @returns {Polygon} A new polygon with the same values as this one.
|
|
31
26
|
*/
|
|
32
|
-
clone():
|
|
27
|
+
clone(): any;
|
|
33
28
|
/**
|
|
34
29
|
* Checks if the specified point is contained within this polygon.
|
|
35
30
|
* @param {number} x - The x coordinate of the point to check.
|
|
36
31
|
* @param {number} y - The y coordinate of the point to check.
|
|
37
32
|
* @returns {boolean} True if the point is contained within this polygon, false otherwise.
|
|
38
33
|
*/
|
|
39
|
-
contains(x:
|
|
34
|
+
contains(x: any, y: any): boolean;
|
|
40
35
|
/**
|
|
41
36
|
* Sets the polygon's points to new values.
|
|
42
37
|
* @param {object[]} points - The array of points to define the polygon.
|
|
43
38
|
* @returns {Polygon} This polygon instance for chaining.
|
|
44
39
|
*/
|
|
45
|
-
setTo(points:
|
|
40
|
+
setTo(points: any): this;
|
|
46
41
|
/**
|
|
47
42
|
* Calculates the area of this polygon.
|
|
48
43
|
* @param {number} y0 - The y coordinate of the lowest boundary (internal use).
|
|
49
44
|
* @returns {number} The area of this polygon.
|
|
50
45
|
*/
|
|
51
|
-
calculateArea(y0:
|
|
52
|
-
/**
|
|
53
|
-
* Sets the points of this polygon.
|
|
54
|
-
*/
|
|
55
|
-
set points(value: object[]);
|
|
46
|
+
calculateArea(y0: any): number;
|
|
56
47
|
/**
|
|
57
48
|
* Gets the points of this polygon.
|
|
58
49
|
* @returns {object[]} The array of points that define this polygon.
|
|
59
50
|
*/
|
|
60
|
-
get points():
|
|
51
|
+
get points(): any[];
|
|
52
|
+
/**
|
|
53
|
+
* Sets the points of this polygon.
|
|
54
|
+
*/
|
|
55
|
+
set points(value: any[]);
|
|
61
56
|
}
|
|
62
|
-
import { Point } from './point.js';
|
|
63
57
|
//# sourceMappingURL=polygon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/polygon.ts"],"names":[],"mappings":"AAIA,qBAAa,OAAO;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;gBACS,MAAM,MAAO;IAgBzB;;;;OAIG;IACH,aAAa,CAAC,MAAM,QAAK;IAczB;;;OAGG;IACH,OAAO;IAMP;;;OAGG;IACH,KAAK;IAIL;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IA2Bb;;;;OAIG;IACH,KAAK,CAAC,MAAM,KAAA;IAkCZ;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAA;IAmBhB;;;OAGG;IACH,IAAI,MAAM,UAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,OAAA,EAOf;CACF"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { Point } from './point.js';
|
|
2
|
+
export declare class Rectangle {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
type: number;
|
|
2
8
|
/**
|
|
3
9
|
* Creates a new Rectangle instance.
|
|
4
10
|
* @param {number} x - The x coordinate of the top-left corner of the rectangle (default: 0).
|
|
@@ -7,29 +13,19 @@ export class Rectangle {
|
|
|
7
13
|
* @param {number} height - The height of the rectangle (default: 0).
|
|
8
14
|
*/
|
|
9
15
|
constructor(x?: number, y?: number, width?: number, height?: number);
|
|
10
|
-
/** @type {number} */
|
|
11
|
-
x: number;
|
|
12
|
-
/** @type {number} */
|
|
13
|
-
y: number;
|
|
14
|
-
/** @type {number} */
|
|
15
|
-
width: number;
|
|
16
|
-
/** @type {number} */
|
|
17
|
-
height: number;
|
|
18
|
-
/** @type {number} */
|
|
19
|
-
type: number;
|
|
20
16
|
/**
|
|
21
17
|
* Offsets the rectangle's position by the specified amounts.
|
|
22
18
|
* @param {number} dx - The amount to offset the x coordinate by.
|
|
23
19
|
* @param {number} dy - The amount to offset the y coordinate by.
|
|
24
20
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
25
21
|
*/
|
|
26
|
-
offset(dx:
|
|
22
|
+
offset(dx: any, dy: any): this;
|
|
27
23
|
/**
|
|
28
24
|
* Offsets the rectangle's position by the specified point coordinates.
|
|
29
25
|
* @param {Point} point - The point to offset the rectangle by.
|
|
30
26
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
31
27
|
*/
|
|
32
|
-
offsetPoint(point:
|
|
28
|
+
offsetPoint(point: any): this;
|
|
33
29
|
/**
|
|
34
30
|
* Sets the rectangle's position and size to new values.
|
|
35
31
|
* @param {number} x - The new x coordinate of the top-left corner of the rectangle.
|
|
@@ -38,39 +34,21 @@ export class Rectangle {
|
|
|
38
34
|
* @param {number} height - The new height of the rectangle.
|
|
39
35
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
40
36
|
*/
|
|
41
|
-
setTo(x:
|
|
37
|
+
setTo(x: any, y: any, width: any, height: any): this;
|
|
42
38
|
/**
|
|
43
39
|
* Scales the rectangle's size by the specified amounts.
|
|
44
40
|
* @param {number} x - The amount to scale the width by.
|
|
45
41
|
* @param {number} y - The amount to scale the height by (default: x).
|
|
46
42
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
47
43
|
*/
|
|
48
|
-
scale(x:
|
|
44
|
+
scale(x: any, y?: any): this;
|
|
49
45
|
/**
|
|
50
46
|
* Centers the rectangle on the specified point.
|
|
51
47
|
* @param {number} x - The x coordinate to center the rectangle on.
|
|
52
48
|
* @param {number} y - The y coordinate to center the rectangle on.
|
|
53
49
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
54
50
|
*/
|
|
55
|
-
centerOn(x:
|
|
56
|
-
/**
|
|
57
|
-
* Sets the x coordinate of the center of this rectangle.
|
|
58
|
-
*/
|
|
59
|
-
set centerX(value: number);
|
|
60
|
-
/**
|
|
61
|
-
* Gets the x coordinate of the center of this rectangle.
|
|
62
|
-
* @returns {number} The x coordinate of the center of this rectangle.
|
|
63
|
-
*/
|
|
64
|
-
get centerX(): number;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the y coordinate of the center of this rectangle.
|
|
67
|
-
*/
|
|
68
|
-
set centerY(value: number);
|
|
69
|
-
/**
|
|
70
|
-
* Gets the y coordinate of the center of this rectangle.
|
|
71
|
-
* @returns {number} The y coordinate of the center of this rectangle.
|
|
72
|
-
*/
|
|
73
|
-
get centerY(): number;
|
|
51
|
+
centerOn(x: any, y: any): this;
|
|
74
52
|
/**
|
|
75
53
|
* Floors the x and y coordinates of the rectangle (rounds down to nearest integer).
|
|
76
54
|
*/
|
|
@@ -92,71 +70,71 @@ export class Rectangle {
|
|
|
92
70
|
* @param {Rectangle} source - The rectangle to copy values from.
|
|
93
71
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
94
72
|
*/
|
|
95
|
-
copyFrom(source:
|
|
73
|
+
copyFrom(source: any): this;
|
|
96
74
|
/**
|
|
97
75
|
* Copies the values of this rectangle to another rectangle.
|
|
98
76
|
* @param {Rectangle} dest - The rectangle to copy values to.
|
|
99
77
|
* @returns {Rectangle} The destination rectangle.
|
|
100
78
|
*/
|
|
101
|
-
copyTo(dest:
|
|
79
|
+
copyTo(dest: any): any;
|
|
102
80
|
/**
|
|
103
81
|
* Increases the size of the rectangle by the specified amounts.
|
|
104
82
|
* @param {number} dx - The amount to increase the width by.
|
|
105
83
|
* @param {number} dy - The amount to increase the height by.
|
|
106
84
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
107
85
|
*/
|
|
108
|
-
inflate(dx:
|
|
86
|
+
inflate(dx: any, dy: any): any;
|
|
109
87
|
/**
|
|
110
88
|
* Gets the size of the rectangle as a point.
|
|
111
89
|
* @param {Point} output - The point to store the size in (optional).
|
|
112
90
|
* @returns {Point} The size of the rectangle as a point.
|
|
113
91
|
*/
|
|
114
|
-
size(output:
|
|
92
|
+
size(output: any): any;
|
|
115
93
|
/**
|
|
116
94
|
* Resizes the rectangle to the specified dimensions.
|
|
117
95
|
* @param {number} width - The new width of the rectangle.
|
|
118
96
|
* @param {number} height - The new height of the rectangle.
|
|
119
97
|
* @returns {Rectangle} This rectangle instance for chaining.
|
|
120
98
|
*/
|
|
121
|
-
resize(width:
|
|
99
|
+
resize(width: any, height: any): this;
|
|
122
100
|
/**
|
|
123
101
|
* Creates a clone of this rectangle.
|
|
124
102
|
* @param {Rectangle} output - The rectangle to store the clone in (optional).
|
|
125
103
|
* @returns {Rectangle} A new rectangle with the same values as this one.
|
|
126
104
|
*/
|
|
127
|
-
clone(output
|
|
105
|
+
clone(output?: any): any;
|
|
128
106
|
/**
|
|
129
107
|
* Checks if the specified point is contained within this rectangle.
|
|
130
108
|
* @param {number} x - The x coordinate of the point to check.
|
|
131
109
|
* @param {number} y - The y coordinate of the point to check.
|
|
132
110
|
* @returns {boolean} True if the point is contained within this rectangle, false otherwise.
|
|
133
111
|
*/
|
|
134
|
-
contains(x:
|
|
112
|
+
contains(x: any, y: any): boolean;
|
|
135
113
|
/**
|
|
136
114
|
* Checks if the specified rectangle is fully contained within this rectangle.
|
|
137
115
|
* @param {Rectangle} b - The rectangle to check if it's contained.
|
|
138
116
|
* @returns {boolean} True if the rectangle is contained within this rectangle, false otherwise.
|
|
139
117
|
*/
|
|
140
|
-
containsRect(b:
|
|
118
|
+
containsRect(b: any): boolean;
|
|
141
119
|
/**
|
|
142
120
|
* Checks if this rectangle is equal to another rectangle.
|
|
143
121
|
* @param {Rectangle} b - The rectangle to compare with.
|
|
144
122
|
* @returns {boolean} True if the rectangles have the same values, false otherwise.
|
|
145
123
|
*/
|
|
146
|
-
equals(b:
|
|
124
|
+
equals(b: any): boolean;
|
|
147
125
|
/**
|
|
148
126
|
* Gets the intersection of this rectangle and another rectangle.
|
|
149
127
|
* @param {Rectangle} b - The rectangle to intersect with.
|
|
150
128
|
* @param {Rectangle} out - The rectangle to store the result in (optional).
|
|
151
129
|
* @returns {Rectangle} The intersection of the two rectangles.
|
|
152
130
|
*/
|
|
153
|
-
intersection(b:
|
|
131
|
+
intersection(b: any, out?: any): any;
|
|
154
132
|
/**
|
|
155
133
|
* Checks if this rectangle intersects with another rectangle.
|
|
156
134
|
* @param {Rectangle} b - The rectangle to check for intersection with.
|
|
157
135
|
* @returns {boolean} True if the rectangles intersect, false otherwise.
|
|
158
136
|
*/
|
|
159
|
-
intersects(b:
|
|
137
|
+
intersects(b: any): boolean;
|
|
160
138
|
/**
|
|
161
139
|
* Checks if this rectangle intersects with the specified bounds.
|
|
162
140
|
* @param {number} left - The left boundary of the area to check for intersection.
|
|
@@ -166,27 +144,27 @@ export class Rectangle {
|
|
|
166
144
|
* @param {number} tolerance - A tolerance value to use when checking (default: 0).
|
|
167
145
|
* @returns {boolean} True if the rectangle intersects with the bounds, false otherwise.
|
|
168
146
|
*/
|
|
169
|
-
intersectsRaw(left:
|
|
147
|
+
intersectsRaw(left: any, right: any, top: any, bottom: any, tolerance: any): boolean;
|
|
170
148
|
/**
|
|
171
149
|
* Gets the union of this rectangle and another rectangle.
|
|
172
150
|
* @param {Rectangle} b - The rectangle to union with.
|
|
173
151
|
* @param {Rectangle} out - The rectangle to store the result in (optional).
|
|
174
152
|
* @returns {Rectangle} The union of the two rectangles.
|
|
175
153
|
*/
|
|
176
|
-
union(b:
|
|
154
|
+
union(b: any, out?: any): any;
|
|
177
155
|
/**
|
|
178
156
|
* Gets a random point within this rectangle.
|
|
179
157
|
* @param {Point} output - The point to store the result in (optional).
|
|
180
158
|
* @returns {Point} A random point within this rectangle.
|
|
181
159
|
*/
|
|
182
|
-
random(output?:
|
|
160
|
+
random(output?: any): any;
|
|
183
161
|
/**
|
|
184
162
|
* Gets a point at a specific position on the rectangle.
|
|
185
163
|
* @param {number} position - The position to get the point for (TOP_LEFT, TOP_CENTER, etc.).
|
|
186
164
|
* @param {Point} output - The point to store the result in (optional).
|
|
187
165
|
* @returns {Point} A point at the specified position on the rectangle.
|
|
188
166
|
*/
|
|
189
|
-
getPoint(position:
|
|
167
|
+
getPoint(position: any, output?: any): any;
|
|
190
168
|
/**
|
|
191
169
|
* Returns a string representation of this rectangle.
|
|
192
170
|
* @returns {string} A string representation of the rectangle.
|
|
@@ -202,78 +180,78 @@ export class Rectangle {
|
|
|
202
180
|
* @returns {number} Half the height of this rectangle.
|
|
203
181
|
*/
|
|
204
182
|
get halfHeight(): number;
|
|
205
|
-
/**
|
|
206
|
-
* Sets the top coordinate of this rectangle.
|
|
207
|
-
*/
|
|
208
|
-
set top(value: number);
|
|
209
183
|
/**
|
|
210
184
|
* Gets the top coordinate of this rectangle.
|
|
211
185
|
* @returns {number} The top coordinate of this rectangle.
|
|
212
186
|
*/
|
|
213
187
|
get top(): number;
|
|
214
188
|
/**
|
|
215
|
-
* Sets the top
|
|
189
|
+
* Sets the top coordinate of this rectangle.
|
|
216
190
|
*/
|
|
217
|
-
set
|
|
191
|
+
set top(value: number);
|
|
218
192
|
/**
|
|
219
193
|
* Gets the top-left point of this rectangle.
|
|
220
194
|
* @returns {Point} The top-left point of this rectangle.
|
|
221
195
|
*/
|
|
222
196
|
get topLeft(): Point;
|
|
223
197
|
/**
|
|
224
|
-
* Sets the top-
|
|
198
|
+
* Sets the top-left point of this rectangle.
|
|
225
199
|
*/
|
|
226
|
-
set
|
|
200
|
+
set topLeft(value: Point);
|
|
227
201
|
/**
|
|
228
202
|
* Gets the top-right point of this rectangle.
|
|
229
203
|
* @returns {Point} The top-right point of this rectangle.
|
|
230
204
|
*/
|
|
231
205
|
get topRight(): Point;
|
|
232
206
|
/**
|
|
233
|
-
* Sets the right
|
|
234
|
-
*/
|
|
235
|
-
set right(value: number);
|
|
236
|
-
/**
|
|
237
|
-
* Gets the right coordinate of this rectangle.
|
|
238
|
-
* @returns {number} The right coordinate of this rectangle.
|
|
239
|
-
*/
|
|
240
|
-
get right(): number;
|
|
241
|
-
/**
|
|
242
|
-
* Sets the bottom coordinate of this rectangle.
|
|
207
|
+
* Sets the top-right point of this rectangle.
|
|
243
208
|
*/
|
|
244
|
-
set
|
|
209
|
+
set topRight(value: Point);
|
|
245
210
|
/**
|
|
246
211
|
* Gets the bottom coordinate of this rectangle.
|
|
247
212
|
* @returns {number} The bottom coordinate of this rectangle.
|
|
248
213
|
*/
|
|
249
214
|
get bottom(): number;
|
|
250
215
|
/**
|
|
251
|
-
* Sets the bottom
|
|
216
|
+
* Sets the bottom coordinate of this rectangle.
|
|
252
217
|
*/
|
|
253
|
-
set
|
|
218
|
+
set bottom(value: number);
|
|
254
219
|
/**
|
|
255
220
|
* Gets the bottom-left point of this rectangle.
|
|
256
221
|
* @returns {Point} The bottom-left point of this rectangle.
|
|
257
222
|
*/
|
|
258
223
|
get bottomLeft(): Point;
|
|
259
224
|
/**
|
|
260
|
-
* Sets the bottom-
|
|
225
|
+
* Sets the bottom-left point of this rectangle.
|
|
261
226
|
*/
|
|
262
|
-
set
|
|
227
|
+
set bottomLeft(value: Point);
|
|
263
228
|
/**
|
|
264
229
|
* Gets the bottom-right point of this rectangle.
|
|
265
230
|
* @returns {Point} The bottom-right point of this rectangle.
|
|
266
231
|
*/
|
|
267
232
|
get bottomRight(): Point;
|
|
268
233
|
/**
|
|
269
|
-
* Sets the
|
|
234
|
+
* Sets the bottom-right point of this rectangle.
|
|
270
235
|
*/
|
|
271
|
-
set
|
|
236
|
+
set bottomRight(value: Point);
|
|
272
237
|
/**
|
|
273
238
|
* Gets the left coordinate of this rectangle.
|
|
274
239
|
* @returns {number} The left coordinate of this rectangle.
|
|
275
240
|
*/
|
|
276
241
|
get left(): number;
|
|
242
|
+
/**
|
|
243
|
+
* Sets the left coordinate of this rectangle.
|
|
244
|
+
*/
|
|
245
|
+
set left(value: number);
|
|
246
|
+
/**
|
|
247
|
+
* Gets the right coordinate of this rectangle.
|
|
248
|
+
* @returns {number} The right coordinate of this rectangle.
|
|
249
|
+
*/
|
|
250
|
+
get right(): number;
|
|
251
|
+
/**
|
|
252
|
+
* Sets the right coordinate of this rectangle.
|
|
253
|
+
*/
|
|
254
|
+
set right(value: number);
|
|
277
255
|
/**
|
|
278
256
|
* Gets the volume (area) of this rectangle.
|
|
279
257
|
* @returns {number} The volume (area) of this rectangle.
|
|
@@ -284,6 +262,24 @@ export class Rectangle {
|
|
|
284
262
|
* @returns {number} The perimeter of this rectangle.
|
|
285
263
|
*/
|
|
286
264
|
get perimeter(): number;
|
|
265
|
+
/**
|
|
266
|
+
* Gets the x coordinate of the center of this rectangle.
|
|
267
|
+
* @returns {number} The x coordinate of the center of this rectangle.
|
|
268
|
+
*/
|
|
269
|
+
get centerX(): number;
|
|
270
|
+
/**
|
|
271
|
+
* Sets the x coordinate of the center of this rectangle.
|
|
272
|
+
*/
|
|
273
|
+
set centerX(value: number);
|
|
274
|
+
/**
|
|
275
|
+
* Gets the y coordinate of the center of this rectangle.
|
|
276
|
+
* @returns {number} The y coordinate of the center of this rectangle.
|
|
277
|
+
*/
|
|
278
|
+
get centerY(): number;
|
|
279
|
+
/**
|
|
280
|
+
* Sets the y coordinate of the center of this rectangle.
|
|
281
|
+
*/
|
|
282
|
+
set centerY(value: number);
|
|
287
283
|
/**
|
|
288
284
|
* Gets a random x coordinate within this rectangle.
|
|
289
285
|
* @returns {number} A random x coordinate within this rectangle.
|
|
@@ -294,15 +290,14 @@ export class Rectangle {
|
|
|
294
290
|
* @returns {number} A random y coordinate within this rectangle.
|
|
295
291
|
*/
|
|
296
292
|
get randomY(): number;
|
|
297
|
-
/**
|
|
298
|
-
* Sets whether this rectangle is empty (zero width or height).
|
|
299
|
-
*/
|
|
300
|
-
set empty(value: boolean);
|
|
301
293
|
/**
|
|
302
294
|
* Checks if this rectangle is empty (has zero width or height).
|
|
303
295
|
* @returns {boolean} True if the rectangle is empty, false otherwise.
|
|
304
296
|
*/
|
|
305
297
|
get empty(): boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Sets whether this rectangle is empty (zero width or height).
|
|
300
|
+
*/
|
|
301
|
+
set empty(value: boolean);
|
|
306
302
|
}
|
|
307
|
-
import { Point } from './point.js';
|
|
308
303
|
//# sourceMappingURL=rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AA0BnC,qBAAa,SAAS;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAI,EAAE,MAAM,SAAI;IAa/C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA;IAMb;;;;OAIG;IACH,WAAW,CAAC,KAAK,KAAA;IAIjB;;;;;;;OAOG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA;IAQzB;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,CAAC,KAAA;IASX;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAMb;;OAEG;IACH,KAAK;IAKL;;OAEG;IACH,QAAQ;IAOR;;OAEG;IACH,IAAI;IAKJ;;OAEG;IACH,OAAO;IAOP;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAIf;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAQX;;;;;OAKG;IACH,OAAO,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA;IAId;;;;OAIG;IACH,IAAI,CAAC,MAAM,KAAA;IAIX;;;;;OAKG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA;IAMpB;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,KAAA;IAIb;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAIb;;;;OAIG;IACH,YAAY,CAAC,CAAC,KAAA;IAId;;;;OAIG;IACH,MAAM,CAAC,CAAC,KAAA;IAIR;;;;;OAKG;IACH,YAAY,CAAC,CAAC,KAAA,EAAE,GAAG,CAAC,KAAA;IAIpB;;;;OAIG;IACH,UAAU,CAAC,CAAC,KAAA;IAIZ;;;;;;;;OAQG;IACH,aAAa,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,EAAE,GAAG,KAAA,EAAE,MAAM,KAAA,EAAE,SAAS,KAAA;IAIjD;;;;;OAKG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,GAAG,CAAC,KAAA;IAIb;;;;OAIG;IACH,MAAM,CAAC,MAAM,MAAO;IAOpB;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,KAAA,EAAE,MAAM,MAAO;IA0BhC;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,UAAU,WAEb;IAED;;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;OAEG;IACH,IAAI,GAAG,CAAC,KAAK,QAAA,EAOZ;IAED;;;OAGG;IACH,IAAI,OAAO,UAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,OAAA,EAGhB;IAED;;;OAGG;IACH,IAAI,QAAQ,UAEX;IAED;;OAEG;IACH,IAAI,QAAQ,CAAC,KAAK,OAAA,EAGjB;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAMf;IAED;;;OAGG;IACH,IAAI,UAAU,UAEb;IAED;;OAEG;IACH,IAAI,UAAU,CAAC,KAAK,OAAA,EAGnB;IAED;;;OAGG;IACH,IAAI,WAAW,UAEd;IAED;;OAEG;IACH,IAAI,WAAW,CAAC,KAAK,OAAA,EAGpB;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAK,QAAA,EAOb;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAMd;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAAK,QAAA,EAEhB;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,KAAK,YAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,SAAA,EAId;CACF"}
|