@vpmedia/phaser 1.104.0 → 1.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +164 -592
- 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 +38 -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 +13 -13
- package/src/index.ts +8 -0
- package/src/phaser/core/animation.ts +46 -61
- package/src/phaser/core/animation_manager.ts +27 -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 +24 -25
- 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 +72 -68
- package/src/phaser/core/input_handler.ts +93 -84
- 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 +108 -70
- package/src/phaser/core/loader_parser.ts +24 -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 +16 -10
- package/src/phaser/core/signal_binding.ts +9 -2
- package/src/phaser/core/sound.ts +71 -112
- package/src/phaser/core/sound_manager.ts +31 -30
- package/src/phaser/core/sound_sprite.ts +11 -12
- package/src/phaser/core/stage.ts +8 -8
- package/src/phaser/core/time.ts +34 -35
- package/src/phaser/core/timer.ts +40 -34
- package/src/phaser/core/timer_event.ts +23 -23
- package/src/phaser/core/tween.ts +62 -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 +11 -12
- package/src/phaser/core/world.ts +1 -2
- package/src/phaser/display/bitmap_text.ts +41 -31
- package/src/phaser/display/button.ts +34 -49
- 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 +17 -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 +19 -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 +38 -52
- package/src/phaser/display/sprite_batch.ts +1 -2
- package/src/phaser/display/sprite_util.ts +17 -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 +44 -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 +17 -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 +18 -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 +20 -8
- package/src/phaser/display/webgl/texture.ts +40 -24
- package/src/phaser/display/webgl/texture_util.ts +2 -3
- package/src/phaser/display/webgl/util.ts +10 -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 +27 -20
- package/src/phaser/geom/util/polygon.ts +1 -1
- package/src/phaser/geom/util/rectangle.ts +22 -15
- package/src/phaser/geom/util/rounded_rectangle.ts +1 -1
- package/src/phaser/util/math.ts +65 -151
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a file entry managed by the Loader.
|
|
3
|
+
*/
|
|
4
|
+
export interface LoaderFile {
|
|
5
|
+
key: string;
|
|
6
|
+
type: string;
|
|
7
|
+
url: string;
|
|
8
|
+
error: boolean;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
}
|
|
1
11
|
export declare class Loader {
|
|
2
12
|
game: any;
|
|
3
13
|
cache: any;
|
|
@@ -31,13 +41,13 @@ export declare class Loader {
|
|
|
31
41
|
* Creates a new Loader instance.
|
|
32
42
|
* @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
|
|
33
43
|
*/
|
|
34
|
-
constructor(game:
|
|
44
|
+
constructor(game: import('./game.js').Game);
|
|
35
45
|
/**
|
|
36
46
|
* Sets the preload sprite for displaying loading progress.
|
|
37
47
|
* @param {import('../display/image.js').Image} sprite - The image to use as the preload sprite.
|
|
38
48
|
* @param {number} direction - The direction of the progress (0 = horizontal, 1 = vertical).
|
|
39
49
|
*/
|
|
40
|
-
setPreloadSprite(sprite:
|
|
50
|
+
setPreloadSprite(sprite: import('../display/image.js').Image, direction?: number): void;
|
|
41
51
|
/**
|
|
42
52
|
* Resizes the preload sprite when the window is resized.
|
|
43
53
|
*/
|
|
@@ -48,21 +58,21 @@ export declare class Loader {
|
|
|
48
58
|
* @param {string} key - The key of the file to check for.
|
|
49
59
|
* @returns {boolean} True if the file exists, false otherwise.
|
|
50
60
|
*/
|
|
51
|
-
checkKeyExists(type:
|
|
61
|
+
checkKeyExists(type: string, key: string): boolean;
|
|
52
62
|
/**
|
|
53
63
|
* Gets the index of a file in the file list by type and key.
|
|
54
64
|
* @param {string} type - The type of file to find.
|
|
55
65
|
* @param {string} key - The key of the file to find.
|
|
56
66
|
* @returns {number} The index of the file in the list, or -1 if not found.
|
|
57
67
|
*/
|
|
58
|
-
getAssetIndex(type:
|
|
68
|
+
getAssetIndex(type: string, key: string): number;
|
|
59
69
|
/**
|
|
60
70
|
* Gets a file from the file list by type and key.
|
|
61
71
|
* @param {string} type - The type of file to get.
|
|
62
72
|
* @param {string} key - The key of the file to get.
|
|
63
73
|
* @returns {{index: number, file: object} | null} The file and its index, or null if not found.
|
|
64
74
|
*/
|
|
65
|
-
getAsset(type:
|
|
75
|
+
getAsset(type: string, key: string): {
|
|
66
76
|
index: number;
|
|
67
77
|
file: any;
|
|
68
78
|
};
|
|
@@ -82,7 +92,7 @@ export declare class Loader {
|
|
|
82
92
|
* @param {string} extension - The file extension to use if URL is not provided.
|
|
83
93
|
* @returns {Loader} This Loader instance for chaining.
|
|
84
94
|
*/
|
|
85
|
-
addToFileList(type:
|
|
95
|
+
addToFileList(type: string, key?: string, url?: string, properties?: any, overwrite?: boolean, extension?: string): this;
|
|
86
96
|
/**
|
|
87
97
|
* Replaces a file in the file list with new properties.
|
|
88
98
|
* @param {string} type - The type of file to replace.
|
|
@@ -91,7 +101,7 @@ export declare class Loader {
|
|
|
91
101
|
* @param {object} properties - The new properties for the file.
|
|
92
102
|
* @returns {Loader} This Loader instance for chaining.
|
|
93
103
|
*/
|
|
94
|
-
replaceInFileList(type:
|
|
104
|
+
replaceInFileList(type: string, key: string, url: string, properties: any): this;
|
|
95
105
|
/**
|
|
96
106
|
* Adds a pack file to the file list.
|
|
97
107
|
* @param {string} key - The key to identify the pack file.
|
|
@@ -100,7 +110,7 @@ export declare class Loader {
|
|
|
100
110
|
* @param {object} callbackContext - The context in which to call the callback.
|
|
101
111
|
* @returns {Loader} This Loader instance for chaining.
|
|
102
112
|
*/
|
|
103
|
-
pack(key:
|
|
113
|
+
pack(key: string, url: string, data: any, callbackContext: any): this;
|
|
104
114
|
/**
|
|
105
115
|
* Adds an image file to the file list.
|
|
106
116
|
* @param {string} key - The key to identify the image file.
|
|
@@ -108,14 +118,14 @@ export declare class Loader {
|
|
|
108
118
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
109
119
|
* @returns {Loader} This Loader instance for chaining.
|
|
110
120
|
*/
|
|
111
|
-
image(key:
|
|
121
|
+
image(key: string, url?: any, overwrite?: boolean): this;
|
|
112
122
|
/**
|
|
113
123
|
* Adds multiple image files to the file list.
|
|
114
124
|
* @param {string[]} keys - The keys to identify the image files.
|
|
115
125
|
* @param {string[]} urls - The URLs of the image files to load.
|
|
116
126
|
* @returns {Loader} This Loader instance for chaining.
|
|
117
127
|
*/
|
|
118
|
-
images(keys:
|
|
128
|
+
images(keys: string[], urls: string[]): this;
|
|
119
129
|
/**
|
|
120
130
|
* Adds a text file to the file list.
|
|
121
131
|
* @param {string} key - The key to identify the text file.
|
|
@@ -123,7 +133,7 @@ export declare class Loader {
|
|
|
123
133
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
124
134
|
* @returns {Loader} This Loader instance for chaining.
|
|
125
135
|
*/
|
|
126
|
-
text(key:
|
|
136
|
+
text(key: string, url: string, overwrite?: boolean): this;
|
|
127
137
|
/**
|
|
128
138
|
* Adds a JSON file to the file list.
|
|
129
139
|
* @param {string} key - The key to identify the JSON file.
|
|
@@ -131,7 +141,7 @@ export declare class Loader {
|
|
|
131
141
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
132
142
|
* @returns {Loader} This Loader instance for chaining.
|
|
133
143
|
*/
|
|
134
|
-
json(key:
|
|
144
|
+
json(key: string, url: string, overwrite?: boolean): this;
|
|
135
145
|
/**
|
|
136
146
|
* Adds an XML file to the file list.
|
|
137
147
|
* @param {string} key - The key to identify the XML file.
|
|
@@ -139,7 +149,7 @@ export declare class Loader {
|
|
|
139
149
|
* @param {boolean} overwrite - Whether to overwrite an existing file with the same key.
|
|
140
150
|
* @returns {Loader} This Loader instance for chaining.
|
|
141
151
|
*/
|
|
142
|
-
xml(key:
|
|
152
|
+
xml(key: string, url: string, overwrite?: boolean): this;
|
|
143
153
|
/**
|
|
144
154
|
* Adds a spritesheet file to the file list.
|
|
145
155
|
* @param {string} key - The key to identify the spritesheet file.
|
|
@@ -151,7 +161,7 @@ export declare class Loader {
|
|
|
151
161
|
* @param {number} spacing - The spacing between frames in pixels.
|
|
152
162
|
* @returns {Loader} This Loader instance for chaining.
|
|
153
163
|
*/
|
|
154
|
-
spritesheet(key:
|
|
164
|
+
spritesheet(key: string, url: string, frameWidth: number, frameHeight: number, frameMax?: number, margin?: number, spacing?: number): this;
|
|
155
165
|
/**
|
|
156
166
|
* Adds an audio file to the file list.
|
|
157
167
|
* @param {string} key - The key to identify the audio file.
|
|
@@ -159,7 +169,7 @@ export declare class Loader {
|
|
|
159
169
|
* @param {boolean} autoDecode - Whether to automatically decode the audio file.
|
|
160
170
|
* @returns {Loader} This Loader instance for chaining.
|
|
161
171
|
*/
|
|
162
|
-
audio(key:
|
|
172
|
+
audio(key: string, urls: any, autoDecode?: boolean): this;
|
|
163
173
|
/**
|
|
164
174
|
* Adds an audio sprite file to the file list.
|
|
165
175
|
* @param {string} key - The key to identify the audio sprite file.
|
|
@@ -169,7 +179,7 @@ export declare class Loader {
|
|
|
169
179
|
* @param {boolean} autoDecode - Whether to automatically decode the audio file.
|
|
170
180
|
* @returns {Loader} This Loader instance for chaining.
|
|
171
181
|
*/
|
|
172
|
-
audioSprite(key:
|
|
182
|
+
audioSprite(key: string, urls: string, jsonURL: string, jsonData: any, autoDecode?: boolean): this;
|
|
173
183
|
/**
|
|
174
184
|
* Adds a bitmap font file to the file list.
|
|
175
185
|
* @param {string} key - The key to identify the bitmap font file.
|
|
@@ -181,7 +191,7 @@ export declare class Loader {
|
|
|
181
191
|
* @returns {Loader} This Loader instance for chaining.
|
|
182
192
|
* @throws {Error} If the bitmap font atlas data is invalid.
|
|
183
193
|
*/
|
|
184
|
-
bitmapFont(key:
|
|
194
|
+
bitmapFont(key: string, textureURL?: string, atlasURL?: string, atlasData?: any, xSpacing?: number, ySpacing?: number): this;
|
|
185
195
|
/**
|
|
186
196
|
* Adds a texture atlas file to the file list.
|
|
187
197
|
* @param {string} key - The key to identify the texture atlas file.
|
|
@@ -191,27 +201,27 @@ export declare class Loader {
|
|
|
191
201
|
* @param {number} format - The format of the atlas file (JSON or XML).
|
|
192
202
|
* @returns {Loader} This Loader instance for chaining.
|
|
193
203
|
*/
|
|
194
|
-
atlas(key:
|
|
204
|
+
atlas(key: string, textureURL: string, atlasURL?: string, atlasData?: any, format?: number): this;
|
|
195
205
|
/**
|
|
196
206
|
* Creates a sync point for loading files, ensuring all files in the block are loaded before continuing.
|
|
197
207
|
* @param {Function} callback - The callback function to execute within the sync point.
|
|
198
208
|
* @param {object} callbackContext - The context in which to call the callback.
|
|
199
209
|
* @returns {Loader} This Loader instance for chaining.
|
|
200
210
|
*/
|
|
201
|
-
withSyncPoint(callback:
|
|
211
|
+
withSyncPoint(callback: Function, callbackContext: any): this;
|
|
202
212
|
/**
|
|
203
213
|
* Adds a sync point to a specific file, preventing other files from loading until this one is processed.
|
|
204
214
|
* @param {string} type - The type of file to add a sync point to.
|
|
205
215
|
* @param {string} key - The key of the file to add a sync point to.
|
|
206
216
|
* @returns {Loader} This Loader instance for chaining.
|
|
207
217
|
*/
|
|
208
|
-
addSyncPoint(type:
|
|
218
|
+
addSyncPoint(type: string, key: string): this;
|
|
209
219
|
/**
|
|
210
220
|
* Removes a file from the file list if it's not currently loading or loaded.
|
|
211
221
|
* @param {string} type - The type of file to remove.
|
|
212
222
|
* @param {string} key - The key of the file to remove.
|
|
213
223
|
*/
|
|
214
|
-
removeFile(type:
|
|
224
|
+
removeFile(type: string, key: string): void;
|
|
215
225
|
/**
|
|
216
226
|
* Removes all files from the file list.
|
|
217
227
|
*/
|
|
@@ -265,7 +275,7 @@ export declare class Loader {
|
|
|
265
275
|
* @param {Function} onload - The function to call when the file loads successfully.
|
|
266
276
|
* @param {Function} onerror - The function to call if the file fails to load.
|
|
267
277
|
*/
|
|
268
|
-
xhrLoad(file: any, url: any, type: any, onload:
|
|
278
|
+
xhrLoad(file: any, url: any, type: any, onload: Function, onerror?: Function): void;
|
|
269
279
|
/**
|
|
270
280
|
* Placeholder for XDomainRequest loading (not implemented).
|
|
271
281
|
*/
|
|
@@ -275,27 +285,27 @@ export declare class Loader {
|
|
|
275
285
|
* @param {object[]} urls - The array of URLs to check for supported audio formats.
|
|
276
286
|
* @returns {string} The first URL with a supported audio format, or null if none found.
|
|
277
287
|
*/
|
|
278
|
-
getAudioURL(urls: any): any;
|
|
288
|
+
getAudioURL(urls: any[]): any;
|
|
279
289
|
/**
|
|
280
290
|
* Handles file loading errors, optionally retrying or marking the file as failed.
|
|
281
291
|
* @param {object} file - The file object that failed to load.
|
|
282
292
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object that failed.
|
|
283
293
|
* @param {number | string} reason - The error code or message explaining the failure.
|
|
284
294
|
*/
|
|
285
|
-
fileError(file: any, xhr?: any, reason?:
|
|
295
|
+
fileError(file: any, xhr?: any, reason?: any): void;
|
|
286
296
|
/**
|
|
287
297
|
* TBD.
|
|
288
298
|
* @param {object} file - TBD.
|
|
289
299
|
* @param {XMLHttpRequest} xhr - TBD.
|
|
290
300
|
* @throws {Error}
|
|
291
301
|
*/
|
|
292
|
-
fileComplete(file: any, xhr
|
|
302
|
+
fileComplete(file: any, xhr?: any): void;
|
|
293
303
|
/**
|
|
294
304
|
* Handles successful file loading, processing the file content appropriately.
|
|
295
305
|
* @param {object} file - The file object that was loaded successfully.
|
|
296
306
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object containing the file data.
|
|
297
307
|
*/
|
|
298
|
-
jsonLoadComplete(file: any, xhr:
|
|
308
|
+
jsonLoadComplete(file: any, xhr: XMLHttpRequest): void;
|
|
299
309
|
/**
|
|
300
310
|
* TBD.
|
|
301
311
|
*/
|
|
@@ -305,7 +315,7 @@ export declare class Loader {
|
|
|
305
315
|
* @param {object} file - The file object containing the JSON data.
|
|
306
316
|
* @param {XMLHttpRequest} xhr - The XMLHttpRequest object containing the file data.
|
|
307
317
|
*/
|
|
308
|
-
xmlLoadComplete(file: any, xhr:
|
|
318
|
+
xmlLoadComplete(file: any, xhr: XMLHttpRequest): void;
|
|
309
319
|
/**
|
|
310
320
|
* Parses XML string data into a DOM Document object.
|
|
311
321
|
* @param {object} data - The XML string data to parse.
|
|
@@ -321,7 +331,7 @@ export declare class Loader {
|
|
|
321
331
|
* @param {string} message - The message to log.
|
|
322
332
|
* @param {string|object} data - Additional data to log with the message.
|
|
323
333
|
*/
|
|
324
|
-
log(message:
|
|
334
|
+
log(message: string, data?: string | any): void;
|
|
325
335
|
/**
|
|
326
336
|
* Gets the number of files that have been loaded.
|
|
327
337
|
* @returns {number} The total number of loaded files.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,MAAM;IACjB,IAAI,EAAG,GAAG,CAAC;IACX,KAAK,EAAG,GAAG,CAAC;IACZ,SAAS,EAAG,GAAG,CAAC;IAChB,QAAQ,EAAG,GAAG,CAAC;IACf,UAAU,EAAG,GAAG,CAAC;IACjB,QAAQ,EAAG,GAAG,CAAC;IACf,SAAS,EAAG,GAAG,CAAC;IAChB,aAAa,EAAG,GAAG,CAAC;IACpB,WAAW,EAAG,GAAG,CAAC;IAClB,OAA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AI,EAAE,GAAG,EAAE;IAmCvB;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAE,GAAU,EAAE,MAAM,GAAE,GAAO;IASrD;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG;IAsFjC;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc;IAY/C;;OAEG;IACH,eAAe;IAKf;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc;IAoB9C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,GAAG;IAqBlB;;OAEG;IACH,cAAc;IAgBd;;;;OAIG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,GAAG,GAAQ;IAO5C;;;OAGG;IACH,gBAAgB;IAIhB;;;OAGG;IACH,gBAAgB;IAIhB;;;OAGG;IACH,gBAAgB;IAIhB;;;OAGG;IACH,gBAAgB;IAIhB;;;OAGG;IACH,IAAI,aAAa,WAGhB;IAED;;;OAGG;IACH,IAAI,QAAQ,WAEX;CACF"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {object} bitmapFontData - The bitmap font data to finalize.
|
|
5
5
|
* @returns {object} The finalized bitmap font data.
|
|
6
6
|
*/
|
|
7
|
-
export declare const finalizeBitmapFont: (baseTexture:
|
|
7
|
+
export declare const finalizeBitmapFont: (baseTexture: import("../display/webgl/base_texture.js").BaseTexture, bitmapFontData: any) => any;
|
|
8
8
|
/**
|
|
9
9
|
* Parses XML bitmap font data.
|
|
10
10
|
* @param {object} xml - The XML document containing the bitmap font data.
|
|
@@ -13,7 +13,7 @@ export declare const finalizeBitmapFont: (baseTexture: any, bitmapFontData: any)
|
|
|
13
13
|
* @param {number} ySpacing - Vertical spacing between characters.
|
|
14
14
|
* @returns {object} The parsed bitmap font data.
|
|
15
15
|
*/
|
|
16
|
-
export declare const xmlBitmapFont: (xml: any, baseTexture:
|
|
16
|
+
export declare const xmlBitmapFont: (xml: any, baseTexture: import("../display/webgl/base_texture.js").BaseTexture, xSpacing: number, ySpacing: number) => any;
|
|
17
17
|
/**
|
|
18
18
|
* Parses XML bitmap font data (alias for xmlBitmapFont).
|
|
19
19
|
* @param {object} xml - The XML document containing the bitmap font data.
|
|
@@ -22,7 +22,7 @@ export declare const xmlBitmapFont: (xml: any, baseTexture: any, xSpacing: any,
|
|
|
22
22
|
* @param {number} ySpacing - Vertical spacing between characters.
|
|
23
23
|
* @returns {object} The parsed bitmap font data.
|
|
24
24
|
*/
|
|
25
|
-
export declare const bitmapFont: (xml: any, baseTexture:
|
|
25
|
+
export declare const bitmapFont: (xml: any, baseTexture: import("../display/webgl/base_texture.js").BaseTexture, xSpacing: number, ySpacing: number) => any;
|
|
26
26
|
/**
|
|
27
27
|
* Parses JSON bitmap font data.
|
|
28
28
|
* @param {object} json - The JSON object containing the bitmap font data.
|
|
@@ -31,5 +31,5 @@ export declare const bitmapFont: (xml: any, baseTexture: any, xSpacing: any, ySp
|
|
|
31
31
|
* @param {number} ySpacing - Vertical spacing between characters.
|
|
32
32
|
* @returns {object} The parsed bitmap font data.
|
|
33
33
|
*/
|
|
34
|
-
export declare const jsonBitmapFont: (json: any, baseTexture:
|
|
34
|
+
export declare const jsonBitmapFont: (json: any, baseTexture: import("../display/webgl/base_texture.js").BaseTexture, xSpacing: number, ySpacing: number) => any;
|
|
35
35
|
//# sourceMappingURL=loader_parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader_parser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader_parser.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,aAAa,OAAO,kCAAkC,EAAE,WAAW,EACnE,gBAAgB,GAAG,QAOpB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,GAAG,EACR,aAAa,OAAO,kCAAkC,EAAE,WAAW,EACnE,UAAU,MAAM,EAChB,UAAU,MAAM,QA+BjB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GACrB,KAAK,GAAG,EACR,aAAa,OAAO,kCAAkC,EAAE,WAAW,EACnE,UAAU,MAAM,EAChB,UAAU,MAAM,QAGjB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,GAAG,EACT,aAAa,OAAO,kCAAkC,EAAE,WAAW,EACnE,UAAU,MAAM,EAChB,UAAU,MAAM,QA2BjB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare class RequestAnimationFrame {
|
|
|
5
5
|
* Constructor.
|
|
6
6
|
* @param {import('./game.js').Game} game - Reference to the game instance.
|
|
7
7
|
*/
|
|
8
|
-
constructor(game:
|
|
8
|
+
constructor(game: import('./game.js').Game);
|
|
9
9
|
/**
|
|
10
10
|
* Starts an animation frame request.
|
|
11
11
|
*/
|
|
@@ -18,6 +18,6 @@ export declare class RequestAnimationFrame {
|
|
|
18
18
|
* Performs an animation frame request.
|
|
19
19
|
* @param {number} rafTime - The timestamp provided by the browser's animation frame.
|
|
20
20
|
*/
|
|
21
|
-
update: (rafTime:
|
|
21
|
+
update: (rafTime: number) => void;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=raf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raf.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/raf.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAChC,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;gBACS,IAAI,
|
|
1
|
+
{"version":3,"file":"raf.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/raf.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAChC,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI;IAK1C;;OAEG;IACH,KAAK,aAEH;IAEF;;OAEG;IACH,IAAI,aAEF;IAEF;;;OAGG;IACH,MAAM,GAAI,SAAS,MAAM,UAGvB;CACH"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Rectangle } from '../geom/rectangle.js';
|
|
1
2
|
export declare class ScaleManager {
|
|
2
3
|
game: any;
|
|
3
4
|
dom: any;
|
|
@@ -54,13 +55,17 @@ export declare class ScaleManager {
|
|
|
54
55
|
_lastReportedCanvasSize: any;
|
|
55
56
|
_lastReportedGameSize: any;
|
|
56
57
|
_booted: any;
|
|
58
|
+
_orientationChange: any;
|
|
59
|
+
_windowResize: any;
|
|
60
|
+
_fullScreenChange: any;
|
|
61
|
+
_fullScreenError: any;
|
|
57
62
|
/**
|
|
58
63
|
* TBD.
|
|
59
64
|
* @param {import('./game.js').Game} game - TBD.
|
|
60
65
|
* @param {number} width - TBD.
|
|
61
66
|
* @param {number} height - TBD.
|
|
62
67
|
*/
|
|
63
|
-
constructor(game:
|
|
68
|
+
constructor(game: import('./game.js').Game, width: number, height: number);
|
|
64
69
|
/**
|
|
65
70
|
* TBD.
|
|
66
71
|
*/
|
|
@@ -75,7 +80,7 @@ export declare class ScaleManager {
|
|
|
75
80
|
* @param {number} width - TBD.
|
|
76
81
|
* @param {number} height - TBD.
|
|
77
82
|
*/
|
|
78
|
-
setupScale(width:
|
|
83
|
+
setupScale(width: number, height: number): void;
|
|
79
84
|
/**
|
|
80
85
|
* TBD.
|
|
81
86
|
*/
|
|
@@ -85,7 +90,7 @@ export declare class ScaleManager {
|
|
|
85
90
|
* @param {number} width - TBD.
|
|
86
91
|
* @param {number} height - TBD.
|
|
87
92
|
*/
|
|
88
|
-
setGameSize(width:
|
|
93
|
+
setGameSize(width: number, height: number): void;
|
|
89
94
|
/**
|
|
90
95
|
* TBD.
|
|
91
96
|
* @param {number} hScale - TBD.
|
|
@@ -93,13 +98,13 @@ export declare class ScaleManager {
|
|
|
93
98
|
* @param {number} hTrim - TBD.
|
|
94
99
|
* @param {number} vTrim - TBD.
|
|
95
100
|
*/
|
|
96
|
-
setUserScale(hScale:
|
|
101
|
+
setUserScale(hScale: number, vScale: number, hTrim: number, vTrim: number): void;
|
|
97
102
|
/**
|
|
98
103
|
* TBD.
|
|
99
104
|
* @param {Function} callback - TBD.
|
|
100
105
|
* @param {object} context - TBD.
|
|
101
106
|
*/
|
|
102
|
-
setResizeCallback(callback:
|
|
107
|
+
setResizeCallback(callback: Function, context: any): void;
|
|
103
108
|
/**
|
|
104
109
|
* TBD.
|
|
105
110
|
*/
|
|
@@ -111,7 +116,7 @@ export declare class ScaleManager {
|
|
|
111
116
|
* @param {number} maxWidth - TBD.
|
|
112
117
|
* @param {number} maxHeight - TBD.
|
|
113
118
|
*/
|
|
114
|
-
setMinMax(minWidth:
|
|
119
|
+
setMinMax(minWidth: number, minHeight: number, maxWidth: number, maxHeight: number): void;
|
|
115
120
|
/**
|
|
116
121
|
* TBD.
|
|
117
122
|
*/
|
|
@@ -126,7 +131,7 @@ export declare class ScaleManager {
|
|
|
126
131
|
* @param {number} height - TBD.
|
|
127
132
|
* @param {boolean} resize - TBD.
|
|
128
133
|
*/
|
|
129
|
-
updateDimensions(width:
|
|
134
|
+
updateDimensions(width: number, height: number, resize: boolean): void;
|
|
130
135
|
/**
|
|
131
136
|
* TBD.
|
|
132
137
|
*/
|
|
@@ -142,7 +147,7 @@ export declare class ScaleManager {
|
|
|
142
147
|
* @param {string} orientation - TBD.
|
|
143
148
|
* @returns {string} TBD.
|
|
144
149
|
*/
|
|
145
|
-
classifyOrientation(orientation:
|
|
150
|
+
classifyOrientation(orientation: string): "portrait" | "landscape";
|
|
146
151
|
/**
|
|
147
152
|
* TBD.
|
|
148
153
|
* @returns {boolean} TBD.
|
|
@@ -152,12 +157,12 @@ export declare class ScaleManager {
|
|
|
152
157
|
* TBD.
|
|
153
158
|
* @param {Event} event - TBD.
|
|
154
159
|
*/
|
|
155
|
-
orientationChange(event:
|
|
160
|
+
orientationChange(event: Event): void;
|
|
156
161
|
/**
|
|
157
162
|
* TBD.
|
|
158
163
|
* @param {Event} event - TBD.
|
|
159
164
|
*/
|
|
160
|
-
windowResize(event:
|
|
165
|
+
windowResize(event: Event): void;
|
|
161
166
|
/**
|
|
162
167
|
* TBD.
|
|
163
168
|
*/
|
|
@@ -171,13 +176,13 @@ export declare class ScaleManager {
|
|
|
171
176
|
* @param {Rectangle} target - TBD.
|
|
172
177
|
* @returns {Rectangle} TBD.
|
|
173
178
|
*/
|
|
174
|
-
getParentBounds(target:
|
|
179
|
+
getParentBounds(target: Rectangle): Rectangle;
|
|
175
180
|
/**
|
|
176
181
|
* TBD.
|
|
177
182
|
* @param {boolean} horizontal - TBD.
|
|
178
183
|
* @param {boolean} vertical - TBD.
|
|
179
184
|
*/
|
|
180
|
-
alignCanvas(horizontal:
|
|
185
|
+
alignCanvas(horizontal: boolean, vertical: boolean): void;
|
|
181
186
|
/**
|
|
182
187
|
* TBD.
|
|
183
188
|
*/
|
|
@@ -196,7 +201,7 @@ export declare class ScaleManager {
|
|
|
196
201
|
* TBD.
|
|
197
202
|
* @param {boolean} force - TBD.
|
|
198
203
|
*/
|
|
199
|
-
queueUpdate(force:
|
|
204
|
+
queueUpdate(force: boolean): void;
|
|
200
205
|
/**
|
|
201
206
|
* TBD.
|
|
202
207
|
*/
|
|
@@ -225,7 +230,7 @@ export declare class ScaleManager {
|
|
|
225
230
|
* @param {boolean} allowTrampoline - TBD.
|
|
226
231
|
* @returns {boolean} TBD.
|
|
227
232
|
*/
|
|
228
|
-
startFullScreen(antialias:
|
|
233
|
+
startFullScreen(antialias: boolean, allowTrampoline: boolean): boolean;
|
|
229
234
|
/**
|
|
230
235
|
* TBD.
|
|
231
236
|
* @returns {boolean} TBD.
|
|
@@ -239,17 +244,17 @@ export declare class ScaleManager {
|
|
|
239
244
|
* TBD.
|
|
240
245
|
* @param {boolean} enteringFullscreen - TBD.
|
|
241
246
|
*/
|
|
242
|
-
prepScreenMode(enteringFullscreen:
|
|
247
|
+
prepScreenMode(enteringFullscreen: boolean): void;
|
|
243
248
|
/**
|
|
244
249
|
* TBD.
|
|
245
250
|
* @param {Event} event - TBD.
|
|
246
251
|
*/
|
|
247
|
-
fullScreenChange(event:
|
|
252
|
+
fullScreenChange(event: Event): void;
|
|
248
253
|
/**
|
|
249
254
|
* TBD.
|
|
250
255
|
* @param {Event} [event] - TBD.
|
|
251
256
|
*/
|
|
252
|
-
fullScreenError(event:
|
|
257
|
+
fullScreenError(event: Event): void;
|
|
253
258
|
/**
|
|
254
259
|
* TBD.
|
|
255
260
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scale_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scale_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scale_manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,qBAAa,YAAY;IACvB,IAAI,EAAG,GAAG,CAAC;IACX,GAAG,EAAG,GAAG,CAAC;IACV,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,QAAQ,EAAG,GAAG,CAAC;IACf,QAAQ,EAAG,GAAG,CAAC;IACf,SAAS,EAAG,GAAG,CAAC;IAChB,SAAS,EAAG,GAAG,CAAC;IAChB,MAAM,EAAG,GAAG,CAAC;IACb,cAAc,EAAG,GAAG,CAAC;IACrB,aAAa,EAAG,GAAG,CAAC;IACpB,oBAAoB,EAAG,GAAG,CAAC;IAC3B,sBAAsB,EAAG,GAAG,CAAC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AGG;IACH,IAAI,gBAAgB,QAEnB;IAED;;;OAGG;IACH,IAAI,qBAAqB,QAExB;IAED;;;OAGG;IACH,IAAI,mBAAmB,QAEtB;IAED;;;OAGG;IACH,IAAI,YAAY,YAOf;IAED;;;OAGG;IACH,IAAI,UAAU,YAEb;IAED;;;OAGG;IACH,IAAI,WAAW,YAEd;IAED;;;OAGG;IACH,IAAI,cAAc,YAEjB;IAED;;;OAGG;IACH,IAAI,eAAe,YAElB;CACF"}
|
|
@@ -30,7 +30,7 @@ export declare class Scene {
|
|
|
30
30
|
* @param {number} width - The new width of the scene.
|
|
31
31
|
* @param {number} height - The new height of the scene.
|
|
32
32
|
*/
|
|
33
|
-
resize(width:
|
|
33
|
+
resize(width: number, height: number): void;
|
|
34
34
|
/**
|
|
35
35
|
* Update the scene while paused.
|
|
36
36
|
* This method is called every frame while the scene is paused.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK;IAChB,IAAI,EAAG,GAAG,CAAC;IACX,GAAG,EAAG,GAAG,CAAC;IACV;;OAEG;;IAMH;;;OAGG;IACH,IAAI;IAIJ;;;OAGG;IACH,OAAO;IAIP;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAIpC;;;OAGG;IACH,WAAW;IAIX;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -14,12 +14,13 @@ export declare class SceneManager {
|
|
|
14
14
|
onResizeCallback: any;
|
|
15
15
|
onPauseUpdateCallback: any;
|
|
16
16
|
onShutDownCallback: any;
|
|
17
|
+
callbackContext: any;
|
|
17
18
|
/**
|
|
18
19
|
* Creates a new SceneManager instance.
|
|
19
20
|
* @param {import('./game.js').Game} game - The game instance this manager belongs to.
|
|
20
21
|
* @param {string} pendingState - The state to load when the game boots.
|
|
21
22
|
*/
|
|
22
|
-
constructor(game:
|
|
23
|
+
constructor(game: import('./game.js').Game, pendingState: string);
|
|
23
24
|
/**
|
|
24
25
|
* Initialize the scene manager.
|
|
25
26
|
* This method is called when the game boots and sets up the initial state.
|
|
@@ -32,12 +33,12 @@ export declare class SceneManager {
|
|
|
32
33
|
* @param {boolean} autoStart - Whether to start this state immediately.
|
|
33
34
|
* @returns {Scene|object} The created scene or state object.
|
|
34
35
|
*/
|
|
35
|
-
add(key:
|
|
36
|
+
add(key: string, state: any, autoStart?: boolean): any;
|
|
36
37
|
/**
|
|
37
38
|
* Remove a scene state from the manager.
|
|
38
39
|
* @param {string} key - The unique key for the state to remove.
|
|
39
40
|
*/
|
|
40
|
-
remove(key:
|
|
41
|
+
remove(key: string): void;
|
|
41
42
|
/**
|
|
42
43
|
* Start a scene state.
|
|
43
44
|
* @param {string} key - The unique key for the state to start.
|
|
@@ -45,7 +46,7 @@ export declare class SceneManager {
|
|
|
45
46
|
* @param {boolean} clearCache - Whether to clear the cache before starting.
|
|
46
47
|
* @param {...any} args - Additional arguments to pass to the state.
|
|
47
48
|
*/
|
|
48
|
-
start(key:
|
|
49
|
+
start(key: string, clearWorld?: boolean, clearCache?: boolean, ...args: any[]): void;
|
|
49
50
|
/**
|
|
50
51
|
* Restart the current scene state.
|
|
51
52
|
* @param {boolean} clearWorld - Whether to clear the world before restarting.
|
|
@@ -68,22 +69,22 @@ export declare class SceneManager {
|
|
|
68
69
|
* @param {string} key - The unique key for the state to check.
|
|
69
70
|
* @returns {boolean} True if the scene exists, false otherwise.
|
|
70
71
|
*/
|
|
71
|
-
checkState(key:
|
|
72
|
+
checkState(key: string): boolean;
|
|
72
73
|
/**
|
|
73
74
|
* Link a scene state to the manager.
|
|
74
75
|
* @param {string} key - The unique key for the state to link.
|
|
75
76
|
*/
|
|
76
|
-
link(key:
|
|
77
|
+
link(key: string): void;
|
|
77
78
|
/**
|
|
78
79
|
* Unlink a scene state from the manager.
|
|
79
80
|
* @param {string} key - The unique key for the state to unlink.
|
|
80
81
|
*/
|
|
81
|
-
unlink(key:
|
|
82
|
+
unlink(key: string): void;
|
|
82
83
|
/**
|
|
83
84
|
* Set the current scene state.
|
|
84
85
|
* @param {string} key - The unique key for the state to set as current.
|
|
85
86
|
*/
|
|
86
|
-
setCurrentState(key:
|
|
87
|
+
setCurrentState(key: string): void;
|
|
87
88
|
/**
|
|
88
89
|
* Get the current scene state.
|
|
89
90
|
* @returns {Scene} The current scene state.
|
|
@@ -109,7 +110,7 @@ export declare class SceneManager {
|
|
|
109
110
|
* @param {number} width - The new width of the scene.
|
|
110
111
|
* @param {number} height - The new height of the scene.
|
|
111
112
|
*/
|
|
112
|
-
resize(width:
|
|
113
|
+
resize(width: number, height: number): void;
|
|
113
114
|
/**
|
|
114
115
|
* Destroy the scene manager.
|
|
115
116
|
* This method is called when the scene manager is about to be destroyed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scene_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scene_manager.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACvB,IAAI,EAAG,GAAG,CAAC;IACX,MAAM,EAAG,GAAG,CAAC;IACb,aAAa,EAAG,GAAG,CAAC;IACpB,WAAW,EAAG,GAAG,CAAC;IAClB,WAAW,EAAG,GAAG,CAAC;IAClB,QAAQ,EAAG,GAAG,CAAC;IACf,KAAK,EAAG,GAAG,CAAC;IACZ,OAAO,EAAG,GAAG,CAAC;IACd,cAAc,EAAG,GAAG,CAAC;IACrB,iBAAiB,EAAG,GAAG,CAAC;IACxB,gBAAgB,EAAG,GAAG,CAAC;IACvB,gBAAgB,EAAG,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