@eva/renderer-adapter 2.0.0-beta.1 → 2.0.0-beta.3

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,63 +1,28 @@
1
1
  window.EVA = window.EVA || {};
2
2
  var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {
3
3
  'use strict';
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf || {
6
- __proto__: []
7
- } instanceof Array && function (d, b) {
8
- d.__proto__ = b;
9
- } || function (d, b) {
10
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
11
- };
12
- return extendStatics(d, b);
13
- };
14
- function __extends(d, b) {
15
- extendStatics(d, b);
16
- function __() {
17
- this.constructor = d;
18
- }
19
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20
- }
21
- var Container = function (_super) {
22
- __extends(Container, _super);
23
- function Container() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- return Container;
27
- }(pixi_js.Container);
28
- var Container$1 = Container;
29
- var Graphics = function (_super) {
30
- __extends(Graphics, _super);
31
- function Graphics() {
32
- return _super !== null && _super.apply(this, arguments) || this;
33
- }
34
- return Graphics;
35
- }(pixi_js.Graphics);
36
- var Graphics$1 = Graphics;
37
- var NinePatch = function (_super) {
38
- __extends(NinePatch, _super);
39
- function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
40
- var _this = this;
41
- var texture;
4
+
5
+ class Container extends pixi_js.Container {}
6
+ class Graphics extends pixi_js.Graphics {}
7
+ class NinePatch extends pixi_js.NineSliceSprite {
8
+ constructor(img, leftWidth, topHeight, rightWidth, bottomHeight) {
9
+ let texture;
42
10
  if (img instanceof pixi_js.Texture) {
43
11
  texture = img;
44
12
  } else {
45
13
  texture = pixi_js.Texture.from(img);
46
14
  }
47
- _this = _super.call(this, {
48
- texture: texture,
49
- leftWidth: leftWidth,
50
- topHeight: topHeight,
51
- rightWidth: rightWidth,
52
- bottomHeight: bottomHeight
53
- }) || this;
54
- return _this;
15
+ super({
16
+ texture,
17
+ leftWidth,
18
+ topHeight,
19
+ rightWidth,
20
+ bottomHeight
21
+ });
55
22
  }
56
- return NinePatch;
57
- }(pixi_js.NineSliceSprite);
58
- var NinePatch$1 = NinePatch;
59
- var Sprite = function () {
60
- function Sprite(image) {
23
+ }
24
+ class Sprite {
25
+ constructor(image) {
61
26
  this._image = null;
62
27
  this._image = image;
63
28
  if (image) {
@@ -70,66 +35,53 @@ var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {
70
35
  this.sprite = new pixi_js.Sprite();
71
36
  }
72
37
  }
73
- Object.defineProperty(Sprite.prototype, "image", {
74
- get: function () {
75
- return this._image;
76
- },
77
- set: function (val) {
78
- if (this._image === val) {
79
- return;
80
- }
81
- if (val instanceof HTMLImageElement) {
82
- this.sprite.texture && this.sprite.texture.destroy(false);
83
- this.sprite.texture = pixi_js.Texture.from(val);
84
- } else if (val instanceof pixi_js.Texture) {
85
- this.sprite.texture = val;
86
- }
87
- this._image = val;
88
- },
89
- enumerable: false,
90
- configurable: true
91
- });
92
- return Sprite;
93
- }();
94
- var Sprite$1 = Sprite;
95
- var SpriteAnimation = function () {
96
- function SpriteAnimation(_a) {
97
- var frames = _a.frames;
38
+ set image(val) {
39
+ if (this._image === val) {
40
+ return;
41
+ }
42
+ if (val instanceof HTMLImageElement) {
43
+ this.sprite.texture && this.sprite.texture.destroy(false);
44
+ this.sprite.texture = pixi_js.Texture.from(val);
45
+ } else if (val instanceof pixi_js.Texture) {
46
+ this.sprite.texture = val;
47
+ }
48
+ this._image = val;
49
+ }
50
+ get image() {
51
+ return this._image;
52
+ }
53
+ }
54
+ class SpriteAnimation {
55
+ constructor({
56
+ frames
57
+ }) {
98
58
  this.animatedSprite = new pixi_js.AnimatedSprite(frames);
99
59
  }
100
- SpriteAnimation.prototype.play = function () {
60
+ play() {
101
61
  this.animatedSprite.play();
102
- };
103
- SpriteAnimation.prototype.stop = function () {
62
+ }
63
+ stop() {
104
64
  this.animatedSprite.stop();
105
- };
106
- SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
65
+ }
66
+ gotoAndPlay(frameNumber) {
107
67
  this.animatedSprite.gotoAndPlay(frameNumber);
108
- };
109
- SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
68
+ }
69
+ gotoAndStop(frameNumber) {
110
70
  this.animatedSprite.gotoAndStop(frameNumber);
111
- };
112
- Object.defineProperty(SpriteAnimation.prototype, "speed", {
113
- get: function () {
114
- return this.animatedSprite.animationSpeed;
115
- },
116
- set: function (val) {
117
- this.animatedSprite.animationSpeed = val;
118
- },
119
- enumerable: false,
120
- configurable: true
121
- });
122
- return SpriteAnimation;
123
- }();
124
- var SpriteAnimation$1 = SpriteAnimation;
125
- var Text = function (_super) {
126
- __extends(Text, _super);
127
- function Text(text, style) {
128
- var _this = this;
71
+ }
72
+ set speed(val) {
73
+ this.animatedSprite.animationSpeed = val;
74
+ }
75
+ get speed() {
76
+ return this.animatedSprite.animationSpeed;
77
+ }
78
+ }
79
+ class Text extends pixi_js.Text {
80
+ constructor(text, style) {
129
81
  if (style.strokeThickness) {
130
- var color = style.stroke;
82
+ const color = style.stroke;
131
83
  style.stroke = {
132
- color: color,
84
+ color,
133
85
  width: style.strokeThickness
134
86
  };
135
87
  delete style['strokeThickness'];
@@ -139,7 +91,7 @@ var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {
139
91
  style.fill = style.fill[0];
140
92
  }
141
93
  if (Array.isArray(style.fillGradientStops)) {
142
- var fontSize = void 0;
94
+ let fontSize;
143
95
  if (style.fontSize == null) {
144
96
  style.fontSize = pixi_js.TextStyle.defaultTextStyle.fontSize;
145
97
  } else if (typeof style.fontSize === 'string') {
@@ -147,30 +99,25 @@ var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {
147
99
  } else {
148
100
  fontSize = style.fontSize;
149
101
  }
150
- var gradientFill_1 = new pixi_js.FillGradient(0, 0, 0, fontSize * 1.7);
151
- var fills_1 = style.fillGradientStops.map(function (color) {
152
- return pixi_js.Color.shared.setValue(color).toNumber();
153
- });
154
- fills_1.forEach(function (number, index) {
155
- var ratio = index / (fills_1.length - 1);
156
- gradientFill_1.addColorStop(ratio, number);
102
+ const gradientFill = new pixi_js.FillGradient(0, 0, 0, fontSize * 1.7);
103
+ const fills = style.fillGradientStops.map(color => pixi_js.Color.shared.setValue(color).toNumber());
104
+ fills.forEach((number, index) => {
105
+ const ratio = index / (fills.length - 1);
106
+ gradientFill.addColorStop(ratio, number);
157
107
  });
158
108
  style.fill = {
159
- fill: gradientFill_1
109
+ fill: gradientFill
160
110
  };
161
111
  delete style['fillGradientStops'];
162
112
  }
163
- _this = _super.call(this, {
164
- text: text,
165
- style: style
166
- }) || this;
167
- return _this;
113
+ super({
114
+ text,
115
+ style
116
+ });
168
117
  }
169
- return Text;
170
- }(pixi_js.Text);
171
- var Text$1 = Text;
172
- var TilingSprite = function () {
173
- function TilingSprite(image) {
118
+ }
119
+ class TilingSprite {
120
+ constructor(image) {
174
121
  this._image = null;
175
122
  this._image = image;
176
123
  if (image) {
@@ -183,35 +130,29 @@ var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {
183
130
  this.tilingSprite = new pixi_js.TilingSprite(pixi_js.Texture.EMPTY);
184
131
  }
185
132
  }
186
- Object.defineProperty(TilingSprite.prototype, "image", {
187
- get: function () {
188
- return this._image;
189
- },
190
- set: function (val) {
191
- if (this._image === val) {
192
- return;
193
- }
194
- if (val instanceof HTMLImageElement) {
195
- this.tilingSprite.texture = pixi_js.Texture.from(val);
196
- } else if (val instanceof pixi_js.Texture) {
197
- this.tilingSprite.texture = val;
198
- }
199
- this._image = val;
200
- },
201
- enumerable: false,
202
- configurable: true
203
- });
204
- return TilingSprite;
205
- }();
206
- var TilingSprite$1 = TilingSprite;
133
+ set image(val) {
134
+ if (this._image === val) {
135
+ return;
136
+ }
137
+ if (val instanceof HTMLImageElement) {
138
+ this.tilingSprite.texture = pixi_js.Texture.from(val);
139
+ } else if (val instanceof pixi_js.Texture) {
140
+ this.tilingSprite.texture = val;
141
+ }
142
+ this._image = val;
143
+ }
144
+ get image() {
145
+ return this._image;
146
+ }
147
+ }
207
148
  exports.Application = pixi_js.Application;
208
- exports.Container = Container$1;
209
- exports.Graphics = Graphics$1;
210
- exports.NinePatch = NinePatch$1;
211
- exports.Sprite = Sprite$1;
212
- exports.SpriteAnimation = SpriteAnimation$1;
213
- exports.Text = Text$1;
214
- exports.TilingSprite = TilingSprite$1;
149
+ exports.Container = Container;
150
+ exports.Graphics = Graphics;
151
+ exports.NinePatch = NinePatch;
152
+ exports.Sprite = Sprite;
153
+ exports.SpriteAnimation = SpriteAnimation;
154
+ exports.Text = Text;
155
+ exports.TilingSprite = TilingSprite;
215
156
  Object.defineProperty(exports, '__esModule', {
216
157
  value: true
217
158
  });
@@ -1 +1 @@
1
- window.EVA=window.EVA||{};var _EVA_IIFE_rendererAdapter=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])},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(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Container),o=r,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Graphics),s=a,p=function(t){function i(i,n,r,o,a){var s;return s=i instanceof e.Texture?i:e.Texture.from(i),t.call(this,{texture:s,leftWidth:n,topHeight:r,rightWidth:o,bottomHeight:a})||this}return n(i,t),i}(e.NineSliceSprite),u=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}(),l=function(){function t(t){var i=t.frames;this.animatedSprite=new e.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 i(i,n){if(n.strokeThickness){var r=n.stroke;n.stroke={color:r,width:n.strokeThickness},delete n.strokeThickness}if(Array.isArray(n.fill)&&(console.warn("Eva.js Deprecation Warning: fill array is not supported in Eva.js v2."),n.fill=n.fill[0]),Array.isArray(n.fillGradientStops)){var o=void 0;null==n.fontSize?n.fontSize=e.TextStyle.defaultTextStyle.fontSize:o="string"==typeof n.fontSize?parseInt(n.fontSize,10):n.fontSize;var a=new e.FillGradient(0,0,0,1.7*o),s=n.fillGradientStops.map((function(t){return e.Color.shared.setValue(t).toNumber()}));s.forEach((function(t,e){var i=e/(s.length-1);a.addColorStop(i,t)})),n.fill={fill:a},delete n.fillGradientStops}return t.call(this,{text:i,style:n})||this}return n(i,t),i}(e.Text),c=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.tilingSprite=new e.TilingSprite(e.Texture.from(t)):t instanceof e.Texture&&(this.tilingSprite=new e.TilingSprite(t)):this.tilingSprite=new e.TilingSprite(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}();return t.Application=e.Application,t.Container=o,t.Graphics=s,t.NinePatch=p,t.Sprite=u,t.SpriteAnimation=l,t.Text=f,t.TilingSprite=c,Object.defineProperty(t,"__esModule",{value:!0}),t}({},PIXI);window.EVA.rendererAdapter=window.EVA.rendererAdapter||_EVA_IIFE_rendererAdapter;
1
+ window.EVA=window.EVA||{};var _EVA_IIFE_rendererAdapter=function(e,t){"use strict";class i extends t.Container{}class r extends t.Graphics{}class n extends t.NineSliceSprite{constructor(e,i,r,n,s){let a;a=e instanceof t.Texture?e:t.Texture.from(e),super({texture:a,leftWidth:i,topHeight:r,rightWidth:n,bottomHeight:s})}}class s extends t.Text{constructor(e,i){if(i.strokeThickness){const e=i.stroke;i.stroke={color:e,width:i.strokeThickness},delete i.strokeThickness}if(Array.isArray(i.fill)&&(console.warn("Eva.js Deprecation Warning: fill array is not supported in Eva.js v2."),i.fill=i.fill[0]),Array.isArray(i.fillGradientStops)){let e;null==i.fontSize?i.fontSize=t.TextStyle.defaultTextStyle.fontSize:e="string"==typeof i.fontSize?parseInt(i.fontSize,10):i.fontSize;const r=new t.FillGradient(0,0,0,1.7*e),n=i.fillGradientStops.map((e=>t.Color.shared.setValue(e).toNumber()));n.forEach(((e,t)=>{const i=t/(n.length-1);r.addColorStop(i,e)})),i.fill={fill:r},delete i.fillGradientStops}super({text:e,style:i})}}return e.Application=t.Application,e.Container=i,e.Graphics=r,e.NinePatch=n,e.Sprite=class{constructor(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.sprite=t.Sprite.from(e):e instanceof t.Texture&&(this.sprite=new t.Sprite(e)):this.sprite=new t.Sprite}set image(e){this._image!==e&&(e instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=t.Texture.from(e)):e instanceof t.Texture&&(this.sprite.texture=e),this._image=e)}get image(){return this._image}},e.SpriteAnimation=class{constructor({frames:e}){this.animatedSprite=new t.AnimatedSprite(e)}play(){this.animatedSprite.play()}stop(){this.animatedSprite.stop()}gotoAndPlay(e){this.animatedSprite.gotoAndPlay(e)}gotoAndStop(e){this.animatedSprite.gotoAndStop(e)}set speed(e){this.animatedSprite.animationSpeed=e}get speed(){return this.animatedSprite.animationSpeed}},e.Text=s,e.TilingSprite=class{constructor(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.tilingSprite=new t.TilingSprite(t.Texture.from(e)):e instanceof t.Texture&&(this.tilingSprite=new t.TilingSprite(e)):this.tilingSprite=new t.TilingSprite(t.Texture.EMPTY)}set image(e){this._image!==e&&(e instanceof HTMLImageElement?this.tilingSprite.texture=t.Texture.from(e):e instanceof t.Texture&&(this.tilingSprite.texture=e),this._image=e)}get image(){return this._image}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI);window.EVA.rendererAdapter=window.EVA.rendererAdapter||_EVA_IIFE_rendererAdapter;
@@ -4,79 +4,33 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var pixi_js = require('pixi.js');
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation. All rights reserved.
9
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
- this file except in compliance with the License. You may obtain a copy of the
11
- License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
- MERCHANTABLITY OR NON-INFRINGEMENT.
17
-
18
- See the Apache Version 2.0 License for specific language governing permissions
19
- and limitations under the License.
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 __());
7
+ class Container extends pixi_js.Container {
34
8
  }
35
9
 
36
- var Container = (function (_super) {
37
- __extends(Container, _super);
38
- function Container() {
39
- return _super !== null && _super.apply(this, arguments) || this;
40
- }
41
- return Container;
42
- }(pixi_js.Container));
43
- var Container$1 = Container;
44
-
45
- var Graphics = (function (_super) {
46
- __extends(Graphics, _super);
47
- function Graphics() {
48
- return _super !== null && _super.apply(this, arguments) || this;
49
- }
50
- return Graphics;
51
- }(pixi_js.Graphics));
52
- var Graphics$1 = Graphics;
10
+ class Graphics extends pixi_js.Graphics {
11
+ }
53
12
 
54
- var NinePatch = (function (_super) {
55
- __extends(NinePatch, _super);
56
- function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
57
- var _this = this;
58
- var texture;
13
+ class NinePatch extends pixi_js.NineSliceSprite {
14
+ constructor(img, leftWidth, topHeight, rightWidth, bottomHeight) {
15
+ let texture;
59
16
  if (img instanceof pixi_js.Texture) {
60
17
  texture = img;
61
18
  }
62
19
  else {
63
20
  texture = pixi_js.Texture.from(img);
64
21
  }
65
- _this = _super.call(this, {
66
- texture: texture,
67
- leftWidth: leftWidth,
68
- topHeight: topHeight,
69
- rightWidth: rightWidth,
70
- bottomHeight: bottomHeight,
71
- }) || this;
72
- return _this;
22
+ super({
23
+ texture,
24
+ leftWidth,
25
+ topHeight,
26
+ rightWidth,
27
+ bottomHeight,
28
+ });
73
29
  }
74
- return NinePatch;
75
- }(pixi_js.NineSliceSprite));
76
- var NinePatch$1 = NinePatch;
30
+ }
77
31
 
78
- var Sprite = (function () {
79
- function Sprite(image) {
32
+ class Sprite {
33
+ constructor(image) {
80
34
  this._image = null;
81
35
  this._image = image;
82
36
  if (image) {
@@ -91,69 +45,54 @@ var Sprite = (function () {
91
45
  this.sprite = new pixi_js.Sprite();
92
46
  }
93
47
  }
94
- Object.defineProperty(Sprite.prototype, "image", {
95
- get: function () {
96
- return this._image;
97
- },
98
- set: function (val) {
99
- if (this._image === val) {
100
- return;
101
- }
102
- if (val instanceof HTMLImageElement) {
103
- this.sprite.texture && this.sprite.texture.destroy(false);
104
- this.sprite.texture = pixi_js.Texture.from(val);
105
- }
106
- else if (val instanceof pixi_js.Texture) {
107
- this.sprite.texture = val;
108
- }
109
- this._image = val;
110
- },
111
- enumerable: false,
112
- configurable: true
113
- });
114
- return Sprite;
115
- }());
116
- var Sprite$1 = Sprite;
48
+ set image(val) {
49
+ if (this._image === val) {
50
+ return;
51
+ }
52
+ if (val instanceof HTMLImageElement) {
53
+ this.sprite.texture && this.sprite.texture.destroy(false);
54
+ this.sprite.texture = pixi_js.Texture.from(val);
55
+ }
56
+ else if (val instanceof pixi_js.Texture) {
57
+ this.sprite.texture = val;
58
+ }
59
+ this._image = val;
60
+ }
61
+ get image() {
62
+ return this._image;
63
+ }
64
+ }
117
65
 
118
- var SpriteAnimation = (function () {
119
- function SpriteAnimation(_a) {
120
- var frames = _a.frames;
66
+ class SpriteAnimation {
67
+ constructor({ frames }) {
121
68
  this.animatedSprite = new pixi_js.AnimatedSprite(frames);
122
69
  }
123
- SpriteAnimation.prototype.play = function () {
70
+ play() {
124
71
  this.animatedSprite.play();
125
- };
126
- SpriteAnimation.prototype.stop = function () {
72
+ }
73
+ stop() {
127
74
  this.animatedSprite.stop();
128
- };
129
- SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
75
+ }
76
+ gotoAndPlay(frameNumber) {
130
77
  this.animatedSprite.gotoAndPlay(frameNumber);
131
- };
132
- SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
78
+ }
79
+ gotoAndStop(frameNumber) {
133
80
  this.animatedSprite.gotoAndStop(frameNumber);
134
- };
135
- Object.defineProperty(SpriteAnimation.prototype, "speed", {
136
- get: function () {
137
- return this.animatedSprite.animationSpeed;
138
- },
139
- set: function (val) {
140
- this.animatedSprite.animationSpeed = val;
141
- },
142
- enumerable: false,
143
- configurable: true
144
- });
145
- return SpriteAnimation;
146
- }());
147
- var SpriteAnimation$1 = SpriteAnimation;
81
+ }
82
+ set speed(val) {
83
+ this.animatedSprite.animationSpeed = val;
84
+ }
85
+ get speed() {
86
+ return this.animatedSprite.animationSpeed;
87
+ }
88
+ }
148
89
 
149
- var Text = (function (_super) {
150
- __extends(Text, _super);
151
- function Text(text, style) {
152
- var _this = this;
90
+ class Text extends pixi_js.Text {
91
+ constructor(text, style) {
153
92
  if (style.strokeThickness) {
154
- var color = style.stroke;
93
+ const color = style.stroke;
155
94
  style.stroke = {
156
- color: color,
95
+ color,
157
96
  width: style.strokeThickness,
158
97
  };
159
98
  delete style['strokeThickness'];
@@ -163,7 +102,7 @@ var Text = (function (_super) {
163
102
  style.fill = style.fill[0];
164
103
  }
165
104
  if (Array.isArray(style.fillGradientStops)) {
166
- var fontSize = void 0;
105
+ let fontSize;
167
106
  if (style.fontSize == null) {
168
107
  style.fontSize = pixi_js.TextStyle.defaultTextStyle.fontSize;
169
108
  }
@@ -173,29 +112,26 @@ var Text = (function (_super) {
173
112
  else {
174
113
  fontSize = style.fontSize;
175
114
  }
176
- var gradientFill_1 = new pixi_js.FillGradient(0, 0, 0, fontSize * 1.7);
177
- var fills_1 = style.fillGradientStops.map(function (color) { return pixi_js.Color.shared.setValue(color).toNumber(); });
178
- fills_1.forEach(function (number, index) {
179
- var ratio = index / (fills_1.length - 1);
180
- gradientFill_1.addColorStop(ratio, number);
115
+ const gradientFill = new pixi_js.FillGradient(0, 0, 0, fontSize * 1.7);
116
+ const fills = style.fillGradientStops.map(color => pixi_js.Color.shared.setValue(color).toNumber());
117
+ fills.forEach((number, index) => {
118
+ const ratio = index / (fills.length - 1);
119
+ gradientFill.addColorStop(ratio, number);
181
120
  });
182
121
  style.fill = {
183
- fill: gradientFill_1,
122
+ fill: gradientFill,
184
123
  };
185
124
  delete style['fillGradientStops'];
186
125
  }
187
- _this = _super.call(this, {
188
- text: text,
189
- style: style,
190
- }) || this;
191
- return _this;
126
+ super({
127
+ text,
128
+ style,
129
+ });
192
130
  }
193
- return Text;
194
- }(pixi_js.Text));
195
- var Text$1 = Text;
131
+ }
196
132
 
197
- var TilingSprite = (function () {
198
- function TilingSprite(image) {
133
+ class TilingSprite {
134
+ constructor(image) {
199
135
  this._image = null;
200
136
  this._image = image;
201
137
  if (image) {
@@ -210,34 +146,28 @@ var TilingSprite = (function () {
210
146
  this.tilingSprite = new pixi_js.TilingSprite(pixi_js.Texture.EMPTY);
211
147
  }
212
148
  }
213
- Object.defineProperty(TilingSprite.prototype, "image", {
214
- get: function () {
215
- return this._image;
216
- },
217
- set: function (val) {
218
- if (this._image === val) {
219
- return;
220
- }
221
- if (val instanceof HTMLImageElement) {
222
- this.tilingSprite.texture = pixi_js.Texture.from(val);
223
- }
224
- else if (val instanceof pixi_js.Texture) {
225
- this.tilingSprite.texture = val;
226
- }
227
- this._image = val;
228
- },
229
- enumerable: false,
230
- configurable: true
231
- });
232
- return TilingSprite;
233
- }());
234
- var TilingSprite$1 = TilingSprite;
149
+ set image(val) {
150
+ if (this._image === val) {
151
+ return;
152
+ }
153
+ if (val instanceof HTMLImageElement) {
154
+ this.tilingSprite.texture = pixi_js.Texture.from(val);
155
+ }
156
+ else if (val instanceof pixi_js.Texture) {
157
+ this.tilingSprite.texture = val;
158
+ }
159
+ this._image = val;
160
+ }
161
+ get image() {
162
+ return this._image;
163
+ }
164
+ }
235
165
 
236
166
  exports.Application = pixi_js.Application;
237
- exports.Container = Container$1;
238
- exports.Graphics = Graphics$1;
239
- exports.NinePatch = NinePatch$1;
240
- exports.Sprite = Sprite$1;
241
- exports.SpriteAnimation = SpriteAnimation$1;
242
- exports.Text = Text$1;
243
- exports.TilingSprite = TilingSprite$1;
167
+ exports.Container = Container;
168
+ exports.Graphics = Graphics;
169
+ exports.NinePatch = NinePatch;
170
+ exports.Sprite = Sprite;
171
+ exports.SpriteAnimation = SpriteAnimation;
172
+ exports.Text = Text;
173
+ exports.TilingSprite = TilingSprite;
@@ -1,15 +1 @@
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
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
- this file except in compliance with the License. You may obtain a copy of the
6
- License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
-
13
- See the Apache Version 2.0 License for specific language governing permissions
14
- and limitations under the License.
15
- ***************************************************************************** */function i(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t.Container),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t.Graphics),o=function(e){function n(i,n,r,o,s){var a;return a=i instanceof t.Texture?i:t.Texture.from(i),e.call(this,{texture:a,leftWidth:n,topHeight:r,rightWidth:o,bottomHeight:s})||this}return i(n,e),n}(t.NineSliceSprite),s=function(){function e(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.sprite=t.Sprite.from(e):e instanceof t.Texture&&(this.sprite=new t.Sprite(e)):this.sprite=new t.Sprite}return Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(e){this._image!==e&&(e instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=t.Texture.from(e)):e instanceof t.Texture&&(this.sprite.texture=e),this._image=e)},enumerable:!1,configurable:!0}),e}(),a=function(){function e(e){var i=e.frames;this.animatedSprite=new t.AnimatedSprite(i)}return e.prototype.play=function(){this.animatedSprite.play()},e.prototype.stop=function(){this.animatedSprite.stop()},e.prototype.gotoAndPlay=function(t){this.animatedSprite.gotoAndPlay(t)},e.prototype.gotoAndStop=function(t){this.animatedSprite.gotoAndStop(t)},Object.defineProperty(e.prototype,"speed",{get:function(){return this.animatedSprite.animationSpeed},set:function(t){this.animatedSprite.animationSpeed=t},enumerable:!1,configurable:!0}),e}(),p=function(e){function n(i,n){if(n.strokeThickness){var r=n.stroke;n.stroke={color:r,width:n.strokeThickness},delete n.strokeThickness}if(Array.isArray(n.fill)&&(console.warn("Eva.js Deprecation Warning: fill array is not supported in Eva.js v2."),n.fill=n.fill[0]),Array.isArray(n.fillGradientStops)){var o=void 0;null==n.fontSize?n.fontSize=t.TextStyle.defaultTextStyle.fontSize:o="string"==typeof n.fontSize?parseInt(n.fontSize,10):n.fontSize;var s=new t.FillGradient(0,0,0,1.7*o),a=n.fillGradientStops.map((function(e){return t.Color.shared.setValue(e).toNumber()}));a.forEach((function(t,e){var i=e/(a.length-1);s.addColorStop(i,t)})),n.fill={fill:s},delete n.fillGradientStops}return e.call(this,{text:i,style:n})||this}return i(n,e),n}(t.Text),u=function(){function e(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.tilingSprite=new t.TilingSprite(t.Texture.from(e)):e instanceof t.Texture&&(this.tilingSprite=new t.TilingSprite(e)):this.tilingSprite=new t.TilingSprite(t.Texture.EMPTY)}return Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(e){this._image!==e&&(e instanceof HTMLImageElement?this.tilingSprite.texture=t.Texture.from(e):e instanceof t.Texture&&(this.tilingSprite.texture=e),this._image=e)},enumerable:!1,configurable:!0}),e}();exports.Application=t.Application,exports.Container=n,exports.Graphics=r,exports.NinePatch=o,exports.Sprite=s,exports.SpriteAnimation=a,exports.Text=p,exports.TilingSprite=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js");class e extends t.Container{}class i extends t.Graphics{}class r extends t.NineSliceSprite{constructor(e,i,r,s,n){let a;a=e instanceof t.Texture?e:t.Texture.from(e),super({texture:a,leftWidth:i,topHeight:r,rightWidth:s,bottomHeight:n})}}class s extends t.Text{constructor(e,i){if(i.strokeThickness){const t=i.stroke;i.stroke={color:t,width:i.strokeThickness},delete i.strokeThickness}if(Array.isArray(i.fill)&&(console.warn("Eva.js Deprecation Warning: fill array is not supported in Eva.js v2."),i.fill=i.fill[0]),Array.isArray(i.fillGradientStops)){let e;null==i.fontSize?i.fontSize=t.TextStyle.defaultTextStyle.fontSize:e="string"==typeof i.fontSize?parseInt(i.fontSize,10):i.fontSize;const r=new t.FillGradient(0,0,0,1.7*e),s=i.fillGradientStops.map((e=>t.Color.shared.setValue(e).toNumber()));s.forEach(((t,e)=>{const i=e/(s.length-1);r.addColorStop(i,t)})),i.fill={fill:r},delete i.fillGradientStops}super({text:e,style:i})}}exports.Application=t.Application,exports.Container=e,exports.Graphics=i,exports.NinePatch=r,exports.Sprite=class{constructor(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.sprite=t.Sprite.from(e):e instanceof t.Texture&&(this.sprite=new t.Sprite(e)):this.sprite=new t.Sprite}set image(e){this._image!==e&&(e instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=t.Texture.from(e)):e instanceof t.Texture&&(this.sprite.texture=e),this._image=e)}get image(){return this._image}},exports.SpriteAnimation=class{constructor({frames:e}){this.animatedSprite=new t.AnimatedSprite(e)}play(){this.animatedSprite.play()}stop(){this.animatedSprite.stop()}gotoAndPlay(t){this.animatedSprite.gotoAndPlay(t)}gotoAndStop(t){this.animatedSprite.gotoAndStop(t)}set speed(t){this.animatedSprite.animationSpeed=t}get speed(){return this.animatedSprite.animationSpeed}},exports.Text=s,exports.TilingSprite=class{constructor(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.tilingSprite=new t.TilingSprite(t.Texture.from(e)):e instanceof t.Texture&&(this.tilingSprite=new t.TilingSprite(e)):this.tilingSprite=new t.TilingSprite(t.Texture.EMPTY)}set image(e){this._image!==e&&(e instanceof HTMLImageElement?this.tilingSprite.texture=t.Texture.from(e):e instanceof t.Texture&&(this.tilingSprite.texture=e),this._image=e)}get image(){return this._image}};
@@ -1,156 +1,95 @@
1
- import { Container as Container$2, Graphics as Graphics$2, Texture, NineSliceSprite, Sprite as Sprite$2, AnimatedSprite, TextStyle, FillGradient, Color, Text as Text$2, TilingSprite as TilingSprite$2 } from 'pixi.js';
1
+ import { Container as Container$1, Graphics as Graphics$1, NineSliceSprite, Texture, Sprite as Sprite$1, AnimatedSprite, Text as Text$1, TextStyle, FillGradient, Color, TilingSprite as TilingSprite$1 } from 'pixi.js';
2
2
  export { Application } from 'pixi.js';
3
3
 
4
- /*! *****************************************************************************
5
- Copyright (c) Microsoft Corporation. All rights reserved.
6
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
7
- this file except in compliance with the License. You may obtain a copy of the
8
- License at http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
12
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
13
- MERCHANTABLITY OR NON-INFRINGEMENT.
14
-
15
- See the Apache Version 2.0 License for specific language governing permissions
16
- and limitations under the License.
17
- ***************************************************************************** */
18
- /* global Reflect, Promise */
19
-
20
- var extendStatics = function(d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
-
27
- function __extends(d, b) {
28
- extendStatics(d, b);
29
- function __() { this.constructor = d; }
30
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4
+ class Container extends Container$1 {
31
5
  }
32
6
 
33
- var Container = (function (_super) {
34
- __extends(Container, _super);
35
- function Container() {
36
- return _super !== null && _super.apply(this, arguments) || this;
37
- }
38
- return Container;
39
- }(Container$2));
40
- var Container$1 = Container;
41
-
42
- var Graphics = (function (_super) {
43
- __extends(Graphics, _super);
44
- function Graphics() {
45
- return _super !== null && _super.apply(this, arguments) || this;
46
- }
47
- return Graphics;
48
- }(Graphics$2));
49
- var Graphics$1 = Graphics;
7
+ class Graphics extends Graphics$1 {
8
+ }
50
9
 
51
- var NinePatch = (function (_super) {
52
- __extends(NinePatch, _super);
53
- function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
54
- var _this = this;
55
- var texture;
10
+ class NinePatch extends NineSliceSprite {
11
+ constructor(img, leftWidth, topHeight, rightWidth, bottomHeight) {
12
+ let texture;
56
13
  if (img instanceof Texture) {
57
14
  texture = img;
58
15
  }
59
16
  else {
60
17
  texture = Texture.from(img);
61
18
  }
62
- _this = _super.call(this, {
63
- texture: texture,
64
- leftWidth: leftWidth,
65
- topHeight: topHeight,
66
- rightWidth: rightWidth,
67
- bottomHeight: bottomHeight,
68
- }) || this;
69
- return _this;
19
+ super({
20
+ texture,
21
+ leftWidth,
22
+ topHeight,
23
+ rightWidth,
24
+ bottomHeight,
25
+ });
70
26
  }
71
- return NinePatch;
72
- }(NineSliceSprite));
73
- var NinePatch$1 = NinePatch;
27
+ }
74
28
 
75
- var Sprite = (function () {
76
- function Sprite(image) {
29
+ class Sprite {
30
+ constructor(image) {
77
31
  this._image = null;
78
32
  this._image = image;
79
33
  if (image) {
80
34
  if (image instanceof HTMLImageElement) {
81
- this.sprite = Sprite$2.from(image);
35
+ this.sprite = Sprite$1.from(image);
82
36
  }
83
37
  else if (image instanceof Texture) {
84
- this.sprite = new Sprite$2(image);
38
+ this.sprite = new Sprite$1(image);
85
39
  }
86
40
  }
87
41
  else {
88
- this.sprite = new Sprite$2();
42
+ this.sprite = new Sprite$1();
89
43
  }
90
44
  }
91
- Object.defineProperty(Sprite.prototype, "image", {
92
- get: function () {
93
- return this._image;
94
- },
95
- set: function (val) {
96
- if (this._image === val) {
97
- return;
98
- }
99
- if (val instanceof HTMLImageElement) {
100
- this.sprite.texture && this.sprite.texture.destroy(false);
101
- this.sprite.texture = Texture.from(val);
102
- }
103
- else if (val instanceof Texture) {
104
- this.sprite.texture = val;
105
- }
106
- this._image = val;
107
- },
108
- enumerable: false,
109
- configurable: true
110
- });
111
- return Sprite;
112
- }());
113
- var Sprite$1 = Sprite;
45
+ set image(val) {
46
+ if (this._image === val) {
47
+ return;
48
+ }
49
+ if (val instanceof HTMLImageElement) {
50
+ this.sprite.texture && this.sprite.texture.destroy(false);
51
+ this.sprite.texture = Texture.from(val);
52
+ }
53
+ else if (val instanceof Texture) {
54
+ this.sprite.texture = val;
55
+ }
56
+ this._image = val;
57
+ }
58
+ get image() {
59
+ return this._image;
60
+ }
61
+ }
114
62
 
115
- var SpriteAnimation = (function () {
116
- function SpriteAnimation(_a) {
117
- var frames = _a.frames;
63
+ class SpriteAnimation {
64
+ constructor({ frames }) {
118
65
  this.animatedSprite = new AnimatedSprite(frames);
119
66
  }
120
- SpriteAnimation.prototype.play = function () {
67
+ play() {
121
68
  this.animatedSprite.play();
122
- };
123
- SpriteAnimation.prototype.stop = function () {
69
+ }
70
+ stop() {
124
71
  this.animatedSprite.stop();
125
- };
126
- SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
72
+ }
73
+ gotoAndPlay(frameNumber) {
127
74
  this.animatedSprite.gotoAndPlay(frameNumber);
128
- };
129
- SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
75
+ }
76
+ gotoAndStop(frameNumber) {
130
77
  this.animatedSprite.gotoAndStop(frameNumber);
131
- };
132
- Object.defineProperty(SpriteAnimation.prototype, "speed", {
133
- get: function () {
134
- return this.animatedSprite.animationSpeed;
135
- },
136
- set: function (val) {
137
- this.animatedSprite.animationSpeed = val;
138
- },
139
- enumerable: false,
140
- configurable: true
141
- });
142
- return SpriteAnimation;
143
- }());
144
- var SpriteAnimation$1 = SpriteAnimation;
78
+ }
79
+ set speed(val) {
80
+ this.animatedSprite.animationSpeed = val;
81
+ }
82
+ get speed() {
83
+ return this.animatedSprite.animationSpeed;
84
+ }
85
+ }
145
86
 
146
- var Text = (function (_super) {
147
- __extends(Text, _super);
148
- function Text(text, style) {
149
- var _this = this;
87
+ class Text extends Text$1 {
88
+ constructor(text, style) {
150
89
  if (style.strokeThickness) {
151
- var color = style.stroke;
90
+ const color = style.stroke;
152
91
  style.stroke = {
153
- color: color,
92
+ color,
154
93
  width: style.strokeThickness,
155
94
  };
156
95
  delete style['strokeThickness'];
@@ -160,7 +99,7 @@ var Text = (function (_super) {
160
99
  style.fill = style.fill[0];
161
100
  }
162
101
  if (Array.isArray(style.fillGradientStops)) {
163
- var fontSize = void 0;
102
+ let fontSize;
164
103
  if (style.fontSize == null) {
165
104
  style.fontSize = TextStyle.defaultTextStyle.fontSize;
166
105
  }
@@ -170,64 +109,55 @@ var Text = (function (_super) {
170
109
  else {
171
110
  fontSize = style.fontSize;
172
111
  }
173
- var gradientFill_1 = new FillGradient(0, 0, 0, fontSize * 1.7);
174
- var fills_1 = style.fillGradientStops.map(function (color) { return Color.shared.setValue(color).toNumber(); });
175
- fills_1.forEach(function (number, index) {
176
- var ratio = index / (fills_1.length - 1);
177
- gradientFill_1.addColorStop(ratio, number);
112
+ const gradientFill = new FillGradient(0, 0, 0, fontSize * 1.7);
113
+ const fills = style.fillGradientStops.map(color => Color.shared.setValue(color).toNumber());
114
+ fills.forEach((number, index) => {
115
+ const ratio = index / (fills.length - 1);
116
+ gradientFill.addColorStop(ratio, number);
178
117
  });
179
118
  style.fill = {
180
- fill: gradientFill_1,
119
+ fill: gradientFill,
181
120
  };
182
121
  delete style['fillGradientStops'];
183
122
  }
184
- _this = _super.call(this, {
185
- text: text,
186
- style: style,
187
- }) || this;
188
- return _this;
123
+ super({
124
+ text,
125
+ style,
126
+ });
189
127
  }
190
- return Text;
191
- }(Text$2));
192
- var Text$1 = Text;
128
+ }
193
129
 
194
- var TilingSprite = (function () {
195
- function TilingSprite(image) {
130
+ class TilingSprite {
131
+ constructor(image) {
196
132
  this._image = null;
197
133
  this._image = image;
198
134
  if (image) {
199
135
  if (image instanceof HTMLImageElement) {
200
- this.tilingSprite = new TilingSprite$2(Texture.from(image));
136
+ this.tilingSprite = new TilingSprite$1(Texture.from(image));
201
137
  }
202
138
  else if (image instanceof Texture) {
203
- this.tilingSprite = new TilingSprite$2(image);
139
+ this.tilingSprite = new TilingSprite$1(image);
204
140
  }
205
141
  }
206
142
  else {
207
- this.tilingSprite = new TilingSprite$2(Texture.EMPTY);
143
+ this.tilingSprite = new TilingSprite$1(Texture.EMPTY);
208
144
  }
209
145
  }
210
- Object.defineProperty(TilingSprite.prototype, "image", {
211
- get: function () {
212
- return this._image;
213
- },
214
- set: function (val) {
215
- if (this._image === val) {
216
- return;
217
- }
218
- if (val instanceof HTMLImageElement) {
219
- this.tilingSprite.texture = Texture.from(val);
220
- }
221
- else if (val instanceof Texture) {
222
- this.tilingSprite.texture = val;
223
- }
224
- this._image = val;
225
- },
226
- enumerable: false,
227
- configurable: true
228
- });
229
- return TilingSprite;
230
- }());
231
- var TilingSprite$1 = TilingSprite;
146
+ set image(val) {
147
+ if (this._image === val) {
148
+ return;
149
+ }
150
+ if (val instanceof HTMLImageElement) {
151
+ this.tilingSprite.texture = Texture.from(val);
152
+ }
153
+ else if (val instanceof Texture) {
154
+ this.tilingSprite.texture = val;
155
+ }
156
+ this._image = val;
157
+ }
158
+ get image() {
159
+ return this._image;
160
+ }
161
+ }
232
162
 
233
- export { 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 };
163
+ export { Container, Graphics, NinePatch, Sprite, SpriteAnimation, Text, TilingSprite };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/renderer-adapter",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
4
4
  "description": "@eva/renderer-adapter",
5
5
  "main": "index.js",
6
6
  "module": "dist/renderer-adapter.esm.js",