@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
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { Image } from './image.js';
|
|
2
2
|
export declare class Text extends Image {
|
|
3
|
+
type: any;
|
|
4
|
+
canvas: any;
|
|
5
|
+
context: any;
|
|
6
|
+
padding: any;
|
|
7
|
+
textBounds: any;
|
|
8
|
+
style: any;
|
|
9
|
+
colors: any;
|
|
10
|
+
strokeColors: any;
|
|
11
|
+
fontStyles: any;
|
|
12
|
+
fontWeights: any;
|
|
13
|
+
autoRound: any;
|
|
14
|
+
useAdvancedWrap: any;
|
|
15
|
+
_res: any;
|
|
16
|
+
_text: any;
|
|
17
|
+
_fontComponents: any;
|
|
18
|
+
_lineSpacing: any;
|
|
19
|
+
_charCount: any;
|
|
20
|
+
_width: any;
|
|
21
|
+
_height: any;
|
|
22
|
+
dirty: any;
|
|
3
23
|
/**
|
|
4
24
|
* Creates a new Text object.
|
|
5
25
|
* @param {import('../core/game.js').Game} game - The game instance this text belongs to.
|
|
@@ -8,7 +28,7 @@ export declare class Text extends Image {
|
|
|
8
28
|
* @param {string} text - The text content to display.
|
|
9
29
|
* @param {object} style - The style settings for the text.
|
|
10
30
|
*/
|
|
11
|
-
constructor(game:
|
|
31
|
+
constructor(game: import('../core/game.js').Game, x: number, y: number, text?: string, style?: any);
|
|
12
32
|
/**
|
|
13
33
|
* Destroys this text object and cleans up resources.
|
|
14
34
|
*/
|
|
@@ -42,25 +62,25 @@ export declare class Text extends Image {
|
|
|
42
62
|
* @param {number} y - The y position to start rendering from.
|
|
43
63
|
* @param {boolean} fill - True to fill the text, false to stroke it.
|
|
44
64
|
*/
|
|
45
|
-
renderTabLine(line:
|
|
65
|
+
renderTabLine(line: string, x: number, y: number, fill: boolean): void;
|
|
46
66
|
/**
|
|
47
67
|
* Updates the shadow properties for this text.
|
|
48
68
|
* @param {string} state - The shadow state to update ('stroke' or 'fill').
|
|
49
69
|
*/
|
|
50
|
-
updateShadow(state:
|
|
70
|
+
updateShadow(state: string): void;
|
|
51
71
|
/**
|
|
52
72
|
* Measures the width of a line of text.
|
|
53
73
|
* @param {string} line - The line of text to measure.
|
|
54
74
|
* @returns {number} The width of the line in pixels.
|
|
55
75
|
*/
|
|
56
|
-
measureLine(line:
|
|
76
|
+
measureLine(line: string): number;
|
|
57
77
|
/**
|
|
58
78
|
* Updates a line of text to the canvas.
|
|
59
79
|
* @param {string} line - The line of text to update.
|
|
60
80
|
* @param {number} x - The x position to start updating from.
|
|
61
81
|
* @param {number} y - The y position to start updating from.
|
|
62
82
|
*/
|
|
63
|
-
updateLine(line:
|
|
83
|
+
updateLine(line: string, x: number, y: number): void;
|
|
64
84
|
/**
|
|
65
85
|
* Clears all color values from this text object.
|
|
66
86
|
* @returns {Text} This Text object for chaining.
|
|
@@ -77,34 +97,34 @@ export declare class Text extends Image {
|
|
|
77
97
|
* @param {number} position - The character position to apply the color at.
|
|
78
98
|
* @returns {Text} This Text object for chaining.
|
|
79
99
|
*/
|
|
80
|
-
addColor(color:
|
|
100
|
+
addColor(color: string, position: number): this;
|
|
81
101
|
/**
|
|
82
102
|
* Adds a stroke color to this text object at the specified position.
|
|
83
103
|
* @param {number} color - The stroke color to apply.
|
|
84
104
|
* @param {number} position - The character position to apply the stroke color at.
|
|
85
105
|
* @returns {Text} This Text object for chaining.
|
|
86
106
|
*/
|
|
87
|
-
addStrokeColor(color:
|
|
107
|
+
addStrokeColor(color: number, position: number): this;
|
|
88
108
|
/**
|
|
89
109
|
* Adds a font style to this text object at the specified position.
|
|
90
110
|
* @param {object} style - The font style to apply.
|
|
91
111
|
* @param {number} position - The character position to apply the font style at.
|
|
92
112
|
* @returns {Text} This Text object for chaining.
|
|
93
113
|
*/
|
|
94
|
-
addFontStyle(style: any, position:
|
|
114
|
+
addFontStyle(style: any, position: number): this;
|
|
95
115
|
/**
|
|
96
116
|
* Adds a font weight to this text object at the specified position.
|
|
97
117
|
* @param {number} weight - The font weight to apply.
|
|
98
118
|
* @param {number} position - The character position to apply the font weight at.
|
|
99
119
|
* @returns {Text} This Text object for chaining.
|
|
100
120
|
*/
|
|
101
|
-
addFontWeight(weight:
|
|
121
|
+
addFontWeight(weight: number, position: number): this;
|
|
102
122
|
/**
|
|
103
123
|
* Precalculates word wrap for the given text.
|
|
104
124
|
* @param {string} text - The text to precalculate word wrap for.
|
|
105
125
|
* @returns {string[]} The wrapped lines of text.
|
|
106
126
|
*/
|
|
107
|
-
precalculateWordWrap(text:
|
|
127
|
+
precalculateWordWrap(text: string): string[];
|
|
108
128
|
/**
|
|
109
129
|
* Runs word wrap on the given text.
|
|
110
130
|
* @param {string} text - The text to run word wrap on.
|
|
@@ -117,13 +137,13 @@ export declare class Text extends Image {
|
|
|
117
137
|
* @returns {string} The wrapped text.
|
|
118
138
|
* @throws {Error} If the wordWrapWidth setting is less than a single character.
|
|
119
139
|
*/
|
|
120
|
-
advancedWordWrap(text:
|
|
140
|
+
advancedWordWrap(text: string): string;
|
|
121
141
|
/**
|
|
122
142
|
* Runs basic word wrap on the given text.
|
|
123
143
|
* @param {string} text - The text to run basic word wrap on.
|
|
124
144
|
* @returns {string} The wrapped text.
|
|
125
145
|
*/
|
|
126
|
-
basicWordWrap(text:
|
|
146
|
+
basicWordWrap(text: string): string;
|
|
127
147
|
/**
|
|
128
148
|
* Updates the font properties based on the given components.
|
|
129
149
|
* @param {object} components - The font components to update from.
|
|
@@ -134,15 +154,15 @@ export declare class Text extends Image {
|
|
|
134
154
|
* @param {string} font - The font string to convert.
|
|
135
155
|
* @returns {{ font: string, fontStyle?: string, fontVariant?: string, fontWeight?: string, fontSize?: string, fontFamily?: string }} The font components.
|
|
136
156
|
*/
|
|
137
|
-
fontToComponents(font:
|
|
138
|
-
font:
|
|
139
|
-
fontStyle:
|
|
140
|
-
fontVariant:
|
|
141
|
-
fontWeight:
|
|
142
|
-
fontSize:
|
|
143
|
-
fontFamily:
|
|
157
|
+
fontToComponents(font: string): {
|
|
158
|
+
font: string;
|
|
159
|
+
fontStyle: string;
|
|
160
|
+
fontVariant: string;
|
|
161
|
+
fontWeight: string;
|
|
162
|
+
fontSize: string;
|
|
163
|
+
fontFamily: string;
|
|
144
164
|
} | {
|
|
145
|
-
font:
|
|
165
|
+
font: string;
|
|
146
166
|
fontStyle?: undefined;
|
|
147
167
|
fontVariant?: undefined;
|
|
148
168
|
fontWeight?: undefined;
|
|
@@ -176,7 +196,7 @@ export declare class Text extends Image {
|
|
|
176
196
|
* @param {number} height - The height of the bounds.
|
|
177
197
|
* @returns {Text} This Text object for chaining.
|
|
178
198
|
*/
|
|
179
|
-
setTextBounds(x:
|
|
199
|
+
setTextBounds(x: number, y: number, width: number, height: number): this;
|
|
180
200
|
/**
|
|
181
201
|
* Updates the texture of this object.
|
|
182
202
|
*/
|
|
@@ -211,19 +231,19 @@ export declare class Text extends Image {
|
|
|
211
231
|
* @param {string} font - The font to determine properties for.
|
|
212
232
|
* @returns {object} The font properties.
|
|
213
233
|
*/
|
|
214
|
-
determineFontProperties(font:
|
|
234
|
+
determineFontProperties(font: string): any;
|
|
215
235
|
/**
|
|
216
236
|
* Determines font properties using a fallback method.
|
|
217
237
|
* @param {string} fontStyle - The font style to determine properties for.
|
|
218
238
|
* @returns {{ascent: number, descent: number, fontSize: number}} The font properties.
|
|
219
239
|
*/
|
|
220
|
-
determineFontPropertiesFallback(fontStyle:
|
|
240
|
+
determineFontPropertiesFallback(fontStyle: string): any;
|
|
221
241
|
/**
|
|
222
242
|
* Gets the bounds of this text object.
|
|
223
243
|
* @param {import('../geom/matrix.js').Matrix} matrix - The transformation matrix to use.
|
|
224
244
|
* @returns {Rectangle} The bounds of this text object.
|
|
225
245
|
*/
|
|
226
|
-
getBounds(matrix?:
|
|
246
|
+
getBounds(matrix?: import('../geom/matrix.js').Matrix): any;
|
|
227
247
|
/**
|
|
228
248
|
* Gets the text content of this object.
|
|
229
249
|
* @returns {string} The current text content.
|
|
@@ -248,152 +268,152 @@ export declare class Text extends Image {
|
|
|
248
268
|
* Gets the font family of this object.
|
|
249
269
|
* @returns {number} The font family.
|
|
250
270
|
*/
|
|
251
|
-
get font():
|
|
271
|
+
get font(): string;
|
|
252
272
|
/**
|
|
253
273
|
* Sets the font family of this object.
|
|
254
274
|
* @param {string} value - The new font family to set.
|
|
255
275
|
*/
|
|
256
|
-
set font(value:
|
|
276
|
+
set font(value: string);
|
|
257
277
|
/**
|
|
258
278
|
* Gets the font size of this object.
|
|
259
279
|
* @returns {number} The font size.
|
|
260
280
|
*/
|
|
261
|
-
get fontSize():
|
|
281
|
+
get fontSize(): number;
|
|
262
282
|
/**
|
|
263
283
|
* Sets the font size of this object.
|
|
264
284
|
* @param {number} value - The new font size to set.
|
|
265
285
|
*/
|
|
266
|
-
set fontSize(value:
|
|
286
|
+
set fontSize(value: number);
|
|
267
287
|
/**
|
|
268
288
|
* Gets the font weight of this object.
|
|
269
289
|
* @returns {string} The font weight.
|
|
270
290
|
*/
|
|
271
|
-
get fontWeight():
|
|
291
|
+
get fontWeight(): string;
|
|
272
292
|
/**
|
|
273
293
|
* Sets the font weight of this object.
|
|
274
294
|
* @param {string} value - The new font weight to set.
|
|
275
295
|
*/
|
|
276
|
-
set fontWeight(value:
|
|
296
|
+
set fontWeight(value: string);
|
|
277
297
|
/**
|
|
278
298
|
* Gets the font style of this object.
|
|
279
299
|
* @returns {string} The font style.
|
|
280
300
|
*/
|
|
281
|
-
get fontStyle():
|
|
301
|
+
get fontStyle(): string;
|
|
282
302
|
/**
|
|
283
303
|
* Sets the font style of this object.
|
|
284
304
|
* @param {string} value - The new font style to set.
|
|
285
305
|
*/
|
|
286
|
-
set fontStyle(value:
|
|
306
|
+
set fontStyle(value: string);
|
|
287
307
|
/**
|
|
288
308
|
* Gets the font variant of this object.
|
|
289
309
|
* @returns {string} The font variant.
|
|
290
310
|
*/
|
|
291
|
-
get fontVariant():
|
|
311
|
+
get fontVariant(): string;
|
|
292
312
|
/**
|
|
293
313
|
* Sets the font variant of this object.
|
|
294
314
|
* @param {string} value - The new font variant to set.
|
|
295
315
|
*/
|
|
296
|
-
set fontVariant(value:
|
|
316
|
+
set fontVariant(value: string);
|
|
297
317
|
/**
|
|
298
318
|
* Gets the fill color of this object.
|
|
299
319
|
* @returns {number} The fill color.
|
|
300
320
|
*/
|
|
301
|
-
get fill():
|
|
321
|
+
get fill(): string;
|
|
302
322
|
/**
|
|
303
323
|
* Sets the fill color of this object.
|
|
304
324
|
* @param {string} value - The new fill color to set.
|
|
305
325
|
*/
|
|
306
|
-
set fill(value:
|
|
326
|
+
set fill(value: string);
|
|
307
327
|
/**
|
|
308
328
|
* Gets the alignment of this object.
|
|
309
329
|
* @returns {string} The text alignment.
|
|
310
330
|
*/
|
|
311
|
-
get align():
|
|
331
|
+
get align(): string;
|
|
312
332
|
/**
|
|
313
333
|
* Sets the alignment of this object.
|
|
314
334
|
* @param {string} value - The new text alignment to set.
|
|
315
335
|
*/
|
|
316
|
-
set align(value:
|
|
336
|
+
set align(value: string);
|
|
317
337
|
/**
|
|
318
338
|
* Gets the resolution of this object.
|
|
319
339
|
* @returns {number} The resolution.
|
|
320
340
|
*/
|
|
321
|
-
get resolution():
|
|
341
|
+
get resolution(): number;
|
|
322
342
|
/**
|
|
323
343
|
* Sets the resolution of this object.
|
|
324
344
|
* @param {number} value - The new resolution to set.
|
|
325
345
|
*/
|
|
326
|
-
set resolution(value:
|
|
346
|
+
set resolution(value: number);
|
|
327
347
|
/**
|
|
328
348
|
* Gets the tabs setting of this object.
|
|
329
349
|
* @returns {number} The tabs setting.
|
|
330
350
|
*/
|
|
331
|
-
get tabs():
|
|
351
|
+
get tabs(): number;
|
|
332
352
|
/**
|
|
333
353
|
* Sets the tabs setting of this object.
|
|
334
354
|
* @param {number} value - The new tabs setting to set.
|
|
335
355
|
*/
|
|
336
|
-
set tabs(value:
|
|
356
|
+
set tabs(value: number);
|
|
337
357
|
/**
|
|
338
358
|
* Gets the horizontal bounds alignment of this object.
|
|
339
359
|
* @returns {number} The horizontal bounds alignment.
|
|
340
360
|
*/
|
|
341
|
-
get boundsAlignH():
|
|
361
|
+
get boundsAlignH(): number;
|
|
342
362
|
/**
|
|
343
363
|
* Sets the horizontal bounds alignment of this object.
|
|
344
364
|
* @param {number} value - The new horizontal bounds alignment to set.
|
|
345
365
|
*/
|
|
346
|
-
set boundsAlignH(value:
|
|
366
|
+
set boundsAlignH(value: number);
|
|
347
367
|
/**
|
|
348
368
|
* Gets the vertical bounds alignment of this object.
|
|
349
369
|
* @returns {number} The vertical bounds alignment.
|
|
350
370
|
*/
|
|
351
|
-
get boundsAlignV():
|
|
371
|
+
get boundsAlignV(): number;
|
|
352
372
|
/**
|
|
353
373
|
* Sets the vertical bounds alignment of this object.
|
|
354
374
|
* @param {number} value - The new vertical bounds alignment to set.
|
|
355
375
|
*/
|
|
356
|
-
set boundsAlignV(value:
|
|
376
|
+
set boundsAlignV(value: number);
|
|
357
377
|
/**
|
|
358
378
|
* Gets the stroke color of this object.
|
|
359
379
|
* @returns {number} The stroke color.
|
|
360
380
|
*/
|
|
361
|
-
get stroke():
|
|
381
|
+
get stroke(): string;
|
|
362
382
|
/**
|
|
363
383
|
* Sets the stroke color of this object.
|
|
364
384
|
* @param {string} value - The new stroke color to set.
|
|
365
385
|
*/
|
|
366
|
-
set stroke(value:
|
|
386
|
+
set stroke(value: string);
|
|
367
387
|
/**
|
|
368
388
|
* Gets the stroke thickness of this object.
|
|
369
389
|
* @returns {number} The stroke thickness.
|
|
370
390
|
*/
|
|
371
|
-
get strokeThickness():
|
|
391
|
+
get strokeThickness(): number;
|
|
372
392
|
/**
|
|
373
393
|
* Sets the stroke thickness of this object.
|
|
374
394
|
* @param {number} value - The new stroke thickness to set.
|
|
375
395
|
*/
|
|
376
|
-
set strokeThickness(value:
|
|
396
|
+
set strokeThickness(value: number);
|
|
377
397
|
/**
|
|
378
398
|
* Gets the word wrap setting of this object.
|
|
379
399
|
* @returns {number} The word wrap setting.
|
|
380
400
|
*/
|
|
381
|
-
get wordWrap():
|
|
401
|
+
get wordWrap(): boolean;
|
|
382
402
|
/**
|
|
383
403
|
* Sets the word wrap setting of this object.
|
|
384
404
|
* @param {boolean} value - The new word wrap setting to set.
|
|
385
405
|
*/
|
|
386
|
-
set wordWrap(value:
|
|
406
|
+
set wordWrap(value: boolean);
|
|
387
407
|
/**
|
|
388
408
|
* Gets the word wrap width of this object.
|
|
389
409
|
* @returns {number} The word wrap width.
|
|
390
410
|
*/
|
|
391
|
-
get wordWrapWidth():
|
|
411
|
+
get wordWrapWidth(): number;
|
|
392
412
|
/**
|
|
393
413
|
* Sets the word wrap width of this object.
|
|
394
414
|
* @param {number} value - The new word wrap width to set.
|
|
395
415
|
*/
|
|
396
|
-
set wordWrapWidth(value:
|
|
416
|
+
set wordWrapWidth(value: number);
|
|
397
417
|
/**
|
|
398
418
|
* Gets the line spacing of this object.
|
|
399
419
|
* @returns {number} The line spacing.
|
|
@@ -408,62 +428,62 @@ export declare class Text extends Image {
|
|
|
408
428
|
* Gets the shadow offset X of this object.
|
|
409
429
|
* @returns {number} The shadow offset X.
|
|
410
430
|
*/
|
|
411
|
-
get shadowOffsetX():
|
|
431
|
+
get shadowOffsetX(): number;
|
|
412
432
|
/**
|
|
413
433
|
* Sets the shadow offset X of this object.
|
|
414
434
|
* @param {number} value - The new shadow offset X to set.
|
|
415
435
|
*/
|
|
416
|
-
set shadowOffsetX(value:
|
|
436
|
+
set shadowOffsetX(value: number);
|
|
417
437
|
/**
|
|
418
438
|
* Gets the shadow offset Y of this object.
|
|
419
439
|
* @returns {number} The shadow offset Y.
|
|
420
440
|
*/
|
|
421
|
-
get shadowOffsetY():
|
|
441
|
+
get shadowOffsetY(): number;
|
|
422
442
|
/**
|
|
423
443
|
* Sets the shadow offset Y of this object.
|
|
424
444
|
* @param {number} value - The new shadow offset Y to set.
|
|
425
445
|
*/
|
|
426
|
-
set shadowOffsetY(value:
|
|
446
|
+
set shadowOffsetY(value: number);
|
|
427
447
|
/**
|
|
428
448
|
* Gets the shadow color of this object.
|
|
429
449
|
* @returns {number} The shadow color.
|
|
430
450
|
*/
|
|
431
|
-
get shadowColor():
|
|
451
|
+
get shadowColor(): string;
|
|
432
452
|
/**
|
|
433
453
|
* Sets the shadow color of this object.
|
|
434
454
|
* @param {string} value - The new shadow color to set.
|
|
435
455
|
*/
|
|
436
|
-
set shadowColor(value:
|
|
456
|
+
set shadowColor(value: string);
|
|
437
457
|
/**
|
|
438
458
|
* Gets the shadow blur of this object.
|
|
439
459
|
* @returns {number} The shadow blur.
|
|
440
460
|
*/
|
|
441
|
-
get shadowBlur():
|
|
461
|
+
get shadowBlur(): number;
|
|
442
462
|
/**
|
|
443
463
|
* Sets the shadow blur of this object.
|
|
444
464
|
* @param {number} value - The new shadow blur to set.
|
|
445
465
|
*/
|
|
446
|
-
set shadowBlur(value:
|
|
466
|
+
set shadowBlur(value: number);
|
|
447
467
|
/**
|
|
448
468
|
* Gets the shadow stroke setting of this object.
|
|
449
469
|
* @returns {number} The shadow stroke setting.
|
|
450
470
|
*/
|
|
451
|
-
get shadowStroke():
|
|
471
|
+
get shadowStroke(): boolean;
|
|
452
472
|
/**
|
|
453
473
|
* Sets the shadow stroke setting of this object.
|
|
454
474
|
* @param {boolean} value - The new shadow stroke setting to set.
|
|
455
475
|
*/
|
|
456
|
-
set shadowStroke(value:
|
|
476
|
+
set shadowStroke(value: boolean);
|
|
457
477
|
/**
|
|
458
478
|
* Gets the shadow fill setting of this object.
|
|
459
479
|
* @returns {number} The shadow fill setting.
|
|
460
480
|
*/
|
|
461
|
-
get shadowFill():
|
|
481
|
+
get shadowFill(): boolean;
|
|
462
482
|
/**
|
|
463
483
|
* Sets the shadow fill setting of this object.
|
|
464
484
|
* @param {boolean} value - The new shadow fill setting to set.
|
|
465
485
|
*/
|
|
466
|
-
set shadowFill(value:
|
|
486
|
+
set shadowFill(value: boolean);
|
|
467
487
|
/**
|
|
468
488
|
* Gets the width of this object.
|
|
469
489
|
* @returns {number} The width in pixels.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/text.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC,qBAAa,IAAK,SAAQ,KAAK;IACrB,IAAI,EAAE,GAAG,CAAC;IAClB,MAAM,EAAG,GAAG,CAAC;IACb,OAAO,EAAG,GAAG,CAAC;IACd,OAAO,EAAG,GAAG,CAAC;IACd,UAAU,EAAG,GAAG,CAAC;IACjB,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,YAAY,EAAG,GAAG,CAAC;IACnB,UAAU,EAAG,GAAG,CAAC;IACjB,WAAW,EAAG,GAAG,CAAC;IAClB,SAAS,EAAG,GAAG,CAAC;IAChB,eAAe,EAAG,GAAG,CAAC;IACtB,IAAI,EAAG,GAAG,CAAC;IACX,KAAK,EAAG,GAAG,CAAC;IACZ,eAAe,EAAG,GAAG,CAAC;IACtB,YAAY,EAAG,GAAG,CAAC;IACnB,UAAU,EAAG,GAAG,CAAC;IACT,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACrB,KAAK,EAAG,GAAG,CAAC;IACZ;;;;;;;OAOG;gBACS,IAAI,EAAE,OAAO,iBAAiB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,EAAE,KAAK,GAAE,GAAQ;IAsC1G;;OAEG;IACH,OAAO;IAiBP;;;;;;;;;OASG;IACH,SAAS,CACP,CAAC,GAAE,MAAU,EACb,CAAC,GAAE,MAAU,EACb,KAAK,GAAE,MAA2B,EAClC,IAAI,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
|
shaders: any;
|
|
4
5
|
dirty: any;
|
|
@@ -10,7 +11,7 @@ export declare class AbstractFilter {
|
|
|
10
11
|
* @param {string[]} fragmentSrc - The fragment shader source.
|
|
11
12
|
* @param {object} uniforms - The uniform variables for the shader.
|
|
12
13
|
*/
|
|
13
|
-
constructor(fragmentSrc:
|
|
14
|
+
constructor(fragmentSrc: string[], uniforms?: any);
|
|
14
15
|
/**
|
|
15
16
|
* Initializes the filter.
|
|
16
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract_filter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/abstract_filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abstract_filter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/abstract_filter.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,MAAM,EAAG,GAAG,CAAC;IACb,OAAO,EAAG,GAAG,CAAC;IACd,KAAK,EAAG,GAAG,CAAC;IACZ,OAAO,EAAG,GAAG,CAAC;IACd,QAAQ,EAAG,GAAG,CAAC;IACf,WAAW,EAAG,GAAG,CAAC;IAClB;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAG;IASjD;;OAEG;IACH,YAAY;CAKb"}
|
|
@@ -16,13 +16,13 @@ export declare class BaseTexture {
|
|
|
16
16
|
* @param {HTMLCanvasElement} source - The new canvas element to use as the texture source.
|
|
17
17
|
* @param {number} [scaleMode] - The scale mode to use for the texture.
|
|
18
18
|
*/
|
|
19
|
-
constructor(source: any, scaleMode
|
|
19
|
+
constructor(source: any, scaleMode?: any);
|
|
20
20
|
/**
|
|
21
21
|
* Updates the base texture with new dimensions.
|
|
22
22
|
* @param {number} width - The new width of the texture.
|
|
23
23
|
* @param {number} height - The new height of the texture.
|
|
24
24
|
*/
|
|
25
|
-
forceLoaded(width:
|
|
25
|
+
forceLoaded(width: number, height: number): void;
|
|
26
26
|
/**
|
|
27
27
|
* Destroys the texture.
|
|
28
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/base_texture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base_texture.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/base_texture.ts"],"names":[],"mappings":"AAEA,qBAAa,WAAW;IACtB,UAAU,EAAG,GAAG,CAAC;IACjB,KAAK,EAAG,GAAG,CAAC;IACZ,MAAM,EAAG,GAAG,CAAC;IACb,SAAS,EAAG,GAAG,CAAC;IAChB,SAAS,EAAG,GAAG,CAAC;IAChB,MAAM,EAAG,GAAG,CAAC;IACb,kBAAkB,EAAG,GAAG,CAAC;IACzB,WAAW,EAAG,GAAG,CAAC;IAClB,MAAM,EAAG,GAAG,CAAC;IACb,UAAU,EAAG,GAAG,CAAC;IACjB,SAAS,EAAG,GAAG,CAAC;IAChB,MAAM,EAAG,GAAG,CAAC;IACb;;;;OAIG;gBACS,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG;IAuBxC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAOzC;;OAEG;IACH,OAAO;IAQP;;OAEG;IACH,KAAK;IAML;;OAEG;IACH,aAAa;CAYd"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare class WebGLBlendModeManager {
|
|
2
|
+
[key: string]: any;
|
|
2
3
|
gl: any;
|
|
3
4
|
currentBlendMode: any;
|
|
4
5
|
/**
|
|
@@ -9,13 +10,13 @@ export declare class WebGLBlendModeManager {
|
|
|
9
10
|
* Initializes the blend mode manager with a WebGL context.
|
|
10
11
|
* @param {WebGLRenderingContext} gl - The WebGL rendering context.
|
|
11
12
|
*/
|
|
12
|
-
setContext(gl:
|
|
13
|
+
setContext(gl: WebGLRenderingContext): void;
|
|
13
14
|
/**
|
|
14
15
|
* Sets the blend mode for the specified WebGL context.
|
|
15
16
|
* @param {number} blendMode - The blend mode to set.
|
|
16
17
|
* @returns {boolean} True if the blend mode was set successfully, false otherwise.
|
|
17
18
|
*/
|
|
18
|
-
setBlendMode(blendMode:
|
|
19
|
+
setBlendMode(blendMode: number): boolean;
|
|
19
20
|
/**
|
|
20
21
|
* Sets the blend mode for the WebGL context.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blend_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/blend_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blend_manager.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/blend_manager.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACrB,EAAE,EAAG,GAAG,CAAC;IACT,gBAAgB,EAAG,GAAG,CAAC;IACrB;;OAEG;;IAMH;;;OAGG;IACH,UAAU,CAAC,EAAE,EAAE,qBAAqB;IAIpC;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM;IAY9B;;OAEG;IACH,OAAO;CAGR"}
|
|
@@ -21,7 +21,7 @@ export declare function compareX(a: any, b: any): number;
|
|
|
21
21
|
* @param {number} size - The size of the bounding box.
|
|
22
22
|
* @returns {number} The calculated distance from the point to the triangle edge.
|
|
23
23
|
*/
|
|
24
|
-
export declare function zOrder(x:
|
|
24
|
+
export declare function zOrder(x: number, y: number, minX: number, minY: number, size: number): number;
|
|
25
25
|
/**
|
|
26
26
|
* Calculates the orientation of three points (clockwise, counterclockwise, or collinear).
|
|
27
27
|
* @param {object} start - The starting point of the triangle edge.
|
|
@@ -29,7 +29,7 @@ export declare function zOrder(x: any, y: any, minX: any, minY: any, size: any):
|
|
|
29
29
|
* @param {number} minY - The minimum y-coordinate of the bounding box.
|
|
30
30
|
* @param {number} size - The size of the bounding box.
|
|
31
31
|
*/
|
|
32
|
-
export declare function indexCurve(start: any, minX:
|
|
32
|
+
export declare function indexCurve(start: any, minX: number, minY: number, size: number): void;
|
|
33
33
|
/**
|
|
34
34
|
* TBD.
|
|
35
35
|
* @param {object} start - TBD.
|
|
@@ -48,7 +48,7 @@ export declare function getLeftmost(start: any): any;
|
|
|
48
48
|
* @param {number} py - TBD.
|
|
49
49
|
* @returns {object} TBD.
|
|
50
50
|
*/
|
|
51
|
-
export declare function pointInTriangle(ax:
|
|
51
|
+
export declare function pointInTriangle(ax: number, ay: number, bx: number, by: number, cx: number, cy: number, px: number, py: number): boolean;
|
|
52
52
|
/**
|
|
53
53
|
* TBD.
|
|
54
54
|
* @param {object} p - TBD.
|
|
@@ -116,7 +116,7 @@ export declare function splitPolygon(a: any, b: any): Node;
|
|
|
116
116
|
* @param {object} last - TBD.
|
|
117
117
|
* @returns {object} TBD.
|
|
118
118
|
*/
|
|
119
|
-
export declare function insertNode(i:
|
|
119
|
+
export declare function insertNode(i: number, x: number, y: number, last: any): Node;
|
|
120
120
|
/**
|
|
121
121
|
* TBD.
|
|
122
122
|
* @param {object} p - TBD.
|
|
@@ -136,7 +136,7 @@ export declare function isEar(ear: any): boolean;
|
|
|
136
136
|
* @param {number} size - TBD.
|
|
137
137
|
* @returns {boolean} TBD.
|
|
138
138
|
*/
|
|
139
|
-
export declare function isEarHashed(ear: any, minX:
|
|
139
|
+
export declare function isEarHashed(ear: any, minX: number, minY: number, size: number): boolean;
|
|
140
140
|
/**
|
|
141
141
|
* TBD.
|
|
142
142
|
* @param {object} data - The earcut data structure containing the points.
|
|
@@ -146,7 +146,7 @@ export declare function isEarHashed(ear: any, minX: any, minY: any, size: any):
|
|
|
146
146
|
* @param {boolean} clockwise - Whether the triangles should be clockwise or counterclockwise.
|
|
147
147
|
* @returns {object} The processed earcut data structure with triangulation information.
|
|
148
148
|
*/
|
|
149
|
-
export declare function linkedList(data: any, start:
|
|
149
|
+
export declare function linkedList(data: any, start: number, end: number, dim: number, clockwise: boolean): any;
|
|
150
150
|
/**
|
|
151
151
|
* Calculates the minimum and maximum coordinates of a set of points.
|
|
152
152
|
* @param {object} start - The starting point in the data structure.
|
|
@@ -183,7 +183,7 @@ export declare function eliminateHoles(data: any, holeIndices: any, outerNode: a
|
|
|
183
183
|
* @param {number} dim - The dimension of the data (2 or 3).
|
|
184
184
|
* @returns {object} The processed triangulation data structure.
|
|
185
185
|
*/
|
|
186
|
-
export declare function cureLocalIntersections(start: any, triangles: any, dim:
|
|
186
|
+
export declare function cureLocalIntersections(start: any, triangles: any, dim: number): any;
|
|
187
187
|
/**
|
|
188
188
|
* Calculates the centroid of a polygon.
|
|
189
189
|
* @param {object} start - The starting point in the data structure.
|
|
@@ -193,7 +193,7 @@ export declare function cureLocalIntersections(start: any, triangles: any, dim:
|
|
|
193
193
|
* @param {number} minY - The minimum y-coordinate of the bounding box.
|
|
194
194
|
* @param {number} size - The size of the bounding box.
|
|
195
195
|
*/
|
|
196
|
-
export declare function splitEarcut(start: any, triangles: any, dim:
|
|
196
|
+
export declare function splitEarcut(start: any, triangles: any, dim: number, minX: number, minY: number, size: number): void;
|
|
197
197
|
/**
|
|
198
198
|
* Calculates the centroid of a polygon.
|
|
199
199
|
* @param {object} ear - The ear to process.
|
|
@@ -204,7 +204,7 @@ export declare function splitEarcut(start: any, triangles: any, dim: any, minX:
|
|
|
204
204
|
* @param {number} size - The size of the bounding box.
|
|
205
205
|
* @param {object} pass - The pass information for triangulation.
|
|
206
206
|
*/
|
|
207
|
-
export declare function earcutLinked(ear: any, triangles: any, dim:
|
|
207
|
+
export declare function earcutLinked(ear: any, triangles: any, dim: number, minX?: number, minY?: number, size?: number, pass?: any): void;
|
|
208
208
|
/**
|
|
209
209
|
* Calculates the centroid of a polygon.
|
|
210
210
|
* @param {object} data - The earcut data structure containing the points.
|
|
@@ -212,5 +212,5 @@ export declare function earcutLinked(ear: any, triangles: any, dim: any, minX?:
|
|
|
212
212
|
* @param {number} dim - The dimension of the data (2 or 3).
|
|
213
213
|
* @returns {object} The processed earcut data structure with triangulation information.
|
|
214
214
|
*/
|
|
215
|
-
export declare function triangulate(data: any, holeIndices: any, dim:
|
|
215
|
+
export declare function triangulate(data: any, holeIndices: any, dim: number): any[];
|
|
216
216
|
//# sourceMappingURL=earcut.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earcut.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/earcut.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"earcut.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/earcut.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,OA2DnC;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,UAEtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAapF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAW9E;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,OAQrC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,M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,GAAG,QAuC1H;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,SAkCnE"}
|
|
@@ -14,6 +14,6 @@ export declare class Node {
|
|
|
14
14
|
* @param {number} x - The x coordinate of the vertex.
|
|
15
15
|
* @param {number} y - The y coordinate of the vertex.
|
|
16
16
|
*/
|
|
17
|
-
constructor(i:
|
|
17
|
+
constructor(i: number, x: number, y: number);
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=earcut_node.d.ts.map
|