@vpmedia/phaser 1.27.0 → 1.29.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/README.md +1 -1
- package/package.json +6 -6
- package/src/index.js +28 -0
- package/src/phaser/core/animation.js +1 -10
- package/src/phaser/core/animation_manager.js +3 -4
- package/src/phaser/display/button.js +5 -1
- package/types/index.d.ts +13 -1
- package/types/index.d.ts.map +1 -1
- package/types/phaser/core/animation.d.ts +1 -3
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +1 -2
- package/types/phaser/core/animation_manager.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +4 -4
- package/types/phaser/display/button.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/webgl/abstract_filter.d.ts +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @vpmedia/phaser
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/@vpmedia%2Fphaser)
|
|
4
4
|
[](https://github.com/vpmedia/phaser/actions/workflows/node.js.yml)
|
|
5
5
|
|
|
6
6
|
@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.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",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"main": "./src/index.js",
|
|
23
23
|
"types": "./types/index.d.ts",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.41.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-import": "^2.27.5",
|
|
28
28
|
"eslint-plugin-jest": "^27.2.1",
|
|
29
|
-
"eslint-plugin-jsdoc": "^
|
|
29
|
+
"eslint-plugin-jsdoc": "^46.1.0",
|
|
30
30
|
"eslint-plugin-prettier": "^4.2.1",
|
|
31
31
|
"husky": "^8.0.3",
|
|
32
32
|
"jest": "^29.5.0",
|
|
33
33
|
"lint-staged": "^13.2.2",
|
|
34
34
|
"prettier": "^2.8.8",
|
|
35
|
-
"typescript": "^5.
|
|
35
|
+
"typescript": "^5.1.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lint-staged": "lint-staged"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"npm": ">=
|
|
48
|
-
"node": ">=
|
|
47
|
+
"npm": ">=9.0.0",
|
|
48
|
+
"node": ">=19.0.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
// core
|
|
2
2
|
import * as Const from './phaser/core/const';
|
|
3
3
|
import { Game } from './phaser/core/game';
|
|
4
|
+
import { GameObjectFactory } from './phaser/core/factory';
|
|
4
5
|
import { Signal } from './phaser/core/signal';
|
|
5
6
|
import * as MathUtils from './phaser/util/math';
|
|
7
|
+
// sound
|
|
8
|
+
import { Sound } from './phaser/core/sound';
|
|
9
|
+
import { SoundSprite } from './phaser/core/sound_sprite';
|
|
10
|
+
import { SoundManager } from './phaser/core/sound_manager';
|
|
11
|
+
// time
|
|
12
|
+
import { Time } from './phaser/core/time';
|
|
13
|
+
import { Timer } from './phaser/core/timer';
|
|
14
|
+
import { TimerEvent } from './phaser/core/timer_event';
|
|
15
|
+
// tween
|
|
16
|
+
import { Tween } from './phaser/core/tween';
|
|
17
|
+
import { TweenData } from './phaser/core/tween_data';
|
|
18
|
+
import { TweenManager } from './phaser/core/tween_manager';
|
|
19
|
+
// animation
|
|
20
|
+
import { Animation } from './phaser/core/animation';
|
|
21
|
+
import { AnimationManager } from './phaser/core/animation_manager';
|
|
6
22
|
// texture
|
|
7
23
|
import { BaseTexture } from './phaser/display/webgl/base_texture';
|
|
8
24
|
import { Texture } from './phaser/display/webgl/texture';
|
|
@@ -27,9 +43,21 @@ import { Graphics } from './phaser/display/graphics';
|
|
|
27
43
|
export {
|
|
28
44
|
Const,
|
|
29
45
|
Game,
|
|
46
|
+
GameObjectFactory,
|
|
30
47
|
Signal,
|
|
31
48
|
MathUtils,
|
|
32
49
|
BaseTexture,
|
|
50
|
+
Sound,
|
|
51
|
+
SoundSprite,
|
|
52
|
+
SoundManager,
|
|
53
|
+
Time,
|
|
54
|
+
Timer,
|
|
55
|
+
TimerEvent,
|
|
56
|
+
Tween,
|
|
57
|
+
TweenData,
|
|
58
|
+
TweenManager,
|
|
59
|
+
Animation,
|
|
60
|
+
AnimationManager,
|
|
33
61
|
Texture,
|
|
34
62
|
Circle,
|
|
35
63
|
Ellipse,
|
|
@@ -21,7 +21,6 @@ export class Animation {
|
|
|
21
21
|
this.delay = 1000 / frameRate;
|
|
22
22
|
this.loop = loop;
|
|
23
23
|
this.loopCount = 0;
|
|
24
|
-
this.killOnComplete = false;
|
|
25
24
|
this.isFinished = false;
|
|
26
25
|
this.isPlaying = false;
|
|
27
26
|
this.isPaused = false;
|
|
@@ -44,10 +43,9 @@ export class Animation {
|
|
|
44
43
|
* TBD.
|
|
45
44
|
* @param {number} frameRate - TBD.
|
|
46
45
|
* @param {boolean} loop - TBD.
|
|
47
|
-
* @param {boolean} killOnComplete - TBD.
|
|
48
46
|
* @returns {Animation} TBD.
|
|
49
47
|
*/
|
|
50
|
-
play(frameRate, loop
|
|
48
|
+
play(frameRate, loop) {
|
|
51
49
|
if (typeof frameRate === 'number') {
|
|
52
50
|
// If they set a new frame rate then use it, otherwise use the one set on creation
|
|
53
51
|
this.delay = 1000 / frameRate;
|
|
@@ -56,10 +54,6 @@ export class Animation {
|
|
|
56
54
|
// If they set a new loop value then use it, otherwise use the one set on creation
|
|
57
55
|
this.loop = loop;
|
|
58
56
|
}
|
|
59
|
-
if (typeof killOnComplete !== 'undefined') {
|
|
60
|
-
// Remove the parent sprite once the animation has finished?
|
|
61
|
-
this.killOnComplete = killOnComplete;
|
|
62
|
-
}
|
|
63
57
|
this.isPlaying = true;
|
|
64
58
|
this.isFinished = false;
|
|
65
59
|
this.paused = false;
|
|
@@ -352,9 +346,6 @@ export class Animation {
|
|
|
352
346
|
this.paused = false;
|
|
353
347
|
this._parent.events.onAnimationComplete$dispatch(this._parent, this);
|
|
354
348
|
this.onComplete.dispatch(this._parent, this);
|
|
355
|
-
if (this.killOnComplete) {
|
|
356
|
-
this._parent.kill();
|
|
357
|
-
}
|
|
358
349
|
}
|
|
359
350
|
|
|
360
351
|
/**
|
|
@@ -152,15 +152,14 @@ export class AnimationManager {
|
|
|
152
152
|
* @param {string} name - TBD.
|
|
153
153
|
* @param {number} frameRate - TBD.
|
|
154
154
|
* @param {boolean} loop - TBD.
|
|
155
|
-
* @param {boolean} killOnComplete - TBD.
|
|
156
155
|
* @returns {Animation} TBD.
|
|
157
156
|
*/
|
|
158
|
-
play(name, frameRate, loop
|
|
157
|
+
play(name, frameRate, loop) {
|
|
159
158
|
if (this._anims[name]) {
|
|
160
159
|
if (this.currentAnim === this._anims[name]) {
|
|
161
160
|
if (this.currentAnim.isPlaying === false) {
|
|
162
161
|
this.currentAnim.paused = false;
|
|
163
|
-
return this.currentAnim.play(frameRate, loop
|
|
162
|
+
return this.currentAnim.play(frameRate, loop);
|
|
164
163
|
}
|
|
165
164
|
return this.currentAnim;
|
|
166
165
|
}
|
|
@@ -170,7 +169,7 @@ export class AnimationManager {
|
|
|
170
169
|
this.currentAnim = this._anims[name];
|
|
171
170
|
this.currentAnim.paused = false;
|
|
172
171
|
this.currentFrame = this.currentAnim.currentFrame;
|
|
173
|
-
return this.currentAnim.play(frameRate, loop
|
|
172
|
+
return this.currentAnim.play(frameRate, loop);
|
|
174
173
|
}
|
|
175
174
|
return null;
|
|
176
175
|
}
|
|
@@ -166,12 +166,16 @@ export class Button extends Image {
|
|
|
166
166
|
* @param {string} outFrame - TBD.
|
|
167
167
|
* @param {string} downFrame - TBD.
|
|
168
168
|
* @param {string} upFrame - TBD.
|
|
169
|
+
* @param {string} disabledFrame - TBD.
|
|
169
170
|
*/
|
|
170
|
-
setFrames(overFrame, outFrame, downFrame, upFrame) {
|
|
171
|
+
setFrames(overFrame, outFrame, downFrame, upFrame, disabledFrame) {
|
|
171
172
|
this.setStateFrame(STATE_OVER, overFrame, this.input.pointerOver());
|
|
172
173
|
this.setStateFrame(STATE_OUT, outFrame, !this.input.pointerOver());
|
|
173
174
|
this.setStateFrame(STATE_DOWN, downFrame, this.input.pointerDown());
|
|
174
175
|
this.setStateFrame(STATE_UP, upFrame, this.input.pointerUp());
|
|
176
|
+
if (disabledFrame) {
|
|
177
|
+
this.setStateFrame(STATE_DISABLED, disabledFrame, !this.input.enabled);
|
|
178
|
+
}
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import * as Const from './phaser/core/const';
|
|
2
2
|
import { Game } from './phaser/core/game';
|
|
3
|
+
import { GameObjectFactory } from './phaser/core/factory';
|
|
3
4
|
import { Signal } from './phaser/core/signal';
|
|
4
5
|
import * as MathUtils from './phaser/util/math';
|
|
5
6
|
import { BaseTexture } from './phaser/display/webgl/base_texture';
|
|
7
|
+
import { Sound } from './phaser/core/sound';
|
|
8
|
+
import { SoundSprite } from './phaser/core/sound_sprite';
|
|
9
|
+
import { SoundManager } from './phaser/core/sound_manager';
|
|
10
|
+
import { Time } from './phaser/core/time';
|
|
11
|
+
import { Timer } from './phaser/core/timer';
|
|
12
|
+
import { TimerEvent } from './phaser/core/timer_event';
|
|
13
|
+
import { Tween } from './phaser/core/tween';
|
|
14
|
+
import { TweenData } from './phaser/core/tween_data';
|
|
15
|
+
import { TweenManager } from './phaser/core/tween_manager';
|
|
16
|
+
import { Animation } from './phaser/core/animation';
|
|
17
|
+
import { AnimationManager } from './phaser/core/animation_manager';
|
|
6
18
|
import { Texture } from './phaser/display/webgl/texture';
|
|
7
19
|
import { Circle } from './phaser/geom/circle';
|
|
8
20
|
import { Ellipse } from './phaser/geom/ellipse';
|
|
@@ -19,5 +31,5 @@ import { Image } from './phaser/display/image';
|
|
|
19
31
|
import { Group } from './phaser/display/group';
|
|
20
32
|
import { Text } from './phaser/display/text';
|
|
21
33
|
import { Graphics } from './phaser/display/graphics';
|
|
22
|
-
export { Const, Game, Signal, MathUtils, BaseTexture, Texture, Circle, Ellipse, Line, Matrix, Point, Polygon, Rectangle, RoundedRectangle, BitmapText, Button, DisplayObject, Image, Group, Text, Graphics };
|
|
34
|
+
export { Const, Game, GameObjectFactory, Signal, MathUtils, BaseTexture, Sound, SoundSprite, SoundManager, Time, Timer, TimerEvent, Tween, TweenData, TweenManager, Animation, AnimationManager, Texture, Circle, Ellipse, Line, Matrix, Point, Polygon, Rectangle, RoundedRectangle, BitmapText, Button, DisplayObject, Image, Group, Text, Graphics };
|
|
23
35
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"uBACuB,qBAAqB;qBACvB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"uBACuB,qBAAqB;qBACvB,oBAAoB;kCACP,uBAAuB;uBAClC,sBAAsB;2BAClB,oBAAoB;4BAiBnB,qCAAqC;sBAf3C,qBAAqB;4BACf,4BAA4B;6BAC3B,6BAA6B;qBAErC,oBAAoB;sBACnB,qBAAqB;2BAChB,2BAA2B;sBAEhC,qBAAqB;0BACjB,0BAA0B;6BACvB,6BAA6B;0BAEhC,yBAAyB;iCAClB,iCAAiC;wBAG1C,gCAAgC;uBAEjC,sBAAsB;wBACrB,uBAAuB;qBAC1B,oBAAoB;uBAClB,sBAAsB;sBACvB,qBAAqB;wBACnB,uBAAuB;0BACrB,yBAAyB;iCAClB,iCAAiC;2BAEvC,8BAA8B;uBAElC,yBAAyB;8BADlB,iCAAiC;sBAEzC,wBAAwB;sBACxB,wBAAwB;qBACzB,uBAAuB;yBACnB,2BAA2B"}
|
|
@@ -18,7 +18,6 @@ export class Animation {
|
|
|
18
18
|
delay: number;
|
|
19
19
|
loop: boolean;
|
|
20
20
|
loopCount: number;
|
|
21
|
-
killOnComplete: boolean;
|
|
22
21
|
isFinished: boolean;
|
|
23
22
|
isPlaying: boolean;
|
|
24
23
|
isPaused: boolean;
|
|
@@ -36,10 +35,9 @@ export class Animation {
|
|
|
36
35
|
* TBD.
|
|
37
36
|
* @param {number} frameRate - TBD.
|
|
38
37
|
* @param {boolean} loop - TBD.
|
|
39
|
-
* @param {boolean} killOnComplete - TBD.
|
|
40
38
|
* @returns {Animation} TBD.
|
|
41
39
|
*/
|
|
42
|
-
play(frameRate: number, loop: boolean
|
|
40
|
+
play(frameRate: number, loop: boolean): Animation;
|
|
43
41
|
/**
|
|
44
42
|
* TBD.
|
|
45
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation.js"],"names":[],"mappings":"AAEA;IACE;;;;;;;;;OASG;IACH,kBARW,OAAO,QAAQ,EAAE,IAAI,UACrB,OAAO,kBAAkB,EAAE,KAAK,QAChC,MAAM,aACN,OAAO,cAAc,EAAE,SAAS,UAChC,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,QAAQ,EAAE,IAAI,UACrB,OAAO,kBAAkB,EAAE,KAAK,QAChC,MAAM,aACN,OAAO,cAAc,EAAE,SAAS,UAChC,MAAM,EAAE,GAAC,MAAM,EAAE,aACjB,MAAM,SACN,OAAO,EA4BjB;IAzBC,4BAAgB;IAChB,0CAAqB;IACrB,6CAA2B;IAC3B,aAAgB;IAChB,eAAiB;IAEjB,cAA6B;IAC7B,cAAgB;IAChB,kBAAkB;IAClB,oBAAuB;IACvB,mBAAsB;IACtB,kBAAqB;IACrB,wBAAwB;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,sCAA4E;IAC5E,gBAA2B;IAC3B,iBAAoB;IACpB,mBAA8B;IAC9B,eAA0B;IAC1B,oBAAuB;IAMzB;;;;;OAKG;IACH,gBAJW,MAAM,QACN,OAAO,GACL,SAAS,CAwBrB;IAiSD;;OAEG;IACH,yBAOC;IAlBD;;;OAGG;IACH,sBAEC;IAxSC,uBAAyC;IACzC,uBAAsD;IAUxD;;OAEG;IACH,gBAaC;IAED;;;OAGG;IACH,WAFa,SAAS,CAKrB;IA0RD;;OAEG;IACH,2BAEC;IAbD;;;OAGG;IACH,wBAEC;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,cAAc,EAAE,SAAS,QAO1C;IAED;;OAEG;IACH,gBAmBC;IAED;;OAEG;IACH,iBAQC;IAqCD;;;OAGG;IACH,yBAEC;IAaD;;OAEG;IACH,uBASC;IAvBD;;;OAGG;IACH,oBAKC;IAwBD;;OAEG;IACH,uBAIC;IAfD;;;OAGG;IACH,oBAEC;IAmBD;;OAEG;IACH,+BAOC;IAlBD;;;OAGG;IACH,4BAEC;CAaF;uBAtcsB,UAAU"}
|
|
@@ -71,10 +71,9 @@ export class AnimationManager {
|
|
|
71
71
|
* @param {string} name - TBD.
|
|
72
72
|
* @param {number} frameRate - TBD.
|
|
73
73
|
* @param {boolean} loop - TBD.
|
|
74
|
-
* @param {boolean} killOnComplete - TBD.
|
|
75
74
|
* @returns {Animation} TBD.
|
|
76
75
|
*/
|
|
77
|
-
play(name: string, frameRate: number, loop: boolean
|
|
76
|
+
play(name: string, frameRate: number, loop: boolean): Animation;
|
|
78
77
|
/**
|
|
79
78
|
* TBD.
|
|
80
79
|
* @param {string} name - TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_manager.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,oBAFW,OAAO,kBAAkB,EAAE,KAAK,EAY1C;IATC,yCAAoB;IACpB,4BAAuB;IACvB,kBAAwB;IACxB,iBAAuB;IACvB,yBAA2B;IAC3B,kBAAqB;IACrB,6CAAsB;IACtB,WAAgB;IAChB,qBAAuB;IAGzB;;OAEG;IACH,gBAYC;IAED;;;;;OAKG;IACH,yBAJW,OAAO,cAAc,EAAE,SAAS,SAChC,MAAM,GAAC,MAAM,GACX,OAAO,CAwBnB;
|
|
1
|
+
{"version":3,"file":"animation_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/animation_manager.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,oB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26
|
justReleasedPreventsOver: number;
|
|
27
27
|
freezeFrames: boolean;
|
|
28
28
|
forceOut: boolean;
|
|
29
|
-
input:
|
|
29
|
+
input: InputHandler;
|
|
30
30
|
/**
|
|
31
31
|
* TBD.
|
|
32
32
|
* @param {boolean} isEnabled - TBD.
|
|
@@ -63,16 +63,15 @@ export class Button extends Image {
|
|
|
63
63
|
* @returns {boolean} TBD.
|
|
64
64
|
*/
|
|
65
65
|
changeStateFrame(newState: string): boolean;
|
|
66
|
-
frameName: any;
|
|
67
|
-
frame: any;
|
|
68
66
|
/**
|
|
69
67
|
* TBD.
|
|
70
68
|
* @param {string} overFrame - TBD.
|
|
71
69
|
* @param {string} outFrame - TBD.
|
|
72
70
|
* @param {string} downFrame - TBD.
|
|
73
71
|
* @param {string} upFrame - TBD.
|
|
72
|
+
* @param {string} disabledFrame - TBD.
|
|
74
73
|
*/
|
|
75
|
-
setFrames(overFrame: string, outFrame: string, downFrame: string, upFrame: string): void;
|
|
74
|
+
setFrames(overFrame: string, outFrame: string, downFrame: string, upFrame: string, disabledFrame: string): void;
|
|
76
75
|
/**
|
|
77
76
|
* TBD.
|
|
78
77
|
* @param {object} sprite - TBD.
|
|
@@ -101,4 +100,5 @@ export class Button extends Image {
|
|
|
101
100
|
}
|
|
102
101
|
import { Image } from './image';
|
|
103
102
|
import { Signal } from '../core/signal';
|
|
103
|
+
import { InputHandler } from '../core/input_handler';
|
|
104
104
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/button.js"],"names":[],"mappings":"AAWA;IACE;;;;;;;;;;;;OAYG;IACH,kBAXW,OAAO,cAAc,EAAE,IAAI,MAC3B,MAAM,MACN,MAAM,QACN,MAAM,yCAEN,MAAM,cACN,MAAM,aACN,MAAM,cACN,MAAM,YACN,MAAM,EAyChB;IAzBC,kBAAwB;IACxB,iBAAuB;IACvB,kBAAwB;IACxB,gBAAsB;IACtB,sBAA4B;IAC5B,oBAA+B;IAC/B,mBAA8B;IAC9B,oBAA+B;IAC/B,kBAA6B;IAC7B,yBAA2B;IAC3B,iCAA+C;IAC/C,sBAAyB;IACzB,kBAAqB;IACrB,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/button.js"],"names":[],"mappings":"AAWA;IACE;;;;;;;;;;;;OAYG;IACH,kBAXW,OAAO,cAAc,EAAE,IAAI,MAC3B,MAAM,MACN,MAAM,QACN,MAAM,yCAEN,MAAM,cACN,MAAM,aACN,MAAM,cACN,MAAM,YACN,MAAM,EAyChB;IAzBC,kBAAwB;IACxB,iBAAuB;IACvB,kBAAwB;IACxB,gBAAsB;IACtB,sBAA4B;IAC5B,oBAA+B;IAC/B,mBAA8B;IAC9B,oBAA+B;IAC/B,kBAA6B;IAC7B,yBAA2B;IAC3B,iCAA+C;IAC/C,sBAAyB;IACzB,kBAAqB;IACrB,oBAAmC;IAwCrC;;;;OAIG;IACH,sBAHW,OAAO,eACP,OAAO,QAWjB;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,yBAEC;IA2ID;;OAEG;IACH,+BAWC;IAtBD;;;OAGG;IACH,4BAEC;IAvID;;;;;OAKG;IACH,qBAJW,MAAM,SACN,MAAM,sBACN,OAAO,QAYjB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,OAAO,CAiBnB;IAED;;;;;;;OAOG;IACH,qBANW,MAAM,YACN,MAAM,aACN,MAAM,WACN,MAAM,iBACN,MAAM,QAUhB;IAED;;;;OAIG;IACH,2BAHW,MAAM,WACN,MAAM,QAchB;IAED;;;;OAIG;IACH,0BAHW,MAAM,WACN,MAAM,QAOhB;IAED;;;;OAIG;IACH,2BAHW,MAAM,WACN,MAAM,QAOhB;IAED;;;;;OAKG;IACH,yBAJW,MAAM,WACN,MAAM,UACN,OAAO,QAsBjB;CAyBF;sBAlRqB,SAAS;uBACR,gBAAgB;6BACV,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics.js"],"names":[],"mappings":"AA0BA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,cAAc,EAAE,IAAI,MAC3B,MAAM,MACN,MAAM,EAwBhB;IApBC,kCAAgB;IAChB,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,MACN,MAAM,UACN,MAAM,GACJ,QAAQ,CA2CpB;IAED;;;;;;;;;;OAUG;IACH,QATW,MAAM,MACN,MAAM,UACN,MAAM,cACN,MAAM,YACN,MAAM,kBACN,OAAO,aACP,MAAM,GACJ,QAAQ,CA2CpB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,UACN,MAAM,GACJ,QAAQ,CAcpB;IAXC,iBAAmB;IACnB,kBAA2B;IAY7B;;;OAGG;IACH,WAFa,QAAQ,CAOpB;IAED;;;;;;;OAOG;IACH,YANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,QAAQ,CAKpB;IAED;;;;;;;;OAQG;IACH,mBAPW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,UACN,MAAM,GACJ,QAAQ,CAKpB;IAED;;;;;;OAMG;IACH,cALW,MAAM,KACN,MAAM,YACN,MAAM,GACJ,QAAQ,CAKpB;IAED;;;;;;;OAOG;IACH,eANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,QAAQ,CAKpB;IAED;;;;OAIG;IACH,kBAHW,OAAO,GACL,QAAQ,CAoBpB;IAED;;;OAGG;IACH,SAFa,QAAQ,CAWpB;IAJC,oBAAsB;IAsFpB,eAA0B;IA4C9B;;;;OAIG;IACH,mBAHW,OAAO,gBAAgB,EAAE,MAAM,GAC7B,SAAS,CAwDrB;
|
|
1
|
+
{"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["../../../src/phaser/display/graphics.js"],"names":[],"mappings":"AA0BA;IACE;;;;;OAKG;IACH,kBAJW,OAAO,cAAc,EAAE,IAAI,MAC3B,MAAM,MACN,MAAM,EAwBhB;IApBC,kCAAgB;IAChB,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;;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AIG;IACH,iBAHW,MAAM,GACJ,YAAY,CAgCxB;IAeD;;;;OAIG;IACH,qBAHW,KAAK,EAAE,SACP,OAAO,QAejB;IAED;;;;;OAKG;IACH,wBAJW,MAAM,EAAE,GAAC,KAAK,EAAE,WAChB,MAAM,EAAE,SACR,OAAO,QA6CjB;CACF;8BA74B6B,kBAAkB;6BAQnB,iBAAiB;0BANpB,mBAAmB;wBAErB,iBAAiB;sBAGnB,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract_filter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/abstract_filter.js"],"names":[],"mappings":"AAAA;IACE;;;;OAIG;IACH,yBAHW,MAAM,EAAE,YACR,MAAM,EAShB;IANC,
|
|
1
|
+
{"version":3,"file":"abstract_filter.d.ts","sourceRoot":"","sources":["../../../../src/phaser/display/webgl/abstract_filter.js"],"names":[],"mappings":"AAAA;IACE;;;;OAIG;IACH,yBAHW,MAAM,EAAE,YACR,MAAM,EAShB;IANC,eAAoB;IACpB,eAAiB;IACjB,eAAiB;IACjB,gBAAgB;IAChB,cAA8B;IAC9B,sBAAoC;IAGtC;;OAEG;IACH,qBAIC;CACF"}
|