@vpmedia/phaser 1.102.0 → 1.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20112 -0
- package/dist/index.js.map +1 -0
- package/{types → dist}/phaser/core/animation.d.ts +41 -83
- package/dist/phaser/core/animation.d.ts.map +1 -0
- package/{types → dist}/phaser/core/animation_manager.d.ts +37 -55
- package/dist/phaser/core/animation_manager.d.ts.map +1 -0
- package/dist/phaser/core/animation_parser.d.ts +21 -0
- package/dist/phaser/core/animation_parser.d.ts.map +1 -0
- package/{types → dist}/phaser/core/array_set.d.ts +13 -13
- package/dist/phaser/core/array_set.d.ts.map +1 -0
- package/{types → dist}/phaser/core/cache.d.ts +78 -91
- package/dist/phaser/core/cache.d.ts.map +1 -0
- package/dist/phaser/core/const.d.ts +262 -0
- package/dist/phaser/core/const.d.ts.map +1 -0
- package/dist/phaser/core/device.d.ts +8 -0
- package/dist/phaser/core/device.d.ts.map +1 -0
- package/dist/phaser/core/device_util.d.ts +65 -0
- package/dist/phaser/core/device_util.d.ts.map +1 -0
- package/dist/phaser/core/dom.d.ts +75 -0
- package/dist/phaser/core/dom.d.ts.map +1 -0
- package/dist/phaser/core/error_code.d.ts +9 -0
- package/dist/phaser/core/error_code.d.ts.map +1 -0
- package/{types → dist}/phaser/core/event_manager.d.ts +17 -35
- package/dist/phaser/core/event_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/factory.d.ts +9 -15
- package/dist/phaser/core/factory.d.ts.map +1 -0
- package/{types → dist}/phaser/core/frame.d.ts +7 -28
- package/dist/phaser/core/frame.d.ts.map +1 -0
- package/{types → dist}/phaser/core/frame_data.d.ts +12 -15
- package/dist/phaser/core/frame_data.d.ts.map +1 -0
- package/dist/phaser/core/frame_util.d.ts +15 -0
- package/dist/phaser/core/frame_util.d.ts.map +1 -0
- package/{types → dist}/phaser/core/game.d.ts +7 -74
- package/dist/phaser/core/game.d.ts.map +1 -0
- package/dist/phaser/core/input.d.ts +160 -0
- package/dist/phaser/core/input.d.ts.map +1 -0
- package/{types → dist}/phaser/core/input_handler.d.ts +32 -93
- package/dist/phaser/core/input_handler.d.ts.map +1 -0
- package/dist/phaser/core/input_mouse.d.ts +61 -0
- package/dist/phaser/core/input_mouse.d.ts.map +1 -0
- package/dist/phaser/core/input_mspointer.d.ts +51 -0
- package/dist/phaser/core/input_mspointer.d.ts.map +1 -0
- package/dist/phaser/core/input_pointer.d.ts +106 -0
- package/dist/phaser/core/input_pointer.d.ts.map +1 -0
- package/dist/phaser/core/input_touch.d.ts +55 -0
- package/dist/phaser/core/input_touch.d.ts.map +1 -0
- package/{types → dist}/phaser/core/loader.d.ts +39 -78
- package/dist/phaser/core/loader.d.ts.map +1 -0
- package/dist/phaser/core/loader_parser.d.ts +35 -0
- package/dist/phaser/core/loader_parser.d.ts.map +1 -0
- package/{types → dist}/phaser/core/raf.d.ts +5 -5
- package/dist/phaser/core/raf.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scale_manager.d.ts +41 -124
- package/dist/phaser/core/scale_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene.d.ts +6 -4
- package/dist/phaser/core/scene.d.ts.map +1 -0
- package/{types → dist}/phaser/core/scene_manager.d.ts +12 -29
- package/dist/phaser/core/scene_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/signal.d.ts +21 -17
- package/dist/phaser/core/signal.d.ts.map +1 -0
- package/{types → dist}/phaser/core/signal_binding.d.ts +15 -15
- package/dist/phaser/core/signal_binding.d.ts.map +1 -0
- package/{types → dist}/phaser/core/sound.d.ts +22 -75
- package/dist/phaser/core/sound.d.ts.map +1 -0
- package/{types → dist}/phaser/core/sound_manager.d.ts +20 -43
- package/dist/phaser/core/sound_manager.d.ts.map +1 -0
- package/dist/phaser/core/sound_sprite.d.ts +27 -0
- package/dist/phaser/core/sound_sprite.d.ts.map +1 -0
- package/{types → dist}/phaser/core/stage.d.ts +29 -17
- package/dist/phaser/core/stage.d.ts.map +1 -0
- package/{types → dist}/phaser/core/time.d.ts +12 -64
- package/dist/phaser/core/time.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer.d.ts +14 -54
- package/dist/phaser/core/timer.d.ts.map +1 -0
- package/{types → dist}/phaser/core/timer_event.d.ts +2 -11
- package/dist/phaser/core/timer_event.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween.d.ts +21 -62
- package/dist/phaser/core/tween.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween_data.d.ts +9 -35
- package/dist/phaser/core/tween_data.d.ts.map +1 -0
- package/dist/phaser/core/tween_easing.d.ts +187 -0
- package/dist/phaser/core/tween_easing.d.ts.map +1 -0
- package/{types → dist}/phaser/core/tween_manager.d.ts +9 -18
- package/dist/phaser/core/tween_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/core/world.d.ts +3 -3
- package/dist/phaser/core/world.d.ts.map +1 -0
- package/{types → dist}/phaser/display/bitmap_text.d.ts +52 -71
- package/dist/phaser/display/bitmap_text.d.ts.map +1 -0
- package/{types → dist}/phaser/display/button.d.ts +25 -37
- package/dist/phaser/display/button.d.ts.map +1 -0
- package/{types → dist}/phaser/display/canvas/buffer.d.ts +3 -7
- package/dist/phaser/display/canvas/buffer.d.ts.map +1 -0
- package/dist/phaser/display/canvas/graphics.d.ts +18 -0
- package/dist/phaser/display/canvas/graphics.d.ts.map +1 -0
- package/dist/phaser/display/canvas/masker.d.ts +12 -0
- package/dist/phaser/display/canvas/masker.d.ts.map +1 -0
- package/dist/phaser/display/canvas/pool.d.ts +40 -0
- package/dist/phaser/display/canvas/pool.d.ts.map +1 -0
- package/{types → dist}/phaser/display/canvas/renderer.d.ts +6 -28
- package/dist/phaser/display/canvas/renderer.d.ts.map +1 -0
- package/dist/phaser/display/canvas/tinter.d.ts +41 -0
- package/dist/phaser/display/canvas/tinter.d.ts.map +1 -0
- package/dist/phaser/display/canvas/util.d.ts +70 -0
- package/dist/phaser/display/canvas/util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/display_object.d.ts +63 -124
- package/dist/phaser/display/display_object.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics.d.ts +59 -65
- package/dist/phaser/display/graphics.d.ts.map +1 -0
- package/{types → dist}/phaser/display/graphics_data.d.ts +2 -12
- package/dist/phaser/display/graphics_data.d.ts.map +1 -0
- package/dist/phaser/display/graphics_data_util.d.ts +8 -0
- package/dist/phaser/display/graphics_data_util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/group.d.ts +27 -45
- package/dist/phaser/display/group.d.ts.map +1 -0
- package/{types → dist}/phaser/display/image.d.ts +54 -53
- package/dist/phaser/display/image.d.ts.map +1 -0
- package/dist/phaser/display/sprite_batch.d.ts +9 -0
- package/dist/phaser/display/sprite_batch.d.ts.map +1 -0
- package/dist/phaser/display/sprite_util.d.ts +35 -0
- package/dist/phaser/display/sprite_util.d.ts.map +1 -0
- package/{types → dist}/phaser/display/text.d.ts +176 -181
- package/dist/phaser/display/text.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/abstract_filter.d.ts +2 -8
- package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/base_texture.d.ts +3 -15
- package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/blend_manager.d.ts +7 -5
- package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/earcut.d.ts +28 -27
- package/dist/phaser/display/webgl/earcut.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/earcut_node.d.ts +11 -11
- package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/fast_sprite_batch.d.ts +6 -28
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_manager.d.ts +6 -7
- package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/filter_texture.d.ts +3 -9
- package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/graphics.d.ts +78 -0
- package/dist/phaser/display/webgl/graphics.d.ts.map +1 -0
- package/dist/phaser/display/webgl/graphics_data.d.ts +16 -0
- package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -0
- package/dist/phaser/display/webgl/mask_manager.d.ts +13 -0
- package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/render_texture.d.ts +5 -13
- package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/renderer.d.ts +51 -0
- package/dist/phaser/display/webgl/renderer.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts +29 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts +16 -0
- package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts +27 -0
- package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/sprite_batch.d.ts +9 -32
- package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -0
- package/{types → dist}/phaser/display/webgl/stencil_manager.d.ts +9 -9
- package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -0
- package/dist/phaser/display/webgl/texture.d.ts +36 -0
- package/dist/phaser/display/webgl/texture.d.ts.map +1 -0
- package/dist/phaser/display/webgl/texture_util.d.ts +17 -0
- package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -0
- package/dist/phaser/display/webgl/util.d.ts +54 -0
- package/dist/phaser/display/webgl/util.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/circle.d.ts +35 -41
- package/dist/phaser/geom/circle.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/ellipse.d.ts +12 -18
- package/dist/phaser/geom/ellipse.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/line.d.ts +20 -23
- package/dist/phaser/geom/line.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/matrix.d.ts +21 -29
- package/dist/phaser/geom/matrix.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/point.d.ts +30 -33
- package/dist/phaser/geom/point.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/polygon.d.ts +18 -24
- package/dist/phaser/geom/polygon.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/rectangle.d.ts +74 -79
- package/dist/phaser/geom/rectangle.d.ts.map +1 -0
- package/{types → dist}/phaser/geom/rounded_rectangle.d.ts +9 -9
- package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -0
- package/dist/phaser/geom/util/circle.d.ts +55 -0
- package/dist/phaser/geom/util/circle.d.ts.map +1 -0
- package/dist/phaser/geom/util/ellipse.d.ts +9 -0
- package/dist/phaser/geom/util/ellipse.d.ts.map +1 -0
- package/dist/phaser/geom/util/line.d.ts +42 -0
- package/dist/phaser/geom/util/line.d.ts.map +1 -0
- package/dist/phaser/geom/util/matrix.d.ts +18 -0
- package/dist/phaser/geom/util/matrix.d.ts.map +1 -0
- package/dist/phaser/geom/util/point.d.ts +159 -0
- package/dist/phaser/geom/util/point.d.ts.map +1 -0
- package/dist/phaser/geom/util/polygon.d.ts +8 -0
- package/dist/phaser/geom/util/polygon.d.ts.map +1 -0
- package/dist/phaser/geom/util/rectangle.d.ts +123 -0
- package/dist/phaser/geom/util/rectangle.d.ts.map +1 -0
- package/dist/phaser/geom/util/rounded_rectangle.d.ts +8 -0
- package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -0
- package/dist/phaser/util/math.d.ts +154 -0
- package/dist/phaser/util/math.d.ts.map +1 -0
- package/package.json +25 -11
- package/src/phaser/core/{animation.js → animation.ts} +2 -1
- package/src/phaser/core/{animation_manager.js → animation_manager.ts} +2 -1
- package/src/phaser/core/{array_set.js → array_set.ts} +4 -1
- package/src/phaser/core/{cache.js → cache.ts} +2 -1
- package/src/phaser/core/{device.js → device.ts} +2 -1
- package/src/phaser/core/{dom.js → dom.ts} +7 -0
- package/src/phaser/core/{event_manager.js → event_manager.ts} +2 -1
- package/src/phaser/core/{factory.js → factory.ts} +1 -0
- package/src/phaser/core/{frame.js → frame.ts} +2 -1
- package/src/phaser/core/{frame_data.js → frame_data.ts} +2 -1
- package/src/phaser/core/{frame_util.js → frame_util.ts} +2 -1
- package/src/phaser/core/{game.js → game.ts} +1 -0
- package/src/phaser/core/{input.js → input.ts} +1 -0
- package/src/phaser/core/{input_handler.js → input_handler.ts} +1 -0
- package/src/phaser/core/{input_mouse.js → input_mouse.ts} +1 -0
- package/src/phaser/core/{input_mspointer.js → input_mspointer.ts} +1 -0
- package/src/phaser/core/{input_pointer.js → input_pointer.ts} +1 -0
- package/src/phaser/core/{input_touch.js → input_touch.ts} +1 -0
- package/src/phaser/core/{loader.js → loader.ts} +2 -1
- package/src/phaser/core/{loader_parser.js → loader_parser.ts} +2 -1
- package/src/phaser/core/{raf.js → raf.ts} +3 -0
- package/src/phaser/core/{scale_manager.js → scale_manager.ts} +1 -0
- package/src/phaser/core/{scene.js → scene.ts} +1 -0
- package/src/phaser/core/{scene_manager.js → scene_manager.ts} +1 -0
- package/src/phaser/core/{signal.js → signal.ts} +7 -0
- package/src/phaser/core/{signal_binding.js → signal_binding.ts} +10 -0
- package/src/phaser/core/{sound.js → sound.ts} +2 -1
- package/src/phaser/core/{sound_manager.js → sound_manager.ts} +2 -1
- package/src/phaser/core/{sound_sprite.js → sound_sprite.ts} +2 -1
- package/src/phaser/core/{stage.js → stage.ts} +1 -0
- package/src/phaser/core/{time.js → time.ts} +2 -1
- package/src/phaser/core/{timer.js → timer.ts} +2 -1
- package/src/phaser/core/{timer_event.js → timer_event.ts} +2 -1
- package/src/phaser/core/{tween.js → tween.ts} +2 -1
- package/src/phaser/core/{tween_data.js → tween_data.ts} +2 -1
- package/src/phaser/core/{tween_manager.js → tween_manager.ts} +2 -1
- package/src/phaser/core/{world.js → world.ts} +1 -0
- package/src/phaser/display/{bitmap_text.js → bitmap_text.ts} +1 -0
- package/src/phaser/display/{button.js → button.ts} +1 -0
- package/src/phaser/display/canvas/{buffer.js → buffer.ts} +1 -0
- package/src/phaser/display/canvas/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/canvas/{masker.js → masker.ts} +1 -0
- package/src/phaser/display/canvas/{pool.js → pool.ts} +1 -0
- package/src/phaser/display/canvas/{renderer.js → renderer.ts} +1 -0
- package/src/phaser/display/canvas/{tinter.js → tinter.ts} +1 -0
- package/src/phaser/display/{display_object.js → display_object.ts} +1 -0
- package/src/phaser/display/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/{graphics_data.js → graphics_data.ts} +1 -0
- package/src/phaser/display/{graphics_data_util.js → graphics_data_util.ts} +1 -0
- package/src/phaser/display/{group.js → group.ts} +1 -0
- package/src/phaser/display/{image.js → image.ts} +1 -0
- package/src/phaser/display/{sprite_batch.js → sprite_batch.ts} +1 -0
- package/src/phaser/display/{sprite_util.js → sprite_util.ts} +1 -0
- package/src/phaser/display/{text.js → text.ts} +1 -0
- package/src/phaser/display/webgl/{abstract_filter.js → abstract_filter.ts} +1 -0
- package/src/phaser/display/webgl/{base_texture.js → base_texture.ts} +1 -0
- package/src/phaser/display/webgl/{blend_manager.js → blend_manager.ts} +1 -0
- package/src/phaser/display/webgl/{earcut.js → earcut.ts} +2 -2
- package/src/phaser/display/webgl/{earcut_node.js → earcut_node.ts} +10 -0
- package/src/phaser/display/webgl/{fast_sprite_batch.js → fast_sprite_batch.ts} +1 -0
- package/src/phaser/display/webgl/{filter_manager.js → filter_manager.ts} +1 -0
- package/src/phaser/display/webgl/{filter_texture.js → filter_texture.ts} +1 -0
- package/src/phaser/display/webgl/{graphics.js → graphics.ts} +1 -0
- package/src/phaser/display/webgl/{graphics_data.js → graphics_data.ts} +1 -0
- package/src/phaser/display/webgl/{mask_manager.js → mask_manager.ts} +1 -0
- package/src/phaser/display/webgl/{render_texture.js → render_texture.ts} +1 -0
- package/src/phaser/display/webgl/{renderer.js → renderer.ts} +1 -0
- package/src/phaser/display/webgl/shader/{complex.js → complex.ts} +1 -0
- package/src/phaser/display/webgl/shader/{fast.js → fast.ts} +1 -0
- package/src/phaser/display/webgl/shader/{normal.js → normal.ts} +1 -0
- package/src/phaser/display/webgl/shader/{primitive.js → primitive.ts} +1 -0
- package/src/phaser/display/webgl/shader/{strip.js → strip.ts} +1 -0
- package/src/phaser/display/webgl/{shader_manager.js → shader_manager.ts} +1 -0
- package/src/phaser/display/webgl/{sprite_batch.js → sprite_batch.ts} +1 -0
- package/src/phaser/display/webgl/{stencil_manager.js → stencil_manager.ts} +1 -0
- package/src/phaser/display/webgl/{texture.js → texture.ts} +1 -0
- package/src/phaser/display/webgl/{texture_util.js → texture_util.ts} +1 -0
- package/src/phaser/geom/{circle.js → circle.ts} +7 -1
- package/src/phaser/geom/{ellipse.js → ellipse.ts} +6 -0
- package/src/phaser/geom/{line.js → line.ts} +4 -0
- package/src/phaser/geom/{matrix.js → matrix.ts} +8 -0
- package/src/phaser/geom/{point.js → point.ts} +5 -1
- package/src/phaser/geom/{polygon.js → polygon.ts} +6 -0
- package/src/phaser/geom/{rectangle.js → rectangle.ts} +10 -4
- package/src/phaser/geom/{rounded_rectangle.js → rounded_rectangle.ts} +7 -0
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -27
- package/AGENTS.md +0 -1
- package/CHANGELOG.md +0 -336
- package/CLAUDE.md +0 -1
- package/SECURITY.md +0 -5
- package/typedefs/global.d.ts +0 -7
- package/types/index.d.ts +0 -38
- package/types/index.d.ts.map +0 -1
- package/types/phaser/core/animation.d.ts.map +0 -1
- package/types/phaser/core/animation_manager.d.ts.map +0 -1
- package/types/phaser/core/animation_parser.d.ts +0 -4
- package/types/phaser/core/animation_parser.d.ts.map +0 -1
- package/types/phaser/core/array_set.d.ts.map +0 -1
- package/types/phaser/core/cache.d.ts.map +0 -1
- package/types/phaser/core/const.d.ts +0 -262
- package/types/phaser/core/const.d.ts.map +0 -1
- package/types/phaser/core/device.d.ts +0 -96
- package/types/phaser/core/device.d.ts.map +0 -1
- package/types/phaser/core/device_util.d.ts +0 -13
- package/types/phaser/core/device_util.d.ts.map +0 -1
- package/types/phaser/core/dom.d.ts +0 -180
- package/types/phaser/core/dom.d.ts.map +0 -1
- package/types/phaser/core/error_code.d.ts +0 -9
- package/types/phaser/core/error_code.d.ts.map +0 -1
- package/types/phaser/core/event_manager.d.ts.map +0 -1
- package/types/phaser/core/factory.d.ts.map +0 -1
- package/types/phaser/core/frame.d.ts.map +0 -1
- package/types/phaser/core/frame_data.d.ts.map +0 -1
- package/types/phaser/core/frame_util.d.ts +0 -5
- package/types/phaser/core/frame_util.d.ts.map +0 -1
- package/types/phaser/core/game.d.ts.map +0 -1
- package/types/phaser/core/input.d.ts +0 -219
- package/types/phaser/core/input.d.ts.map +0 -1
- package/types/phaser/core/input_handler.d.ts.map +0 -1
- package/types/phaser/core/input_mouse.d.ts +0 -86
- package/types/phaser/core/input_mouse.d.ts.map +0 -1
- package/types/phaser/core/input_mspointer.d.ts +0 -67
- package/types/phaser/core/input_mspointer.d.ts.map +0 -1
- package/types/phaser/core/input_pointer.d.ts +0 -170
- package/types/phaser/core/input_pointer.d.ts.map +0 -1
- package/types/phaser/core/input_touch.d.ts +0 -73
- package/types/phaser/core/input_touch.d.ts.map +0 -1
- package/types/phaser/core/loader.d.ts.map +0 -1
- package/types/phaser/core/loader_parser.d.ts +0 -5
- package/types/phaser/core/loader_parser.d.ts.map +0 -1
- package/types/phaser/core/raf.d.ts.map +0 -1
- package/types/phaser/core/scale_manager.d.ts.map +0 -1
- package/types/phaser/core/scene.d.ts.map +0 -1
- package/types/phaser/core/scene_manager.d.ts.map +0 -1
- package/types/phaser/core/signal.d.ts.map +0 -1
- package/types/phaser/core/signal_binding.d.ts.map +0 -1
- package/types/phaser/core/sound.d.ts.map +0 -1
- package/types/phaser/core/sound_manager.d.ts.map +0 -1
- package/types/phaser/core/sound_sprite.d.ts +0 -36
- package/types/phaser/core/sound_sprite.d.ts.map +0 -1
- package/types/phaser/core/stage.d.ts.map +0 -1
- package/types/phaser/core/time.d.ts.map +0 -1
- package/types/phaser/core/timer.d.ts.map +0 -1
- package/types/phaser/core/timer_event.d.ts.map +0 -1
- package/types/phaser/core/tween.d.ts.map +0 -1
- package/types/phaser/core/tween_data.d.ts.map +0 -1
- package/types/phaser/core/tween_easing.d.ts +0 -32
- package/types/phaser/core/tween_easing.d.ts.map +0 -1
- package/types/phaser/core/tween_manager.d.ts.map +0 -1
- package/types/phaser/core/world.d.ts.map +0 -1
- package/types/phaser/display/bitmap_text.d.ts.map +0 -1
- package/types/phaser/display/button.d.ts.map +0 -1
- package/types/phaser/display/canvas/buffer.d.ts.map +0 -1
- package/types/phaser/display/canvas/graphics.d.ts +0 -4
- package/types/phaser/display/canvas/graphics.d.ts.map +0 -1
- package/types/phaser/display/canvas/masker.d.ts +0 -3
- package/types/phaser/display/canvas/masker.d.ts.map +0 -1
- package/types/phaser/display/canvas/pool.d.ts +0 -11
- package/types/phaser/display/canvas/pool.d.ts.map +0 -1
- package/types/phaser/display/canvas/renderer.d.ts.map +0 -1
- package/types/phaser/display/canvas/tinter.d.ts +0 -7
- package/types/phaser/display/canvas/tinter.d.ts.map +0 -1
- package/types/phaser/display/canvas/util.d.ts +0 -10
- package/types/phaser/display/canvas/util.d.ts.map +0 -1
- package/types/phaser/display/display_object.d.ts.map +0 -1
- package/types/phaser/display/graphics.d.ts.map +0 -1
- package/types/phaser/display/graphics_data.d.ts.map +0 -1
- package/types/phaser/display/graphics_data_util.d.ts +0 -3
- package/types/phaser/display/graphics_data_util.d.ts.map +0 -1
- package/types/phaser/display/group.d.ts.map +0 -1
- package/types/phaser/display/image.d.ts.map +0 -1
- package/types/phaser/display/sprite_batch.d.ts +0 -4
- package/types/phaser/display/sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/sprite_util.d.ts +0 -6
- package/types/phaser/display/sprite_util.d.ts.map +0 -1
- package/types/phaser/display/text.d.ts.map +0 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +0 -1
- package/types/phaser/display/webgl/base_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/blend_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/earcut.d.ts.map +0 -1
- package/types/phaser/display/webgl/earcut_node.d.ts.map +0 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/webgl/filter_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/filter_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/graphics.d.ts +0 -16
- package/types/phaser/display/webgl/graphics.d.ts.map +0 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +0 -27
- package/types/phaser/display/webgl/graphics_data.d.ts.map +0 -1
- package/types/phaser/display/webgl/mask_manager.d.ts +0 -3
- package/types/phaser/display/webgl/mask_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/render_texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/renderer.d.ts +0 -87
- package/types/phaser/display/webgl/renderer.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +0 -33
- package/types/phaser/display/webgl/shader/complex.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +0 -36
- package/types/phaser/display/webgl/shader/fast.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +0 -52
- package/types/phaser/display/webgl/shader/normal.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +0 -32
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +0 -33
- package/types/phaser/display/webgl/shader/strip.d.ts.map +0 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +0 -44
- package/types/phaser/display/webgl/shader_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +0 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +0 -1
- package/types/phaser/display/webgl/texture.d.ts +0 -63
- package/types/phaser/display/webgl/texture.d.ts.map +0 -1
- package/types/phaser/display/webgl/texture_util.d.ts +0 -5
- package/types/phaser/display/webgl/texture_util.d.ts.map +0 -1
- package/types/phaser/display/webgl/util.d.ts +0 -15
- package/types/phaser/display/webgl/util.d.ts.map +0 -1
- package/types/phaser/geom/circle.d.ts.map +0 -1
- package/types/phaser/geom/ellipse.d.ts.map +0 -1
- package/types/phaser/geom/line.d.ts.map +0 -1
- package/types/phaser/geom/matrix.d.ts.map +0 -1
- package/types/phaser/geom/point.d.ts.map +0 -1
- package/types/phaser/geom/polygon.d.ts.map +0 -1
- package/types/phaser/geom/rectangle.d.ts.map +0 -1
- package/types/phaser/geom/rounded_rectangle.d.ts.map +0 -1
- package/types/phaser/geom/util/circle.d.ts +0 -10
- package/types/phaser/geom/util/circle.d.ts.map +0 -1
- package/types/phaser/geom/util/ellipse.d.ts +0 -2
- package/types/phaser/geom/util/ellipse.d.ts.map +0 -1
- package/types/phaser/geom/util/line.d.ts +0 -8
- package/types/phaser/geom/util/line.d.ts.map +0 -1
- package/types/phaser/geom/util/matrix.d.ts +0 -5
- package/types/phaser/geom/util/matrix.d.ts.map +0 -1
- package/types/phaser/geom/util/point.d.ts +0 -22
- package/types/phaser/geom/util/point.d.ts.map +0 -1
- package/types/phaser/geom/util/polygon.d.ts +0 -3
- package/types/phaser/geom/util/polygon.d.ts.map +0 -1
- package/types/phaser/geom/util/rectangle.d.ts +0 -19
- package/types/phaser/geom/util/rectangle.d.ts.map +0 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -3
- package/types/phaser/geom/util/rounded_rectangle.d.ts.map +0 -1
- package/types/phaser/util/math.d.ts +0 -58
- package/types/phaser/util/math.d.ts.map +0 -1
- /package/src/{index.js → index.ts} +0 -0
- /package/src/phaser/core/{animation_parser.js → animation_parser.ts} +0 -0
- /package/src/phaser/core/{const.js → const.ts} +0 -0
- /package/src/phaser/core/{device_util.js → device_util.ts} +0 -0
- /package/src/phaser/core/{error_code.js → error_code.ts} +0 -0
- /package/src/phaser/core/{signal.test.js → signal.test.ts} +0 -0
- /package/src/phaser/core/{tween_easing.js → tween_easing.ts} +0 -0
- /package/src/phaser/display/canvas/{util.js → util.ts} +0 -0
- /package/src/phaser/display/webgl/{util.js → util.ts} +0 -0
- /package/src/phaser/geom/{circle.test.js → circle.test.ts} +0 -0
- /package/src/phaser/geom/{ellipse.test.js → ellipse.test.ts} +0 -0
- /package/src/phaser/geom/{line.test.js → line.test.ts} +0 -0
- /package/src/phaser/geom/{matrix.test.js → matrix.test.ts} +0 -0
- /package/src/phaser/geom/{point.test.js → point.test.ts} +0 -0
- /package/src/phaser/geom/{rectangle.test.js → rectangle.test.ts} +0 -0
- /package/src/phaser/geom/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{circle.test.js → circle.test.ts} +0 -0
- /package/src/phaser/geom/util/{circle.js → circle.ts} +0 -0
- /package/src/phaser/geom/util/{ellipse.test.js → ellipse.test.ts} +0 -0
- /package/src/phaser/geom/util/{ellipse.js → ellipse.ts} +0 -0
- /package/src/phaser/geom/util/{line.test.js → line.test.ts} +0 -0
- /package/src/phaser/geom/util/{line.js → line.ts} +0 -0
- /package/src/phaser/geom/util/{matrix.test.js → matrix.test.ts} +0 -0
- /package/src/phaser/geom/util/{matrix.js → matrix.ts} +0 -0
- /package/src/phaser/geom/util/{point.test.js → point.test.ts} +0 -0
- /package/src/phaser/geom/util/{point.js → point.ts} +0 -0
- /package/src/phaser/geom/util/{polygon.test.js → polygon.test.ts} +0 -0
- /package/src/phaser/geom/util/{polygon.js → polygon.ts} +0 -0
- /package/src/phaser/geom/util/{rectangle.test.js → rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{rectangle.js → rectangle.ts} +0 -0
- /package/src/phaser/geom/util/{rounded_rectangle.test.js → rounded_rectangle.test.ts} +0 -0
- /package/src/phaser/geom/util/{rounded_rectangle.js → rounded_rectangle.ts} +0 -0
- /package/src/phaser/util/{math.test.js → math.test.ts} +0 -0
- /package/src/phaser/util/{math.js → math.ts} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare class WebGLRenderer {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new WebGLRenderer instance.
|
|
4
|
+
* @param {import('../../core/game.js').Game} game - The game instance.
|
|
5
|
+
*/
|
|
6
|
+
constructor(game: any);
|
|
7
|
+
/**
|
|
8
|
+
* Destroys this renderer and cleans up resources.
|
|
9
|
+
*/
|
|
10
|
+
destroy(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Initializes the WebGL registry.
|
|
13
|
+
*/
|
|
14
|
+
initRegistry(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes the WebGL context for rendering.
|
|
17
|
+
* @param {import('../../core/game.js').Game} game - The game instance.
|
|
18
|
+
* @throws {Error}
|
|
19
|
+
*/
|
|
20
|
+
initContext(game: any): void;
|
|
21
|
+
/**
|
|
22
|
+
* Renders the stage to WebGL.
|
|
23
|
+
* @param {import('../../core/stage.js').Stage} stage - The root stage to render.
|
|
24
|
+
*/
|
|
25
|
+
render(stage: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* Renders a display object to WebGL.
|
|
28
|
+
* @param {import('../../display/display_object.js').DisplayObject} displayObject - The display object to render.
|
|
29
|
+
* @param {Point} projection - The projection matrix.
|
|
30
|
+
* @param {object} buffer - The render buffer.
|
|
31
|
+
* @param {import('../../geom/matrix.js').Matrix} matrix - The transformation matrix.
|
|
32
|
+
*/
|
|
33
|
+
renderDisplayObject(displayObject: any, projection: any, buffer: any, matrix: any): void;
|
|
34
|
+
/**
|
|
35
|
+
* Resizes the WebGL canvas to the specified dimensions.
|
|
36
|
+
* @param {number} width - The new width of the canvas.
|
|
37
|
+
* @param {number} height - The new height of the canvas.
|
|
38
|
+
*/
|
|
39
|
+
resize(width: any, height: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Updates a texture in the WebGL context.
|
|
42
|
+
* @param {import('./base_texture.js').BaseTexture} texture - The base texture to update.
|
|
43
|
+
* @returns {boolean} Whether the update was successful.
|
|
44
|
+
*/
|
|
45
|
+
updateTexture(texture: any): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Maps blend modes to WebGL rendering operations.
|
|
48
|
+
*/
|
|
49
|
+
mapBlendModes(): void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/renderer.ts"],"names":[],"mappings":"AAkCA,qBAAa,aAAa;IACxB;;;OAGG;gBACS,IAAI,KAAA;IAyChB;;OAEG;IACH,OAAO;IAyBP;;OAEG;IACH,YAAY;IAYZ;;;;OAIG;IACH,WAAW,CAAC,IAAI,KAAA;IAwChB;;;OAGG;IACH,MAAM,CAAC,KAAK,KAAA;IAkBZ;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,KAAA,EAAE,UAAU,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA;IAoB7D;;;;OAIG;IACH,MAAM,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA;IAcpB;;;;OAIG;IACH,aAAa,CAAC,OAAO,KAAA;IAsCrB;;OAEG;IACH,aAAa;CAyBd"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class ComplexPrimitiveShader {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new ComplexShader instance.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
5
|
+
*/
|
|
6
|
+
constructor(gl: any);
|
|
7
|
+
/**
|
|
8
|
+
* Destroys this shader and cleans up resources.
|
|
9
|
+
*/
|
|
10
|
+
init(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Binds this shader to the WebGL context.
|
|
13
|
+
*/
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=complex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/complex.ts"],"names":[],"mappings":"AAMA,qBAAa,sBAAsB;IACjC;;;OAGG;gBACS,EAAE,KAAA;IAmCd;;OAEG;IACH,IAAI;IAmBJ;;OAEG;IACH,OAAO;CAMR"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class FastShader {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new FastShader instance.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
5
|
+
*/
|
|
6
|
+
constructor(gl: any);
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new FastShader instance.
|
|
9
|
+
*/
|
|
10
|
+
init(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Destroys this shader and cleans up resources.
|
|
13
|
+
*/
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=fast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/fast.ts"],"names":[],"mappings":"AAMA,qBAAa,UAAU;IACrB;;;OAGG;gBACS,EAAE,KAAA;IA+Cd;;OAEG;IACH,IAAI;IAqCJ;;OAEG;IACH,OAAO;CAMR"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare class NormalShader {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new NormalShader instance.
|
|
4
|
+
* @param {WebGLRenderingContext & { id: number }} gl - The WebGL rendering context.
|
|
5
|
+
*/
|
|
6
|
+
constructor(gl: any);
|
|
7
|
+
/**
|
|
8
|
+
* Destroys this shader and cleans up resources.
|
|
9
|
+
*/
|
|
10
|
+
init(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Binds this shader to the WebGL context.
|
|
13
|
+
*/
|
|
14
|
+
initUniforms(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Sets a uniform value for this shader.
|
|
17
|
+
* @param {object} uniform - The uniform to set.
|
|
18
|
+
*/
|
|
19
|
+
initSampler2D(uniform: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the shader to use for rendering.
|
|
22
|
+
*/
|
|
23
|
+
syncUniforms(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Destroys this shader and cleans up resources.
|
|
26
|
+
*/
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=normal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/normal.ts"],"names":[],"mappings":"AA0BA,qBAAa,YAAY;IACvB;;;OAGG;gBACS,EAAE,KAAA;IAwBd;;OAEG;IACH,IAAI;IAiCJ;;OAEG;IACH,YAAY;IAyCZ;;;OAGG;IACH,aAAa,CAAC,OAAO,KAAA;IAiDrB;;OAEG;IACH,YAAY;IA+CZ;;OAEG;IACH,OAAO;CAMR"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class PrimitiveShader {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new PrimitiveShader instance.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
5
|
+
*/
|
|
6
|
+
constructor(gl: any);
|
|
7
|
+
/**
|
|
8
|
+
* Destroys this shader and cleans up resources.
|
|
9
|
+
*/
|
|
10
|
+
init(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Binds this shader to the WebGL context.
|
|
13
|
+
*/
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=primitive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/primitive.ts"],"names":[],"mappings":"AAMA,qBAAa,eAAe;IAC1B;;;OAGG;gBACS,EAAE,KAAA;IAkCd;;OAEG;IACH,IAAI;IAkBJ;;OAEG;IACH,OAAO;CAMR"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class StripShader {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new StripShader instance.
|
|
4
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
5
|
+
*/
|
|
6
|
+
constructor(gl: any);
|
|
7
|
+
/**
|
|
8
|
+
* Destroys this shader and cleans up resources.
|
|
9
|
+
*/
|
|
10
|
+
init(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Binds this shader to the WebGL context.
|
|
13
|
+
*/
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=strip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strip.d.ts","sourceRoot":"","sources":["../../../../../src/phaser/display/webgl/shader/strip.ts"],"names":[],"mappings":"AAMA,qBAAa,WAAW;IACtB;;;OAGG;gBACS,EAAE,KAAA;IAsCd;;OAEG;IACH,IAAI;IAmBJ;;OAEG;IACH,OAAO;CAMR"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class WebGLShaderManager {
|
|
2
|
+
/**
|
|
3
|
+
* Initializes the shader manager with a WebGL context.
|
|
4
|
+
*/
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* Initializes the shader manager with a WebGL context.
|
|
8
|
+
* @param {WebGLRenderingContext & { id: number }} gl - The WebGL rendering context.
|
|
9
|
+
*/
|
|
10
|
+
setContext(gl: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* Sets up the shader manager for WebGL rendering.
|
|
13
|
+
* @param {number[]} attribs - The attribute locations to set up.
|
|
14
|
+
*/
|
|
15
|
+
setAttribs(attribs: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Sets up the shader manager for WebGL rendering.
|
|
18
|
+
* @param {NormalShader} shader - The shader to set up.
|
|
19
|
+
* @returns {boolean} Whether the shader setup was successful.
|
|
20
|
+
*/
|
|
21
|
+
setShader(shader: any): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Destroys the manager.
|
|
24
|
+
*/
|
|
25
|
+
destroy(): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=shader_manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shader_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/shader_manager.ts"],"names":[],"mappings":"AAOA,qBAAa,kBAAkB;IAC7B;;OAEG;;IAiBH;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAA;IAUb;;;OAGG;IACH,UAAU,CAAC,OAAO,KAAA;IAwBlB;;;;OAIG;IACH,SAAS,CAAC,MAAM,KAAA;IAWhB;;OAEG;IACH,OAAO;CAYR"}
|
|
@@ -1,40 +1,18 @@
|
|
|
1
|
-
export class WebGLSpriteBatch {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
colors: Uint32Array<ArrayBuffer>;
|
|
7
|
-
indices: Uint16Array<ArrayBuffer>;
|
|
8
|
-
lastIndexCount: number;
|
|
9
|
-
drawing: boolean;
|
|
10
|
-
currentBatchSize: number;
|
|
11
|
-
currentBaseTexture: any;
|
|
12
|
-
dirty: boolean;
|
|
13
|
-
textures: any[];
|
|
14
|
-
blendModes: any[];
|
|
15
|
-
shaders: any[];
|
|
16
|
-
sprites: any[];
|
|
17
|
-
defaultShader: AbstractFilter;
|
|
1
|
+
export declare class WebGLSpriteBatch {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new SpriteBatch instance.
|
|
4
|
+
*/
|
|
5
|
+
constructor();
|
|
18
6
|
/**
|
|
19
7
|
* Renders a sprite using WebGL.
|
|
20
8
|
* @param {WebGLRenderingContext & { id: number }} gl - The WebGL rendering context.
|
|
21
9
|
*/
|
|
22
|
-
setContext(gl:
|
|
23
|
-
id: number;
|
|
24
|
-
}): void;
|
|
25
|
-
gl: WebGLRenderingContext & {
|
|
26
|
-
id: number;
|
|
27
|
-
};
|
|
28
|
-
vertexBuffer: WebGLBuffer;
|
|
29
|
-
indexBuffer: WebGLBuffer;
|
|
30
|
-
currentBlendMode: number;
|
|
10
|
+
setContext(gl: any): void;
|
|
31
11
|
/**
|
|
32
12
|
* Renders the sprite batch using WebGL.
|
|
33
13
|
* @param {object} renderSession - The render session to use.
|
|
34
14
|
*/
|
|
35
|
-
begin(renderSession:
|
|
36
|
-
renderSession: any;
|
|
37
|
-
shader: any;
|
|
15
|
+
begin(renderSession: any): void;
|
|
38
16
|
/**
|
|
39
17
|
* Updates the sprite batch.
|
|
40
18
|
*/
|
|
@@ -44,7 +22,7 @@ export class WebGLSpriteBatch {
|
|
|
44
22
|
* @param {import('../../display/image.js').Image} sprite - The sprite to render.
|
|
45
23
|
* @param {import('../../geom/matrix.js').Matrix} matrix - The transformation matrix.
|
|
46
24
|
*/
|
|
47
|
-
render(sprite:
|
|
25
|
+
render(sprite: any, matrix: any): void;
|
|
48
26
|
/**
|
|
49
27
|
* Binds the sprite batch to the WebGL context.
|
|
50
28
|
*/
|
|
@@ -59,7 +37,7 @@ export class WebGLSpriteBatch {
|
|
|
59
37
|
* @param {number} size - The size of the batch.
|
|
60
38
|
* @param {number} startIndex - The start index in the batch.
|
|
61
39
|
*/
|
|
62
|
-
renderBatch(texture:
|
|
40
|
+
renderBatch(texture: any, size: any, startIndex: any): void;
|
|
63
41
|
/**
|
|
64
42
|
* Destroys this sprite batch and cleans up resources.
|
|
65
43
|
*/
|
|
@@ -73,5 +51,4 @@ export class WebGLSpriteBatch {
|
|
|
73
51
|
*/
|
|
74
52
|
destroy(): void;
|
|
75
53
|
}
|
|
76
|
-
import { AbstractFilter } from './abstract_filter.js';
|
|
77
54
|
//# sourceMappingURL=sprite_batch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/sprite_batch.ts"],"names":[],"mappings":"AAIA,qBAAa,gBAAgB;IAC3B;;OAEG;;IAwCH;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAA;IAmBb;;;OAGG;IACH,KAAK,CAAC,aAAa,KAAA;IAMnB;;OAEG;IACH,GAAG;IAIH;;;;OAIG;IACH,MAAM,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA;IAiGrB;;OAEG;IACH,kBAAkB;IAIlB;;OAEG;IACH,KAAK;IAgGL;;;;;OAKG;IACH,WAAW,CAAC,OAAO,KAAA,EAAE,IAAI,KAAA,EAAE,UAAU,KAAA;IAqBrC;;OAEG;IACH,IAAI;IAKJ;;OAEG;IACH,KAAK;IAIL;;OAEG;IACH,OAAO;CAUR"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export class WebGLStencilManager {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare class WebGLStencilManager {
|
|
2
|
+
/**
|
|
3
|
+
* Initializes the stencil manager.
|
|
4
|
+
*/
|
|
5
|
+
constructor();
|
|
5
6
|
/**
|
|
6
7
|
* Binds the stencil buffer for rendering.
|
|
7
8
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
8
9
|
*/
|
|
9
|
-
setContext(gl:
|
|
10
|
-
gl: WebGLRenderingContext;
|
|
10
|
+
setContext(gl: any): void;
|
|
11
11
|
/**
|
|
12
12
|
* Sets up the stencil buffer for rendering.
|
|
13
13
|
*/
|
|
@@ -18,20 +18,20 @@ export class WebGLStencilManager {
|
|
|
18
18
|
* @param {import('./graphics_data.js').GraphicsData} webGLData - The WebGL graphics data.
|
|
19
19
|
* @param {object} renderSession - The rendering session.
|
|
20
20
|
*/
|
|
21
|
-
pushStencil(graphics:
|
|
21
|
+
pushStencil(graphics: any, webGLData: any, renderSession: any): void;
|
|
22
22
|
/**
|
|
23
23
|
* Renders the stencil buffer for graphics.
|
|
24
24
|
* @param {import('../graphics.js').Graphics} graphics - The graphics object to render.
|
|
25
25
|
* @param {import('./graphics_data.js').GraphicsData} webGLData - The WebGL graphics data.
|
|
26
26
|
* @param {object} renderSession - The rendering session.
|
|
27
27
|
*/
|
|
28
|
-
bindGraphics(graphics:
|
|
28
|
+
bindGraphics(graphics: any, webGLData: any, renderSession: any): void;
|
|
29
29
|
/**
|
|
30
30
|
* Renders the stencil buffer for graphics.
|
|
31
31
|
* @param {import('../graphics.js').Graphics} graphics - The graphics object to render.
|
|
32
32
|
* @param {import('./graphics_data.js').GraphicsData} webGLData - The WebGL graphics data.
|
|
33
33
|
* @param {object} renderSession - The rendering session.
|
|
34
34
|
*/
|
|
35
|
-
popStencil(graphics:
|
|
35
|
+
popStencil(graphics: any, webGLData: any, renderSession: any): void;
|
|
36
36
|
}
|
|
37
37
|
//# sourceMappingURL=stencil_manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stencil_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/stencil_manager.ts"],"names":[],"mappings":"AAGA,qBAAa,mBAAmB;IAC9B;;OAEG;;IAOH;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAA;IAIb;;OAEG;IACH,OAAO;IAKP;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA;IAoD9C;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA;IAyC/C;;;;;OAKG;IACH,UAAU,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA;CAkD9C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class TextureUvs {
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new Texture instance.
|
|
4
|
+
*/
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
7
|
+
export declare class Texture {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Texture instance.
|
|
10
|
+
* @param {import('./base_texture.js').BaseTexture} baseTexture - The base texture to use.
|
|
11
|
+
* @param {Rectangle | null | undefined} frame - The frame rectangle.
|
|
12
|
+
* @param {Rectangle | null | undefined} crop - The crop rectangle.
|
|
13
|
+
* @param {Rectangle | null | undefined} trim - The trim rectangle.
|
|
14
|
+
*/
|
|
15
|
+
constructor(baseTexture: any, frame?: any, crop?: any, trim?: any);
|
|
16
|
+
/**
|
|
17
|
+
* Destroys this texture and cleans up resources.
|
|
18
|
+
*/
|
|
19
|
+
onBaseTextureLoaded(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Destroys this texture and cleans up resources.
|
|
22
|
+
* @param {boolean} destroyBase - Whether to destroy the base texture as well.
|
|
23
|
+
*/
|
|
24
|
+
destroy(destroyBase?: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the frame of this texture.
|
|
27
|
+
* @param {Rectangle} frame - The new frame rectangle.
|
|
28
|
+
* @throws {Error} If the operation fails.
|
|
29
|
+
*/
|
|
30
|
+
setFrame(frame: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* Updates the texture UVs based on the crop frame.
|
|
33
|
+
*/
|
|
34
|
+
_updateUvs(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=texture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/texture.ts"],"names":[],"mappings":"AAGA,qBAAa,UAAU;IACrB;;OAEG;;CAWJ;AAED,qBAAa,OAAO;IAClB;;;;;;OAMG;gBACS,WAAW,KAAA,EAAE,KAAK,MAAO,EAAE,IAAI,MAAO,EAAE,IAAI,MAAO;IAsC/D;;OAEG;IACH,mBAAmB;IAOnB;;;OAGG;IACH,OAAO,CAAC,WAAW,UAAQ;IAO3B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,KAAA;IAmCd;;OAEG;IACH,UAAU;CAgBX"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseTexture } from './base_texture.js';
|
|
2
|
+
import { Texture } from './texture.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new BaseTexture from a canvas element.
|
|
5
|
+
* @param {HTMLCanvasElement} canvas - The canvas element to use as the texture source.
|
|
6
|
+
* @param {number} [scaleMode] - The scale mode to use for the texture.
|
|
7
|
+
* @returns {BaseTexture} The newly created BaseTexture instance.
|
|
8
|
+
*/
|
|
9
|
+
export declare const baseTextureFromCanvas: (canvas: any, scaleMode: any) => BaseTexture;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new Texture from a canvas element.
|
|
12
|
+
* @param {HTMLCanvasElement} canvas - The canvas element to use as the texture source.
|
|
13
|
+
* @param {number} [scaleMode] - The scale mode to use for the texture.
|
|
14
|
+
* @returns {Texture} The newly created Texture instance.
|
|
15
|
+
*/
|
|
16
|
+
export declare const textureFromCanvas: (canvas: any, scaleMode: any) => Texture;
|
|
17
|
+
//# sourceMappingURL=texture_util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texture_util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/texture_util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAM,EAAE,cAAS,gBAQtD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAM,EAAE,cAAS,YAElD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const NO_ERROR = 0;
|
|
2
|
+
export declare const INVALID_ENUM = 1280;
|
|
3
|
+
export declare const INVALID_VALUE = 1281;
|
|
4
|
+
export declare const INVALID_OPERATION = 1282;
|
|
5
|
+
export declare const INVALID_FRAMEBUFFER_OPERATION = 1286;
|
|
6
|
+
export declare const OUT_OF_MEMORY = 1285;
|
|
7
|
+
export declare const CONTEXT_LOST_WEBGL = 37442;
|
|
8
|
+
/**
|
|
9
|
+
* Gets the WebGL context error code.
|
|
10
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
11
|
+
* @returns {number} The error code from the WebGL context.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getWebGLContextErrorCode: (gl: any) => any;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the WebGL context error name from an error code.
|
|
16
|
+
* @param {number} errorCode - The error code to look up.
|
|
17
|
+
* @returns {string} The name of the WebGL error.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getWebGLContextErrorName: (errorCode: any) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Initializes default shaders.
|
|
22
|
+
*/
|
|
23
|
+
export declare const initDefaultShaders: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Compiles a WebGL shader.
|
|
26
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
27
|
+
* @param {string[]|string} shaderSrc - The shader source code.
|
|
28
|
+
* @param {object} shaderType - The type of shader to compile.
|
|
29
|
+
* @returns {WebGLShader} The compiled WebGL shader or null if compilation failed.
|
|
30
|
+
*/
|
|
31
|
+
export declare const compileShader: (gl: any, shaderSrc: any, shaderType: any) => any;
|
|
32
|
+
/**
|
|
33
|
+
* Compiles a WebGL vertex shader.
|
|
34
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
35
|
+
* @param {string[]|string} shaderSrc - The vertex shader source code.
|
|
36
|
+
* @returns {WebGLShader} The compiled WebGL vertex shader or null if compilation failed.
|
|
37
|
+
*/
|
|
38
|
+
export declare const compileVertexShader: (gl: any, shaderSrc: any) => any;
|
|
39
|
+
/**
|
|
40
|
+
* Compiles a WebGL fragment shader.
|
|
41
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
42
|
+
* @param {string[]|string} shaderSrc - The fragment shader source code.
|
|
43
|
+
* @returns {WebGLShader} The compiled WebGL fragment shader or null if compilation failed.
|
|
44
|
+
*/
|
|
45
|
+
export declare const compileFragmentShader: (gl: any, shaderSrc: any) => any;
|
|
46
|
+
/**
|
|
47
|
+
* Compiles a WebGL shader program.
|
|
48
|
+
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
49
|
+
* @param {string[]|string} vertexSrc - The vertex shader source code.
|
|
50
|
+
* @param {string[]|string} fragmentSrc - The fragment shader source code.
|
|
51
|
+
* @returns {WebGLProgram} The compiled WebGL shader program or null if compilation failed.
|
|
52
|
+
*/
|
|
53
|
+
export declare const compileProgram: (gl: any, vertexSrc: any, fragmentSrc: any) => any;
|
|
54
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/util.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B,eAAO,MAAM,YAAY,OAAS,CAAC;AAEnC,eAAO,MAAM,aAAa,OAAS,CAAC;AAEpC,eAAO,MAAM,iBAAiB,OAAS,CAAC;AAExC,eAAO,MAAM,6BAA6B,OAAS,CAAC;AAEpD,eAAO,MAAM,aAAa,OAAS,CAAC;AAEpC,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAE,QAE1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,cAAS,WAmBjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAW,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,OAAE,EAAE,cAAS,EAAE,eAAU,QAatD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAE,EAAE,cAAS,QAEhD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAE,EAAE,cAAS,QAElD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,OAAE,EAAE,cAAS,EAAE,gBAAW,QAiBxD,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { Rectangle } from './rectangle.js';
|
|
2
|
+
export declare class Circle {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
_diameter: number;
|
|
6
|
+
_radius: number;
|
|
7
|
+
type: number;
|
|
2
8
|
/**
|
|
3
9
|
* Creates a new Circle instance.
|
|
4
10
|
* @param {number} x - The x coordinate of the center point (default: 0).
|
|
@@ -6,16 +12,6 @@ export class Circle {
|
|
|
6
12
|
* @param {number} diameter - The diameter of the circle (default: 0).
|
|
7
13
|
*/
|
|
8
14
|
constructor(x?: number, y?: number, diameter?: number);
|
|
9
|
-
/** @type {number} */
|
|
10
|
-
x: number;
|
|
11
|
-
/** @type {number} */
|
|
12
|
-
y: number;
|
|
13
|
-
/** @type {number} */
|
|
14
|
-
_diameter: number;
|
|
15
|
-
/** @type {number} */
|
|
16
|
-
_radius: number;
|
|
17
|
-
/** @type {number} */
|
|
18
|
-
type: number;
|
|
19
15
|
/**
|
|
20
16
|
* Calculates the circumference of this circle.
|
|
21
17
|
* @returns {number} The circumference of this circle.
|
|
@@ -26,7 +22,7 @@ export class Circle {
|
|
|
26
22
|
* @param {Point} output - The point to store the result in (optional).
|
|
27
23
|
* @returns {Point} A random point within this circle.
|
|
28
24
|
*/
|
|
29
|
-
random(output?:
|
|
25
|
+
random(output?: any): any;
|
|
30
26
|
/**
|
|
31
27
|
* Gets the bounding rectangle of this circle.
|
|
32
28
|
* @returns {Rectangle} The bounding rectangle of this circle.
|
|
@@ -39,38 +35,38 @@ export class Circle {
|
|
|
39
35
|
* @param {number} diameter - The new diameter of the circle.
|
|
40
36
|
* @returns {Circle} This circle instance for chaining.
|
|
41
37
|
*/
|
|
42
|
-
setTo(x:
|
|
38
|
+
setTo(x: any, y: any, diameter: any): this;
|
|
43
39
|
/**
|
|
44
40
|
* Copies the values from another circle to this circle.
|
|
45
41
|
* @param {Circle} source - The circle to copy values from.
|
|
46
42
|
* @returns {Circle} This circle instance for chaining.
|
|
47
43
|
*/
|
|
48
|
-
copyFrom(source:
|
|
44
|
+
copyFrom(source: any): this;
|
|
49
45
|
/**
|
|
50
46
|
* Copies the values of this circle to another circle.
|
|
51
47
|
* @param {Circle} dest - The circle to copy values to.
|
|
52
48
|
* @returns {Circle} The destination circle.
|
|
53
49
|
*/
|
|
54
|
-
copyTo(dest:
|
|
50
|
+
copyTo(dest: any): any;
|
|
55
51
|
/**
|
|
56
52
|
* Calculates the distance between this circle and another circle.
|
|
57
53
|
* @param {Circle} dest - The other circle to calculate the distance to.
|
|
58
54
|
* @param {boolean} round - Whether to round the result (default: false).
|
|
59
55
|
* @returns {number} The distance between the circles.
|
|
60
56
|
*/
|
|
61
|
-
distance(dest:
|
|
57
|
+
distance(dest: any, round?: boolean): number;
|
|
62
58
|
/**
|
|
63
59
|
* Creates a clone of this circle.
|
|
64
60
|
* @returns {Circle} A new circle with the same values as this one.
|
|
65
61
|
*/
|
|
66
|
-
clone():
|
|
62
|
+
clone(): any;
|
|
67
63
|
/**
|
|
68
64
|
* Checks if the specified point is contained within this circle.
|
|
69
65
|
* @param {number} x - The x coordinate of the point to check.
|
|
70
66
|
* @param {number} y - The y coordinate of the point to check.
|
|
71
67
|
* @returns {boolean} True if the point is contained within this circle, false otherwise.
|
|
72
68
|
*/
|
|
73
|
-
contains(x:
|
|
69
|
+
contains(x: any, y: any): boolean;
|
|
74
70
|
/**
|
|
75
71
|
* Gets a point at a specific angle on the circumference of this circle.
|
|
76
72
|
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to get the point for.
|
|
@@ -78,94 +74,92 @@ export class Circle {
|
|
|
78
74
|
* @param {Point} out - The point to store the result in (optional).
|
|
79
75
|
* @returns {Point} A point at the specified angle on the circumference of this circle.
|
|
80
76
|
*/
|
|
81
|
-
circumferencePoint(angle:
|
|
77
|
+
circumferencePoint(angle: any, asDegrees?: any, out?: any): any;
|
|
82
78
|
/**
|
|
83
79
|
* Offsets the position of this circle by the specified amounts.
|
|
84
80
|
* @param {number} dx - The amount to offset the x coordinate by.
|
|
85
81
|
* @param {number} dy - The amount to offset the y coordinate by.
|
|
86
82
|
* @returns {Circle} This circle instance for chaining.
|
|
87
83
|
*/
|
|
88
|
-
offset(dx:
|
|
84
|
+
offset(dx: any, dy: any): this;
|
|
89
85
|
/**
|
|
90
86
|
* Offsets the position of this circle by the specified point coordinates.
|
|
91
87
|
* @param {Point} point - The point to offset the circle by.
|
|
92
88
|
* @returns {Circle} This circle instance for chaining.
|
|
93
89
|
*/
|
|
94
|
-
offsetPoint(point:
|
|
90
|
+
offsetPoint(point: any): this;
|
|
95
91
|
/**
|
|
96
92
|
* Returns a string representation of this circle.
|
|
97
93
|
* @returns {string} A string representation of the circle.
|
|
98
94
|
*/
|
|
99
95
|
toString(): string;
|
|
100
|
-
/**
|
|
101
|
-
* Sets the diameter of this circle.
|
|
102
|
-
*/
|
|
103
|
-
set diameter(value: number);
|
|
104
96
|
/**
|
|
105
97
|
* Gets the diameter of this circle.
|
|
106
98
|
* @returns {number} The diameter of this circle.
|
|
107
99
|
*/
|
|
108
100
|
get diameter(): number;
|
|
109
101
|
/**
|
|
110
|
-
* Sets the
|
|
102
|
+
* Sets the diameter of this circle.
|
|
111
103
|
*/
|
|
112
|
-
set
|
|
104
|
+
set diameter(value: number);
|
|
113
105
|
/**
|
|
114
106
|
* Gets the radius of this circle.
|
|
115
107
|
* @returns {number} The radius of this circle.
|
|
116
108
|
*/
|
|
117
109
|
get radius(): number;
|
|
118
110
|
/**
|
|
119
|
-
* Sets the
|
|
111
|
+
* Sets the radius of this circle.
|
|
120
112
|
*/
|
|
121
|
-
set
|
|
113
|
+
set radius(value: number);
|
|
122
114
|
/**
|
|
123
115
|
* Gets the left coordinate of this circle.
|
|
124
116
|
* @returns {number} The left coordinate of this circle.
|
|
125
117
|
*/
|
|
126
118
|
get left(): number;
|
|
127
119
|
/**
|
|
128
|
-
* Sets the
|
|
120
|
+
* Sets the left coordinate of this circle.
|
|
129
121
|
*/
|
|
130
|
-
set
|
|
122
|
+
set left(value: number);
|
|
131
123
|
/**
|
|
132
124
|
* Gets the right coordinate of this circle.
|
|
133
125
|
* @returns {number} The right coordinate of this circle.
|
|
134
126
|
*/
|
|
135
127
|
get right(): number;
|
|
136
128
|
/**
|
|
137
|
-
* Sets the
|
|
129
|
+
* Sets the right coordinate of this circle.
|
|
138
130
|
*/
|
|
139
|
-
set
|
|
131
|
+
set right(value: number);
|
|
140
132
|
/**
|
|
141
133
|
* Gets the top coordinate of this circle.
|
|
142
134
|
* @returns {number} The top coordinate of this circle.
|
|
143
135
|
*/
|
|
144
136
|
get top(): number;
|
|
145
137
|
/**
|
|
146
|
-
* Sets the
|
|
138
|
+
* Sets the top coordinate of this circle.
|
|
147
139
|
*/
|
|
148
|
-
set
|
|
140
|
+
set top(value: number);
|
|
149
141
|
/**
|
|
150
142
|
* Gets the bottom coordinate of this circle.
|
|
151
143
|
* @returns {number} The bottom coordinate of this circle.
|
|
152
144
|
*/
|
|
153
145
|
get bottom(): number;
|
|
146
|
+
/**
|
|
147
|
+
* Sets the bottom coordinate of this circle.
|
|
148
|
+
*/
|
|
149
|
+
set bottom(value: number);
|
|
154
150
|
/**
|
|
155
151
|
* Gets the area of this circle.
|
|
156
152
|
* @returns {number} The area of this circle.
|
|
157
153
|
*/
|
|
158
154
|
get area(): number;
|
|
159
|
-
/**
|
|
160
|
-
* Sets whether this circle is empty (zero diameter).
|
|
161
|
-
*/
|
|
162
|
-
set empty(value: boolean);
|
|
163
155
|
/**
|
|
164
156
|
* Checks if this circle is empty (has zero diameter).
|
|
165
157
|
* @returns {boolean} True if the circle is empty, false otherwise.
|
|
166
158
|
*/
|
|
167
159
|
get empty(): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Sets whether this circle is empty (zero diameter).
|
|
162
|
+
*/
|
|
163
|
+
set empty(value: boolean);
|
|
168
164
|
}
|
|
169
|
-
import { Point } from './point.js';
|
|
170
|
-
import { Rectangle } from './rectangle.js';
|
|
171
165
|
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/circle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,qBAAa,MAAM;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;gBACS,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,QAAQ,SAAI;IAgBtC;;;OAGG;IACH,aAAa;IAIb;;;;OAIG;IACH,MAAM,CAAC,MAAM,MAAO;IAYpB;;;OAGG;IACH,SAAS;IAIT;;;;;;OAMG;IACH,KAAK,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA,EAAE,QAAQ,KAAA;IAQpB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,KAAA;IAIf;;;;OAIG;IACH,MAAM,CAAC,IAAI,KAAA;IAOX;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,KAAA,EAAE,KAAK,UAAQ;IAK5B;;;OAGG;IACH,KAAK;IAIL;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAA,EAAE,CAAC,KAAA;IAIb;;;;;;OAMG;IACH,kBAAkB,CAAC,KAAK,KAAA,EAAE,SAAS,CAAC,KAAA,EAAE,GAAG,CAAC,KAAA;IAI1C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAA,EAAE,EAAE,KAAA;IAMb;;;;OAIG;IACH,WAAW,CAAC,KAAK,KAAA;IAIjB;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,IAAI,QAAQ,WAEX;IAED;;OAEG;IACH,IAAI,QAAQ,CAAC,KAAK,QAAA,EAKjB;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAKf;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,EAOd;IAED;;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;OAEG;IACH,IAAI,GAAG,CAAC,KAAK,QAAA,EAOZ;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAOf;IAED;;;OAGG;IACH,IAAI,IAAI,WAKP;IAED;;;OAGG;IACH,IAAI,KAAK,YAER;IAED;;OAEG;IACH,IAAI,KAAK,CAAC,KAAK,SAAA,EAId;CACF"}
|