@eva/renderer-adapter 1.1.1-fix.0 → 1.1.1-fix.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},e(t,i)};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
package/package.json
CHANGED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('pixi.js')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'pixi.js'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.EVA = global.EVA || {}, global.EVA.rendererAdapter = {}), global.PIXI));
|
|
5
|
-
}(this, (function (exports, pixi_js) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var Application = (function (_super) {
|
|
37
|
-
__extends(Application, _super);
|
|
38
|
-
function Application(params) {
|
|
39
|
-
var _this = this;
|
|
40
|
-
params.autoStart = false;
|
|
41
|
-
_this = _super.call(this, params) || this;
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
return Application;
|
|
45
|
-
}(pixi_js.Application));
|
|
46
|
-
var Application$1 = Application;
|
|
47
|
-
|
|
48
|
-
var Container = (function (_super) {
|
|
49
|
-
__extends(Container, _super);
|
|
50
|
-
function Container() {
|
|
51
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
52
|
-
}
|
|
53
|
-
return Container;
|
|
54
|
-
}(pixi_js.Container));
|
|
55
|
-
var Container$1 = Container;
|
|
56
|
-
|
|
57
|
-
var Graphics = (function (_super) {
|
|
58
|
-
__extends(Graphics, _super);
|
|
59
|
-
function Graphics() {
|
|
60
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
-
}
|
|
62
|
-
return Graphics;
|
|
63
|
-
}(pixi_js.Graphics));
|
|
64
|
-
var Graphics$1 = Graphics;
|
|
65
|
-
|
|
66
|
-
var NinePatch = (function (_super) {
|
|
67
|
-
__extends(NinePatch, _super);
|
|
68
|
-
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
|
|
69
|
-
var _this = this;
|
|
70
|
-
var texture;
|
|
71
|
-
if (img === 'string') {
|
|
72
|
-
texture = pixi_js.Texture.fromFrame(img);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
texture = pixi_js.Texture.from(img);
|
|
76
|
-
}
|
|
77
|
-
_this = _super.call(this, texture, leftWidth, topHeight, rightWidth, bottomHeight) || this;
|
|
78
|
-
return _this;
|
|
79
|
-
}
|
|
80
|
-
return NinePatch;
|
|
81
|
-
}(pixi_js.mesh.NineSlicePlane));
|
|
82
|
-
var NinePatch$1 = NinePatch;
|
|
83
|
-
|
|
84
|
-
var Sprite = (function () {
|
|
85
|
-
function Sprite(image) {
|
|
86
|
-
this._image = null;
|
|
87
|
-
this._image = image;
|
|
88
|
-
if (image) {
|
|
89
|
-
if (image instanceof HTMLImageElement) {
|
|
90
|
-
this.sprite = pixi_js.Sprite.from(image);
|
|
91
|
-
}
|
|
92
|
-
else if (image instanceof pixi_js.Texture) {
|
|
93
|
-
this.sprite = new pixi_js.Sprite(image);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
this.sprite = new pixi_js.Sprite();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
Object.defineProperty(Sprite.prototype, "image", {
|
|
101
|
-
get: function () {
|
|
102
|
-
return this._image;
|
|
103
|
-
},
|
|
104
|
-
set: function (val) {
|
|
105
|
-
if (this._image === val) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (val instanceof HTMLImageElement) {
|
|
109
|
-
this.sprite.texture && this.sprite.texture.destroy(false);
|
|
110
|
-
this.sprite.texture = pixi_js.Texture.from(val);
|
|
111
|
-
}
|
|
112
|
-
else if (val instanceof pixi_js.Texture) {
|
|
113
|
-
this.sprite.texture = val;
|
|
114
|
-
}
|
|
115
|
-
this._image = val;
|
|
116
|
-
},
|
|
117
|
-
enumerable: false,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
return Sprite;
|
|
121
|
-
}());
|
|
122
|
-
var Sprite$1 = Sprite;
|
|
123
|
-
|
|
124
|
-
var SpriteAnimation = (function () {
|
|
125
|
-
function SpriteAnimation(_a) {
|
|
126
|
-
var frames = _a.frames;
|
|
127
|
-
this.animatedSprite = new pixi_js.extras.AnimatedSprite(frames);
|
|
128
|
-
}
|
|
129
|
-
SpriteAnimation.prototype.play = function () {
|
|
130
|
-
this.animatedSprite.play();
|
|
131
|
-
};
|
|
132
|
-
SpriteAnimation.prototype.stop = function () {
|
|
133
|
-
this.animatedSprite.stop();
|
|
134
|
-
};
|
|
135
|
-
SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
|
|
136
|
-
this.animatedSprite.gotoAndPlay(frameNumber);
|
|
137
|
-
};
|
|
138
|
-
SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
|
|
139
|
-
this.animatedSprite.gotoAndStop(frameNumber);
|
|
140
|
-
};
|
|
141
|
-
Object.defineProperty(SpriteAnimation.prototype, "speed", {
|
|
142
|
-
get: function () {
|
|
143
|
-
return this.animatedSprite.animationSpeed;
|
|
144
|
-
},
|
|
145
|
-
set: function (val) {
|
|
146
|
-
this.animatedSprite.animationSpeed = val;
|
|
147
|
-
},
|
|
148
|
-
enumerable: false,
|
|
149
|
-
configurable: true
|
|
150
|
-
});
|
|
151
|
-
return SpriteAnimation;
|
|
152
|
-
}());
|
|
153
|
-
var SpriteAnimation$1 = SpriteAnimation;
|
|
154
|
-
|
|
155
|
-
var Text = (function (_super) {
|
|
156
|
-
__extends(Text, _super);
|
|
157
|
-
function Text(text, style) {
|
|
158
|
-
return _super.call(this, text, style) || this;
|
|
159
|
-
}
|
|
160
|
-
return Text;
|
|
161
|
-
}(pixi_js.Text));
|
|
162
|
-
var Text$1 = Text;
|
|
163
|
-
|
|
164
|
-
var PIXITilingSprite = pixi_js.extras.TilingSprite;
|
|
165
|
-
var TilingSprite = (function () {
|
|
166
|
-
function TilingSprite(image) {
|
|
167
|
-
this._image = null;
|
|
168
|
-
this._image = image;
|
|
169
|
-
if (image) {
|
|
170
|
-
if (image instanceof HTMLImageElement) {
|
|
171
|
-
this.tilingSprite = new PIXITilingSprite(pixi_js.Texture.from(image));
|
|
172
|
-
}
|
|
173
|
-
else if (image instanceof pixi_js.Texture) {
|
|
174
|
-
this.tilingSprite = new PIXITilingSprite(image);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
this.tilingSprite = new PIXITilingSprite(pixi_js.Texture.EMPTY);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
Object.defineProperty(TilingSprite.prototype, "image", {
|
|
182
|
-
get: function () {
|
|
183
|
-
return this._image;
|
|
184
|
-
},
|
|
185
|
-
set: function (val) {
|
|
186
|
-
if (this._image === val) {
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
if (val instanceof HTMLImageElement) {
|
|
190
|
-
this.tilingSprite.texture = pixi_js.Texture.from(val);
|
|
191
|
-
}
|
|
192
|
-
else if (val instanceof pixi_js.Texture) {
|
|
193
|
-
this.tilingSprite.texture = val;
|
|
194
|
-
}
|
|
195
|
-
this._image = val;
|
|
196
|
-
},
|
|
197
|
-
enumerable: false,
|
|
198
|
-
configurable: true
|
|
199
|
-
});
|
|
200
|
-
return TilingSprite;
|
|
201
|
-
}());
|
|
202
|
-
var TilingSprite$1 = TilingSprite;
|
|
203
|
-
|
|
204
|
-
exports.Application = Application$1;
|
|
205
|
-
exports.Container = Container$1;
|
|
206
|
-
exports.Graphics = Graphics$1;
|
|
207
|
-
exports.NinePatch = NinePatch$1;
|
|
208
|
-
exports.Sprite = Sprite$1;
|
|
209
|
-
exports.SpriteAnimation = SpriteAnimation$1;
|
|
210
|
-
exports.Text = Text$1;
|
|
211
|
-
exports.TilingSprite = TilingSprite$1;
|
|
212
|
-
|
|
213
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
214
|
-
|
|
215
|
-
})));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e;t=this,e=function(t,e){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function n(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(t){function e(e){return e.autoStart=!1,t.call(this,e)||this}return n(e,t),e}(e.Application),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Container),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Graphics),u=function(t){function i(i,n,r,o,a){var u;return u="string"===i?e.Texture.fromFrame(i):e.Texture.from(i),t.call(this,u,n,r,o,a)||this}return n(i,t),i}(e.mesh.NineSlicePlane),s=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.sprite=e.Sprite.from(t):t instanceof e.Texture&&(this.sprite=new e.Sprite(t)):this.sprite=new e.Sprite}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=e.Texture.from(t)):t instanceof e.Texture&&(this.sprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}(),p=function(){function t(t){var i=t.frames;this.animatedSprite=new e.extras.AnimatedSprite(i)}return t.prototype.play=function(){this.animatedSprite.play()},t.prototype.stop=function(){this.animatedSprite.stop()},t.prototype.gotoAndPlay=function(t){this.animatedSprite.gotoAndPlay(t)},t.prototype.gotoAndStop=function(t){this.animatedSprite.gotoAndStop(t)},Object.defineProperty(t.prototype,"speed",{get:function(){return this.animatedSprite.animationSpeed},set:function(t){this.animatedSprite.animationSpeed=t},enumerable:!1,configurable:!0}),t}(),f=function(t){function e(e,i){return t.call(this,e,i)||this}return n(e,t),e}(e.Text),c=e.extras.TilingSprite,l=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.tilingSprite=new c(e.Texture.from(t)):t instanceof e.Texture&&(this.tilingSprite=new c(t)):this.tilingSprite=new c(e.Texture.EMPTY)}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?this.tilingSprite.texture=e.Texture.from(t):t instanceof e.Texture&&(this.tilingSprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}();t.Application=r,t.Container=o,t.Graphics=a,t.NinePatch=u,t.Sprite=s,t.SpriteAnimation=p,t.Text=f,t.TilingSprite=l,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("pixi.js")):"function"==typeof define&&define.amd?define(["exports","pixi.js"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).EVA=t.EVA||{},t.EVA.rendererAdapter={}),t.PIXI);
|
package/dist/miniprogram.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { __extends } from 'tslib';
|
|
2
|
-
import { Application as Application$2, Container as Container$2, Graphics as Graphics$2, Texture, mesh, Sprite as Sprite$2, extras, Text as Text$2 } from '@eva/miniprogram-pixi';
|
|
3
|
-
import { Image } from '@eva/miniprogram-adapter';
|
|
4
|
-
|
|
5
|
-
var Application = (function (_super) {
|
|
6
|
-
__extends(Application, _super);
|
|
7
|
-
function Application(params) {
|
|
8
|
-
var _this = this;
|
|
9
|
-
params.autoStart = false;
|
|
10
|
-
_this = _super.call(this, params) || this;
|
|
11
|
-
return _this;
|
|
12
|
-
}
|
|
13
|
-
return Application;
|
|
14
|
-
}(Application$2));
|
|
15
|
-
var Application$1 = Application;
|
|
16
|
-
|
|
17
|
-
var Container = (function (_super) {
|
|
18
|
-
__extends(Container, _super);
|
|
19
|
-
function Container() {
|
|
20
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
-
}
|
|
22
|
-
return Container;
|
|
23
|
-
}(Container$2));
|
|
24
|
-
var Container$1 = Container;
|
|
25
|
-
|
|
26
|
-
var Graphics = (function (_super) {
|
|
27
|
-
__extends(Graphics, _super);
|
|
28
|
-
function Graphics() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
31
|
-
return Graphics;
|
|
32
|
-
}(Graphics$2));
|
|
33
|
-
var Graphics$1 = Graphics;
|
|
34
|
-
|
|
35
|
-
var NinePatch = (function (_super) {
|
|
36
|
-
__extends(NinePatch, _super);
|
|
37
|
-
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
|
|
38
|
-
var _this = this;
|
|
39
|
-
var texture;
|
|
40
|
-
if (img === 'string') {
|
|
41
|
-
texture = Texture.fromFrame(img);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
texture = Texture.from(img);
|
|
45
|
-
}
|
|
46
|
-
_this = _super.call(this, texture, leftWidth, topHeight, rightWidth, bottomHeight) || this;
|
|
47
|
-
return _this;
|
|
48
|
-
}
|
|
49
|
-
return NinePatch;
|
|
50
|
-
}(mesh.NineSlicePlane));
|
|
51
|
-
var NinePatch$1 = NinePatch;
|
|
52
|
-
|
|
53
|
-
var Sprite = (function () {
|
|
54
|
-
function Sprite(image) {
|
|
55
|
-
this._image = null;
|
|
56
|
-
this._image = image;
|
|
57
|
-
if (image) {
|
|
58
|
-
if (image instanceof Image) {
|
|
59
|
-
this.sprite = Sprite$2.from(image);
|
|
60
|
-
}
|
|
61
|
-
else if (image instanceof Texture) {
|
|
62
|
-
this.sprite = new Sprite$2(image);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
this.sprite = new Sprite$2();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
Object.defineProperty(Sprite.prototype, "image", {
|
|
70
|
-
get: function () {
|
|
71
|
-
return this._image;
|
|
72
|
-
},
|
|
73
|
-
set: function (val) {
|
|
74
|
-
if (this._image === val) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
if (val instanceof Image) {
|
|
78
|
-
this.sprite.texture && this.sprite.texture.destroy(false);
|
|
79
|
-
this.sprite.texture = Texture.from(val);
|
|
80
|
-
}
|
|
81
|
-
else if (val instanceof Texture) {
|
|
82
|
-
this.sprite.texture = val;
|
|
83
|
-
}
|
|
84
|
-
this._image = val;
|
|
85
|
-
},
|
|
86
|
-
enumerable: false,
|
|
87
|
-
configurable: true
|
|
88
|
-
});
|
|
89
|
-
return Sprite;
|
|
90
|
-
}());
|
|
91
|
-
var Sprite$1 = Sprite;
|
|
92
|
-
|
|
93
|
-
var SpriteAnimation = (function () {
|
|
94
|
-
function SpriteAnimation(_a) {
|
|
95
|
-
var frames = _a.frames;
|
|
96
|
-
this.animatedSprite = new extras.AnimatedSprite(frames);
|
|
97
|
-
}
|
|
98
|
-
SpriteAnimation.prototype.play = function () {
|
|
99
|
-
this.animatedSprite.play();
|
|
100
|
-
};
|
|
101
|
-
SpriteAnimation.prototype.stop = function () {
|
|
102
|
-
this.animatedSprite.stop();
|
|
103
|
-
};
|
|
104
|
-
SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
|
|
105
|
-
this.animatedSprite.gotoAndPlay(frameNumber);
|
|
106
|
-
};
|
|
107
|
-
SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
|
|
108
|
-
this.animatedSprite.gotoAndStop(frameNumber);
|
|
109
|
-
};
|
|
110
|
-
Object.defineProperty(SpriteAnimation.prototype, "speed", {
|
|
111
|
-
get: function () {
|
|
112
|
-
return this.animatedSprite.animationSpeed;
|
|
113
|
-
},
|
|
114
|
-
set: function (val) {
|
|
115
|
-
this.animatedSprite.animationSpeed = val;
|
|
116
|
-
},
|
|
117
|
-
enumerable: false,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
return SpriteAnimation;
|
|
121
|
-
}());
|
|
122
|
-
var SpriteAnimation$1 = SpriteAnimation;
|
|
123
|
-
|
|
124
|
-
var Text = (function (_super) {
|
|
125
|
-
__extends(Text, _super);
|
|
126
|
-
function Text(text, style) {
|
|
127
|
-
return _super.call(this, text, style) || this;
|
|
128
|
-
}
|
|
129
|
-
return Text;
|
|
130
|
-
}(Text$2));
|
|
131
|
-
var Text$1 = Text;
|
|
132
|
-
|
|
133
|
-
var PIXITilingSprite = extras.TilingSprite;
|
|
134
|
-
var TilingSprite = (function () {
|
|
135
|
-
function TilingSprite(image) {
|
|
136
|
-
this._image = null;
|
|
137
|
-
this._image = image;
|
|
138
|
-
if (image) {
|
|
139
|
-
if (image instanceof Image) {
|
|
140
|
-
this.tilingSprite = new PIXITilingSprite(Texture.from(image));
|
|
141
|
-
}
|
|
142
|
-
else if (image instanceof Texture) {
|
|
143
|
-
this.tilingSprite = new PIXITilingSprite(image);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
this.tilingSprite = new PIXITilingSprite(Texture.EMPTY);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
Object.defineProperty(TilingSprite.prototype, "image", {
|
|
151
|
-
get: function () {
|
|
152
|
-
return this._image;
|
|
153
|
-
},
|
|
154
|
-
set: function (val) {
|
|
155
|
-
if (this._image === val) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
if (val instanceof Image) {
|
|
159
|
-
this.tilingSprite.texture = Texture.from(val);
|
|
160
|
-
}
|
|
161
|
-
else if (val instanceof Texture) {
|
|
162
|
-
this.tilingSprite.texture = val;
|
|
163
|
-
}
|
|
164
|
-
this._image = val;
|
|
165
|
-
},
|
|
166
|
-
enumerable: false,
|
|
167
|
-
configurable: true
|
|
168
|
-
});
|
|
169
|
-
return TilingSprite;
|
|
170
|
-
}());
|
|
171
|
-
var TilingSprite$1 = TilingSprite;
|
|
172
|
-
|
|
173
|
-
export { Application$1 as Application, Container$1 as Container, Graphics$1 as Graphics, NinePatch$1 as NinePatch, Sprite$1 as Sprite, SpriteAnimation$1 as SpriteAnimation, Text$1 as Text, TilingSprite$1 as TilingSprite };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Application as Application_2 } from 'pixi.js';
|
|
2
|
-
import { Container as Container_2 } from 'pixi.js';
|
|
3
|
-
import { extras } from 'pixi.js';
|
|
4
|
-
import { Graphics as Graphics_2 } from 'pixi.js';
|
|
5
|
-
import { mesh } from 'pixi.js';
|
|
6
|
-
import { Sprite as Sprite_2 } from 'pixi.js';
|
|
7
|
-
import { Text as Text_3 } from 'pixi.js';
|
|
8
|
-
import { Texture } from 'pixi.js';
|
|
9
|
-
|
|
10
|
-
export declare class Application extends Application_2 {
|
|
11
|
-
constructor(params?: any);
|
|
12
|
-
[propName: string]: any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare class Container extends Container_2 {
|
|
16
|
-
[propName: string]: any;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export declare class Graphics extends Graphics_2 {
|
|
20
|
-
[propName: string]: any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export declare class NinePatch extends mesh.NineSlicePlane {
|
|
24
|
-
constructor(img: any, leftWidth: any, topHeight: any, rightWidth: any, bottomHeight: any);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare class Sprite {
|
|
28
|
-
_image: HTMLImageElement | Texture;
|
|
29
|
-
sprite: Sprite_2;
|
|
30
|
-
constructor(image: HTMLImageElement | Texture);
|
|
31
|
-
set image(val: HTMLImageElement | Texture);
|
|
32
|
-
get image(): HTMLImageElement | Texture;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export declare class SpriteAnimation {
|
|
36
|
-
animatedSprite: extras.AnimatedSprite;
|
|
37
|
-
constructor({ frames }: {
|
|
38
|
-
frames: any;
|
|
39
|
-
});
|
|
40
|
-
play(): void;
|
|
41
|
-
stop(): void;
|
|
42
|
-
gotoAndPlay(frameNumber: any): void;
|
|
43
|
-
gotoAndStop(frameNumber: any): void;
|
|
44
|
-
set speed(val: number);
|
|
45
|
-
get speed(): number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare class Text_2 extends Text_3 {
|
|
49
|
-
text: string;
|
|
50
|
-
style: any;
|
|
51
|
-
width: number;
|
|
52
|
-
height: number;
|
|
53
|
-
constructor(text: any, style: any);
|
|
54
|
-
}
|
|
55
|
-
export { Text_2 as Text }
|
|
56
|
-
|
|
57
|
-
export declare class TilingSprite {
|
|
58
|
-
_image: HTMLImageElement | Texture;
|
|
59
|
-
tilingSprite: any;
|
|
60
|
-
constructor(image: HTMLImageElement | Texture);
|
|
61
|
-
set image(val: HTMLImageElement | Texture);
|
|
62
|
-
get image(): HTMLImageElement | Texture;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { }
|