@vpmedia/phaser 1.94.0 → 1.95.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/CHANGELOG.md +12 -0
- package/package.json +5 -5
- package/pnpm-workspace.yaml +1 -1
- package/src/phaser/core/animation.js +18 -0
- package/src/phaser/core/animation_parser.js +2 -2
- package/src/phaser/core/dom.js +1 -1
- package/src/phaser/core/game.js +1 -1
- package/src/phaser/core/input_pointer.js +18 -0
- package/src/phaser/core/loader.js +2 -2
- package/src/phaser/core/scale_manager.js +3 -2
- package/src/phaser/core/time.js +24 -0
- package/src/phaser/core/timer.js +18 -0
- package/src/phaser/core/tween.js +16 -0
- package/src/phaser/core/tween_manager.js +3 -0
- package/src/phaser/display/bitmap_text.js +12 -1
- package/src/phaser/display/canvas/graphics.js +3 -3
- package/src/phaser/display/canvas/pool.js +4 -4
- package/src/phaser/display/canvas/renderer.js +1 -0
- package/src/phaser/display/canvas/util.js +8 -8
- package/src/phaser/display/graphics.js +17 -0
- package/src/phaser/display/group.js +13 -0
- package/src/phaser/display/image.js +15 -1
- package/src/phaser/display/text.js +8 -3
- package/src/phaser/display/webgl/base_texture.js +1 -1
- package/src/phaser/display/webgl/graphics.js +2 -2
- package/src/phaser/display/webgl/renderer.js +1 -0
- package/src/phaser/display/webgl/texture_util.js +4 -4
- package/src/phaser/geom/circle.js +5 -0
- package/src/phaser/geom/ellipse.js +5 -0
- package/src/phaser/geom/line.js +3 -0
- package/src/phaser/geom/matrix.js +7 -0
- package/src/phaser/geom/point.js +3 -0
- package/src/phaser/geom/polygon.js +5 -0
- package/src/phaser/geom/rectangle.js +5 -0
- package/src/phaser/geom/util/point.js +1 -1
- package/types/phaser/core/animation.d.ts +18 -0
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +3 -2
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +10 -3
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +2 -2
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +18 -0
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +6 -3
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/scale_manager.d.ts +6 -5
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/time.d.ts +24 -0
- package/types/phaser/core/time.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +18 -0
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/tween.d.ts +16 -0
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_manager.d.ts +6 -43
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +19 -3
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/canvas/graphics.d.ts +3 -3
- package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +6 -3
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +2 -1
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +6 -6
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +17 -1
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +12 -0
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +16 -5
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +33 -7
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/base_texture.d.ts +2 -2
- package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics.d.ts +2 -2
- package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +1 -0
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture_util.d.ts +4 -2
- package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/types/phaser/geom/circle.d.ts +5 -0
- package/types/phaser/geom/circle.d.ts.map +1 -1
- package/types/phaser/geom/ellipse.d.ts +5 -0
- package/types/phaser/geom/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/line.d.ts +3 -0
- package/types/phaser/geom/line.d.ts.map +1 -1
- package/types/phaser/geom/matrix.d.ts +7 -0
- package/types/phaser/geom/matrix.d.ts.map +1 -1
- package/types/phaser/geom/point.d.ts +3 -0
- package/types/phaser/geom/point.d.ts.map +1 -1
- package/types/phaser/geom/polygon.d.ts +7 -1
- package/types/phaser/geom/polygon.d.ts.map +1 -1
- package/types/phaser/geom/rectangle.d.ts +5 -0
- package/types/phaser/geom/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/point.d.ts +1 -1
- package/types/phaser/geom/util/point.d.ts.map +1 -1
|
@@ -13,31 +13,45 @@ export class Image extends DisplayObject {
|
|
|
13
13
|
* @param {import('../core/game.js').Game} game - TBD.
|
|
14
14
|
* @param {number} x - TBD.
|
|
15
15
|
* @param {number} y - TBD.
|
|
16
|
-
* @param {string} key - TBD.
|
|
16
|
+
* @param {string | number | Texture} key - TBD.
|
|
17
17
|
* @param {string | number} frame - TBD.
|
|
18
18
|
*/
|
|
19
19
|
constructor(game, x, y, key, frame = 0) {
|
|
20
20
|
super(game);
|
|
21
|
+
/** @type {number} */
|
|
21
22
|
this.type = IMAGE;
|
|
23
|
+
/** @type {boolean} */
|
|
22
24
|
this.renderable = true;
|
|
25
|
+
/** @type {string | number | Texture} */
|
|
23
26
|
this.key = key;
|
|
24
27
|
this.texture = window.PhaserRegistry.CACHE_MISSING_IMAGE;
|
|
25
28
|
/** @type {object} */
|
|
26
29
|
this.data = {};
|
|
30
|
+
/** @type {number} */
|
|
27
31
|
this._width = 0;
|
|
32
|
+
/** @type {number} */
|
|
28
33
|
this._height = 0;
|
|
34
|
+
/** @type {number} */
|
|
29
35
|
this.tint = 0xffffff;
|
|
36
|
+
/** @type {number} */
|
|
30
37
|
this.cachedTint = -1;
|
|
38
|
+
/** @type {Texture | null} */
|
|
39
|
+
this.tilingTexture = null;
|
|
40
|
+
/** @type {Texture | null} */
|
|
31
41
|
this.tintedTexture = null;
|
|
42
|
+
/** @type {number} */
|
|
32
43
|
this.blendMode = BLEND_NORMAL;
|
|
33
44
|
this.shader = null;
|
|
34
45
|
this._frame = null;
|
|
46
|
+
/** @type {boolean} */
|
|
35
47
|
this.pendingDestroy = false;
|
|
36
48
|
/* if (this.texture.baseTexture.hasLoaded) {
|
|
37
49
|
this.onTextureUpdate();
|
|
38
50
|
} */
|
|
39
51
|
this.position.setTo(x, y);
|
|
52
|
+
/** @type {EventManager} */
|
|
40
53
|
this.events = new EventManager(this);
|
|
54
|
+
/** @type {AnimationManager} */
|
|
41
55
|
this.animations = new AnimationManager(this);
|
|
42
56
|
this.loadTexture(key, frame);
|
|
43
57
|
}
|
|
@@ -19,6 +19,7 @@ export class Text extends Image {
|
|
|
19
19
|
constructor(game, x, y, text = '', style = {}) {
|
|
20
20
|
super(game, x, y, null);
|
|
21
21
|
this.game = game;
|
|
22
|
+
/** @type {number} */
|
|
22
23
|
this.type = TEXT;
|
|
23
24
|
this.canvas = create(this);
|
|
24
25
|
this.context = this.canvas.getContext('2d', { willReadFrequently: false });
|
|
@@ -38,9 +39,13 @@ export class Text extends Image {
|
|
|
38
39
|
this._res = game.renderer.resolution;
|
|
39
40
|
this._text = text.toString();
|
|
40
41
|
this._fontComponents = null;
|
|
42
|
+
/** @type {number} */
|
|
41
43
|
this._lineSpacing = 0;
|
|
44
|
+
/** @type {number} */
|
|
42
45
|
this._charCount = 0;
|
|
46
|
+
/** @type {number} */
|
|
43
47
|
this._width = 0;
|
|
48
|
+
/** @type {number} */
|
|
44
49
|
this._height = 0;
|
|
45
50
|
this.loadTexture(textureFromCanvas(this.canvas));
|
|
46
51
|
this.setStyle(style);
|
|
@@ -663,7 +668,7 @@ export class Text extends Image {
|
|
|
663
668
|
/**
|
|
664
669
|
* TBD.
|
|
665
670
|
* @param {string} font - TBD.
|
|
666
|
-
* @returns {
|
|
671
|
+
* @returns {{ font: string, fontStyle?: string, fontVariant?: string, fontWeight?: string, fontSize?: string, fontFamily?: string }} TBD.
|
|
667
672
|
*/
|
|
668
673
|
fontToComponents(font) {
|
|
669
674
|
// The format is specified in http://www.w3.org/TR/CSS2/fonts.html#font-shorthand:
|
|
@@ -868,7 +873,7 @@ export class Text extends Image {
|
|
|
868
873
|
|
|
869
874
|
/**
|
|
870
875
|
* TBD.
|
|
871
|
-
* @returns {
|
|
876
|
+
* @returns {{[key: string]: {ascent: number, descent: number, fontSize: number}}} TBD.
|
|
872
877
|
*/
|
|
873
878
|
getFontPropertiesCache() {
|
|
874
879
|
if (!window.PhaserRegistry.fontPropertiesCache) {
|
|
@@ -929,7 +934,7 @@ export class Text extends Image {
|
|
|
929
934
|
/**
|
|
930
935
|
* TBD.
|
|
931
936
|
* @param {string} fontStyle - TBD.
|
|
932
|
-
* @returns {
|
|
937
|
+
* @returns {{ascent: number, descent: number, fontSize: number}} TBD.
|
|
933
938
|
*/
|
|
934
939
|
determineFontPropertiesFallback(fontStyle) {
|
|
935
940
|
const fontPropertiesCache = this.getFontPropertiesCache();
|
|
@@ -484,7 +484,7 @@ export const buildPoly = (graphicsData, webGLData) => {
|
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* TBD.
|
|
487
|
-
* @param {
|
|
487
|
+
* @param {import('../graphics.js').Graphics} graphics - TBD.
|
|
488
488
|
* @param {WebGLRenderingContext & { id: number }} gl - TBD.
|
|
489
489
|
*/
|
|
490
490
|
export const updateGraphics = (graphics, gl) => {
|
|
@@ -573,7 +573,7 @@ export const updateGraphics = (graphics, gl) => {
|
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* TBD.
|
|
576
|
-
* @param {
|
|
576
|
+
* @param {import('../graphics.js').Graphics} graphics - TBD.
|
|
577
577
|
* @param {object} renderSession - TBD.
|
|
578
578
|
*/
|
|
579
579
|
export const renderGraphics = (graphics, renderSession) => {
|
|
@@ -4,8 +4,8 @@ import { Texture } from './texture.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* TBD.
|
|
6
6
|
* @param {HTMLCanvasElement} canvas - TBD.
|
|
7
|
-
* @param {number} scaleMode - TBD.
|
|
8
|
-
* @returns {
|
|
7
|
+
* @param {number} [scaleMode] - TBD.
|
|
8
|
+
* @returns {BaseTexture} TBD.
|
|
9
9
|
*/
|
|
10
10
|
export const baseTextureFromCanvas = (canvas, scaleMode) => {
|
|
11
11
|
if (canvas.width === 0) {
|
|
@@ -20,8 +20,8 @@ export const baseTextureFromCanvas = (canvas, scaleMode) => {
|
|
|
20
20
|
/**
|
|
21
21
|
* TBD.
|
|
22
22
|
* @param {HTMLCanvasElement} canvas - TBD.
|
|
23
|
-
* @param {number} scaleMode - TBD.
|
|
24
|
-
* @returns {
|
|
23
|
+
* @param {number} [scaleMode] - TBD.
|
|
24
|
+
* @returns {Texture} TBD.
|
|
25
25
|
*/
|
|
26
26
|
export const textureFromCanvas = (canvas, scaleMode) => {
|
|
27
27
|
return new Texture(baseTextureFromCanvas(canvas, scaleMode));
|
|
@@ -12,13 +12,18 @@ export class Circle {
|
|
|
12
12
|
* @param {number} diameter - TBD.
|
|
13
13
|
*/
|
|
14
14
|
constructor(x = 0, y = 0, diameter = 0) {
|
|
15
|
+
/** @type {number} */
|
|
15
16
|
this.x = x;
|
|
17
|
+
/** @type {number} */
|
|
16
18
|
this.y = y;
|
|
19
|
+
/** @type {number} */
|
|
17
20
|
this._diameter = diameter;
|
|
21
|
+
/** @type {number} */
|
|
18
22
|
this._radius = 0;
|
|
19
23
|
if (diameter > 0) {
|
|
20
24
|
this._radius = diameter * 0.5;
|
|
21
25
|
}
|
|
26
|
+
/** @type {number} */
|
|
22
27
|
this.type = GEOM_CIRCLE;
|
|
23
28
|
}
|
|
24
29
|
|
|
@@ -12,10 +12,15 @@ export class Ellipse {
|
|
|
12
12
|
* @param {number} height - TBD.
|
|
13
13
|
*/
|
|
14
14
|
constructor(x = 0, y = 0, width = 0, height = 0) {
|
|
15
|
+
/** @type {number} */
|
|
15
16
|
this.x = x;
|
|
17
|
+
/** @type {number} */
|
|
16
18
|
this.y = y;
|
|
19
|
+
/** @type {number} */
|
|
17
20
|
this.width = width;
|
|
21
|
+
/** @type {number} */
|
|
18
22
|
this.height = height;
|
|
23
|
+
/** @type {number} */
|
|
19
24
|
this.type = GEOM_ELLIPSE;
|
|
20
25
|
}
|
|
21
26
|
|
package/src/phaser/geom/line.js
CHANGED
|
@@ -12,8 +12,11 @@ export class Line {
|
|
|
12
12
|
* @param {number} y2 - TBD.
|
|
13
13
|
*/
|
|
14
14
|
constructor(x1 = 0, y1 = 0, x2 = 0, y2 = 0) {
|
|
15
|
+
/** @type {Point} */
|
|
15
16
|
this.start = new Point(x1, y1);
|
|
17
|
+
/** @type {Point} */
|
|
16
18
|
this.end = new Point(x2, y2);
|
|
19
|
+
/** @type {number} */
|
|
17
20
|
this.type = GEOM_LINE;
|
|
18
21
|
}
|
|
19
22
|
|
|
@@ -13,12 +13,19 @@ export class Matrix {
|
|
|
13
13
|
* @param {number} ty - TBD.
|
|
14
14
|
*/
|
|
15
15
|
constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0) {
|
|
16
|
+
/** @type {number} */
|
|
16
17
|
this.a = a;
|
|
18
|
+
/** @type {number} */
|
|
17
19
|
this.b = b;
|
|
20
|
+
/** @type {number} */
|
|
18
21
|
this.c = c;
|
|
22
|
+
/** @type {number} */
|
|
19
23
|
this.d = d;
|
|
24
|
+
/** @type {number} */
|
|
20
25
|
this.tx = tx;
|
|
26
|
+
/** @type {number} */
|
|
21
27
|
this.ty = ty;
|
|
28
|
+
/** @type {number} */
|
|
22
29
|
this.type = GEOM_MATRIX;
|
|
23
30
|
}
|
|
24
31
|
|
package/src/phaser/geom/point.js
CHANGED
|
@@ -8,10 +8,15 @@ export class Polygon {
|
|
|
8
8
|
* @param {object[]} points - TBD.
|
|
9
9
|
*/
|
|
10
10
|
constructor(points = null) {
|
|
11
|
+
/** @type {number} */
|
|
11
12
|
this.area = 0;
|
|
13
|
+
/** @type {Point[]} */
|
|
12
14
|
this._points = [];
|
|
15
|
+
/** @type {boolean} */
|
|
13
16
|
this.closed = true;
|
|
17
|
+
/** @type {boolean} */
|
|
14
18
|
this.flattened = false;
|
|
19
|
+
/** @type {number} */
|
|
15
20
|
this.type = GEOM_POLYGON;
|
|
16
21
|
if (points) {
|
|
17
22
|
this.setTo(points);
|
|
@@ -33,10 +33,15 @@ export class Rectangle {
|
|
|
33
33
|
* @param {number} height - TBD.
|
|
34
34
|
*/
|
|
35
35
|
constructor(x = 0, y = 0, width = 0, height = 0) {
|
|
36
|
+
/** @type {number} */
|
|
36
37
|
this.x = x;
|
|
38
|
+
/** @type {number} */
|
|
37
39
|
this.y = y;
|
|
40
|
+
/** @type {number} */
|
|
38
41
|
this.width = width;
|
|
42
|
+
/** @type {number} */
|
|
39
43
|
this.height = height;
|
|
44
|
+
/** @type {number} */
|
|
40
45
|
this.type = GEOM_RECTANGLE;
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -215,7 +215,7 @@ export const normalize = (a, output = null) => {
|
|
|
215
215
|
* @param {number} ang - TBD.
|
|
216
216
|
* @param {boolean} asDegrees - TBD.
|
|
217
217
|
* @param {number | null | undefined} dist - TBD.
|
|
218
|
-
* @returns {
|
|
218
|
+
* @returns {Point} TBD.
|
|
219
219
|
*/
|
|
220
220
|
export const rotate = (a, x, y, ang, asDegrees, dist) => {
|
|
221
221
|
if (asDegrees) {
|
|
@@ -10,26 +10,44 @@ export class Animation {
|
|
|
10
10
|
* @param {boolean} loop - TBD.
|
|
11
11
|
*/
|
|
12
12
|
constructor(game: import("./game.js").Game, parent: import("../display/image.js").Image, name: string, frameData: import("./frame_data.js").FrameData, frames: string[] | number[], frameRate: number, loop?: boolean);
|
|
13
|
+
/** @type {import('./game.js').Game} */
|
|
13
14
|
game: import("./game.js").Game;
|
|
14
15
|
_parent: import("../display/image.js").Image;
|
|
16
|
+
/** @type {import('./frame_data.js').FrameData} */
|
|
15
17
|
_frameData: import("./frame_data.js").FrameData;
|
|
18
|
+
/** @type {string} */
|
|
16
19
|
name: string;
|
|
17
20
|
_frames: any[];
|
|
21
|
+
/** @type {number} */
|
|
18
22
|
delay: number;
|
|
23
|
+
/** @type {boolean} */
|
|
19
24
|
loop: boolean;
|
|
25
|
+
/** @type {number} */
|
|
20
26
|
loopCount: number;
|
|
27
|
+
/** @type {boolean} */
|
|
21
28
|
isFinished: boolean;
|
|
29
|
+
/** @type {boolean} */
|
|
22
30
|
isPlaying: boolean;
|
|
31
|
+
/** @type {boolean} */
|
|
23
32
|
isPaused: boolean;
|
|
33
|
+
/** @type {number} */
|
|
24
34
|
_pauseStartTime: number;
|
|
35
|
+
/** @type {number} */
|
|
25
36
|
_frameIndex: number;
|
|
37
|
+
/** @type {number} */
|
|
26
38
|
_frameDiff: number;
|
|
39
|
+
/** @type {number} */
|
|
27
40
|
_frameSkip: number;
|
|
28
41
|
currentFrame: import("./frame.js").Frame;
|
|
42
|
+
/** @type {Signal} */
|
|
29
43
|
onStart: Signal;
|
|
44
|
+
/** @type {Signal} */
|
|
30
45
|
onUpdate: Signal;
|
|
46
|
+
/** @type {Signal} */
|
|
31
47
|
onComplete: Signal;
|
|
48
|
+
/** @type {Signal} */
|
|
32
49
|
onLoop: Signal;
|
|
50
|
+
/** @type {boolean} */
|
|
33
51
|
isReversed: boolean;
|
|
34
52
|
/**
|
|
35
53
|
* TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.js"],"names":[],"mappings":"AAEA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,WAAW,EAAE,IAAI,UACxB,OAAO,qBAAqB,EAAE,KAAK,QACnC,MAAM,aACN,OAAO,iBAAiB,EAAE,SAAS,UACnC,MAAM,EAAE,GAAC,MAAM,EAAE,aACjB,MAAM,SACN,OAAO,
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.js"],"names":[],"mappings":"AAEA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,WAAW,EAAE,IAAI,UACxB,OAAO,qBAAqB,EAAE,KAAK,QACnC,MAAM,aACN,OAAO,iBAAiB,EAAE,SAAS,UACnC,MAAM,EAAE,GAAC,MAAM,EAAE,aACjB,MAAM,SACN,OAAO,EA8CjB;IA3CC,uCAAuC;IACvC,MADW,OAAO,WAAW,EAAE,IAAI,CACnB;IAChB,6CAAqB;IACrB,kDAAkD;IAClD,YADW,OAAO,iBAAiB,EAAE,SAAS,CACnB;IAC3B,qBAAqB;IACrB,MADW,MAAM,CACD;IAChB,eAAiB;IAEjB,qBAAqB;IACrB,OADW,MAAM,CACY;IAC7B,sBAAsB;IACtB,MADW,OAAO,CACF;IAChB,qBAAqB;IACrB,WADW,MAAM,CACC;IAClB,sBAAsB;IACtB,YADW,OAAO,CACK;IACvB,sBAAsB;IACtB,WADW,OAAO,CACI;IACtB,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,qBAAqB;IACrB,iBADW,MAAM,CACO;IACxB,qBAAqB;IACrB,aADW,MAAM,CACG;IACpB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,yCAA4E;IAC5E,qBAAqB;IACrB,SADW,MAAM,CACU;IAC3B,qBAAqB;IACrB,UADW,MAAM,CACG;IACpB,qBAAqB;IACrB,YADW,MAAM,CACa;IAC9B,qBAAqB;IACrB,QADW,MAAM,CACS;IAC1B,sBAAsB;IACtB,YADW,OAAO,CACK;IAMzB;;;;;OAKG;IACH,iBAJW,MAAM,SACN,OAAO,GACL,SAAS,CAwBrB;IAiSD;;OAEG;IACH,kBATa,OAAO,EAgBnB;IAlBD;;;OAGG;IACH,cAFa,OAAO,CAInB;IAxSC,uBAAyC;IACzC,uBAAsD;IAUxD;;OAEG;IACH,gBAaC;IAED;;;OAGG;IACH,WAFa,SAAS,CAKrB;IA0RD;;OAEG;IACH,oBATa,OAAO,EAWnB;IAbD;;;OAGG;IACH,gBAFa,OAAO,CAInB;IAtRD;;;OAGG;IACH,eAFa,SAAS,CAKrB;IAED;;;;OAIG;IACH,kBAHW,MAAM,GAAC,MAAM,uBACb,OAAO,QA6BjB;IAED;;;;OAIG;IACH,kBAHW,OAAO,qBACP,OAAO,QAgBjB;IAED;;OAEG;IACH,gBAIC;IAED;;OAEG;IACH,iBAIC;IAED;;;OAGG;IACH,UAFa,OAAO,CAuDnB;IAED;;;;;OAKG;IACH,iCAJW,OAAO,aACP,OAAO,GACL,OAAO,CAmBnB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAehB;IAED;;;OAGG;IACH,oBAFW,MAAM,QAehB;IAED;;;OAGG;IACH,2BAFW,OAAO,iBAAiB,EAAE,SAAS,QAO7C;IAED;;OAEG;IACH,gBAmBC;IAED;;OAEG;IACH,iBAQC;IAqCD;;;OAGG;IACH,kBAFa,MAAM,CAIlB;IAaD;;OAEG;IACH,iBAZa,MAAM,EAqBlB;IAvBD;;;OAGG;IACH,aAFa,MAAM,CAOlB;IAwBD;;OAEG;IACH,iBATa,MAAM,EAalB;IAfD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAmBD;;OAEG;IACH,wBATa,OAAO,EAgBnB;IAlBD;;;OAGG;IACH,oBAFa,OAAO,CAInB;CAaF;uBAxdsB,aAAa"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export function spriteSheet(game: import("./game.js").Game, key: string, frameWidth: number, frameHeight: number, frameMax: number, margin: number, spacing: number):
|
|
2
|
-
export function JSONDataHash(game: import("./game.js").Game, json: object):
|
|
1
|
+
export function spriteSheet(game: import("./game.js").Game, key: string, frameWidth: number, frameHeight: number, frameMax: number, margin: number, spacing: number): FrameData;
|
|
2
|
+
export function JSONDataHash(game: import("./game.js").Game, json: object): FrameData;
|
|
3
|
+
import { FrameData } from './frame_data.js';
|
|
3
4
|
//# sourceMappingURL=animation_parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_parser.js"],"names":[],"mappings":"AAcO,kCATI,OAAO,WAAW,EAAE,IAAI,OACxB,MAAM,cACN,MAAM,eACN,MAAM,YACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,
|
|
1
|
+
{"version":3,"file":"animation_parser.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_parser.js"],"names":[],"mappings":"AAcO,kCATI,OAAO,WAAW,EAAE,IAAI,OACxB,MAAM,cACN,MAAM,eACN,MAAM,YACN,MAAM,UACN,MAAM,WACN,MAAM,GACJ,SAAS,CA4CrB;AAQM,mCAJI,OAAO,WAAW,EAAE,IAAI,QACxB,MAAM,GACJ,SAAS,CAiCrB;0BA9FyB,iBAAiB"}
|
|
@@ -28,9 +28,16 @@ export class DOM {
|
|
|
28
28
|
* TBD.
|
|
29
29
|
* @param {DOMRect} coords - TBD.
|
|
30
30
|
* @param {number} cushion - TBD.
|
|
31
|
-
* @returns {
|
|
32
|
-
*/
|
|
33
|
-
calibrate(coords: DOMRect, cushion?: number):
|
|
31
|
+
* @returns {{width: number, height: number, left: number, right: number, top: number, bottom: number}} TBD.
|
|
32
|
+
*/
|
|
33
|
+
calibrate(coords: DOMRect, cushion?: number): {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
left: number;
|
|
37
|
+
right: number;
|
|
38
|
+
top: number;
|
|
39
|
+
bottom: number;
|
|
40
|
+
};
|
|
34
41
|
/**
|
|
35
42
|
* TBD.
|
|
36
43
|
* @param {string} primaryFallback - TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/dom.js"],"names":[],"mappings":"AAqLA;IACE;;;OAGG;IACH,oBAFW,OAAO,aAAa,EAAE,MAAM,EActC;IAXC,wBAG6D;IAC7D,mEAA0G;IAC1G,mEAA0G;IAC1G,wCAAmD;IACnD,8BAC0G;IAC1G,8BACyG;IAG3G;;;;;OAKG;IACH,mBAJW,iBAAiB,UACjB,KAAK,GACH,KAAK,CAYjB;IAED;;;;;OAKG;IACH,mBAJW,iBAAiB,YACjB,MAAM,GACJ,OAAO,CAQnB;IAED;;;;;OAKG;IACH,kBAJW,OAAO,YACP,MAAM,GACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/dom.js"],"names":[],"mappings":"AAqLA;IACE;;;OAGG;IACH,oBAFW,OAAO,aAAa,EAAE,MAAM,EActC;IAXC,wBAG6D;IAC7D,mEAA0G;IAC1G,mEAA0G;IAC1G,wCAAmD;IACnD,8BAC0G;IAC1G,8BACyG;IAG3G;;;;;OAKG;IACH,mBAJW,iBAAiB,UACjB,KAAK,GACH,KAAK,CAYjB;IAED;;;;;OAKG;IACH,mBAJW,iBAAiB,YACjB,MAAM,GACJ,OAAO,CAQnB;IAED;;;;;OAKG;IACH,kBAJW,OAAO,YACP,MAAM,GACJ;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAcrG;IAED;;;;OAIG;IACH,sCAHW,MAAM,GACJ,MAAM,CA8BlB;IAED;;;OAGG;IACH,eAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,eAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,mBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;CACF;AA5TD;IACE;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;CACF;AAoCD;IACE;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;CACF;AAlED;IACE;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;CACF;AAoCD;IACE;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAMlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAMlB;CACF;AAKD;IACE;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAKlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAKlB;CACF;sBAnLqB,kBAAkB"}
|
|
@@ -29,8 +29,8 @@ export class Game {
|
|
|
29
29
|
logger: Logger;
|
|
30
30
|
/** @type {HTMLCanvasElement} */
|
|
31
31
|
canvas: HTMLCanvasElement;
|
|
32
|
-
/** @type {
|
|
33
|
-
context:
|
|
32
|
+
/** @type {CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext} */
|
|
33
|
+
context: CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
34
34
|
onPause: Signal;
|
|
35
35
|
onResume: Signal;
|
|
36
36
|
onBoot: Signal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AAqBA;IACE;;;OAGG;IACH,yBAFW,MAAM,EAoDhB;IA9CC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,yCAAoB;IACpB,oBAAiB;IACjB,kBAAqB;IACrB,gBAAmB;IACnB,2BAAe;IACf,uBAAe;IACf,aAAiB;IACjB,aAAiB;IACjB,aAAgB;IAChB,oBAAiB;IACjB,oBAAiB;IACjB,aAAiB;IACjB,WAAgB;IAChB,qBAAkB;IAClB,aAAiB;IACjB,eAA0B;IAC1B,qBAAqB;IACrB,QADW,MAAM,CACC;IAClB,gCAAgC;IAChC,QADW,iBAAiB,CACV;IAClB
|
|
1
|
+
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/game.js"],"names":[],"mappings":"AAqBA;IACE;;;OAGG;IACH,yBAFW,MAAM,EAoDhB;IA9CC,WAAgB;IAChB,WAAW;IACX,eAAgB;IAChB,cAAgB;IAChB,eAAiB;IACjB,yCAAoB;IACpB,oBAAiB;IACjB,kBAAqB;IACrB,gBAAmB;IACnB,2BAAe;IACf,uBAAe;IACf,aAAiB;IACjB,aAAiB;IACjB,aAAgB;IAChB,oBAAiB;IACjB,oBAAiB;IACjB,aAAiB;IACjB,WAAgB;IAChB,qBAAkB;IAClB,aAAiB;IACjB,eAA0B;IAC1B,qBAAqB;IACrB,QADW,MAAM,CACC;IAClB,gCAAgC;IAChC,QADW,iBAAiB,CACV;IAClB,sHAAsH;IACtH,SADW,wBAAwB,GAAG,2BAA2B,GAAG,qBAAqB,GAAG,sBAAsB,CAC/F;IACnB,gBAA2B;IAC3B,iBAA4B;IAC5B,eAA0B;IAC1B,kBAAqB;IAkBvB;;OAEG;IACH,aA+BC;IAED;;OAEG;IACH,6BAkBC;IAED;;OAEG;IACH,qBA2CC;IAnCK,2BAoFK,iBAAiB,GAAG,KAAK,UApFsB;IACpD,+BA+FK,iBAAiB,GAAG,KAAK,UA/F8B;IAoClE;;;;;OAKG;IACH,2BAJW,MAAM,OACN,MAAM,gBACN,GAAC,QAQX;IAED;;;OAGG;IACH,oBAFW,MAAM,QA2BhB;IAED;;;OAGG;IACH,mBAFW,iBAAiB,GAAG,KAAK,QAQnC;IAED;;;OAGG;IACH,uBAFW,iBAAiB,GAAG,KAAK,QASnC;IAED;;;OAGG;IACH,aAFW,MAAM,QAoBhB;IAED;;OAEG;IACH,gBAwCC;CACF;+BAlU8B,+BAA+B;8BAEhC,8BAA8B;6BAU/B,oBAAoB;sCAFX,UAAU;kCAHd,cAAc;sBAJ1B,YAAY;sBAKZ,YAAY;uBACX,aAAa;6BAEP,oBAAoB;6BAGpB,oBAAoB;sBAC3B,YAAY;qBACb,WAAW;6BACH,oBAAoB;sBAC3B,YAAY;uBAbX,aAAa;uBANb,mBAAmB;uBAcnB,aAAa"}
|
|
@@ -8,8 +8,10 @@ export class Pointer {
|
|
|
8
8
|
constructor(game: import("./game.js").Game, id: number, pointerMode: number);
|
|
9
9
|
game: import("./game.js").Game;
|
|
10
10
|
id: number;
|
|
11
|
+
/** @type {number} */
|
|
11
12
|
type: number;
|
|
12
13
|
exists: boolean;
|
|
14
|
+
/** @type {number} */
|
|
13
15
|
identifier: number;
|
|
14
16
|
pointerId: number;
|
|
15
17
|
pointerMode: number;
|
|
@@ -17,27 +19,43 @@ export class Pointer {
|
|
|
17
19
|
button: any;
|
|
18
20
|
_holdSent: boolean;
|
|
19
21
|
_history: any[];
|
|
22
|
+
/** @type {number} */
|
|
20
23
|
_nextDrop: number;
|
|
21
24
|
_stateReset: boolean;
|
|
22
25
|
withinGame: boolean;
|
|
23
26
|
clientX: number;
|
|
27
|
+
/** @type {number} */
|
|
24
28
|
clientY: number;
|
|
29
|
+
/** @type {number} */
|
|
25
30
|
pageX: number;
|
|
31
|
+
/** @type {number} */
|
|
26
32
|
pageY: number;
|
|
33
|
+
/** @type {number} */
|
|
27
34
|
screenX: number;
|
|
35
|
+
/** @type {number} */
|
|
28
36
|
screenY: number;
|
|
37
|
+
/** @type {number} */
|
|
29
38
|
rawMovementX: number;
|
|
39
|
+
/** @type {number} */
|
|
30
40
|
rawMovementY: number;
|
|
41
|
+
/** @type {number} */
|
|
31
42
|
movementX: number;
|
|
43
|
+
/** @type {number} */
|
|
32
44
|
movementY: number;
|
|
45
|
+
/** @type {number} */
|
|
33
46
|
x: number;
|
|
47
|
+
/** @type {number} */
|
|
34
48
|
y: number;
|
|
35
49
|
isMouse: boolean;
|
|
36
50
|
isDown: boolean;
|
|
37
51
|
isUp: boolean;
|
|
52
|
+
/** @type {number} */
|
|
38
53
|
timeDown: number;
|
|
54
|
+
/** @type {number} */
|
|
39
55
|
timeUp: number;
|
|
56
|
+
/** @type {number} */
|
|
40
57
|
previousTapTime: number;
|
|
58
|
+
/** @type {number} */
|
|
41
59
|
totalTouches: number;
|
|
42
60
|
msSinceLastClick: number;
|
|
43
61
|
targetObject: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input_pointer.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input_pointer.js"],"names":[],"mappings":"AAWA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,WAAW,EAAE,IAAI,MACxB,MAAM,eACN,MAAM,
|
|
1
|
+
{"version":3,"file":"input_pointer.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/input_pointer.js"],"names":[],"mappings":"AAWA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,WAAW,EAAE,IAAI,MACxB,MAAM,eACN,MAAM,EAiEhB;IA9DC,+BAAgB;IAChB,WAAY;IACZ,qBAAqB;IACrB,MADW,MAAM,CACE;IACnB,gBAAkB;IAClB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,kBAAqB;IACrB,oBAAkE;IAClE,oBAAkB;IAClB,YAAkB;IAClB,mBAAsB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AKjC;IAED;;;;OAIG;IACH,YAHW,UAAU,GAAC,YAAY,GACrB,OAAO,CAmDnB;IAED;;;;OAIG;IACH,sBAHW,MAAM,GACJ,OAAO,CAKnB;IAED;;;;OAIG;IACH,uBAHW,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,yBALW,MAAM,uCAEN,MAAM,gBACH,GAAG,EAAA,QAqBhB;IAED;;OAEG;IACH,gCAaC;IAED;;OAEG;IACH,cAgBC;IAED;;OAEG;IACH,sBAGC;IAED;;;OAGG;IACH,gBAFa,MAAM,CAOlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;CACF;sBAxhBqB,kBAAkB;uBADjB,mBAAmB"}
|
|
@@ -70,9 +70,12 @@ export class Loader {
|
|
|
70
70
|
* TBD.
|
|
71
71
|
* @param {string} type - TBD.
|
|
72
72
|
* @param {string} key - TBD.
|
|
73
|
-
* @returns {object} TBD.
|
|
73
|
+
* @returns {{index: number, file: object} | null} TBD.
|
|
74
74
|
*/
|
|
75
|
-
getAsset(type: string, key: string):
|
|
75
|
+
getAsset(type: string, key: string): {
|
|
76
|
+
index: number;
|
|
77
|
+
file: object;
|
|
78
|
+
} | null;
|
|
76
79
|
/**
|
|
77
80
|
* TBD.
|
|
78
81
|
* @param {boolean} hard - TBD.
|
|
@@ -235,7 +238,7 @@ export class Loader {
|
|
|
235
238
|
* TBD.
|
|
236
239
|
* @param {boolean} abnormal - TBD.
|
|
237
240
|
*/
|
|
238
|
-
finishedLoading(abnormal
|
|
241
|
+
finishedLoading(abnormal?: boolean): void;
|
|
239
242
|
/**
|
|
240
243
|
* TBD.
|
|
241
244
|
* @param {object} file - TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAmClC;IAhCC,+BAAgB;IAChB,kCAAuB;IACvB,mBAAsB;IACtB,kBAAqB;IACrB,oBAAsB;IACtB,iBAAiB;IACjB,mBAAsB;IACtB;;;;;;MAAyB;IACzB,qBAAwB;IACxB,gBAAiB;IACjB,aAAc;IACd;;;;MAIC;IACD,oBAA+B;IAC/B,uBAAkC;IAClC,uBAAkC;IAClC,oBAA+B;IAC/B,uBAAkC;IAClC,oBAA+B;IAC/B,0BAAuE;IACvE,4BAA4B;IAC5B,iBAAmB;IACnB,oBAAsB;IACtB,wBAAwB;IACxB,0BAA6B;IAC7B,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,yBAAyB;IAG3B;;;;OAIG;IACH,yBAHW,OAAO,qBAAqB,EAAE,KAAK,cACnC,MAAM,QAmBhB;IAED;;OAEG;IACH,eAIC;IAED;;;;;OAKG;IACH,qBAJW,MAAM,OACN,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,OACN,MAAM,GACJ,MAAM,CAgBlB;IAED;;;;;OAKG;IACH,eAJW,MAAM,OACN,MAAM,GACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/loader.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAmClC;IAhCC,+BAAgB;IAChB,kCAAuB;IACvB,mBAAsB;IACtB,kBAAqB;IACrB,oBAAsB;IACtB,iBAAiB;IACjB,mBAAsB;IACtB;;;;;;MAAyB;IACzB,qBAAwB;IACxB,gBAAiB;IACjB,aAAc;IACd;;;;MAIC;IACD,oBAA+B;IAC/B,uBAAkC;IAClC,uBAAkC;IAClC,oBAA+B;IAC/B,uBAAkC;IAClC,oBAA+B;IAC/B,0BAAuE;IACvE,4BAA4B;IAC5B,iBAAmB;IACnB,oBAAsB;IACtB,wBAAwB;IACxB,0BAA6B;IAC7B,wBAAwB;IACxB,wBAAwB;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;OAIG;IACH,sBAHW,MAAM,OACN,cAAc,QAoBxB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,QAAQ,CAqBpB;IAED;;OAEG;IACH,uBAcC;IAED;;;;OAIG;IACH,aAHW,MAAM,SACN,MAAM,GAAC,MAAM,QAOvB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,qBAFa,MAAM,CAKlB;IAED;;;OAGG;IACH,gBAFa,MAAM,CAIlB;CACF;uBA3qCsB,aAAa"}
|
|
@@ -43,7 +43,8 @@ export class ScaleManager {
|
|
|
43
43
|
bounds: Rectangle;
|
|
44
44
|
aspectRatio: number;
|
|
45
45
|
sourceAspectRatio: number;
|
|
46
|
-
|
|
46
|
+
/** @type {Event | null | undefined} */
|
|
47
|
+
event: Event | null | undefined;
|
|
47
48
|
windowConstraints: {
|
|
48
49
|
right: string;
|
|
49
50
|
bottom: string;
|
|
@@ -288,18 +289,18 @@ export class ScaleManager {
|
|
|
288
289
|
fullScreenChange(event: Event): void;
|
|
289
290
|
/**
|
|
290
291
|
* TBD.
|
|
291
|
-
* @param {Event} event - TBD.
|
|
292
|
+
* @param {Event} [event] - TBD.
|
|
292
293
|
*/
|
|
293
|
-
fullScreenError(event
|
|
294
|
+
fullScreenError(event?: Event): void;
|
|
294
295
|
/**
|
|
295
296
|
* TBD.
|
|
296
297
|
*/
|
|
297
298
|
destroy(): void;
|
|
298
299
|
/**
|
|
299
300
|
* TBD.
|
|
300
|
-
* @returns {
|
|
301
|
+
* @returns {ParentNode | null} TBD.
|
|
301
302
|
*/
|
|
302
|
-
get boundingParent():
|
|
303
|
+
get boundingParent(): ParentNode | null;
|
|
303
304
|
/**
|
|
304
305
|
* TBD.
|
|
305
306
|
* @returns {number} TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scale_manager.js"],"names":[],"mappings":"AAMA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,WAAW,EAAE,IAAI,SACxB,MAAM,UACN,MAAM,
|
|
1
|
+
{"version":3,"file":"scale_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/scale_manager.js"],"names":[],"mappings":"AAMA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,WAAW,EAAE,IAAI,SACxB,MAAM,UACN,MAAM,EA+EhB;IA5EC,+BAAgB;IAChB,SAA+B;IAC/B,cAAc;IACd,eAAe;IACf,iBAAoB;IACpB,iBAAoB;IACpB,kBAAqB;IACrB,kBAAqB;IACrB,cAAyB;IACzB,wBAA2B;IAC3B,uBAA0B;IAC1B,8BAAiC;IACjC,gCAAmC;IACnC,8BAAiC;IACjC,4BAAuC;IACvC,kCAA6C;IAC7C,kCAA6C;IAC7C,gCAAmC;IACnC,sBAA4B;IAC5B,yCAAoC;IACpC,yBAAoC;IACpC,2BAAsC;IACtC,0BAAqC;IACrC,0BAAwD;IACxD,mBAAkC;IAClC,2BAA0C;IAC1C;;;;;;;MAOC;IACD,kBAA6B;IAC7B,oBAAoB;IACpB,0BAA0B;IAC1B,uCAAuC;IACvC,OADW,KAAK,GAAG,IAAI,GAAG,SAAS,CAClB;IACjB;;;MAGC;IACD;;;;;;MAMC;IACD,mBAA2B;IAC3B,6BAAqC;IACrC,wBAA2B;IAC3B,wBAAsB;IACtB,yBAAwC;IACxC,4BAA+B;IAC/B,qBAAgC;IAChC,mBAAoB;IACpB,qBAA2B;IAC3B,uBAA6B;IAC7B;;;MAA8B;IAC9B,qBAAgC;IAChC,wBAAuC;IACvC,sBAAqC;IACrC,oBAAoB;IACpB,wBAAwB;IACxB,6BAA+B;IAC/B,yBAAoC;IACpC,uBAAkC;IAClC,mCAA8C;IAC9C,iCAA4C;IAC5C,iBAAoB;IAOtB;;OAEG;IACH,a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ACH,mBAFW,OAAO,QAQjB;IAED;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,mBAGC;IAED;;;OAGG;IACH,uBAFW,OAAO,QAcjB;IAED;;OAEG;IACH,oBAcC;IAED;;;OAGG;IACH,0BAFa,cAAc,CAQ1B;IAED;;;;;OAKG;IACH,2BAJW,OAAO,mBACP,OAAO,GACL,OAAO,CAkDnB;IAED;;;OAGG;IACH,kBAFa,OAAO,CASnB;IAED;;OAEG;IACH,6BAUC;IAED;;;OAGG;IACH,mCAFW,OAAO,QA8BjB;IAED;;;OAGG;IACH,wBAFW,KAAK,QAef;IAED;;;OAGG;IACH,wBAFW,KAAK,QAMf;IAED;;OAEG;IACH,gBAeC;IAED;;;OAGG;IACH,sBAFa,UAAU,GAAG,IAAI,CAQ7B;IAkDD;;;OAGG;IACH,wBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,6BAFa,OAAO,CAInB;IAED;;;OAGG;IACH,2BAFa,OAAO,CAInB;IAED;;;OAGG;IACH,oBAFa,OAAO,CASnB;IAED;;;OAGG;IACH,kBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,mBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,uBAFa,OAAO,CAInB;CACF;oBAp+BmB,UAAU;sBAHR,kBAAkB;uBAIjB,aAAa;0BAHV,sBAAsB"}
|
|
@@ -5,30 +5,54 @@ export class Time {
|
|
|
5
5
|
*/
|
|
6
6
|
constructor(game: import("./game.js").Game);
|
|
7
7
|
game: import("./game.js").Game;
|
|
8
|
+
/** @type {number} */
|
|
8
9
|
time: number;
|
|
10
|
+
/** @type {number} */
|
|
9
11
|
prevTime: number;
|
|
12
|
+
/** @type {number} */
|
|
10
13
|
now: number;
|
|
14
|
+
/** @type {number} */
|
|
11
15
|
elapsed: number;
|
|
16
|
+
/** @type {number} */
|
|
12
17
|
elapsedMS: number;
|
|
18
|
+
/** @type {number} */
|
|
13
19
|
desiredFpsMult: number;
|
|
20
|
+
/** @type {number} */
|
|
14
21
|
_desiredFps: number;
|
|
22
|
+
/** @type {number} */
|
|
15
23
|
suggestedFps: number;
|
|
24
|
+
/** @type {boolean} */
|
|
16
25
|
advancedTiming: boolean;
|
|
26
|
+
/** @type {number} */
|
|
17
27
|
frames: number;
|
|
28
|
+
/** @type {number} */
|
|
18
29
|
fps: number;
|
|
30
|
+
/** @type {number} */
|
|
19
31
|
fpsMin: number;
|
|
32
|
+
/** @type {number} */
|
|
20
33
|
fpsMax: number;
|
|
34
|
+
/** @type {number} */
|
|
21
35
|
msMin: number;
|
|
36
|
+
/** @type {number} */
|
|
22
37
|
msMax: number;
|
|
38
|
+
/** @type {number} */
|
|
23
39
|
pauseDuration: number;
|
|
40
|
+
/** @type {number} */
|
|
24
41
|
timeToCall: number;
|
|
42
|
+
/** @type {number} */
|
|
25
43
|
timeExpected: number;
|
|
44
|
+
/** @type {Timer} */
|
|
26
45
|
events: Timer;
|
|
46
|
+
/** @type {number} */
|
|
27
47
|
_frameCount: number;
|
|
48
|
+
/** @type {number} */
|
|
28
49
|
_elapsedAccumulator: number;
|
|
29
50
|
_started: number;
|
|
51
|
+
/** @type {number} */
|
|
30
52
|
_timeLastSecond: number;
|
|
53
|
+
/** @type {number} */
|
|
31
54
|
_pauseStarted: number;
|
|
55
|
+
/** @type {boolean} */
|
|
32
56
|
_justResumed: boolean;
|
|
33
57
|
/** @type {Timer[]} */
|
|
34
58
|
_timers: Timer[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/time.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/time.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAuDlC;IApDC,+BAAgB;IAChB,qBAAqB;IACrB,MADW,MAAM,CACJ;IACb,qBAAqB;IACrB,UADW,MAAM,CACA;IACjB,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,qBAAqB;IACrB,SADW,MAAM,CACD;IAChB,qBAAqB;IACrB,WADW,MAAM,CACC;IAClB,qBAAqB;IACrB,gBADW,MAAM,CACW;IAC5B,qBAAqB;IACrB,aADW,MAAM,CACI;IACrB,qBAAqB;IACrB,cADW,MAAM,CACkB;IACnC,sBAAsB;IACtB,gBADW,OAAO,CACS;IAC3B,qBAAqB;IACrB,QADW,MAAM,CACF;IACf,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,qBAAqB;IACrB,QADW,MAAM,CACC;IAClB,qBAAqB;IACrB,QADW,MAAM,CACF;IACf,qBAAqB;IACrB,OADW,MAAM,CACA;IACjB,qBAAqB;IACrB,OADW,MAAM,CACH;IACd,qBAAqB;IACrB,eADW,MAAM,CACK;IACtB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,qBAAqB;IACrB,cADW,MAAM,CACI;IACrB,oBAAoB;IACpB,QADW,KAAK,CACyB;IACzC,qBAAqB;IACrB,aADW,MAAM,CACG;IACpB,qBAAqB;IACrB,qBADW,MAAM,CACW;IAC5B,iBAAiB;IACjB,qBAAqB;IACrB,iBADW,MAAM,CACO;IACxB,qBAAqB;IACrB,eADW,MAAM,CACK;IACtB,sBAAsB;IACtB,cADW,OAAO,CACO;IACzB,sBAAsB;IACtB,SADW,KAAK,EAAE,CACD;IAGnB;;OAEG;IACH,aAKC;IAED;;;;OAIG;IACH,WAHW,KAAK,GACH,KAAK,CAKjB;IAED;;;;OAIG;IACH,qBAHW,OAAO,GACL,KAAK,CAMjB;IAED;;OAEG;IACH,kBAMC;IAED;;OAEG;IACH,gBAMC;IAED;;;OAGG;IACH,aAFW,MAAM,QA0BhB;IAED;;OAEG;IACH,qBAYC;IAED;;OAEG;IACH,6BAqBC;IAED;;OAEG;IACH,mBAQC;IAED;;OAEG;IACH,o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