@vpmedia/phaser 1.89.0 → 1.90.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 +10 -0
- package/package.json +1 -1
- package/src/phaser/core/factory.js +12 -12
- package/src/phaser/core/loader.js +2 -2
- package/src/phaser/core/signal.js +2 -2
- package/src/phaser/display/display_object.js +36 -6
- package/src/phaser/display/text.js +1 -1
- package/src/phaser/display/webgl/renderer.js +1 -1
- package/types/phaser/core/factory.d.ts +17 -17
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +2 -2
- package/types/phaser/core/signal.d.ts +2 -2
- package/types/phaser/core/stage.d.ts +0 -2
- package/types/phaser/core/stage.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +0 -1
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +44 -14
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +0 -1
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +0 -2
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +0 -3
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_batch.d.ts +0 -1
- package/types/phaser/display/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.0",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,8 +32,8 @@ export class GameObjectFactory {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* TBD.
|
|
35
|
-
* @param {Group} parent - TBD.
|
|
36
|
-
* @param {string} name - TBD.
|
|
35
|
+
* @param {Group | null} parent - TBD.
|
|
36
|
+
* @param {string | null} name - TBD.
|
|
37
37
|
* @param {boolean} addToStage - TBD.
|
|
38
38
|
* @returns {Group} TBD.
|
|
39
39
|
*/
|
|
@@ -47,7 +47,7 @@ export class GameObjectFactory {
|
|
|
47
47
|
* @param {number} y - TBD.
|
|
48
48
|
* @param {string} text - TBD.
|
|
49
49
|
* @param {object} style - TBD.
|
|
50
|
-
* @param {Group} group - TBD.
|
|
50
|
+
* @param {Group | null} group - TBD.
|
|
51
51
|
* @returns {Text} TBD.
|
|
52
52
|
*/
|
|
53
53
|
text(x, y, text, style, group = null) {
|
|
@@ -60,13 +60,13 @@ export class GameObjectFactory {
|
|
|
60
60
|
* @param {number} x - TBD.
|
|
61
61
|
* @param {number} y - TBD.
|
|
62
62
|
* @param {string} key - TBD.
|
|
63
|
-
* @param {Function} callback - TBD.
|
|
64
|
-
* @param {object} callbackContext - TBD.
|
|
65
|
-
* @param {string} overFrame - TBD.
|
|
66
|
-
* @param {string} outFrame - TBD.
|
|
67
|
-
* @param {string} downFrame - TBD.
|
|
68
|
-
* @param {string} upFrame - TBD.
|
|
69
|
-
* @param {Group} group - TBD.
|
|
63
|
+
* @param {Function | null} callback - TBD.
|
|
64
|
+
* @param {object | null} callbackContext - TBD.
|
|
65
|
+
* @param {string | null} overFrame - TBD.
|
|
66
|
+
* @param {string | null} outFrame - TBD.
|
|
67
|
+
* @param {string | null} downFrame - TBD.
|
|
68
|
+
* @param {string | null} upFrame - TBD.
|
|
69
|
+
* @param {Group | null} group - TBD.
|
|
70
70
|
* @returns {Button} TBD.
|
|
71
71
|
*/
|
|
72
72
|
button(
|
|
@@ -91,7 +91,7 @@ export class GameObjectFactory {
|
|
|
91
91
|
* TBD.
|
|
92
92
|
* @param {number} x - TBD.
|
|
93
93
|
* @param {number} y - TBD.
|
|
94
|
-
* @param {Group} group - TBD.
|
|
94
|
+
* @param {Group | null} group - TBD.
|
|
95
95
|
* @returns {Graphics} TBD.
|
|
96
96
|
*/
|
|
97
97
|
graphics(x = 0, y = 0, group = null) {
|
|
@@ -106,7 +106,7 @@ export class GameObjectFactory {
|
|
|
106
106
|
* @param {string} font - TBD.
|
|
107
107
|
* @param {string} text - TBD.
|
|
108
108
|
* @param {number} size - TBD.
|
|
109
|
-
* @param {Group} group - TBD.
|
|
109
|
+
* @param {Group | null} group - TBD.
|
|
110
110
|
* @param {string} align - TBD.
|
|
111
111
|
* @returns {BitmapText} TBD.
|
|
112
112
|
*/
|
|
@@ -396,7 +396,7 @@ export class Loader {
|
|
|
396
396
|
* @param {number} xSpacing - TBD.
|
|
397
397
|
* @param {number} ySpacing - TBD.
|
|
398
398
|
* @returns {Loader} TBD.
|
|
399
|
-
* @throws Error
|
|
399
|
+
* @throws {Error}
|
|
400
400
|
*/
|
|
401
401
|
bitmapFont(key, textureURL = null, atlasURL = null, atlasData = null, xSpacing = 0, ySpacing = 0) {
|
|
402
402
|
if (textureURL === undefined || textureURL === null) {
|
|
@@ -953,7 +953,7 @@ export class Loader {
|
|
|
953
953
|
* TBD.
|
|
954
954
|
* @param {object} file - TBD.
|
|
955
955
|
* @param {XMLHttpRequest} xhr - TBD.
|
|
956
|
-
* @throws Error
|
|
956
|
+
* @throws {Error}
|
|
957
957
|
*/
|
|
958
958
|
fileComplete(file, xhr) {
|
|
959
959
|
let loadNext = true;
|
|
@@ -17,7 +17,7 @@ export class Signal {
|
|
|
17
17
|
* TBD.
|
|
18
18
|
* @param {Function} listener - TBD.
|
|
19
19
|
* @param {string} fnName - TBD.
|
|
20
|
-
* @throws Error
|
|
20
|
+
* @throws {Error}
|
|
21
21
|
*/
|
|
22
22
|
validateListener(listener, fnName) {
|
|
23
23
|
if (typeof listener !== 'function') {
|
|
@@ -35,7 +35,7 @@ export class Signal {
|
|
|
35
35
|
* @param {number} priority - TBD.
|
|
36
36
|
* @param {...any} args - TBD.
|
|
37
37
|
* @returns {SignalBinding} TBD.
|
|
38
|
-
* @throws Error
|
|
38
|
+
* @throws {Error}
|
|
39
39
|
*/
|
|
40
40
|
_registerListener(listener, isOnce = false, listenerContext = null, priority = 0, args = null) {
|
|
41
41
|
const prevIndex = this._indexOfListener(listener, listenerContext);
|
|
@@ -10,32 +10,62 @@ export class DisplayObject {
|
|
|
10
10
|
* TBD.
|
|
11
11
|
*/
|
|
12
12
|
constructor() {
|
|
13
|
+
/** @type {boolean} */
|
|
13
14
|
this.exists = true;
|
|
15
|
+
/** @type {boolean} */
|
|
14
16
|
this.renderable = false;
|
|
17
|
+
/** @type {boolean} */
|
|
15
18
|
this.visible = true;
|
|
19
|
+
/** @type {Point} */
|
|
16
20
|
this.position = new Point(0, 0);
|
|
21
|
+
/** @type {Point} */
|
|
17
22
|
this.scale = new Point(1, 1);
|
|
23
|
+
/** @type {Point} */
|
|
18
24
|
this.pivot = new Point(0, 0);
|
|
25
|
+
/** @type {Point} */
|
|
19
26
|
this.anchor = new Point(0, 0);
|
|
27
|
+
/** @type {number} */
|
|
20
28
|
this.rotation = 0;
|
|
29
|
+
/** @type {number} */
|
|
21
30
|
this.alpha = 1;
|
|
31
|
+
/** @type {Rectangle} */
|
|
22
32
|
this.hitArea = null;
|
|
33
|
+
/** @type {DisplayObject} */
|
|
23
34
|
this.parent = null;
|
|
35
|
+
/** @type {number} */
|
|
24
36
|
this.worldAlpha = 1;
|
|
37
|
+
/** @type {Matrix} */
|
|
25
38
|
this.worldTransform = new Matrix();
|
|
26
39
|
// this.worldPosition = new Point(0, 0);
|
|
40
|
+
/** @type {Point} */
|
|
27
41
|
this.worldScale = new Point(1, 1);
|
|
28
42
|
// this.worldRotation = 0;
|
|
43
|
+
/** @type {Rectangle} */
|
|
29
44
|
this.filterArea = null;
|
|
45
|
+
/** @type {number} */
|
|
30
46
|
this._sr = 0;
|
|
47
|
+
/** @type {number} */
|
|
31
48
|
this._cr = 1;
|
|
49
|
+
/** @type {Rectangle} */
|
|
32
50
|
this.cachedBounds = new Rectangle(0, 0, 0, 0);
|
|
51
|
+
/** @type {Rectangle} */
|
|
33
52
|
this.currentBounds = null;
|
|
53
|
+
/** @type {import('./graphics.js').Graphics} */
|
|
34
54
|
this._mask = null;
|
|
55
|
+
/** @type {object[]} */
|
|
35
56
|
this._filters = null;
|
|
57
|
+
/** @type {object} */
|
|
36
58
|
this._filterBlock = null;
|
|
59
|
+
/** @type {object[]} */
|
|
37
60
|
this.children = [];
|
|
61
|
+
/** @type {boolean} */
|
|
38
62
|
this.ignoreChildInput = false;
|
|
63
|
+
/** @type {string | null } */
|
|
64
|
+
this.name = this.name ?? null;
|
|
65
|
+
/** @type {object | null } */
|
|
66
|
+
this.data = this.data ?? null;
|
|
67
|
+
/** @type {import('../core/game.js').Game | null } */
|
|
68
|
+
this.game = this.game ?? null;
|
|
39
69
|
}
|
|
40
70
|
|
|
41
71
|
/**
|
|
@@ -86,7 +116,7 @@ export class DisplayObject {
|
|
|
86
116
|
* @param {DisplayObject} child - TBD.
|
|
87
117
|
* @param {number} index - TBD.
|
|
88
118
|
* @returns {DisplayObject} TBD.
|
|
89
|
-
* @throws Error
|
|
119
|
+
* @throws {Error}
|
|
90
120
|
*/
|
|
91
121
|
addChildAt(child, index) {
|
|
92
122
|
if (index >= 0 && index <= this.children.length) {
|
|
@@ -104,7 +134,7 @@ export class DisplayObject {
|
|
|
104
134
|
* TBD.
|
|
105
135
|
* @param {DisplayObject} child - TBD.
|
|
106
136
|
* @param {DisplayObject} child2 - TBD.
|
|
107
|
-
* @throws Error
|
|
137
|
+
* @throws {Error}
|
|
108
138
|
*/
|
|
109
139
|
swapChildren(child, child2) {
|
|
110
140
|
if (child === child2) {
|
|
@@ -123,7 +153,7 @@ export class DisplayObject {
|
|
|
123
153
|
* TBD.
|
|
124
154
|
* @param {DisplayObject} child - TBD.
|
|
125
155
|
* @returns {number} TBD.
|
|
126
|
-
* @throws Error
|
|
156
|
+
* @throws {Error}
|
|
127
157
|
*/
|
|
128
158
|
getChildIndex(child) {
|
|
129
159
|
const index = this.children.indexOf(child);
|
|
@@ -137,7 +167,7 @@ export class DisplayObject {
|
|
|
137
167
|
* TBD.
|
|
138
168
|
* @param {DisplayObject} child - TBD.
|
|
139
169
|
* @param {number} index - TBD.
|
|
140
|
-
* @throws Error
|
|
170
|
+
* @throws {Error}
|
|
141
171
|
*/
|
|
142
172
|
setChildIndex(child, index) {
|
|
143
173
|
if (index < 0 || index >= this.children.length) {
|
|
@@ -152,7 +182,7 @@ export class DisplayObject {
|
|
|
152
182
|
* TBD.
|
|
153
183
|
* @param {number} index - TBD.
|
|
154
184
|
* @returns {DisplayObject} TBD.
|
|
155
|
-
* @throws Error
|
|
185
|
+
* @throws {Error}
|
|
156
186
|
*/
|
|
157
187
|
getChildAt(index) {
|
|
158
188
|
if (index < 0 || index >= this.children.length) {
|
|
@@ -197,7 +227,7 @@ export class DisplayObject {
|
|
|
197
227
|
* @param {number} beginIndex - TBD.
|
|
198
228
|
* @param {number} endIndex - TBD.
|
|
199
229
|
* @returns {DisplayObject[]} TBD.
|
|
200
|
-
* @throws Error
|
|
230
|
+
* @throws {Error}
|
|
201
231
|
*/
|
|
202
232
|
removeChildren(beginIndex, endIndex) {
|
|
203
233
|
if (beginIndex === undefined) {
|
|
@@ -17,45 +17,45 @@ export class GameObjectFactory {
|
|
|
17
17
|
image(x: number, y: number, key: string, frame: string | number, group?: Group): Image;
|
|
18
18
|
/**
|
|
19
19
|
* TBD.
|
|
20
|
-
* @param {Group} parent - TBD.
|
|
21
|
-
* @param {string} name - TBD.
|
|
20
|
+
* @param {Group | null} parent - TBD.
|
|
21
|
+
* @param {string | null} name - TBD.
|
|
22
22
|
* @param {boolean} addToStage - TBD.
|
|
23
23
|
* @returns {Group} TBD.
|
|
24
24
|
*/
|
|
25
|
-
group(parent?: Group, name?: string, addToStage?: boolean): Group;
|
|
25
|
+
group(parent?: Group | null, name?: string | null, addToStage?: boolean): Group;
|
|
26
26
|
/**
|
|
27
27
|
* TBD.
|
|
28
28
|
* @param {number} x - TBD.
|
|
29
29
|
* @param {number} y - TBD.
|
|
30
30
|
* @param {string} text - TBD.
|
|
31
31
|
* @param {object} style - TBD.
|
|
32
|
-
* @param {Group} group - TBD.
|
|
32
|
+
* @param {Group | null} group - TBD.
|
|
33
33
|
* @returns {Text} TBD.
|
|
34
34
|
*/
|
|
35
|
-
text(x: number, y: number, text: string, style: object, group?: Group): Text;
|
|
35
|
+
text(x: number, y: number, text: string, style: object, group?: Group | null): Text;
|
|
36
36
|
/**
|
|
37
37
|
* TBD.
|
|
38
38
|
* @param {number} x - TBD.
|
|
39
39
|
* @param {number} y - TBD.
|
|
40
40
|
* @param {string} key - TBD.
|
|
41
|
-
* @param {Function} callback - TBD.
|
|
42
|
-
* @param {object} callbackContext - TBD.
|
|
43
|
-
* @param {string} overFrame - TBD.
|
|
44
|
-
* @param {string} outFrame - TBD.
|
|
45
|
-
* @param {string} downFrame - TBD.
|
|
46
|
-
* @param {string} upFrame - TBD.
|
|
47
|
-
* @param {Group} group - TBD.
|
|
41
|
+
* @param {Function | null} callback - TBD.
|
|
42
|
+
* @param {object | null} callbackContext - TBD.
|
|
43
|
+
* @param {string | null} overFrame - TBD.
|
|
44
|
+
* @param {string | null} outFrame - TBD.
|
|
45
|
+
* @param {string | null} downFrame - TBD.
|
|
46
|
+
* @param {string | null} upFrame - TBD.
|
|
47
|
+
* @param {Group | null} group - TBD.
|
|
48
48
|
* @returns {Button} TBD.
|
|
49
49
|
*/
|
|
50
|
-
button(x: number, y: number, key: string, callback?: Function, callbackContext?: object, overFrame?: string, outFrame?: string, downFrame?: string, upFrame?: string, group?: Group): Button;
|
|
50
|
+
button(x: number, y: number, key: string, callback?: Function | null, callbackContext?: object | null, overFrame?: string | null, outFrame?: string | null, downFrame?: string | null, upFrame?: string | null, group?: Group | null): Button;
|
|
51
51
|
/**
|
|
52
52
|
* TBD.
|
|
53
53
|
* @param {number} x - TBD.
|
|
54
54
|
* @param {number} y - TBD.
|
|
55
|
-
* @param {Group} group - TBD.
|
|
55
|
+
* @param {Group | null} group - TBD.
|
|
56
56
|
* @returns {Graphics} TBD.
|
|
57
57
|
*/
|
|
58
|
-
graphics(x?: number, y?: number, group?: Group): Graphics;
|
|
58
|
+
graphics(x?: number, y?: number, group?: Group | null): Graphics;
|
|
59
59
|
/**
|
|
60
60
|
* TBD.
|
|
61
61
|
* @param {number} x - TBD.
|
|
@@ -63,11 +63,11 @@ export class GameObjectFactory {
|
|
|
63
63
|
* @param {string} font - TBD.
|
|
64
64
|
* @param {string} text - TBD.
|
|
65
65
|
* @param {number} size - TBD.
|
|
66
|
-
* @param {Group} group - TBD.
|
|
66
|
+
* @param {Group | null} group - TBD.
|
|
67
67
|
* @param {string} align - TBD.
|
|
68
68
|
* @returns {BitmapText} TBD.
|
|
69
69
|
*/
|
|
70
|
-
bitmapText(x: number, y: number, font: string, text: string, size: number, group?: Group, align?: string): BitmapText;
|
|
70
|
+
bitmapText(x: number, y: number, font: string, text: string, size: number, group?: Group | null, align?: string): BitmapText;
|
|
71
71
|
}
|
|
72
72
|
import { Group } from '../display/group.js';
|
|
73
73
|
import { Image } from '../display/image.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/factory.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAIlC;IADC,+BAAgB;IAGlB;;;;;;;;OAQG;IACH,SAPW,MAAM,KACN,MAAM,OACN,MAAM,SACN,MAAM,GAAC,MAAM,UACb,KAAK,GACH,KAAK,CAOjB;IAED;;;;;;OAMG;IACH,eALW,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/factory.js"],"names":[],"mappings":"AAOA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAIlC;IADC,+BAAgB;IAGlB;;;;;;;;OAQG;IACH,SAPW,MAAM,KACN,MAAM,OACN,MAAM,SACN,MAAM,GAAC,MAAM,UACb,KAAK,GACH,KAAK,CAOjB;IAED;;;;;;OAMG;IACH,eALW,KAAK,GAAG,IAAI,SACZ,MAAM,GAAG,IAAI,eACb,OAAO,GACL,KAAK,CAIjB;IAED;;;;;;;;OAQG;IACH,QAPW,MAAM,KACN,MAAM,QACN,MAAM,SACN,MAAM,UACN,KAAK,GAAG,IAAI,GACV,IAAI,CAKhB;IAED;;;;;;;;;;;;;OAaG;IACH,UAZW,MAAM,KACN,MAAM,OACN,MAAM,aACN,WAAW,IAAI,oBACf,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,aACb,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,YACb,MAAM,GAAG,IAAI,UACb,KAAK,GAAG,IAAI,GACV,MAAM,CAkBlB;IAED;;;;;;OAMG;IACH,aALW,MAAM,MACN,MAAM,UACN,KAAK,GAAG,IAAI,GACV,QAAQ,CAKpB;IAED;;;;;;;;;;OAUG;IACH,cATW,MAAM,KACN,MAAM,QACN,MAAM,QACN,MAAM,QACN,MAAM,UACN,KAAK,GAAG,IAAI,UACZ,MAAM,GACJ,UAAU,CAKtB;CACF;sBAjHqB,qBAAqB;sBACrB,qBAAqB;qBACtB,oBAAoB;uBAJlB,sBAAsB;yBACpB,wBAAwB;2BAFtB,2BAA2B"}
|
|
@@ -186,7 +186,7 @@ export class Loader {
|
|
|
186
186
|
* @param {number} xSpacing - TBD.
|
|
187
187
|
* @param {number} ySpacing - TBD.
|
|
188
188
|
* @returns {Loader} TBD.
|
|
189
|
-
* @throws Error
|
|
189
|
+
* @throws {Error}
|
|
190
190
|
*/
|
|
191
191
|
bitmapFont(key: string, textureURL?: string, atlasURL?: string, atlasData?: object, xSpacing?: number, ySpacing?: number): Loader;
|
|
192
192
|
/**
|
|
@@ -294,7 +294,7 @@ export class Loader {
|
|
|
294
294
|
* TBD.
|
|
295
295
|
* @param {object} file - TBD.
|
|
296
296
|
* @param {XMLHttpRequest} xhr - TBD.
|
|
297
|
-
* @throws Error
|
|
297
|
+
* @throws {Error}
|
|
298
298
|
*/
|
|
299
299
|
fileComplete(file: object, xhr: XMLHttpRequest): void;
|
|
300
300
|
/**
|
|
@@ -9,7 +9,7 @@ export class Signal {
|
|
|
9
9
|
* TBD.
|
|
10
10
|
* @param {Function} listener - TBD.
|
|
11
11
|
* @param {string} fnName - TBD.
|
|
12
|
-
* @throws Error
|
|
12
|
+
* @throws {Error}
|
|
13
13
|
*/
|
|
14
14
|
validateListener(listener: Function, fnName: string): void;
|
|
15
15
|
/**
|
|
@@ -20,7 +20,7 @@ export class Signal {
|
|
|
20
20
|
* @param {number} priority - TBD.
|
|
21
21
|
* @param {...any} args - TBD.
|
|
22
22
|
* @returns {SignalBinding} TBD.
|
|
23
|
-
* @throws Error
|
|
23
|
+
* @throws {Error}
|
|
24
24
|
*/
|
|
25
25
|
_registerListener(listener: Function, isOnce?: boolean, listenerContext?: object, priority?: number, args?: any[]): SignalBinding;
|
|
26
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/stage.js"],"names":[],"mappings":"AAMA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAuBlC;
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/stage.js"],"names":[],"mappings":"AAMA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAuBlC;IAhBC,6BAA6B;IAC7B;;;;;;;MAOC;IAUH;;;OAGG;IACH,0BAFW,MAAM,QAYhB;IAED;;OAEG;IACH,aAGC;IAkCD;;OAEG;IACH,wBAKC;IAoBD;;OAEG;IACH,2BATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,uBAFa,MAAM,CAIlB;IAiBD;;OAEG;IACH,oBATa,OAAO,EAWnB;IAbD;;;OAGG;IACH,gBAFa,OAAO,CAInB;CAQF;8BA1I6B,8BAA8B"}
|
|
@@ -10,7 +10,6 @@ export class BitmapText extends DisplayObject {
|
|
|
10
10
|
* @param {string} align - TBD.
|
|
11
11
|
*/
|
|
12
12
|
constructor(game: import("../core/game.js").Game, x?: number, y?: number, font?: string, text?: string, size?: number, align?: string);
|
|
13
|
-
game: import("../core/game.js").Game;
|
|
14
13
|
type: number;
|
|
15
14
|
textWidth: number;
|
|
16
15
|
textHeight: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitmap_text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/bitmap_text.js"],"names":[],"mappings":"AAKA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,iBAAiB,EAAE,IAAI,MAC9B,MAAM,MACN,MAAM,SACN,MAAM,SACN,MAAM,SACN,MAAM,UACN,MAAM,EAoBhB;
|
|
1
|
+
{"version":3,"file":"bitmap_text.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/bitmap_text.js"],"names":[],"mappings":"AAKA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,iBAAiB,EAAE,IAAI,MAC9B,MAAM,MACN,MAAM,SACN,MAAM,SACN,MAAM,SACN,MAAM,UACN,MAAM,EAoBhB;IAfC,aAAuB;IAEvB,kBAAkB;IAClB,mBAAmB;IACnB,mBAA8B;IAC9B,iBAAiB;IACjB,kBAAkB;IAClB,cAAkC;IAClC,WAA2C;IAC3C,cAAiB;IACjB,kBAAqB;IACrB,eAAmB;IACnB,cAAqB;IAErB,eAAkB;IAwBhB,sBAAuB;IAY3B;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAkUD;;;OAGG;IACH,gBAFW,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAQ1C;IAlBD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IA9TD;;;;;;OAMG;IACH,eALW,MAAM,SACN,MAAM,QACN,MAAM,GACJ,MAAM,CA6DlB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,YACN,MAAM,GACJ,MAAM,CAsBlB;IAED;;OAEG;IACH,mBAkEC;IAED;;;OAGG;IACH,eAFa,MAAM,CAiBlB;IAED;;OAEG;IACH,wBAOC;IAED;;;;;OAKG;IACH,gBAJW,MAAM,YACN,MAAM,GACJ,UAAU,CAStB;IAUD;;OAEG;IACH,iBATa,MAAM,EAclB;IAhBD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAoBD;;OAEG;IACH,gBATa,MAAM,EAclB;IAhBD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IA2BD;;OAEG;IACH,gBAhBa,MAAM,EAkBlB;IApBD;;;OAGG;IACH,YAFa,MAAM,CAWlB;IAiBD;;OAEG;IACH,gBATa,MAAM,EAgBlB;IAlBD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAsBD;;OAEG;IACH,oBATa,MAAM,EAelB;IAjBD;;;OAGG;IACH,gBAFa,MAAM,CAIlB;IAyCD;;OAEG;IACH,oBATa,MAAM,EAclB;IAhBD;;;OAGG;IACH,gBAFa,MAAM,CAIlB;IAoBD;;OAEG;IACH,oBATa,OAAO,EAenB;IAjBD;;;OAGG;IACH,gBAFa,OAAO,CAInB;CAYF;8BA3b6B,qBAAqB;sBAD7B,kBAAkB;sBAElB,YAAY"}
|
|
@@ -1,28 +1,58 @@
|
|
|
1
1
|
export class DisplayObject {
|
|
2
|
+
/** @type {boolean} */
|
|
2
3
|
exists: boolean;
|
|
4
|
+
/** @type {boolean} */
|
|
3
5
|
renderable: boolean;
|
|
6
|
+
/** @type {boolean} */
|
|
4
7
|
visible: boolean;
|
|
8
|
+
/** @type {Point} */
|
|
5
9
|
position: Point;
|
|
10
|
+
/** @type {Point} */
|
|
6
11
|
scale: Point;
|
|
12
|
+
/** @type {Point} */
|
|
7
13
|
pivot: Point;
|
|
14
|
+
/** @type {Point} */
|
|
8
15
|
anchor: Point;
|
|
16
|
+
/** @type {number} */
|
|
9
17
|
rotation: number;
|
|
18
|
+
/** @type {number} */
|
|
10
19
|
alpha: number;
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
/** @type {Rectangle} */
|
|
21
|
+
hitArea: Rectangle;
|
|
22
|
+
/** @type {DisplayObject} */
|
|
23
|
+
parent: DisplayObject;
|
|
24
|
+
/** @type {number} */
|
|
13
25
|
worldAlpha: number;
|
|
26
|
+
/** @type {Matrix} */
|
|
14
27
|
worldTransform: Matrix;
|
|
28
|
+
/** @type {Point} */
|
|
15
29
|
worldScale: Point;
|
|
16
|
-
|
|
30
|
+
/** @type {Rectangle} */
|
|
31
|
+
filterArea: Rectangle;
|
|
32
|
+
/** @type {number} */
|
|
17
33
|
_sr: number;
|
|
34
|
+
/** @type {number} */
|
|
18
35
|
_cr: number;
|
|
36
|
+
/** @type {Rectangle} */
|
|
19
37
|
cachedBounds: Rectangle;
|
|
20
|
-
|
|
38
|
+
/** @type {Rectangle} */
|
|
39
|
+
currentBounds: Rectangle;
|
|
40
|
+
/** @type {import('./graphics.js').Graphics} */
|
|
21
41
|
_mask: import("./graphics.js").Graphics;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
/** @type {object[]} */
|
|
43
|
+
_filters: object[];
|
|
44
|
+
/** @type {object} */
|
|
45
|
+
_filterBlock: object;
|
|
46
|
+
/** @type {object[]} */
|
|
47
|
+
children: object[];
|
|
48
|
+
/** @type {boolean} */
|
|
25
49
|
ignoreChildInput: boolean;
|
|
50
|
+
/** @type {string | null } */
|
|
51
|
+
name: string | null;
|
|
52
|
+
/** @type {object | null } */
|
|
53
|
+
data: object | null;
|
|
54
|
+
/** @type {import('../core/game.js').Game | null } */
|
|
55
|
+
game: import("../core/game.js").Game | null;
|
|
26
56
|
/**
|
|
27
57
|
* TBD.
|
|
28
58
|
*/
|
|
@@ -38,35 +68,35 @@ export class DisplayObject {
|
|
|
38
68
|
* @param {DisplayObject} child - TBD.
|
|
39
69
|
* @param {number} index - TBD.
|
|
40
70
|
* @returns {DisplayObject} TBD.
|
|
41
|
-
* @throws Error
|
|
71
|
+
* @throws {Error}
|
|
42
72
|
*/
|
|
43
73
|
addChildAt(child: DisplayObject, index: number): DisplayObject;
|
|
44
74
|
/**
|
|
45
75
|
* TBD.
|
|
46
76
|
* @param {DisplayObject} child - TBD.
|
|
47
77
|
* @param {DisplayObject} child2 - TBD.
|
|
48
|
-
* @throws Error
|
|
78
|
+
* @throws {Error}
|
|
49
79
|
*/
|
|
50
80
|
swapChildren(child: DisplayObject, child2: DisplayObject): void;
|
|
51
81
|
/**
|
|
52
82
|
* TBD.
|
|
53
83
|
* @param {DisplayObject} child - TBD.
|
|
54
84
|
* @returns {number} TBD.
|
|
55
|
-
* @throws Error
|
|
85
|
+
* @throws {Error}
|
|
56
86
|
*/
|
|
57
87
|
getChildIndex(child: DisplayObject): number;
|
|
58
88
|
/**
|
|
59
89
|
* TBD.
|
|
60
90
|
* @param {DisplayObject} child - TBD.
|
|
61
91
|
* @param {number} index - TBD.
|
|
62
|
-
* @throws Error
|
|
92
|
+
* @throws {Error}
|
|
63
93
|
*/
|
|
64
94
|
setChildIndex(child: DisplayObject, index: number): void;
|
|
65
95
|
/**
|
|
66
96
|
* TBD.
|
|
67
97
|
* @param {number} index - TBD.
|
|
68
98
|
* @returns {DisplayObject} TBD.
|
|
69
|
-
* @throws Error
|
|
99
|
+
* @throws {Error}
|
|
70
100
|
*/
|
|
71
101
|
getChildAt(index: number): DisplayObject;
|
|
72
102
|
/**
|
|
@@ -86,7 +116,7 @@ export class DisplayObject {
|
|
|
86
116
|
* @param {number} beginIndex - TBD.
|
|
87
117
|
* @param {number} endIndex - TBD.
|
|
88
118
|
* @returns {DisplayObject[]} TBD.
|
|
89
|
-
* @throws Error
|
|
119
|
+
* @throws {Error}
|
|
90
120
|
*/
|
|
91
121
|
removeChildren(beginIndex: number, endIndex: number): DisplayObject[];
|
|
92
122
|
/**
|
|
@@ -286,6 +316,6 @@ export class DisplayObject {
|
|
|
286
316
|
get bottom(): number;
|
|
287
317
|
}
|
|
288
318
|
import { Point } from '../geom/point.js';
|
|
289
|
-
import { Matrix } from '../geom/matrix.js';
|
|
290
319
|
import { Rectangle } from '../geom/rectangle.js';
|
|
320
|
+
import { Matrix } from '../geom/matrix.js';
|
|
291
321
|
//# sourceMappingURL=display_object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IAKI,
|
|
1
|
+
{"version":3,"file":"display_object.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/display_object.js"],"names":[],"mappings":"AAOA;IAKI,sBAAsB;IACtB,QADW,OAAO,CACA;IAClB,sBAAsB;IACtB,YADW,OAAO,CACK;IACvB,sBAAsB;IACtB,SADW,OAAO,CACC;IACnB,oBAAoB;IACpB,UADW,KAAK,CACe;IAC/B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,OADW,KAAK,CACY;IAC5B,oBAAoB;IACpB,QADW,KAAK,CACa;IAC7B,qBAAqB;IACrB,UADW,MAAM,CACA;IACjB,qBAAqB;IACrB,OADW,MAAM,CACH;IACd,wBAAwB;IACxB,SADW,SAAS,CACD;IACnB,4BAA4B;IAC5B,QADW,aAAa,CACN;IAClB,qBAAqB;IACrB,YADW,MAAM,CACE;IACnB,qBAAqB;IACrB,gBADW,MAAM,CACiB;IAElC,oBAAoB;IACpB,YADW,KAAK,CACiB;IAEjC,wBAAwB;IACxB,YADW,SAAS,CACE;IACtB,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,qBAAqB;IACrB,KADW,MAAM,CACL;IACZ,wBAAwB;IACxB,cADW,SAAS,CACyB;IAC7C,wBAAwB;IACxB,eADW,SAAS,CACK;IACzB,+CAA+C;IAC/C,OADW,OAAO,eAAe,EAAE,QAAQ,C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IACH,kBATa,MAAM,EAWlB;IAbD;;;OAGG;IACH,cAFa,MAAM,CAIlB;CAQF;sBA/zBqB,kBAAkB;0BACd,sBAAsB;uBAFzB,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics.js"],"names":[],"mappings":"AA0BA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,iBAAiB,EAAE,IAAI,MAC9B,MAAM,MACN,MAAM,EAwBhB;
|
|
1
|
+
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics.js"],"names":[],"mappings":"AA0BA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,iBAAiB,EAAE,IAAI,MAC9B,MAAM,MACN,MAAM,EAwBhB;IAnBC,aAAoB;IAGpB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,oBAAsB;IACtB,aAAoB;IACpB,kBAA6B;IAC7B,0BAAuB;IACvB,cAAgB;IAChB,gBAAmB;IACnB,sBAAsB;IACtB,wBAA6C;IAC7C,eAAiB;IACjB,sBAAyB;IACzB,wBAA2B;IAC3B,oBAAuB;IACvB,2BAA8B;IAYhC;;;;;;OAMG;IACH,sBALW,MAAM,UACN,MAAM,UACN,MAAM,GACJ,QAAQ,CAkBpB;IAbC,kBAAgD;IAelD;;;;;OAKG;IACH,UAJW,MAAM,KACN,MAAM,GACJ,QAAQ,CAKpB;IAED;;;;;OAKG;IACH,UAJW,MAAM,KACN,MAAM,GACJ,QAAQ,CAUpB;IAED;;;;;;;OAOG;IACH,sBANW,MAAM,OACN,MAAM,OACN,MAAM,OACN,MAAM,GACJ,QAAQ,CA6BpB;IAED;;;;;;;;;OASG;IACH,mBARW,MAAM,OACN,MAAM,QACN,MAAM,QACN,MAAM,OACN,MAAM,OACN,MAAM,GACJ,QAAQ,CAmCpB;IAED;;;;;;;;OAQG;IACH,UAPW,MAAM,MACN,MAAM,MACN,MAAM,M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B,oBAAoB;sBADtB,kBAAkB"}
|
|
@@ -9,9 +9,7 @@ export class Group extends DisplayObject {
|
|
|
9
9
|
* @param {boolean} addToStage - TBD.
|
|
10
10
|
*/
|
|
11
11
|
constructor(game: import("../core/game.js").Game, parent?: DisplayObject, name?: string, addToStage?: boolean);
|
|
12
|
-
game: import("../core/game.js").Game;
|
|
13
12
|
type: number;
|
|
14
|
-
name: string;
|
|
15
13
|
z: number;
|
|
16
14
|
ignoreDestroy: boolean;
|
|
17
15
|
pendingDestroy: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/group.js"],"names":[],"mappings":"AAKA,6BAA8B,CAAC,CAAC,CAAC;AACjC,8BAA+B,CAAC,CAAC;AAEjC;IACE;;;;;;OAMG;IACH,kBALW,OAAO,iBAAiB,EAAE,IAAI,WAC9B,aAAa,SACb,MAAM,eACN,OAAO,EA8BjB;
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/group.js"],"names":[],"mappings":"AAKA,6BAA8B,CAAC,CAAC,CAAC;AACjC,8BAA+B,CAAC,CAAC;AAEjC;IACE;;;;;;OAMG;IACH,kBALW,OAAO,iBAAiB,EAAE,IAAI,WAC9B,aAAa,SACb,MAAM,eACN,OAAO,EA8BjB;IAzBC,aAAiB;IAKjB,UAAU;IAQV,uBAA0B;IAC1B,wBAA2B;IAC3B,wBAAsB;IACtB,YAAkB;IAClB,6BAAgC;IAChC,yBAAoC;IACpC,uBAAkC;IAClC,yBAAoC;IACpC,wBAAmC;IACnC,kBAA6B;IAC7B,oBAAoB;IACpB,sBAAwB;IAG1B;;;;OAIG;IACH,0BAHW,OAAO,SACP,OAAO,QAkBjB;IATC,aAAmB;IAWrB;;;;;;OAMG;IACH,WALW,aAAa,WACb,OAAO,UACP,MAAM,GACJ,aAAa,CAuBzB;IAED;;;;;OAKG;IACH,aAJW,aAAa,SACb,MAAM,UACN,OAAO,QAIjB;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,aAAa,CAOzB;IAED;;OAEG;IACH,gBAMC;IAED;;;OAGG;IACH,QAFa,aAAa,CAczB;IAED;;;OAGG;IACH,YAFa,aAAa,CAczB;IAED;;;;OAIG;IACH,aAHW,aAAa,UACb,aAAa,QAKvB;IAED;;;;OAIG;IACH,kBAHW,aAAa,GACX,aAAa,CAQzB;IAED;;;;OAIG;IACH,kBAHW,aAAa,GACX,aAAa,CAQzB;IAED;;OAEG;IACH,gBAGC;IAED;;;;OAIG;IACH,gBAHW,aAAa,GACX,MAAM,CAIlB;IAWG,sBAAuB;IA4B3B;;;;;;OAMG;IACH,cALW,aAAa,YACb,OAAO,WACP,OAAO,GACL,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,oBAJW,OAAO,WACP,OAAO,mBACP,OAAO,QAgBjB;CACF;8BA9S6B,qBAAqB;sBAC7B,YAAY;uBAFX,mBAAmB"}
|
|
@@ -8,12 +8,9 @@ export class Image extends DisplayObject {
|
|
|
8
8
|
* @param {string | number} frame - TBD.
|
|
9
9
|
*/
|
|
10
10
|
constructor(game: import("../core/game.js").Game, x: number, y: number, key: string, frame?: string | number);
|
|
11
|
-
game: import("../core/game.js").Game;
|
|
12
11
|
type: number;
|
|
13
12
|
key: string;
|
|
14
13
|
texture: any;
|
|
15
|
-
/** @type {object} */
|
|
16
|
-
data: object;
|
|
17
14
|
tint: number;
|
|
18
15
|
cachedTint: number;
|
|
19
16
|
tintedTexture: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/image.js"],"names":[],"mappings":"AASA;IACE;;;;;;;OAOG;IACH,kBANW,OAAO,iBAAiB,EAAE,IAAI,KAC9B,MAAM,KACN,MAAM,OACN,MAAM,UACN,MAAM,GAAG,MAAM,EA2BzB;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/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,sBAAsB;6BADnB,0BAA0B;iCAFtB,8BAA8B;wBAOvC,oBAAoB"}
|
|
@@ -4,7 +4,6 @@ export class SpriteBatch extends DisplayObject {
|
|
|
4
4
|
* @param {import('../core/game.js').Game} game - TBD.
|
|
5
5
|
*/
|
|
6
6
|
constructor(game: import("../core/game.js").Game);
|
|
7
|
-
game: import("../core/game.js").Game;
|
|
8
7
|
}
|
|
9
8
|
import { DisplayObject } from './display_object.js';
|
|
10
9
|
//# sourceMappingURL=sprite_batch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/sprite_batch.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,iBAAiB,EAAE,IAAI,EAKxC;
|
|
1
|
+
{"version":3,"file":"sprite_batch.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/sprite_batch.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,iBAAiB,EAAE,IAAI,EAKxC;CACF;8BAX6B,qBAAqB"}
|