@eva/plugin-renderer-spine 1.2.7 → 1.2.8-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.
|
@@ -4,9 +4,54 @@ window.EVA = window.EVA || {};
|
|
|
4
4
|
window.EVA.plugin = window.EVA.plugin || {};
|
|
5
5
|
window.EVA.plugin.renderer = window.EVA.plugin.renderer || {};
|
|
6
6
|
|
|
7
|
-
var _EVA_IIFE_spine = function (exports,
|
|
7
|
+
var _EVA_IIFE_spine = function (exports, eva_js, pluginRenderer, pixi_js) {
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
|
+
var _extendStatics$ = function extendStatics$1(d, b) {
|
|
11
|
+
_extendStatics$ = Object.setPrototypeOf || {
|
|
12
|
+
__proto__: []
|
|
13
|
+
} instanceof Array && function (d, b) {
|
|
14
|
+
d.__proto__ = b;
|
|
15
|
+
} || function (d, b) {
|
|
16
|
+
for (var p in b) {
|
|
17
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return _extendStatics$(d, b);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function __extends$2(d, b) {
|
|
25
|
+
_extendStatics$(d, b);
|
|
26
|
+
|
|
27
|
+
function __() {
|
|
28
|
+
this.constructor = d;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function getIDEPropsPropertyObj(target, propertyKey) {
|
|
35
|
+
if (!target.constructor.IDEProps) {
|
|
36
|
+
target.constructor.IDEProps = {};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!target.constructor.IDEProps[propertyKey]) {
|
|
40
|
+
target.constructor.IDEProps[propertyKey] = {};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var propertyObj = target.constructor.IDEProps[propertyKey];
|
|
44
|
+
return propertyObj;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function type(type) {
|
|
48
|
+
return function (target, propertyKey) {
|
|
49
|
+
var prop = getIDEPropsPropertyObj(target, propertyKey);
|
|
50
|
+
prop.key = propertyKey;
|
|
51
|
+
prop.type = type;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
10
55
|
var _extendStatics = function extendStatics(d, b) {
|
|
11
56
|
_extendStatics = Object.setPrototypeOf || {
|
|
12
57
|
__proto__: []
|
|
@@ -42,12 +87,6 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
42
87
|
}
|
|
43
88
|
|
|
44
89
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
45
|
-
function adopt(value) {
|
|
46
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
47
|
-
resolve(value);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
90
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
52
91
|
function fulfilled(value) {
|
|
53
92
|
try {
|
|
@@ -66,7 +105,9 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
66
105
|
}
|
|
67
106
|
|
|
68
107
|
function step(result) {
|
|
69
|
-
result.done ? resolve(result.value) :
|
|
108
|
+
result.done ? resolve(result.value) : new P(function (resolve) {
|
|
109
|
+
resolve(result.value);
|
|
110
|
+
}).then(fulfilled, rejected);
|
|
70
111
|
}
|
|
71
112
|
|
|
72
113
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -185,11 +226,10 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
185
226
|
}
|
|
186
227
|
|
|
187
228
|
function __values(o) {
|
|
188
|
-
var
|
|
189
|
-
m = s && o[s],
|
|
229
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator],
|
|
190
230
|
i = 0;
|
|
191
231
|
if (m) return m.call(o);
|
|
192
|
-
|
|
232
|
+
return {
|
|
193
233
|
next: function next() {
|
|
194
234
|
if (o && i >= o.length) o = void 0;
|
|
195
235
|
return {
|
|
@@ -198,28 +238,6 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
198
238
|
};
|
|
199
239
|
}
|
|
200
240
|
};
|
|
201
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function getIDEPropsPropertyObj(target, propertyKey) {
|
|
205
|
-
if (!target.constructor.IDEProps) {
|
|
206
|
-
target.constructor.IDEProps = {};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (!target.constructor.IDEProps[propertyKey]) {
|
|
210
|
-
target.constructor.IDEProps[propertyKey] = {};
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
var propertyObj = target.constructor.IDEProps[propertyKey];
|
|
214
|
-
return propertyObj;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
function type(type) {
|
|
218
|
-
return function (target, propertyKey) {
|
|
219
|
-
var prop = getIDEPropsPropertyObj(target, propertyKey);
|
|
220
|
-
prop.key = propertyKey;
|
|
221
|
-
prop.type = type;
|
|
222
|
-
};
|
|
223
241
|
}
|
|
224
242
|
|
|
225
243
|
var Spine$2 = function (_super) {
|
|
@@ -396,7 +414,7 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
396
414
|
return Spine;
|
|
397
415
|
}(eva_js.Component);
|
|
398
416
|
|
|
399
|
-
var
|
|
417
|
+
var Spine$1$1 = Spine$2;
|
|
400
418
|
var texCache = {};
|
|
401
419
|
|
|
402
420
|
function cacheImage(data) {
|
|
@@ -544,21 +562,21 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
544
562
|
var obj = objs[i];
|
|
545
563
|
|
|
546
564
|
if (obj.id === id) {
|
|
547
|
-
var sp = obj.getComponent(
|
|
565
|
+
var sp = obj.getComponent(Spine$1$1);
|
|
548
566
|
|
|
549
567
|
if (sp) {
|
|
550
568
|
_this.remove({
|
|
551
569
|
type: eva_js.OBSERVER_TYPE.REMOVE,
|
|
552
570
|
gameObject: obj,
|
|
553
571
|
component: sp,
|
|
554
|
-
componentName:
|
|
572
|
+
componentName: Spine$1$1.componentName
|
|
555
573
|
});
|
|
556
574
|
|
|
557
575
|
toAdd.push({
|
|
558
576
|
type: eva_js.OBSERVER_TYPE.ADD,
|
|
559
577
|
gameObject: obj,
|
|
560
578
|
component: sp,
|
|
561
|
-
componentName:
|
|
579
|
+
componentName: Spine$1$1.componentName
|
|
562
580
|
});
|
|
563
581
|
}
|
|
564
582
|
|
|
@@ -761,7 +779,8 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
761
779
|
return SpineSystem;
|
|
762
780
|
}(pluginRenderer.Renderer);
|
|
763
781
|
|
|
764
|
-
var
|
|
782
|
+
var SpineSystem$1$1 = SpineSystem$2;
|
|
783
|
+
eva_js.resource.registerResourceType('SPINE');
|
|
765
784
|
var VERSION = '4.8.9';
|
|
766
785
|
var loader = pixi_js.loaders.shared;
|
|
767
786
|
var PIXI = {
|
|
@@ -9557,9 +9576,9 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
9557
9576
|
var cachedResource = loader.resources[name];
|
|
9558
9577
|
|
|
9559
9578
|
if (cachedResource) {
|
|
9560
|
-
|
|
9579
|
+
function done() {
|
|
9561
9580
|
callback(cachedResource.texture.baseTexture);
|
|
9562
|
-
}
|
|
9581
|
+
}
|
|
9563
9582
|
|
|
9564
9583
|
if (cachedResource.texture) {
|
|
9565
9584
|
done();
|
|
@@ -9610,7 +9629,7 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
9610
9629
|
var pixiSpine = pixi_spine;
|
|
9611
9630
|
|
|
9612
9631
|
var SpineSystem = function (_super) {
|
|
9613
|
-
__extends$
|
|
9632
|
+
__extends$2(SpineSystem, _super);
|
|
9614
9633
|
|
|
9615
9634
|
function SpineSystem() {
|
|
9616
9635
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -9623,19 +9642,19 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
9623
9642
|
};
|
|
9624
9643
|
|
|
9625
9644
|
return SpineSystem;
|
|
9626
|
-
}(
|
|
9645
|
+
}(SpineSystem$1$1);
|
|
9627
9646
|
|
|
9628
9647
|
var SpineSystem$1 = SpineSystem;
|
|
9629
9648
|
|
|
9630
9649
|
var Spine = function (_super) {
|
|
9631
|
-
__extends$
|
|
9650
|
+
__extends$2(Spine, _super);
|
|
9632
9651
|
|
|
9633
9652
|
function Spine() {
|
|
9634
9653
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9635
9654
|
}
|
|
9636
9655
|
|
|
9637
9656
|
return Spine;
|
|
9638
|
-
}(
|
|
9657
|
+
}(Spine$1$1);
|
|
9639
9658
|
|
|
9640
9659
|
var Spine$1 = Spine;
|
|
9641
9660
|
exports.Spine = Spine$1;
|
|
@@ -9644,6 +9663,6 @@ var _EVA_IIFE_spine = function (exports, pixi_js, eva_js, pluginRenderer) {
|
|
|
9644
9663
|
value: true
|
|
9645
9664
|
});
|
|
9646
9665
|
return exports;
|
|
9647
|
-
}({},
|
|
9666
|
+
}({}, EVA, EVA.plugin.renderer, PIXI);
|
|
9648
9667
|
|
|
9649
9668
|
window.EVA.plugin.renderer.spine = window.EVA.plugin.renderer.spine || _EVA_IIFE_spine;
|