@vpmedia/phaser 1.104.0 → 1.105.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.js +151 -574
- package/dist/index.js.map +1 -1
- package/dist/phaser/core/animation.d.ts +35 -57
- package/dist/phaser/core/animation.d.ts.map +1 -1
- package/dist/phaser/core/animation_manager.d.ts +11 -10
- package/dist/phaser/core/animation_manager.d.ts.map +1 -1
- package/dist/phaser/core/animation_parser.d.ts +2 -2
- package/dist/phaser/core/animation_parser.d.ts.map +1 -1
- package/dist/phaser/core/array_set.d.ts +3 -3
- package/dist/phaser/core/array_set.d.ts.map +1 -1
- package/dist/phaser/core/cache.d.ts +60 -60
- package/dist/phaser/core/cache.d.ts.map +1 -1
- package/dist/phaser/core/device.d.ts.map +1 -1
- package/dist/phaser/core/device_util.d.ts +10 -10
- package/dist/phaser/core/device_util.d.ts.map +1 -1
- package/dist/phaser/core/dom.d.ts +6 -5
- package/dist/phaser/core/dom.d.ts.map +1 -1
- package/dist/phaser/core/event_manager.d.ts +49 -174
- package/dist/phaser/core/event_manager.d.ts.map +1 -1
- package/dist/phaser/core/factory.d.ts +7 -7
- package/dist/phaser/core/factory.d.ts.map +1 -1
- package/dist/phaser/core/frame.d.ts +27 -48
- package/dist/phaser/core/frame.d.ts.map +1 -1
- package/dist/phaser/core/frame_data.d.ts +11 -60
- package/dist/phaser/core/frame_data.d.ts.map +1 -1
- package/dist/phaser/core/frame_util.d.ts +4 -14
- package/dist/phaser/core/frame_util.d.ts.map +1 -1
- package/dist/phaser/core/game.d.ts +49 -58
- package/dist/phaser/core/game.d.ts.map +1 -1
- package/dist/phaser/core/input.d.ts +15 -13
- package/dist/phaser/core/input.d.ts.map +1 -1
- package/dist/phaser/core/input_handler.d.ts +23 -20
- package/dist/phaser/core/input_handler.d.ts.map +1 -1
- package/dist/phaser/core/input_mouse.d.ts +26 -1
- package/dist/phaser/core/input_mouse.d.ts.map +1 -1
- package/dist/phaser/core/input_mspointer.d.ts +2 -2
- package/dist/phaser/core/input_mspointer.d.ts.map +1 -1
- package/dist/phaser/core/input_pointer.d.ts +9 -9
- package/dist/phaser/core/input_pointer.d.ts.map +1 -1
- package/dist/phaser/core/input_touch.d.ts +2 -1
- package/dist/phaser/core/input_touch.d.ts.map +1 -1
- package/dist/phaser/core/loader.d.ts +28 -28
- package/dist/phaser/core/loader.d.ts.map +1 -1
- package/dist/phaser/core/loader_parser.d.ts +4 -4
- package/dist/phaser/core/loader_parser.d.ts.map +1 -1
- package/dist/phaser/core/raf.d.ts +2 -2
- package/dist/phaser/core/raf.d.ts.map +1 -1
- package/dist/phaser/core/scale_manager.d.ts +22 -17
- package/dist/phaser/core/scale_manager.d.ts.map +1 -1
- package/dist/phaser/core/scene.d.ts +1 -1
- package/dist/phaser/core/scene.d.ts.map +1 -1
- package/dist/phaser/core/scene_manager.d.ts +10 -9
- package/dist/phaser/core/scene_manager.d.ts.map +1 -1
- package/dist/phaser/core/signal.d.ts +9 -8
- package/dist/phaser/core/signal.d.ts.map +1 -1
- package/dist/phaser/core/signal_binding.d.ts +2 -2
- package/dist/phaser/core/signal_binding.d.ts.map +1 -1
- package/dist/phaser/core/sound.d.ts +56 -101
- package/dist/phaser/core/sound.d.ts.map +1 -1
- package/dist/phaser/core/sound_manager.d.ts +11 -9
- package/dist/phaser/core/sound_manager.d.ts.map +1 -1
- package/dist/phaser/core/sound_sprite.d.ts +4 -4
- package/dist/phaser/core/sound_sprite.d.ts.map +1 -1
- package/dist/phaser/core/stage.d.ts +3 -3
- package/dist/phaser/core/stage.d.ts.map +1 -1
- package/dist/phaser/core/time.d.ts +5 -5
- package/dist/phaser/core/time.d.ts.map +1 -1
- package/dist/phaser/core/timer.d.ts +10 -10
- package/dist/phaser/core/timer.d.ts.map +1 -1
- package/dist/phaser/core/timer_event.d.ts +11 -21
- package/dist/phaser/core/timer_event.d.ts.map +1 -1
- package/dist/phaser/core/tween.d.ts +37 -59
- package/dist/phaser/core/tween.d.ts.map +1 -1
- package/dist/phaser/core/tween_data.d.ts +6 -5
- package/dist/phaser/core/tween_data.d.ts.map +1 -1
- package/dist/phaser/core/tween_easing.d.ts +31 -31
- package/dist/phaser/core/tween_easing.d.ts.map +1 -1
- package/dist/phaser/core/tween_manager.d.ts +4 -4
- package/dist/phaser/core/tween_manager.d.ts.map +1 -1
- package/dist/phaser/core/world.d.ts +1 -1
- package/dist/phaser/core/world.d.ts.map +1 -1
- package/dist/phaser/display/bitmap_text.d.ts +22 -20
- package/dist/phaser/display/bitmap_text.d.ts.map +1 -1
- package/dist/phaser/display/button.d.ts +23 -35
- package/dist/phaser/display/button.d.ts.map +1 -1
- package/dist/phaser/display/canvas/buffer.d.ts +2 -2
- package/dist/phaser/display/canvas/buffer.d.ts.map +1 -1
- package/dist/phaser/display/canvas/graphics.d.ts +3 -3
- package/dist/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/dist/phaser/display/canvas/masker.d.ts.map +1 -1
- package/dist/phaser/display/canvas/pool.d.ts +2 -2
- package/dist/phaser/display/canvas/pool.d.ts.map +1 -1
- package/dist/phaser/display/canvas/renderer.d.ts +5 -5
- package/dist/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/dist/phaser/display/canvas/tinter.d.ts +3 -3
- package/dist/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/dist/phaser/display/canvas/util.d.ts +9 -9
- package/dist/phaser/display/canvas/util.d.ts.map +1 -1
- package/dist/phaser/display/display_object.d.ts +45 -42
- package/dist/phaser/display/display_object.d.ts.map +1 -1
- package/dist/phaser/display/graphics.d.ts +24 -16
- package/dist/phaser/display/graphics.d.ts.map +1 -1
- package/dist/phaser/display/graphics_data.d.ts +1 -1
- package/dist/phaser/display/graphics_data.d.ts.map +1 -1
- package/dist/phaser/display/graphics_data_util.d.ts +1 -1
- package/dist/phaser/display/graphics_data_util.d.ts.map +1 -1
- package/dist/phaser/display/group.d.ts +24 -37
- package/dist/phaser/display/group.d.ts.map +1 -1
- package/dist/phaser/display/image.d.ts +34 -49
- package/dist/phaser/display/image.d.ts.map +1 -1
- package/dist/phaser/display/sprite_batch.d.ts +1 -1
- package/dist/phaser/display/sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/sprite_util.d.ts +5 -5
- package/dist/phaser/display/sprite_util.d.ts.map +1 -1
- package/dist/phaser/display/text.d.ts +86 -66
- package/dist/phaser/display/text.d.ts.map +1 -1
- package/dist/phaser/display/webgl/abstract_filter.d.ts +2 -1
- package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
- package/dist/phaser/display/webgl/base_texture.d.ts +2 -2
- package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/blend_manager.d.ts +3 -2
- package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/earcut.d.ts +10 -10
- package/dist/phaser/display/webgl/earcut.d.ts.map +1 -1
- package/dist/phaser/display/webgl/earcut_node.d.ts +1 -1
- package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -1
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts +2 -1
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/webgl/filter_manager.d.ts +2 -1
- package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/filter_texture.d.ts +3 -2
- package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/graphics.d.ts +11 -10
- package/dist/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/dist/phaser/display/webgl/graphics_data.d.ts +2 -1
- package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/render_texture.d.ts +2 -1
- package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/renderer.d.ts +8 -6
- package/dist/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/complex.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/fast.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/normal.d.ts +1 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/primitive.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/strip.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader_manager.d.ts +4 -2
- package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/sprite_batch.d.ts +3 -2
- package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/webgl/stencil_manager.d.ts +5 -4
- package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/texture.d.ts +15 -2
- package/dist/phaser/display/webgl/texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/texture_util.d.ts +2 -2
- package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/dist/phaser/display/webgl/util.d.ts +6 -6
- package/dist/phaser/display/webgl/util.d.ts.map +1 -1
- package/dist/phaser/geom/circle.d.ts +11 -10
- package/dist/phaser/geom/circle.d.ts.map +1 -1
- package/dist/phaser/geom/ellipse.d.ts +6 -5
- package/dist/phaser/geom/ellipse.d.ts.map +1 -1
- package/dist/phaser/geom/line.d.ts +14 -14
- package/dist/phaser/geom/line.d.ts.map +1 -1
- package/dist/phaser/geom/matrix.d.ts +13 -12
- package/dist/phaser/geom/matrix.d.ts.map +1 -1
- package/dist/phaser/geom/point.d.ts +19 -19
- package/dist/phaser/geom/point.d.ts.map +1 -1
- package/dist/phaser/geom/polygon.d.ts +6 -6
- package/dist/phaser/geom/polygon.d.ts.map +1 -1
- package/dist/phaser/geom/rectangle.d.ts +20 -20
- package/dist/phaser/geom/rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/rounded_rectangle.d.ts +2 -2
- package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/util/circle.d.ts +9 -7
- package/dist/phaser/geom/util/circle.d.ts.map +1 -1
- package/dist/phaser/geom/util/ellipse.d.ts +1 -1
- package/dist/phaser/geom/util/ellipse.d.ts.map +1 -1
- package/dist/phaser/geom/util/line.d.ts +5 -3
- package/dist/phaser/geom/util/line.d.ts.map +1 -1
- package/dist/phaser/geom/util/matrix.d.ts +2 -1
- package/dist/phaser/geom/util/matrix.d.ts.map +1 -1
- package/dist/phaser/geom/util/point.d.ts +19 -19
- package/dist/phaser/geom/util/point.d.ts.map +1 -1
- package/dist/phaser/geom/util/polygon.d.ts +2 -1
- package/dist/phaser/geom/util/polygon.d.ts.map +1 -1
- package/dist/phaser/geom/util/rectangle.d.ts +17 -15
- package/dist/phaser/geom/util/rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/util/rounded_rectangle.d.ts +2 -1
- package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
- package/dist/phaser/util/math.d.ts +51 -142
- package/dist/phaser/util/math.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/phaser/core/animation.ts +38 -61
- package/src/phaser/core/animation_manager.ts +21 -21
- package/src/phaser/core/animation_parser.ts +11 -3
- package/src/phaser/core/array_set.ts +8 -8
- package/src/phaser/core/cache.ts +75 -68
- package/src/phaser/core/device.ts +23 -24
- package/src/phaser/core/device_util.ts +10 -10
- package/src/phaser/core/dom.ts +5 -5
- package/src/phaser/core/event_manager.ts +52 -193
- package/src/phaser/core/factory.ts +25 -18
- package/src/phaser/core/frame.ts +37 -51
- package/src/phaser/core/frame_data.ts +29 -76
- package/src/phaser/core/frame_util.ts +3 -16
- package/src/phaser/core/game.ts +36 -63
- package/src/phaser/core/input.ts +68 -68
- package/src/phaser/core/input_handler.ts +81 -86
- package/src/phaser/core/input_mouse.ts +42 -36
- package/src/phaser/core/input_mspointer.ts +24 -25
- package/src/phaser/core/input_pointer.ts +55 -56
- package/src/phaser/core/input_touch.ts +26 -26
- package/src/phaser/core/loader.ts +97 -70
- package/src/phaser/core/loader_parser.ts +6 -7
- package/src/phaser/core/raf.ts +2 -2
- package/src/phaser/core/scale_manager.ts +85 -82
- package/src/phaser/core/scene.ts +3 -4
- package/src/phaser/core/scene_manager.ts +26 -26
- package/src/phaser/core/signal.ts +10 -10
- package/src/phaser/core/signal_binding.ts +2 -2
- package/src/phaser/core/sound.ts +65 -112
- package/src/phaser/core/sound_manager.ts +31 -30
- package/src/phaser/core/sound_sprite.ts +10 -11
- package/src/phaser/core/stage.ts +8 -8
- package/src/phaser/core/time.ts +33 -34
- package/src/phaser/core/timer.ts +40 -34
- package/src/phaser/core/timer_event.ts +23 -23
- package/src/phaser/core/tween.ts +42 -68
- package/src/phaser/core/tween_data.ts +31 -31
- package/src/phaser/core/tween_easing.ts +31 -31
- package/src/phaser/core/tween_manager.ts +10 -11
- package/src/phaser/core/world.ts +1 -2
- package/src/phaser/display/bitmap_text.ts +41 -31
- package/src/phaser/display/button.ts +24 -51
- package/src/phaser/display/canvas/buffer.ts +6 -7
- package/src/phaser/display/canvas/graphics.ts +3 -4
- package/src/phaser/display/canvas/masker.ts +2 -3
- package/src/phaser/display/canvas/pool.ts +3 -4
- package/src/phaser/display/canvas/renderer.ts +19 -20
- package/src/phaser/display/canvas/tinter.ts +4 -5
- package/src/phaser/display/canvas/util.ts +9 -9
- package/src/phaser/display/display_object.ts +49 -50
- package/src/phaser/display/graphics.ts +56 -43
- package/src/phaser/display/graphics_data.ts +11 -12
- package/src/phaser/display/graphics_data_util.ts +1 -2
- package/src/phaser/display/group.ts +32 -42
- package/src/phaser/display/image.ts +32 -52
- package/src/phaser/display/sprite_batch.ts +1 -2
- package/src/phaser/display/sprite_util.ts +5 -6
- package/src/phaser/display/text.ts +82 -56
- package/src/phaser/display/webgl/abstract_filter.ts +8 -8
- package/src/phaser/display/webgl/base_texture.ts +14 -15
- package/src/phaser/display/webgl/blend_manager.ts +5 -5
- package/src/phaser/display/webgl/earcut.ts +27 -27
- package/src/phaser/display/webgl/earcut_node.ts +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.ts +19 -19
- package/src/phaser/display/webgl/filter_manager.ts +5 -5
- package/src/phaser/display/webgl/filter_texture.ts +7 -7
- package/src/phaser/display/webgl/graphics.ts +10 -11
- package/src/phaser/display/webgl/graphics_data.ts +11 -11
- package/src/phaser/display/webgl/mask_manager.ts +2 -3
- package/src/phaser/display/webgl/render_texture.ts +12 -12
- package/src/phaser/display/webgl/renderer.ts +24 -24
- package/src/phaser/display/webgl/shader/complex.ts +7 -7
- package/src/phaser/display/webgl/shader/fast.ts +8 -8
- package/src/phaser/display/webgl/shader/normal.ts +12 -12
- package/src/phaser/display/webgl/shader/primitive.ts +7 -7
- package/src/phaser/display/webgl/shader/strip.ts +7 -7
- package/src/phaser/display/webgl/shader_manager.ts +13 -13
- package/src/phaser/display/webgl/sprite_batch.ts +20 -20
- package/src/phaser/display/webgl/stencil_manager.ts +8 -8
- package/src/phaser/display/webgl/texture.ts +35 -24
- package/src/phaser/display/webgl/texture_util.ts +2 -3
- package/src/phaser/display/webgl/util.ts +6 -6
- package/src/phaser/geom/circle.ts +10 -10
- package/src/phaser/geom/ellipse.ts +6 -6
- package/src/phaser/geom/line.ts +14 -14
- package/src/phaser/geom/matrix.ts +12 -12
- package/src/phaser/geom/point.ts +19 -19
- package/src/phaser/geom/polygon.ts +5 -5
- package/src/phaser/geom/rectangle.ts +21 -21
- package/src/phaser/geom/rounded_rectangle.ts +2 -2
- package/src/phaser/geom/util/circle.ts +7 -7
- package/src/phaser/geom/util/ellipse.ts +1 -1
- package/src/phaser/geom/util/line.ts +5 -5
- package/src/phaser/geom/util/matrix.ts +1 -1
- package/src/phaser/geom/util/point.ts +20 -20
- package/src/phaser/geom/util/polygon.ts +1 -1
- package/src/phaser/geom/util/rectangle.ts +15 -15
- package/src/phaser/geom/util/rounded_rectangle.ts +1 -1
- package/src/phaser/util/math.ts +65 -151
|
@@ -10,13 +10,13 @@ export declare const CONTEXT_LOST_WEBGL = 37442;
|
|
|
10
10
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
11
11
|
* @returns {number} The error code from the WebGL context.
|
|
12
12
|
*/
|
|
13
|
-
export declare const getWebGLContextErrorCode: (gl:
|
|
13
|
+
export declare const getWebGLContextErrorCode: (gl: WebGLRenderingContext) => number;
|
|
14
14
|
/**
|
|
15
15
|
* Gets the WebGL context error name from an error code.
|
|
16
16
|
* @param {number} errorCode - The error code to look up.
|
|
17
17
|
* @returns {string} The name of the WebGL error.
|
|
18
18
|
*/
|
|
19
|
-
export declare const getWebGLContextErrorName: (errorCode:
|
|
19
|
+
export declare const getWebGLContextErrorName: (errorCode: number) => string;
|
|
20
20
|
/**
|
|
21
21
|
* Initializes default shaders.
|
|
22
22
|
*/
|
|
@@ -28,21 +28,21 @@ export declare const initDefaultShaders: () => void;
|
|
|
28
28
|
* @param {object} shaderType - The type of shader to compile.
|
|
29
29
|
* @returns {WebGLShader} The compiled WebGL shader or null if compilation failed.
|
|
30
30
|
*/
|
|
31
|
-
export declare const compileShader: (gl:
|
|
31
|
+
export declare const compileShader: (gl: WebGLRenderingContext, shaderSrc: string[] | string, shaderType: any) => WebGLShader;
|
|
32
32
|
/**
|
|
33
33
|
* Compiles a WebGL vertex shader.
|
|
34
34
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
35
35
|
* @param {string[]|string} shaderSrc - The vertex shader source code.
|
|
36
36
|
* @returns {WebGLShader} The compiled WebGL vertex shader or null if compilation failed.
|
|
37
37
|
*/
|
|
38
|
-
export declare const compileVertexShader: (gl:
|
|
38
|
+
export declare const compileVertexShader: (gl: WebGLRenderingContext, shaderSrc: string[] | string) => WebGLShader;
|
|
39
39
|
/**
|
|
40
40
|
* Compiles a WebGL fragment shader.
|
|
41
41
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
42
42
|
* @param {string[]|string} shaderSrc - The fragment shader source code.
|
|
43
43
|
* @returns {WebGLShader} The compiled WebGL fragment shader or null if compilation failed.
|
|
44
44
|
*/
|
|
45
|
-
export declare const compileFragmentShader: (gl:
|
|
45
|
+
export declare const compileFragmentShader: (gl: WebGLRenderingContext, shaderSrc: string[] | string) => WebGLShader;
|
|
46
46
|
/**
|
|
47
47
|
* Compiles a WebGL shader program.
|
|
48
48
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
@@ -50,5 +50,5 @@ export declare const compileFragmentShader: (gl: any, shaderSrc: any) => any;
|
|
|
50
50
|
* @param {string[]|string} fragmentSrc - The fragment shader source code.
|
|
51
51
|
* @returns {WebGLProgram} The compiled WebGL shader program or null if compilation failed.
|
|
52
52
|
*/
|
|
53
|
-
export declare const compileProgram: (gl:
|
|
53
|
+
export declare const compileProgram: (gl: WebGLRenderingContext, vertexSrc: string[] | string, fragmentSrc: string[] | string) => WebGLProgram;
|
|
54
54
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +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,
|
|
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,IAAI,qBAAqB,WAEjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,WAAW,MAAM,WAmBzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAW,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,qBAAqB,EAAE,WAAW,MAAM,EAAE,GAAC,MAAM,EAAE,YAAY,GAAG,gBAanG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,qBAAqB,EAAE,WAAW,MAAM,EAAE,GAAC,MAAM,gBAExF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,qBAAqB,EAAE,WAAW,MAAM,EAAE,GAAC,MAAM,gBAE1F,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,IAAI,qBAAqB,EAAE,WAAW,MAAM,EAAE,GAAC,MAAM,EAAE,aAAa,MAAM,EAAE,GAAC,MAAM,iBAiBjH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Point } from './point.js';
|
|
1
2
|
import { Rectangle } from './rectangle.js';
|
|
2
3
|
export declare class Circle {
|
|
3
4
|
x: number;
|
|
@@ -22,7 +23,7 @@ export declare class Circle {
|
|
|
22
23
|
* @param {Point} output - The point to store the result in (optional).
|
|
23
24
|
* @returns {Point} A random point within this circle.
|
|
24
25
|
*/
|
|
25
|
-
random(output?:
|
|
26
|
+
random(output?: Point): Point;
|
|
26
27
|
/**
|
|
27
28
|
* Gets the bounding rectangle of this circle.
|
|
28
29
|
* @returns {Rectangle} The bounding rectangle of this circle.
|
|
@@ -35,38 +36,38 @@ export declare class Circle {
|
|
|
35
36
|
* @param {number} diameter - The new diameter of the circle.
|
|
36
37
|
* @returns {Circle} This circle instance for chaining.
|
|
37
38
|
*/
|
|
38
|
-
setTo(x:
|
|
39
|
+
setTo(x: number, y: number, diameter: number): this;
|
|
39
40
|
/**
|
|
40
41
|
* Copies the values from another circle to this circle.
|
|
41
42
|
* @param {Circle} source - The circle to copy values from.
|
|
42
43
|
* @returns {Circle} This circle instance for chaining.
|
|
43
44
|
*/
|
|
44
|
-
copyFrom(source:
|
|
45
|
+
copyFrom(source: Circle): this;
|
|
45
46
|
/**
|
|
46
47
|
* Copies the values of this circle to another circle.
|
|
47
48
|
* @param {Circle} dest - The circle to copy values to.
|
|
48
49
|
* @returns {Circle} The destination circle.
|
|
49
50
|
*/
|
|
50
|
-
copyTo(dest:
|
|
51
|
+
copyTo(dest: Circle): Circle;
|
|
51
52
|
/**
|
|
52
53
|
* Calculates the distance between this circle and another circle.
|
|
53
54
|
* @param {Circle} dest - The other circle to calculate the distance to.
|
|
54
55
|
* @param {boolean} round - Whether to round the result (default: false).
|
|
55
56
|
* @returns {number} The distance between the circles.
|
|
56
57
|
*/
|
|
57
|
-
distance(dest:
|
|
58
|
+
distance(dest: Circle, round?: boolean): number;
|
|
58
59
|
/**
|
|
59
60
|
* Creates a clone of this circle.
|
|
60
61
|
* @returns {Circle} A new circle with the same values as this one.
|
|
61
62
|
*/
|
|
62
|
-
clone():
|
|
63
|
+
clone(): Circle;
|
|
63
64
|
/**
|
|
64
65
|
* Checks if the specified point is contained within this circle.
|
|
65
66
|
* @param {number} x - The x coordinate of the point to check.
|
|
66
67
|
* @param {number} y - The y coordinate of the point to check.
|
|
67
68
|
* @returns {boolean} True if the point is contained within this circle, false otherwise.
|
|
68
69
|
*/
|
|
69
|
-
contains(x:
|
|
70
|
+
contains(x: number, y: number): boolean;
|
|
70
71
|
/**
|
|
71
72
|
* Gets a point at a specific angle on the circumference of this circle.
|
|
72
73
|
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to get the point for.
|
|
@@ -74,20 +75,20 @@ export declare class Circle {
|
|
|
74
75
|
* @param {Point} out - The point to store the result in (optional).
|
|
75
76
|
* @returns {Point} A point at the specified angle on the circumference of this circle.
|
|
76
77
|
*/
|
|
77
|
-
circumferencePoint(angle:
|
|
78
|
+
circumferencePoint(angle: number, asDegrees?: boolean, out?: Point): Point;
|
|
78
79
|
/**
|
|
79
80
|
* Offsets the position of this circle by the specified amounts.
|
|
80
81
|
* @param {number} dx - The amount to offset the x coordinate by.
|
|
81
82
|
* @param {number} dy - The amount to offset the y coordinate by.
|
|
82
83
|
* @returns {Circle} This circle instance for chaining.
|
|
83
84
|
*/
|
|
84
|
-
offset(dx:
|
|
85
|
+
offset(dx: number, dy: number): this;
|
|
85
86
|
/**
|
|
86
87
|
* Offsets the position of this circle by the specified point coordinates.
|
|
87
88
|
* @param {Point} point - The point to offset the circle by.
|
|
88
89
|
* @returns {Circle} This circle instance for chaining.
|
|
89
90
|
*/
|
|
90
|
-
offsetPoint(point:
|
|
91
|
+
offsetPoint(point: Point): this;
|
|
91
92
|
/**
|
|
92
93
|
* Returns a string representation of this circle.
|
|
93
94
|
* @returns {string} A string representation of the circle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/circle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,qBAAa,MAAM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AEG;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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Point } from './point.js';
|
|
1
2
|
import { Rectangle } from './rectangle.js';
|
|
2
3
|
export declare class Ellipse {
|
|
3
4
|
x: number;
|
|
@@ -21,7 +22,7 @@ export declare class Ellipse {
|
|
|
21
22
|
* @param {number} height - The new height of the ellipse.
|
|
22
23
|
* @returns {Ellipse} This ellipse instance for chaining.
|
|
23
24
|
*/
|
|
24
|
-
setTo(x:
|
|
25
|
+
setTo(x: number, y: number, width: number, height: number): this;
|
|
25
26
|
/**
|
|
26
27
|
* Gets the bounding rectangle of this ellipse.
|
|
27
28
|
* @returns {Rectangle} The bounding rectangle of this ellipse.
|
|
@@ -32,26 +33,26 @@ export declare class Ellipse {
|
|
|
32
33
|
* @param {Ellipse} source - The ellipse to copy values from.
|
|
33
34
|
* @returns {Ellipse} This ellipse instance for chaining.
|
|
34
35
|
*/
|
|
35
|
-
copyFrom(source:
|
|
36
|
+
copyFrom(source: Ellipse): this;
|
|
36
37
|
/**
|
|
37
38
|
* Copies the values of this ellipse to another ellipse.
|
|
38
39
|
* @param {Ellipse} dest - The ellipse to copy values to.
|
|
39
40
|
* @returns {Ellipse} The destination ellipse.
|
|
40
41
|
*/
|
|
41
|
-
copyTo(dest:
|
|
42
|
+
copyTo(dest: Ellipse): Ellipse;
|
|
42
43
|
/**
|
|
43
44
|
* Checks if the specified point is contained within this ellipse.
|
|
44
45
|
* @param {number} x - The x coordinate of the point to check.
|
|
45
46
|
* @param {number} y - The y coordinate of the point to check.
|
|
46
47
|
* @returns {boolean} True if the point is contained within this ellipse, false otherwise.
|
|
47
48
|
*/
|
|
48
|
-
contains(x:
|
|
49
|
+
contains(x: number, y: number): boolean;
|
|
49
50
|
/**
|
|
50
51
|
* Returns a random point within this ellipse.
|
|
51
52
|
* @param {Point} output - The point to store the result in (optional).
|
|
52
53
|
* @returns {Point} A random point within this ellipse.
|
|
53
54
|
*/
|
|
54
|
-
random(output?:
|
|
55
|
+
random(output?: Point): Point;
|
|
55
56
|
/**
|
|
56
57
|
* Returns a string representation of this ellipse.
|
|
57
58
|
* @returns {string} A string representation of the ellipse.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/ellipse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/ellipse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,qBAAa,OAAO;IAClB,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,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,KAAK,GAAE,MAAU,EAAE,MAAM,GAAE,MAAU;IAa/E;;;;;;;OAOG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAQzD;;;OAGG;IACH,SAAS;IAIT;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO;IAIxB;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,OAAO;IAQpB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAI7B;;;;OAIG;IACH,MAAM,CAAC,MAAM,GAAE,KAAY;IAW3B;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -19,7 +19,7 @@ export declare class Line {
|
|
|
19
19
|
* @param {number} y2 - The new y coordinate of the end point.
|
|
20
20
|
* @returns {Line} This line instance for chaining.
|
|
21
21
|
*/
|
|
22
|
-
setTo(x1:
|
|
22
|
+
setTo(x1: number, y1: number, x2: number, y2: number): this;
|
|
23
23
|
/**
|
|
24
24
|
* Sets the coordinates of this line to match the positions of two sprites.
|
|
25
25
|
* @param {object} startSprite - The starting sprite to get the position from.
|
|
@@ -36,14 +36,14 @@ export declare class Line {
|
|
|
36
36
|
* @param {number} length - The length of the line.
|
|
37
37
|
* @returns {Line} This line instance for chaining.
|
|
38
38
|
*/
|
|
39
|
-
fromAngle(x:
|
|
39
|
+
fromAngle(x: number, y: number, angle: number, length: number): this;
|
|
40
40
|
/**
|
|
41
41
|
* Rotates this line around its center point by the specified angle.
|
|
42
42
|
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to rotate by.
|
|
43
43
|
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
44
44
|
* @returns {Line} This line instance for chaining.
|
|
45
45
|
*/
|
|
46
|
-
rotate(angle:
|
|
46
|
+
rotate(angle: number, asDegrees?: boolean): this;
|
|
47
47
|
/**
|
|
48
48
|
* Rotates this line around a specific point by the specified angle.
|
|
49
49
|
* @param {number} x - The x coordinate of the center point to rotate around.
|
|
@@ -52,7 +52,7 @@ export declare class Line {
|
|
|
52
52
|
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
53
53
|
* @returns {Line} This line instance for chaining.
|
|
54
54
|
*/
|
|
55
|
-
rotateAround(x:
|
|
55
|
+
rotateAround(x: number, y: number, angle: number, asDegrees?: boolean): this;
|
|
56
56
|
/**
|
|
57
57
|
* Checks if this line intersects with another line.
|
|
58
58
|
* @param {Line} line - The other line to check for intersection with.
|
|
@@ -60,57 +60,57 @@ export declare class Line {
|
|
|
60
60
|
* @param {Point} result - The point to store the intersection in (optional).
|
|
61
61
|
* @returns {Point} The intersection point, or null if no intersection occurs.
|
|
62
62
|
*/
|
|
63
|
-
intersects(line:
|
|
63
|
+
intersects(line: Line, asSegment: boolean, result: Point): Point;
|
|
64
64
|
/**
|
|
65
65
|
* Calculates the reflection of this line off another line.
|
|
66
66
|
* @param {Line} line - The line to reflect off.
|
|
67
67
|
* @returns {number} The angle of reflection in radians.
|
|
68
68
|
*/
|
|
69
|
-
reflect(line:
|
|
69
|
+
reflect(line: Line): number;
|
|
70
70
|
/**
|
|
71
71
|
* Returns the midpoint of this line.
|
|
72
72
|
* @param {Point} output - The point to store the result in (optional).
|
|
73
73
|
* @returns {Point} The midpoint of this line.
|
|
74
74
|
*/
|
|
75
|
-
midPoint(output?:
|
|
75
|
+
midPoint(output?: Point): Point;
|
|
76
76
|
/**
|
|
77
77
|
* Centers this line on the specified point.
|
|
78
78
|
* @param {number} x - The x coordinate to center the line on.
|
|
79
79
|
* @param {number} y - The y coordinate to center the line on.
|
|
80
80
|
*/
|
|
81
|
-
centerOn(x:
|
|
81
|
+
centerOn(x: number, y: number): void;
|
|
82
82
|
/**
|
|
83
83
|
* Checks if the specified point lies on this line (not necessarily on the segment).
|
|
84
84
|
* @param {number} x - The x coordinate of the point to check.
|
|
85
85
|
* @param {number} y - The y coordinate of the point to check.
|
|
86
86
|
* @returns {boolean} True if the point lies on this line, false otherwise.
|
|
87
87
|
*/
|
|
88
|
-
pointOnLine(x:
|
|
88
|
+
pointOnLine(x: number, y: number): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* Checks if the specified point lies on this line segment.
|
|
91
91
|
* @param {number} x - The x coordinate of the point to check.
|
|
92
92
|
* @param {number} y - The y coordinate of the point to check.
|
|
93
93
|
* @returns {boolean} True if the point lies on this line segment, false otherwise.
|
|
94
94
|
*/
|
|
95
|
-
pointOnSegment(x:
|
|
95
|
+
pointOnSegment(x: number, y: number): boolean;
|
|
96
96
|
/**
|
|
97
97
|
* Returns a random point on this line.
|
|
98
98
|
* @param {Point} output - The point to store the result in (optional).
|
|
99
99
|
* @returns {Point} A random point on this line.
|
|
100
100
|
*/
|
|
101
|
-
random(output?:
|
|
101
|
+
random(output?: Point): Point;
|
|
102
102
|
/**
|
|
103
103
|
* Gets coordinates of points along this line at regular intervals.
|
|
104
104
|
* @param {number} stepRate - The interval between points (default: 1).
|
|
105
105
|
* @param {number[][]} results - The array to store the results in (optional).
|
|
106
106
|
* @returns {number[][]} An array of coordinate pairs representing points along this line.
|
|
107
107
|
*/
|
|
108
|
-
coordinatesOnLine(stepRate?: number, results?:
|
|
108
|
+
coordinatesOnLine(stepRate?: number, results?: number[][]): number[][];
|
|
109
109
|
/**
|
|
110
110
|
* Creates a clone of this line.
|
|
111
111
|
* @returns {Line} A new line with the same values as this one.
|
|
112
112
|
*/
|
|
113
|
-
clone():
|
|
113
|
+
clone(): Line;
|
|
114
114
|
/**
|
|
115
115
|
* Gets the length of this line.
|
|
116
116
|
* @returns {number} The length of this line.
|
|
@@ -185,6 +185,6 @@ export declare class Line {
|
|
|
185
185
|
* Gets the angle of the normal vector of this line in radians.
|
|
186
186
|
* @returns {number} The angle of the normal vector of this line in radians.
|
|
187
187
|
*/
|
|
188
|
-
get normalAngle():
|
|
188
|
+
get normalAngle(): number;
|
|
189
189
|
}
|
|
190
190
|
//# sourceMappingURL=line.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,M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;;OAIG;IACH,QAAQ,CAAC,MAAM,GAAE,KAAY;IAO7B;;;;OAIG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAS7B;;;;;OAKG;IACH,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAIhC;;;;;OAKG;IACH,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAQnC;;;;OAIG;IACH,MAAM,CAAC,MAAM,GAAE,KAAY;IAQ3B;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,GAAE,MAAU,EAAE,OAAO,GAAE,MAAM,EAAE,EAAO;IA8BhE;;;OAGG;IACH,KAAK;IAIL;;;OAGG;IACH,IAAI,MAAM,WAKT;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,SAAS,WAEZ;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,IAAI,WAEP;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,GAAG,WAEN;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,OAAO,WAEV;IAED;;;OAGG;IACH,IAAI,WAAW,WAEd;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Point } from './point.js';
|
|
1
2
|
export declare class Matrix {
|
|
2
3
|
a: number;
|
|
3
4
|
b: number;
|
|
@@ -21,7 +22,7 @@ export declare class Matrix {
|
|
|
21
22
|
* @param {number[]} array - The array to read the matrix components from (should have 6 elements).
|
|
22
23
|
* @returns {Matrix} This matrix instance for chaining.
|
|
23
24
|
*/
|
|
24
|
-
fromArray(array:
|
|
25
|
+
fromArray(array: number[]): this;
|
|
25
26
|
/**
|
|
26
27
|
* Sets the matrix components to new values.
|
|
27
28
|
* @param {number} a - The new a component of the matrix.
|
|
@@ -32,71 +33,71 @@ export declare class Matrix {
|
|
|
32
33
|
* @param {number} ty - The new ty component of the matrix.
|
|
33
34
|
* @returns {Matrix} This matrix instance for chaining.
|
|
34
35
|
*/
|
|
35
|
-
setTo(a:
|
|
36
|
+
setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): this;
|
|
36
37
|
/**
|
|
37
38
|
* Creates a clone of this matrix.
|
|
38
39
|
* @returns {Matrix} A new matrix with the same values as this one.
|
|
39
40
|
*/
|
|
40
|
-
clone():
|
|
41
|
+
clone(): Matrix;
|
|
41
42
|
/**
|
|
42
43
|
* Copies the values of this matrix to another matrix.
|
|
43
44
|
* @param {Matrix} matrix - The matrix to copy values to.
|
|
44
45
|
* @returns {Matrix} The destination matrix.
|
|
45
46
|
*/
|
|
46
|
-
copyTo(matrix:
|
|
47
|
+
copyTo(matrix: Matrix): Matrix;
|
|
47
48
|
/**
|
|
48
49
|
* Copies the values from another matrix to this matrix.
|
|
49
50
|
* @param {Matrix} matrix - The matrix to copy values from.
|
|
50
51
|
* @returns {Matrix} This matrix instance for chaining.
|
|
51
52
|
*/
|
|
52
|
-
copyFrom(matrix:
|
|
53
|
+
copyFrom(matrix: Matrix): this;
|
|
53
54
|
/**
|
|
54
55
|
* Converts this matrix to a Float32Array.
|
|
55
56
|
* @param {boolean} transpose - Whether to transpose the matrix (default: false).
|
|
56
57
|
* @param {Float32Array} output - The array to store the result in (optional).
|
|
57
58
|
* @returns {Float32Array} A Float32Array containing the matrix elements.
|
|
58
59
|
*/
|
|
59
|
-
toArray(transpose?: boolean, output?:
|
|
60
|
+
toArray(transpose?: boolean, output?: Float32Array): Float32Array<ArrayBufferLike>;
|
|
60
61
|
/**
|
|
61
62
|
* Applies this matrix to a point.
|
|
62
63
|
* @param {Point} pos - The point to apply the matrix to.
|
|
63
64
|
* @param {Point} output - The point to store the result in (optional).
|
|
64
65
|
* @returns {Point} The transformed point.
|
|
65
66
|
*/
|
|
66
|
-
apply(pos:
|
|
67
|
+
apply(pos: Point, output?: Point): Point;
|
|
67
68
|
/**
|
|
68
69
|
* Applies the inverse of this matrix to a point.
|
|
69
70
|
* @param {Point} pos - The point to apply the inverse matrix to.
|
|
70
71
|
* @param {Point} output - The point to store the result in (optional).
|
|
71
72
|
* @returns {Point} The transformed point.
|
|
72
73
|
*/
|
|
73
|
-
applyInverse(pos:
|
|
74
|
+
applyInverse(pos: Point, output?: Point): Point;
|
|
74
75
|
/**
|
|
75
76
|
* Translates this matrix by the specified amounts.
|
|
76
77
|
* @param {number} x - The amount to translate in the x direction.
|
|
77
78
|
* @param {number} y - The amount to translate in the y direction.
|
|
78
79
|
* @returns {Matrix} This matrix instance for chaining.
|
|
79
80
|
*/
|
|
80
|
-
translate(x:
|
|
81
|
+
translate(x: number, y: number): this;
|
|
81
82
|
/**
|
|
82
83
|
* Scales this matrix by the specified amounts.
|
|
83
84
|
* @param {number} x - The amount to scale in the x direction.
|
|
84
85
|
* @param {number} y - The amount to scale in the y direction.
|
|
85
86
|
* @returns {Matrix} This matrix instance for chaining.
|
|
86
87
|
*/
|
|
87
|
-
scale(x:
|
|
88
|
+
scale(x: number, y: number): this;
|
|
88
89
|
/**
|
|
89
90
|
* Rotates this matrix by the specified angle.
|
|
90
91
|
* @param {number} angle - The angle in radians to rotate by.
|
|
91
92
|
* @returns {Matrix} This matrix instance for chaining.
|
|
92
93
|
*/
|
|
93
|
-
rotate(angle:
|
|
94
|
+
rotate(angle: number): this;
|
|
94
95
|
/**
|
|
95
96
|
* Appends another matrix to this matrix (multiplying matrices).
|
|
96
97
|
* @param {Matrix} matrix - The matrix to append.
|
|
97
98
|
* @returns {Matrix} This matrix instance for chaining.
|
|
98
99
|
*/
|
|
99
|
-
append(matrix:
|
|
100
|
+
append(matrix: Matrix): this;
|
|
100
101
|
/**
|
|
101
102
|
* Sets this matrix to an identity matrix (no transformation).
|
|
102
103
|
* @returns {Matrix} This matrix instance for chaining.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/matrix.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC,qBAAa,MAAM;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,EAAE,GAAE,MAAU,EAAE,EAAE,GAAE,MAAU;IAiBtG;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE;IAIzB;;;;;;;;;OASG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAUxE;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM;IAKrB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM;IAUvB;;;;;OAKG;IACH,OAAO,CAAC,SAAS,GAAE,OAAe,EAAE,MAAM,GAAE,YAAmB;IA0B/D;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,GAAE,KAAY;IAOtC;;;;;OAKG;IACH,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,GAAE,KAAY;IAU7C;;;;;OAKG;IACH,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAM9B;;;;;OAKG;IACH,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAU1B;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IAepB;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM;IAcrB;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -13,7 +13,7 @@ export declare class Point {
|
|
|
13
13
|
* @param {Point} source - The point to copy coordinates from.
|
|
14
14
|
* @returns {Point} This point instance for chaining.
|
|
15
15
|
*/
|
|
16
|
-
copyFrom(source:
|
|
16
|
+
copyFrom(source: Point): this;
|
|
17
17
|
/**
|
|
18
18
|
* Returns a new point with the x and y coordinates swapped.
|
|
19
19
|
* @returns {Point} A new point instance with swapped coordinates.
|
|
@@ -25,7 +25,7 @@ export declare class Point {
|
|
|
25
25
|
* @param {number} y - The new y coordinate for the point.
|
|
26
26
|
* @returns {Point} This point instance for chaining.
|
|
27
27
|
*/
|
|
28
|
-
setTo(x:
|
|
28
|
+
setTo(x: number, y?: number): this;
|
|
29
29
|
/**
|
|
30
30
|
* Sets the coordinates of this point to new values.
|
|
31
31
|
* @param {number} x - The new x coordinate for the point.
|
|
@@ -33,86 +33,86 @@ export declare class Point {
|
|
|
33
33
|
* @returns {Point} This point instance for chaining.
|
|
34
34
|
* @deprecated Use setTo instead.
|
|
35
35
|
*/
|
|
36
|
-
set(x:
|
|
36
|
+
set(x: number, y: number): this;
|
|
37
37
|
/**
|
|
38
38
|
* Adds the given x and y values to the point's coordinates.
|
|
39
39
|
* @param {number} x - The amount to add to the x coordinate.
|
|
40
40
|
* @param {number} y - The amount to add to the y coordinate.
|
|
41
41
|
* @returns {Point} This point instance for chaining.
|
|
42
42
|
*/
|
|
43
|
-
add(x:
|
|
43
|
+
add(x: number, y: number): this;
|
|
44
44
|
/**
|
|
45
45
|
* Subtracts the given x and y values from the point's coordinates.
|
|
46
46
|
* @param {number} x - The amount to subtract from the x coordinate.
|
|
47
47
|
* @param {number} y - The amount to subtract from the y coordinate.
|
|
48
48
|
* @returns {Point} This point instance for chaining.
|
|
49
49
|
*/
|
|
50
|
-
subtract(x:
|
|
50
|
+
subtract(x: number, y: number): this;
|
|
51
51
|
/**
|
|
52
52
|
* Multiplies the point's coordinates by the given x and y values.
|
|
53
53
|
* @param {number} x - The amount to multiply the x coordinate by.
|
|
54
54
|
* @param {number} y - The amount to multiply the y coordinate by.
|
|
55
55
|
* @returns {Point} This point instance for chaining.
|
|
56
56
|
*/
|
|
57
|
-
multiply(x:
|
|
57
|
+
multiply(x: number, y: number): this;
|
|
58
58
|
/**
|
|
59
59
|
* Divides the point's coordinates by the given x and y values.
|
|
60
60
|
* @param {number} x - The amount to divide the x coordinate by.
|
|
61
61
|
* @param {number} y - The amount to divide the y coordinate by.
|
|
62
62
|
* @returns {Point} This point instance for chaining.
|
|
63
63
|
*/
|
|
64
|
-
divide(x:
|
|
64
|
+
divide(x: number, y: number): this;
|
|
65
65
|
/**
|
|
66
66
|
* Constrains the x coordinate of this point to the given range.
|
|
67
67
|
* @param {number} min - The minimum value for the x coordinate.
|
|
68
68
|
* @param {number} max - The maximum value for the x coordinate.
|
|
69
69
|
* @returns {Point} This point instance for chaining.
|
|
70
70
|
*/
|
|
71
|
-
clampX(min:
|
|
71
|
+
clampX(min: number, max: number): this;
|
|
72
72
|
/**
|
|
73
73
|
* Constrains the y coordinate of this point to the given range.
|
|
74
74
|
* @param {number} min - The minimum value for the y coordinate.
|
|
75
75
|
* @param {number} max - The maximum value for the y coordinate.
|
|
76
76
|
* @returns {Point} This point instance for chaining.
|
|
77
77
|
*/
|
|
78
|
-
clampY(min:
|
|
78
|
+
clampY(min: number, max: number): this;
|
|
79
79
|
/**
|
|
80
80
|
* Constrains both coordinates of this point to the given range.
|
|
81
81
|
* @param {number} min - The minimum value for both coordinates.
|
|
82
82
|
* @param {number} max - The maximum value for both coordinates.
|
|
83
83
|
* @returns {Point} This point instance for chaining.
|
|
84
84
|
*/
|
|
85
|
-
clamp(min:
|
|
85
|
+
clamp(min: number, max: number): this;
|
|
86
86
|
/**
|
|
87
87
|
* Creates a clone of this point.
|
|
88
88
|
* @returns {Point} A new point with the same coordinates as this one.
|
|
89
89
|
*/
|
|
90
|
-
clone():
|
|
90
|
+
clone(): Point;
|
|
91
91
|
/**
|
|
92
92
|
* Copies the coordinates of this point to another point.
|
|
93
93
|
* @param {Point} dest - The point to copy coordinates to.
|
|
94
94
|
* @returns {Point} The destination point.
|
|
95
95
|
*/
|
|
96
|
-
copyTo(dest:
|
|
96
|
+
copyTo(dest: Point): Point;
|
|
97
97
|
/**
|
|
98
98
|
* Calculates the distance between this point and another point.
|
|
99
99
|
* @param {Point} b - The other point to calculate the distance to.
|
|
100
100
|
* @returns {number} The distance between the two points.
|
|
101
101
|
*/
|
|
102
|
-
distance(b:
|
|
102
|
+
distance(b: Point): number;
|
|
103
103
|
/**
|
|
104
104
|
* Checks if this point is equal to another point.
|
|
105
105
|
* @param {Point} a - The other point to compare with.
|
|
106
106
|
* @returns {boolean} True if the points have the same coordinates, false otherwise.
|
|
107
107
|
*/
|
|
108
|
-
equals(a:
|
|
108
|
+
equals(a: Point): boolean;
|
|
109
109
|
/**
|
|
110
110
|
* Calculates the angle between this point and another point.
|
|
111
111
|
* @param {Point} a - The other point to calculate the angle to.
|
|
112
112
|
* @param {boolean} asDegrees - Whether to return the result in degrees (default: false).
|
|
113
113
|
* @returns {number} The angle between the two points in radians or degrees.
|
|
114
114
|
*/
|
|
115
|
-
angle(a:
|
|
115
|
+
angle(a: Point, asDegrees?: boolean): number;
|
|
116
116
|
/**
|
|
117
117
|
* Rotates this point around another point by a given angle.
|
|
118
118
|
* @param {number} x - The x coordinate of the center point to rotate around.
|
|
@@ -122,7 +122,7 @@ export declare class Point {
|
|
|
122
122
|
* @param {number | null | undefined} dist - The distance to rotate from (default: null).
|
|
123
123
|
* @returns {Point} This point instance for chaining.
|
|
124
124
|
*/
|
|
125
|
-
rotate(x:
|
|
125
|
+
rotate(x: number, y: number, angle: number, asDegrees: boolean, dist?: number | null | undefined): Point;
|
|
126
126
|
/**
|
|
127
127
|
* Calculates the magnitude (length) of this point from the origin.
|
|
128
128
|
* @returns {number} The magnitude of the point.
|
|
@@ -138,7 +138,7 @@ export declare class Point {
|
|
|
138
138
|
* @param {number} magnitude - The new magnitude for the point.
|
|
139
139
|
* @returns {Point} This point instance for chaining.
|
|
140
140
|
*/
|
|
141
|
-
setMagnitude(magnitude:
|
|
141
|
+
setMagnitude(magnitude: number): this;
|
|
142
142
|
/**
|
|
143
143
|
* Normalizes this point to have a magnitude of 1 while preserving its direction.
|
|
144
144
|
* @returns {Point} This point instance for chaining.
|
|
@@ -154,13 +154,13 @@ export declare class Point {
|
|
|
154
154
|
* @param {Point} a - The other point to calculate the dot product with.
|
|
155
155
|
* @returns {number} The dot product of the two points.
|
|
156
156
|
*/
|
|
157
|
-
dot(a:
|
|
157
|
+
dot(a: Point): number;
|
|
158
158
|
/**
|
|
159
159
|
* Calculates the cross product of this point and another point.
|
|
160
160
|
* @param {Point} a - The other point to calculate the cross product with.
|
|
161
161
|
* @returns {number} The cross product of the two points.
|
|
162
162
|
*/
|
|
163
|
-
cross(a:
|
|
163
|
+
cross(a: Point): number;
|
|
164
164
|
/**
|
|
165
165
|
* Returns a perpendicular point (rotated 90 degrees counter-clockwise).
|
|
166
166
|
* @returns {Point} A new point that is perpendicular to this one.
|
|
@@ -1 +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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