@eva/plugin-renderer-spine 2.0.0-beta.1 → 2.0.0-beta.2
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.
|
@@ -5,35 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var spineBase = require('@eva/spine-base');
|
|
6
6
|
var pixi_js = require('pixi.js');
|
|
7
7
|
|
|
8
|
-
/*! *****************************************************************************
|
|
9
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
11
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
12
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
|
|
14
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
16
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
17
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
18
|
-
|
|
19
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
20
|
-
and limitations under the License.
|
|
21
|
-
***************************************************************************** */
|
|
22
|
-
/* global Reflect, Promise */
|
|
23
|
-
|
|
24
|
-
var extendStatics = function(d, b) {
|
|
25
|
-
extendStatics = Object.setPrototypeOf ||
|
|
26
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
function __extends(d, b) {
|
|
32
|
-
extendStatics(d, b);
|
|
33
|
-
function __() { this.constructor = d; }
|
|
34
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
-
}
|
|
36
|
-
|
|
37
8
|
var __defProp = Object.defineProperty;
|
|
38
9
|
var __defNormalProp = (obj, key, value) =>
|
|
39
10
|
key in obj
|
|
@@ -12427,7 +12398,7 @@ var vectorAux = new Vector2();
|
|
|
12427
12398
|
Skeleton.yDown = true;
|
|
12428
12399
|
var clipper = new SkeletonClipping();
|
|
12429
12400
|
var maskPool = new Pool(() => new pixi_js.Graphics());
|
|
12430
|
-
var Spine$
|
|
12401
|
+
var Spine$1 = class extends pixi_js.ViewContainer {
|
|
12431
12402
|
// Pixi properties
|
|
12432
12403
|
batched = true;
|
|
12433
12404
|
buildId = 0;
|
|
@@ -12971,7 +12942,7 @@ var Spine$2 = class extends pixi_js.ViewContainer {
|
|
|
12971
12942
|
static from({ skeleton, atlas, scale = 1, darkTint, autoUpdate = true }) {
|
|
12972
12943
|
const cacheKey = `${skeleton}-${atlas}-${scale}`;
|
|
12973
12944
|
if (pixi_js.Cache.has(cacheKey)) {
|
|
12974
|
-
return new Spine$
|
|
12945
|
+
return new Spine$1(pixi_js.Cache.get(cacheKey));
|
|
12975
12946
|
}
|
|
12976
12947
|
const skeletonAsset = pixi_js.Assets.get(skeleton);
|
|
12977
12948
|
const atlasAsset = pixi_js.Assets.get(atlas);
|
|
@@ -12981,7 +12952,7 @@ var Spine$2 = class extends pixi_js.ViewContainer {
|
|
|
12981
12952
|
parser.scale = scale;
|
|
12982
12953
|
const skeletonData = parser.readSkeletonData(skeletonAsset);
|
|
12983
12954
|
pixi_js.Cache.set(cacheKey, skeletonData);
|
|
12984
|
-
return new Spine$
|
|
12955
|
+
return new Spine$1({
|
|
12985
12956
|
skeletonData,
|
|
12986
12957
|
darkTint,
|
|
12987
12958
|
autoUpdate,
|
|
@@ -13486,7 +13457,7 @@ var pixiSpine = {
|
|
|
13486
13457
|
Slot,
|
|
13487
13458
|
SlotData,
|
|
13488
13459
|
SpacingMode,
|
|
13489
|
-
Spine: Spine$
|
|
13460
|
+
Spine: Spine$1,
|
|
13490
13461
|
SpineDebugRenderer,
|
|
13491
13462
|
SpinePipe,
|
|
13492
13463
|
SpineTexture,
|
|
@@ -13514,26 +13485,14 @@ var pixiSpine = {
|
|
|
13514
13485
|
WindowedMean,
|
|
13515
13486
|
};
|
|
13516
13487
|
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13488
|
+
class SpineSystem extends spineBase.SpineSystem {
|
|
13489
|
+
init() {
|
|
13490
|
+
super.init({ pixiSpine });
|
|
13521
13491
|
}
|
|
13522
|
-
|
|
13523
|
-
_super.prototype.init.call(this, { pixiSpine: pixiSpine });
|
|
13524
|
-
};
|
|
13525
|
-
return SpineSystem;
|
|
13526
|
-
}(spineBase.SpineSystem));
|
|
13527
|
-
var SpineSystem$1 = SpineSystem;
|
|
13492
|
+
}
|
|
13528
13493
|
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
function Spine() {
|
|
13532
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13533
|
-
}
|
|
13534
|
-
return Spine;
|
|
13535
|
-
}(spineBase.Spine));
|
|
13536
|
-
var Spine$1 = Spine;
|
|
13494
|
+
class Spine extends spineBase.Spine {
|
|
13495
|
+
}
|
|
13537
13496
|
|
|
13538
|
-
exports.Spine = Spine
|
|
13539
|
-
exports.SpineSystem = SpineSystem
|
|
13497
|
+
exports.Spine = Spine;
|
|
13498
|
+
exports.SpineSystem = SpineSystem;
|