@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
|
@@ -8,7 +8,7 @@ export declare class TweenManager {
|
|
|
8
8
|
* Creates a new TweenManager instance.
|
|
9
9
|
* @param {import('./game.js').Game} game - The game instance this manager belongs to.
|
|
10
10
|
*/
|
|
11
|
-
constructor(game:
|
|
11
|
+
constructor(game: import('./game.js').Game);
|
|
12
12
|
/**
|
|
13
13
|
* Get all tweens managed by this manager.
|
|
14
14
|
* @returns {Tween[]} An array of all active tweens.
|
|
@@ -24,12 +24,12 @@ export declare class TweenManager {
|
|
|
24
24
|
* @param {object} obj - The object to remove tweens from.
|
|
25
25
|
* @param {object[]} children - Optional array of child objects to remove tweens from.
|
|
26
26
|
*/
|
|
27
|
-
removeFrom(obj: any, children?: any): void;
|
|
27
|
+
removeFrom(obj: any, children?: any[]): void;
|
|
28
28
|
/**
|
|
29
29
|
* Add a tween to the manager.
|
|
30
30
|
* @param {Tween} tween - The tween to add.
|
|
31
31
|
*/
|
|
32
|
-
add(tween:
|
|
32
|
+
add(tween: Tween): void;
|
|
33
33
|
/**
|
|
34
34
|
* Create a new tween for an object.
|
|
35
35
|
* @param {object} object - The object to create a tween for.
|
|
@@ -40,7 +40,7 @@ export declare class TweenManager {
|
|
|
40
40
|
* Remove a tween from the manager.
|
|
41
41
|
* @param {Tween | null | undefined} tween - The tween to remove.
|
|
42
42
|
*/
|
|
43
|
-
remove(tween:
|
|
43
|
+
remove(tween: Tween | null | undefined): void;
|
|
44
44
|
/**
|
|
45
45
|
* Update all tweens managed by this manager.
|
|
46
46
|
* @returns {boolean} True if any tweens were updated, false otherwise.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tween_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tween_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween_manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAmCnC,qBAAa,YAAY;IACzB,IAAI,EAAG,GAAG,CAAC;IACX,OAAO,EAAG,GAAG,CAAC;IACd,IAAI,EAAG,GAAG,CAAC;IACX,OAAO,EAAG,GAAG,CAAC;IACZ;;;OAGG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI;IAuD1C;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,SAAS;IAOT;;;;OAIG;IACH,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,GAAE,GAAG,EAAS;IAyB3C;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK;IAKhB;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAIlB;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS;IAYtC;;;OAGG;IACH,MAAM;IAuBN;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,GAAG;IAItB;;;OAGG;IACH,SAAS;IAMT;;;OAGG;IACH,UAAU;IAMV;;;OAGG;IACH,QAAQ;IAMR;;;OAGG;IACH,SAAS;CAKV"}
|
|
@@ -4,7 +4,7 @@ export declare class World extends Group {
|
|
|
4
4
|
* Creates a new World instance.
|
|
5
5
|
* @param {import('./game.js').Game} game - The game instance this world belongs to.
|
|
6
6
|
*/
|
|
7
|
-
constructor(game:
|
|
7
|
+
constructor(game: import('./game.js').Game);
|
|
8
8
|
/**
|
|
9
9
|
* Initialize the world.
|
|
10
10
|
* This method is called when the game boots and sets up the world.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/world.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/world.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,qBAAa,KAAM,SAAQ,KAAK;IAC9B;;;OAGG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI;IAI1C;;;OAGG;IACH,IAAI;CAGL"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DisplayObject } from './display_object.js';
|
|
2
2
|
export declare class BitmapText extends DisplayObject {
|
|
3
3
|
type: any;
|
|
4
|
+
pendingDestroy: any;
|
|
5
|
+
renderOrderID: any;
|
|
4
6
|
textWidth: any;
|
|
5
7
|
textHeight: any;
|
|
6
8
|
_prevAnchor: any;
|
|
@@ -23,7 +25,7 @@ export declare class BitmapText extends DisplayObject {
|
|
|
23
25
|
* @param {number} size - The font size.
|
|
24
26
|
* @param {string} align - The text alignment (left, center, right).
|
|
25
27
|
*/
|
|
26
|
-
constructor(game:
|
|
28
|
+
constructor(game: import('../core/game.js').Game, x?: number, y?: number, font?: string, text?: string, size?: number, align?: string);
|
|
27
29
|
/**
|
|
28
30
|
* Destroys this bitmap text and cleans up resources.
|
|
29
31
|
*/
|
|
@@ -36,7 +38,7 @@ export declare class BitmapText extends DisplayObject {
|
|
|
36
38
|
* Sets the text to display.
|
|
37
39
|
* @param {string} text - The new text to display.
|
|
38
40
|
*/
|
|
39
|
-
setText(text:
|
|
41
|
+
setText(text: string): void;
|
|
40
42
|
/**
|
|
41
43
|
* Scans a line of text to calculate its width and other properties.
|
|
42
44
|
* @param {object} data - The font data for this bitmap text.
|
|
@@ -44,9 +46,9 @@ export declare class BitmapText extends DisplayObject {
|
|
|
44
46
|
* @param {string} text - The text to scan.
|
|
45
47
|
* @returns {{width: number, text: string, end: boolean, chars: number[]}} An object containing the width, processed text, end status, and character positions.
|
|
46
48
|
*/
|
|
47
|
-
scanLine(data: any, scale:
|
|
49
|
+
scanLine(data: any, scale: number, text: string): {
|
|
48
50
|
width: number;
|
|
49
|
-
text:
|
|
51
|
+
text: string;
|
|
50
52
|
end: boolean;
|
|
51
53
|
chars: any[];
|
|
52
54
|
};
|
|
@@ -56,7 +58,7 @@ export declare class BitmapText extends DisplayObject {
|
|
|
56
58
|
* @param {string} replace - The character to use for replacement of invalid characters (default: '').
|
|
57
59
|
* @returns {string} The cleaned text.
|
|
58
60
|
*/
|
|
59
|
-
cleanText(text:
|
|
61
|
+
cleanText(text: string, replace?: string): string;
|
|
60
62
|
/**
|
|
61
63
|
* Updates the internal text rendering based on current properties and content.
|
|
62
64
|
*/
|
|
@@ -69,59 +71,59 @@ export declare class BitmapText extends DisplayObject {
|
|
|
69
71
|
/**
|
|
70
72
|
* Updates the transform of this bitmap text, updating its text if needed.
|
|
71
73
|
*/
|
|
72
|
-
updateTransform():
|
|
74
|
+
updateTransform(): this;
|
|
73
75
|
/**
|
|
74
76
|
* Adds a color to a specific position in the text.
|
|
75
77
|
* @param {string} value - The color to apply (in hex format or CSS color name).
|
|
76
78
|
* @param {number} position - The character position to apply the color to.
|
|
77
79
|
* @returns {BitmapText} This bitmap text instance for chaining.
|
|
78
80
|
*/
|
|
79
|
-
addColor(value:
|
|
81
|
+
addColor(value: string, position: number): this;
|
|
80
82
|
/**
|
|
81
83
|
* Gets the text alignment property.
|
|
82
84
|
* @returns {string} The current text alignment (left, center, right).
|
|
83
85
|
*/
|
|
84
|
-
get align():
|
|
86
|
+
get align(): string;
|
|
85
87
|
/**
|
|
86
88
|
* Sets the text alignment property.
|
|
87
89
|
* @param {string} value - The new text alignment (left, center, right).
|
|
88
90
|
*/
|
|
89
|
-
set align(value:
|
|
91
|
+
set align(value: string);
|
|
90
92
|
/**
|
|
91
93
|
* Gets the tint color of this bitmap text.
|
|
92
94
|
* @returns {number} The current tint color in RGB format.
|
|
93
95
|
*/
|
|
94
|
-
get tint():
|
|
96
|
+
get tint(): number;
|
|
95
97
|
/**
|
|
96
98
|
* Sets the tint color of this bitmap text.
|
|
97
99
|
* @param {number} value - The new tint color in RGB format.
|
|
98
100
|
*/
|
|
99
|
-
set tint(value:
|
|
101
|
+
set tint(value: number);
|
|
100
102
|
/**
|
|
101
103
|
* Gets the fill color of this bitmap text as a hex string.
|
|
102
104
|
* @returns {string} The current fill color in hex format.
|
|
103
105
|
*/
|
|
104
|
-
get fill():
|
|
106
|
+
get fill(): string;
|
|
105
107
|
/**
|
|
106
108
|
* Sets the fill color of this bitmap text.
|
|
107
109
|
* @param {string} value - The new fill color in hex format or CSS color name.
|
|
108
110
|
*/
|
|
109
|
-
set fill(value:
|
|
111
|
+
set fill(value: string);
|
|
110
112
|
/**
|
|
111
113
|
* Gets the font key used by this bitmap text.
|
|
112
114
|
* @returns {string} The current font key.
|
|
113
115
|
*/
|
|
114
|
-
get font():
|
|
116
|
+
get font(): string;
|
|
115
117
|
/**
|
|
116
118
|
* Sets the font key used by this bitmap text.
|
|
117
119
|
* @param {string} value - The new font key to use.
|
|
118
120
|
*/
|
|
119
|
-
set font(value:
|
|
121
|
+
set font(value: string);
|
|
120
122
|
/**
|
|
121
123
|
* Gets the font size of this bitmap text.
|
|
122
124
|
* @returns {number} The current font size.
|
|
123
125
|
*/
|
|
124
|
-
get fontSize():
|
|
126
|
+
get fontSize(): number;
|
|
125
127
|
/**
|
|
126
128
|
* Sets the font size of this bitmap text.
|
|
127
129
|
* @param {number} value - The new font size to use.
|
|
@@ -131,22 +133,22 @@ export declare class BitmapText extends DisplayObject {
|
|
|
131
133
|
* Gets the text content of this bitmap text.
|
|
132
134
|
* @returns {string} The current text content.
|
|
133
135
|
*/
|
|
134
|
-
get text():
|
|
136
|
+
get text(): string | number | boolean | Date;
|
|
135
137
|
/**
|
|
136
138
|
* Sets the text content of this bitmap text.
|
|
137
139
|
* @param {string | number | boolean | Date} value - The new text content to set.
|
|
138
140
|
*/
|
|
139
|
-
set text(value:
|
|
141
|
+
set text(value: string | number | boolean | Date);
|
|
140
142
|
/**
|
|
141
143
|
* Gets the maximum width of this bitmap text.
|
|
142
144
|
* @returns {number} The current maximum width.
|
|
143
145
|
*/
|
|
144
|
-
get maxWidth():
|
|
146
|
+
get maxWidth(): number;
|
|
145
147
|
/**
|
|
146
148
|
* Sets the maximum width of this bitmap text.
|
|
147
149
|
* @param {number} value - The new maximum width to set.
|
|
148
150
|
*/
|
|
149
|
-
set maxWidth(value:
|
|
151
|
+
set maxWidth(value: number);
|
|
150
152
|
/**
|
|
151
153
|
* Gets whether smoothing is enabled for this bitmap text's font.
|
|
152
154
|
* @returns {boolean} True if smoothing is enabled, false otherwise.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitmap_text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/bitmap_text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bitmap_text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/bitmap_text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,qBAAa,UAAW,SAAQ,aAAa;IACnC,IAAI,EAAE,GAAG,CAAC;IAClB,cAAc,EAAG,GAAG,CAAC;IACb,aAAa,EAAE,GAAG,CAAC;IAC3B,SAAS,EAAG,GAAG,CAAC;IAChB,UAAU,EAAG,GAAG,CAAC;IACjB,WAAW,EAAG,GAAG,CAAC;IAClB,OAAO,EAAG,GAAG,CAAC;IACd,SAAS,EAAG,GAAG,CAAC;IAChB,KAAK,EAAG,GAAG,CAAC;IACZ,KAAK,EAAG,GAAG,CAAC;IACZ,KAAK,EAAG,GAAG,CAAC;IACZ,SAAS,EAAG,GAAG,CAAC;IAChB,MAAM,EAAG,GAAG,CAAC;IACb,KAAK,EAAG,GAAG,CAAC;IACZ,KAAK,EAAG,GAAG,CAAC;IACZ;;;;;;;;;OASG;gBAED,IAAI,EAAE,OAAO,iBAAiB,EAAE,IAAI,EACpC,CAAC,GAAE,MAAU,EACb,CAAC,GAAE,MAAU,EACb,IAAI,GAAE,MAAW,EACjB,IAAI,GAAE,MAAW,EACjB,IAAI,GAAE,MAAW,EACjB,KAAK,GAAE,MAAe;IA+BxB;;OAEG;IACH,OAAO;IAQP;;OAEG;IACH,SAAS;IAmBT;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM;IAIpB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;;IA6D/C;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW;IAsB5C;;OAEG;IACH,UAAU;IAoEV;;;OAGG;IACH,WAAW;IAiBX;;OAEG;IACH,eAAe,IAAI,IAAI;IAUvB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IASxC;;;OAGG;IACH,IAAI,KAAK,IAQQ,MAAM,CANtB;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAKtB;IAED;;;OAGG;IACH,IAAI,IAAI,IAQQ,MAAM,CANrB;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAKrB;IAED;;;OAGG;IACH,IAAI,IAAI,IAeQ,MAAM,CANrB;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;IAED;;;OAGG;IACH,IAAI,IAAI,IAQQ,MAAM,CANrB;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAOrB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,GAAG,EAMtB;IAED;;;OAGG;IACH,IAAI,IAAI,IAQQ,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAN/C;IAED;;;OAGG;IACH,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAM/C;IAED;;;OAGG;IACH,IAAI,QAAQ,IAQQ,MAAM,CANzB;IAED;;;OAGG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAKzB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAQQ,OAAO,CAN1B;IAED;;;OAGG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAM1B;CACF"}
|
|
@@ -1,33 +1,21 @@
|
|
|
1
|
+
import { InputHandler } from '../core/input_handler.js';
|
|
2
|
+
import { Signal } from '../core/signal.js';
|
|
1
3
|
import { Image } from './image.js';
|
|
2
4
|
export declare class Button extends Image {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/** @type {Signal} */
|
|
16
|
-
onInputOut: any;
|
|
17
|
-
/** @type {Signal} */
|
|
18
|
-
onInputDown: any;
|
|
19
|
-
/** @type {Signal} */
|
|
20
|
-
onInputUp: any;
|
|
21
|
-
/** @type {boolean} */
|
|
22
|
-
onOverMouseOnly: any;
|
|
23
|
-
/** @type {number} */
|
|
24
|
-
justReleasedPreventsOver: any;
|
|
25
|
-
/** @type {boolean} */
|
|
26
|
-
freezeFrames: any;
|
|
27
|
-
/** @type {boolean} */
|
|
5
|
+
_onOverFrame: string | null;
|
|
6
|
+
_onOutFrame: string | null;
|
|
7
|
+
_onDownFrame: string | null;
|
|
8
|
+
_onUpFrame: string | null;
|
|
9
|
+
_onDisabledFrame: string | null;
|
|
10
|
+
onInputOver: Signal;
|
|
11
|
+
onInputOut: Signal;
|
|
12
|
+
onInputDown: Signal;
|
|
13
|
+
onInputUp: Signal;
|
|
14
|
+
onOverMouseOnly: boolean;
|
|
15
|
+
justReleasedPreventsOver: number;
|
|
16
|
+
freezeFrames: boolean;
|
|
28
17
|
forceOut: any;
|
|
29
|
-
|
|
30
|
-
input: any;
|
|
18
|
+
input: InputHandler;
|
|
31
19
|
/**
|
|
32
20
|
* Creates a new Button instance.
|
|
33
21
|
* @param {import('../core/game.js').Game} game - The game instance this button belongs to.
|
|
@@ -42,7 +30,7 @@ export declare class Button extends Image {
|
|
|
42
30
|
* @param {string} upFrame - The frame identifier to use when the button is released.
|
|
43
31
|
* @param {string} disabledFrame - The frame identifier to use when the button is disabled.
|
|
44
32
|
*/
|
|
45
|
-
constructor(game:
|
|
33
|
+
constructor(game: import('../core/game.js').Game, x?: number, y?: number, key?: string, callback?: Function, callbackContext?: any, overFrame?: string, outFrame?: string, downFrame?: string, upFrame?: string, disabledFrame?: string);
|
|
46
34
|
/**
|
|
47
35
|
* Destroys this button and cleans up resources.
|
|
48
36
|
*/
|
|
@@ -52,7 +40,7 @@ export declare class Button extends Image {
|
|
|
52
40
|
* @param {boolean} isEnabled - Whether the button should be enabled (true) or disabled (false).
|
|
53
41
|
* @param {boolean} isImmediate - Whether to change the state immediately or with a delay (default: false).
|
|
54
42
|
*/
|
|
55
|
-
setEnabled(isEnabled:
|
|
43
|
+
setEnabled(isEnabled: boolean, isImmediate?: boolean): void;
|
|
56
44
|
/**
|
|
57
45
|
* Clears all the frame settings for this button.
|
|
58
46
|
*/
|
|
@@ -67,13 +55,13 @@ export declare class Button extends Image {
|
|
|
67
55
|
* @param {string} frame - The frame identifier to set for this state.
|
|
68
56
|
* @param {boolean} switchImmediately - Whether to switch to the new frame immediately (default: false).
|
|
69
57
|
*/
|
|
70
|
-
setStateFrame(state:
|
|
58
|
+
setStateFrame(state: string, frame: string, switchImmediately?: boolean): void;
|
|
71
59
|
/**
|
|
72
60
|
* Changes the frame of this button to match the specified state.
|
|
73
61
|
* @param {string} newState - The new state to change to (Over, Out, Down, Up, Disabled).
|
|
74
62
|
* @returns {boolean} True if the frame was changed, false otherwise.
|
|
75
63
|
*/
|
|
76
|
-
changeStateFrame(newState:
|
|
64
|
+
changeStateFrame(newState: string): boolean;
|
|
77
65
|
/**
|
|
78
66
|
* Sets the frame identifiers for all states of this button.
|
|
79
67
|
* @param {string} overFrame - The frame identifier to use when the mouse is over the button.
|
|
@@ -82,7 +70,7 @@ export declare class Button extends Image {
|
|
|
82
70
|
* @param {string} upFrame - The frame identifier to use when the button is released.
|
|
83
71
|
* @param {string} disabledFrame - The frame identifier to use when the button is disabled.
|
|
84
72
|
*/
|
|
85
|
-
setFrames(overFrame:
|
|
73
|
+
setFrames(overFrame: string, outFrame: string, downFrame: string, upFrame: string, disabledFrame?: string): void;
|
|
86
74
|
/**
|
|
87
75
|
* Handles the input over event for this button.
|
|
88
76
|
* @param {object} sprite - The sprite that triggered the event.
|
|
@@ -107,16 +95,16 @@ export declare class Button extends Image {
|
|
|
107
95
|
* @param {object} pointer - The pointer that triggered the event.
|
|
108
96
|
* @param {boolean} isOver - Whether the pointer is currently over the button (default: true).
|
|
109
97
|
*/
|
|
110
|
-
onInputUpHandler(sprite: any, pointer: any, isOver:
|
|
98
|
+
onInputUpHandler(sprite: any, pointer: any, isOver: boolean): void;
|
|
111
99
|
/**
|
|
112
100
|
* Gets whether input is currently enabled for this button.
|
|
113
101
|
* @returns {boolean} True if input is enabled, false otherwise.
|
|
114
102
|
*/
|
|
115
|
-
get inputEnabled():
|
|
103
|
+
get inputEnabled(): boolean;
|
|
116
104
|
/**
|
|
117
105
|
* Sets whether input is currently enabled for this button.
|
|
118
106
|
* @param {boolean} value - Whether to enable (true) or disable (false) input.
|
|
119
107
|
*/
|
|
120
|
-
set inputEnabled(value:
|
|
108
|
+
set inputEnabled(value: boolean);
|
|
121
109
|
}
|
|
122
110
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAQnC,qBAAa,MAAO,SAAQ,KAAK;IAC/B,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAG,MAAM,CAAC;IACrB,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,eAAe,EAAG,OAAO,CAAC;IAC1B,wBAAwB,EAAG,MAAM,CAAC;IAClC,YAAY,EAAG,OAAO,CAAC;IACvB,QAAQ,EAAG,GAAG,CAAC;IACf,KAAK,EAAG,YAAY,CAAC;IACrB;;;;;;;;;;;;;OAaG;gBACS,IAAI,EAAE,OAAO,iBAAiB,EAAE,IAAI,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,GAAG,GAAE,MAAa,EAAE,QAAQ,GAAE,QAAe,EAAE,eAAe,GAAE,GAAU,EAAE,SAAS,GAAE,MAAa,EAAE,QAAQ,GAAE,MAAa,EAAE,SAAS,GAAE,MAAa,EAAE,OAAO,GAAE,MAAa,EAAE,aAAa,GAAE,MAAa;IA8B7R;;OAEG;IACH,OAAO;IAuBP;;;;OAIG;IACH,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,GAAE,OAAe;IAW3D;;OAEG;IACH,WAAW;IAIX;;OAEG;IACH,gBAAgB;IAIhB;;;;;OAKG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,GAAE,OAAe;IAY9E;;;;OAIG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAiBjC;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAE,MAAa;IAU/G;;;;OAIG;IACH,kBAAkB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAc5C;;;;OAIG;IACH,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAO3C;;;;OAIG;IACH,kBAAkB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAO5C;;;;;OAKG;IACH,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO;IAsB3D;;;OAGG;IACH,IAAI,YAAY,IAQQ,OAAO,CAN9B;IAED;;;OAGG;IACH,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAW9B;CACF"}
|
|
@@ -8,7 +8,7 @@ export declare class CanvasBuffer {
|
|
|
8
8
|
* @param {number} width - The width of the canvas buffer.
|
|
9
9
|
* @param {number} height - The height of the canvas buffer.
|
|
10
10
|
*/
|
|
11
|
-
constructor(width:
|
|
11
|
+
constructor(width: number, height: number);
|
|
12
12
|
/**
|
|
13
13
|
* Clears the canvas buffer.
|
|
14
14
|
*/
|
|
@@ -18,7 +18,7 @@ export declare class CanvasBuffer {
|
|
|
18
18
|
* @param {number} width - The new width of the canvas buffer.
|
|
19
19
|
* @param {number} height - The new height of the canvas buffer.
|
|
20
20
|
*/
|
|
21
|
-
resize(width:
|
|
21
|
+
resize(width: number, height: number): void;
|
|
22
22
|
/**
|
|
23
23
|
* Destroys the canvas buffer and cleans up resources.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/buffer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buffer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/buffer.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACzB,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,MAAM,EAAG,GAAG,CAAC;IACb,OAAO,EAAG,GAAG,CAAC;IACZ;;;;OAIG;gBACS,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IASzC;;OAEG;IACH,KAAK;IAKL;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAOpC;;OAEG;IACH,OAAO;CAQR"}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Renders a graphics object to canvas.
|
|
3
3
|
* @param {import('../graphics.js').Graphics} graphics - The graphics object to render.
|
|
4
4
|
*/
|
|
5
|
-
export declare const updateGraphicsTint: (graphics:
|
|
5
|
+
export declare const updateGraphicsTint: (graphics: import("../graphics.js").Graphics) => void;
|
|
6
6
|
/**
|
|
7
7
|
* Renders a graphics object to canvas.
|
|
8
8
|
* @param {import('../graphics.js').Graphics} graphics - The graphics object to render.
|
|
9
9
|
* @param {object} context - The canvas rendering context.
|
|
10
10
|
*/
|
|
11
|
-
export declare const renderGraphics: (graphics:
|
|
11
|
+
export declare const renderGraphics: (graphics: import("../graphics.js").Graphics, context: any) => void;
|
|
12
12
|
/**
|
|
13
13
|
* Renders a graphics object to canvas.
|
|
14
14
|
* @param {import('../graphics.js').Graphics} graphics - The graphics object to render.
|
|
15
15
|
* @param {object} context - The canvas rendering context.
|
|
16
16
|
*/
|
|
17
|
-
export declare const renderGraphicsMask: (graphics:
|
|
17
|
+
export declare const renderGraphicsMask: (graphics: import("../graphics.js").Graphics, context: any) => void;
|
|
18
18
|
//# sourceMappingURL=graphics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/graphics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/graphics.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,OAAO,gBAAgB,EAAE,QAAQ,SAoB7E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,OAAO,gBAAgB,EAAE,QAAQ,EAAE,SAAS,GAAG,SA0HvF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,OAAO,gBAAgB,EAAE,QAAQ,EAAE,SAAS,GAAG,SAgE3F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masker.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/masker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"masker.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/masker.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAU,GAAG,EAAE,eAAe,GAAG,SAiBzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,eAAe,GAAG,SAEzC,CAAC"}
|
|
@@ -17,7 +17,7 @@ export declare const remove: (parent: any) => void;
|
|
|
17
17
|
* Removes a canvas from the pool.
|
|
18
18
|
* @param {HTMLCanvasElement} canvas - The canvas to remove from the pool.
|
|
19
19
|
*/
|
|
20
|
-
export declare const removeByCanvas: (canvas:
|
|
20
|
+
export declare const removeByCanvas: (canvas: HTMLCanvasElement) => void;
|
|
21
21
|
/**
|
|
22
22
|
* Gets the total count of canvases in the pool.
|
|
23
23
|
* @returns {number} The total count of canvases in the pool.
|
|
@@ -36,5 +36,5 @@ export declare const getFree: () => number;
|
|
|
36
36
|
* @param {boolean} skipPool - True to skip using the pool and create a new canvas.
|
|
37
37
|
* @returns {HTMLCanvasElement} The canvas from the pool or a newly created one.
|
|
38
38
|
*/
|
|
39
|
-
export declare const create: (parent: any, width
|
|
39
|
+
export declare const create: (parent: any, width?: any, height?: any, skipPool?: boolean) => any;
|
|
40
40
|
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/pool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/pool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,WAQnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,cAQpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,SASjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,iBAAiB,SASvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,cASpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,cASnB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,GAAG,EAAE,WAAU,OAAe,QAuBvF,CAAC"}
|
|
@@ -16,12 +16,12 @@ export declare class CanvasRenderer {
|
|
|
16
16
|
* Creates a new CanvasRenderer instance.
|
|
17
17
|
* @param {import('../../core/game.js').Game} game - The game instance.
|
|
18
18
|
*/
|
|
19
|
-
constructor(game:
|
|
19
|
+
constructor(game: import('../../core/game.js').Game);
|
|
20
20
|
/**
|
|
21
21
|
* Renders the stage to canvas.
|
|
22
22
|
* @param {import('../../core/stage.js').Stage} root - The root stage to render.
|
|
23
23
|
*/
|
|
24
|
-
render(root:
|
|
24
|
+
render(root: import('../../core/stage.js').Stage): void;
|
|
25
25
|
/**
|
|
26
26
|
* Destroys this renderer and cleans up resources.
|
|
27
27
|
* @param {boolean} removeView - Whether to remove the view from the DOM.
|
|
@@ -32,14 +32,14 @@ export declare class CanvasRenderer {
|
|
|
32
32
|
* @param {number} width - The new width of the canvas.
|
|
33
33
|
* @param {number} height - The new height of the canvas.
|
|
34
34
|
*/
|
|
35
|
-
resize(width:
|
|
35
|
+
resize(width: number, height: number): void;
|
|
36
36
|
/**
|
|
37
37
|
* Renders a display object to canvas.
|
|
38
38
|
* @param {import('../../display/image.js').Image} displayObject - The display object to render.
|
|
39
39
|
* @param {CanvasRenderingContext2D} context - The canvas rendering context.
|
|
40
40
|
* @param {import('../../geom/matrix.js').Matrix} matrix - The transformation matrix.
|
|
41
41
|
*/
|
|
42
|
-
renderDisplayObject(displayObject: any, context
|
|
42
|
+
renderDisplayObject(displayObject: any, context?: any, matrix?: any): void;
|
|
43
43
|
/**
|
|
44
44
|
* Maps blend modes to canvas rendering operations.
|
|
45
45
|
*/
|
|
@@ -48,6 +48,6 @@ export declare class CanvasRenderer {
|
|
|
48
48
|
* Initializes the WebGL context for rendering.
|
|
49
49
|
* @param {import('../../core/game.js').Game} game - The game instance.
|
|
50
50
|
*/
|
|
51
|
-
initContext(game:
|
|
51
|
+
initContext(game: import('../../core/game.js').Game): void;
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/renderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/renderer.ts"],"names":[],"mappings":"AA2BA,qBAAa,cAAc;IACzB,IAAI,EAAG,GAAG,CAAC;IACX,UAAU,EAAG,GAAG,CAAC;IACjB,iBAAiB,EAAG,GAAG,CAAC;IACxB,WAAW,EAAG,GAAG,CAAC;IAClB,UAAU,EAAG,GAAG,CAAC;IACjB,WAAW,EAAG,GAAG,CAAC;IAClB,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,IAAI,EAAG,GAAG,CAAC;IACX,OAAO,EAAG,GAAG,CAAC;IACd,OAAO,EAAG,GAAG,CAAC;IACd,KAAK,EAAG,GAAG,CAAC;IACZ,aAAa,EAAG,GAAG,CAAC;IACpB;;;OAGG;gBACS,IAAI,EAAE,OAAO,oBAAoB,EAAE,IAAI;IA+BnD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,OAAO,qBAAqB,EAAE,KAAK;IAqBhD;;;OAGG;IACH,OAAO,CAAC,UAAU,GAAE,OAAc;IASlC;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAcpC;;;;;OAKG;IACH,mBAAmB,CAAC,aAAa,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG;IAMnE;;OAEG;IACH,aAAa;IA0Bb;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,OAAO,oBAAoB,EAAE,IAAI;CAGpD"}
|
|
@@ -12,7 +12,7 @@ export declare const getTintedTexture: (sprite: any, color: any) => any;
|
|
|
12
12
|
* @param {HTMLCanvasElement} canvas - The canvas to render to.
|
|
13
13
|
* @throws {Error} If the operation fails.
|
|
14
14
|
*/
|
|
15
|
-
export declare const tintWithMultiply: (texture: any, color: any, canvas:
|
|
15
|
+
export declare const tintWithMultiply: (texture: any, color: any, canvas: HTMLCanvasElement) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Tints a texture with the given color.
|
|
18
18
|
* @param {object} texture - The texture to tint.
|
|
@@ -20,7 +20,7 @@ export declare const tintWithMultiply: (texture: any, color: any, canvas: any) =
|
|
|
20
20
|
* @param {HTMLCanvasElement} canvas - The canvas to render to.
|
|
21
21
|
* @throws {Error} If the operation fails.
|
|
22
22
|
*/
|
|
23
|
-
export declare const tintWithPerPixel: (texture: any, color: any, canvas:
|
|
23
|
+
export declare const tintWithPerPixel: (texture: any, color: any, canvas: HTMLCanvasElement) => void;
|
|
24
24
|
/**
|
|
25
25
|
* Checks if the tinter can handle the given texture.
|
|
26
26
|
* @returns {boolean} True if the tinter can handle the texture, false otherwise.
|
|
@@ -37,5 +37,5 @@ export declare const canUseNewCanvasBlendModes: () => boolean;
|
|
|
37
37
|
* Creates a new Tinter instance.
|
|
38
38
|
* @param {import('../../core/game.js').Game} game - The game instance.
|
|
39
39
|
*/
|
|
40
|
-
export declare const detectCapabilities: (game:
|
|
40
|
+
export declare const detectCapabilities: (game: import("../../core/game.js").Game) => void;
|
|
41
41
|
//# sourceMappingURL=tinter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tinter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/tinter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tinter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/tinter.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,GAAG,EAAE,OAAO,GAAG,QAIvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,iBAAiB,SAiBnF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,iBAAiB,SA6BnF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAmC7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,eAmCrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,oBAAoB,EAAE,IAAI,SAwBzE,CAAC"}
|
|
@@ -7,28 +7,28 @@
|
|
|
7
7
|
* @param {boolean} skipPool - Whether to skip using the canvas pool.
|
|
8
8
|
* @returns {HTMLCanvasElement} The created HTML canvas element.
|
|
9
9
|
*/
|
|
10
|
-
export declare const create: (parent: any, width:
|
|
10
|
+
export declare const create: (parent: any, width: number, height: number, id: string, skipPool: boolean) => any;
|
|
11
11
|
/**
|
|
12
12
|
* Sets the background color of a canvas element.
|
|
13
13
|
* @param {HTMLCanvasElement} canvas - The canvas element to modify.
|
|
14
14
|
* @param {string} color - The background color to set.
|
|
15
15
|
* @returns {HTMLCanvasElement} The modified canvas element.
|
|
16
16
|
*/
|
|
17
|
-
export declare const setBackgroundColor: (canvas:
|
|
17
|
+
export declare const setBackgroundColor: (canvas: HTMLCanvasElement, color: string) => HTMLCanvasElement;
|
|
18
18
|
/**
|
|
19
19
|
* Sets the touch action property of a canvas element.
|
|
20
20
|
* @param {HTMLCanvasElement} canvas - The canvas element to modify.
|
|
21
21
|
* @param {string} value - The touch action value to set.
|
|
22
22
|
* @returns {HTMLCanvasElement} The modified canvas element.
|
|
23
23
|
*/
|
|
24
|
-
export declare const setTouchAction: (canvas:
|
|
24
|
+
export declare const setTouchAction: (canvas: HTMLCanvasElement, value?: string) => HTMLCanvasElement;
|
|
25
25
|
/**
|
|
26
26
|
* Sets the user select property of a canvas element.
|
|
27
27
|
* @param {HTMLCanvasElement} canvas - The canvas element to modify.
|
|
28
28
|
* @param {string} value - The user select value to set.
|
|
29
29
|
* @returns {HTMLCanvasElement} The modified canvas element.
|
|
30
30
|
*/
|
|
31
|
-
export declare const setUserSelect: (canvas:
|
|
31
|
+
export declare const setUserSelect: (canvas: HTMLCanvasElement, value?: string) => HTMLCanvasElement;
|
|
32
32
|
/**
|
|
33
33
|
* Adds a canvas element to the DOM.
|
|
34
34
|
* @param {HTMLCanvasElement} canvas - The canvas element to add.
|
|
@@ -36,12 +36,12 @@ export declare const setUserSelect: (canvas: any, value?: string) => any;
|
|
|
36
36
|
* @param {boolean} overflowHidden - Whether to set overflow hidden on the parent.
|
|
37
37
|
* @returns {HTMLCanvasElement} The added canvas element.
|
|
38
38
|
*/
|
|
39
|
-
export declare const addToDOM: (canvas:
|
|
39
|
+
export declare const addToDOM: (canvas: HTMLCanvasElement, parent: any, overflowHidden?: boolean) => HTMLCanvasElement;
|
|
40
40
|
/**
|
|
41
41
|
* Removes a canvas element from the DOM.
|
|
42
42
|
* @param {HTMLCanvasElement} canvas - The canvas element to remove.
|
|
43
43
|
*/
|
|
44
|
-
export declare const removeFromDOM: (canvas:
|
|
44
|
+
export declare const removeFromDOM: (canvas: HTMLCanvasElement) => void;
|
|
45
45
|
/**
|
|
46
46
|
* Sets the transformation matrix on a canvas rendering context.
|
|
47
47
|
* @param {CanvasRenderingContext2D} context - The canvas rendering context.
|
|
@@ -53,18 +53,18 @@ export declare const removeFromDOM: (canvas: any) => void;
|
|
|
53
53
|
* @param {number} skewY - The Y skew value.
|
|
54
54
|
* @returns {CanvasRenderingContext2D} The modified rendering context.
|
|
55
55
|
*/
|
|
56
|
-
export declare const setTransform: (context:
|
|
56
|
+
export declare const setTransform: (context: CanvasRenderingContext2D, translateX: number, translateY: number, scaleX: number, scaleY: number, skewX: number, skewY: number) => CanvasRenderingContext2D;
|
|
57
57
|
/**
|
|
58
58
|
* Gets the smoothing prefix for a canvas rendering context.
|
|
59
59
|
* @param {CanvasRenderingContext2D} context - The canvas rendering context.
|
|
60
60
|
* @returns {string | null} The smoothing property name or null if not found.
|
|
61
61
|
*/
|
|
62
|
-
export declare const getSmoothingPrefix: (context:
|
|
62
|
+
export declare const getSmoothingPrefix: (context: CanvasRenderingContext2D) => string;
|
|
63
63
|
/**
|
|
64
64
|
* Sets the smoothing enabled property on a canvas rendering context.
|
|
65
65
|
* @param {object} context - The canvas rendering context.
|
|
66
66
|
* @param {number} value - The smoothing enabled value to set.
|
|
67
67
|
* @returns {object} The modified rendering context.
|
|
68
68
|
*/
|
|
69
|
-
export declare const setSmoothingEnabled: (context: any, value:
|
|
69
|
+
export declare const setSmoothingEnabled: (context: any, value: number) => any;
|
|
70
70
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/util.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/canvas/util.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,OAAO,MAAM,EAAE,QAAQ,MAAM,EAAE,IAAI,MAAM,EAAE,UAAU,OAAO,QAW/F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,iBAAiB,EAAE,OAAO,MAAM,sBAI1E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,iBAAiB,EAAE,QAAO,MAAe,sBAO/E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,iBAAiB,EAAE,QAAO,MAAe,sBAU9E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,QAAQ,iBAAiB,EAAE,QAAQ,GAAG,EAAE,iBAAgB,OAAc,sBAoB9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,iBAAiB,SAItD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,wBAAwB,EAAE,YAAY,MAAM,EAAE,YAAY,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,MAAM,6BAGnK,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,wBAAwB,WASnE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,GAAG,EAAE,OAAO,MAAM,QAM9D,CAAC"}
|