@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.
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
import { SpineSystem as SpineSystem$
|
|
1
|
+
import { SpineSystem as SpineSystem$1, Spine as Spine$2 } from '@eva/spine-base';
|
|
2
2
|
import { ExtensionType, checkExtension, Resolver, LoaderParserPriority, DOMAdapter, path, TextureSource, extensions, collectAllRenderables, Graphics, ViewContainer, Ticker, fastCopy, Texture as Texture$1, DEG_TO_RAD, Container, Cache, Assets, Text, Batcher, Color as Color$1, Geometry, Buffer, BufferUsage, Shader, compileHighShaderGlProgram, colorBitGl, generateTextureBatchBitGl, roundPixelsBitGl, compileHighShaderGpuProgram, colorBit, generateTextureBatchBit, roundPixelsBit, getBatchSamplersUniformGroup } 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 __());
|
|
31
|
-
}
|
|
32
|
-
|
|
33
4
|
var __defProp = Object.defineProperty;
|
|
34
5
|
var __defNormalProp = (obj, key, value) =>
|
|
35
6
|
key in obj
|
|
@@ -12423,7 +12394,7 @@ var vectorAux = new Vector2();
|
|
|
12423
12394
|
Skeleton.yDown = true;
|
|
12424
12395
|
var clipper = new SkeletonClipping();
|
|
12425
12396
|
var maskPool = new Pool(() => new Graphics());
|
|
12426
|
-
var Spine$
|
|
12397
|
+
var Spine$1 = class extends ViewContainer {
|
|
12427
12398
|
// Pixi properties
|
|
12428
12399
|
batched = true;
|
|
12429
12400
|
buildId = 0;
|
|
@@ -12967,7 +12938,7 @@ var Spine$2 = class extends ViewContainer {
|
|
|
12967
12938
|
static from({ skeleton, atlas, scale = 1, darkTint, autoUpdate = true }) {
|
|
12968
12939
|
const cacheKey = `${skeleton}-${atlas}-${scale}`;
|
|
12969
12940
|
if (Cache.has(cacheKey)) {
|
|
12970
|
-
return new Spine$
|
|
12941
|
+
return new Spine$1(Cache.get(cacheKey));
|
|
12971
12942
|
}
|
|
12972
12943
|
const skeletonAsset = Assets.get(skeleton);
|
|
12973
12944
|
const atlasAsset = Assets.get(atlas);
|
|
@@ -12977,7 +12948,7 @@ var Spine$2 = class extends ViewContainer {
|
|
|
12977
12948
|
parser.scale = scale;
|
|
12978
12949
|
const skeletonData = parser.readSkeletonData(skeletonAsset);
|
|
12979
12950
|
Cache.set(cacheKey, skeletonData);
|
|
12980
|
-
return new Spine$
|
|
12951
|
+
return new Spine$1({
|
|
12981
12952
|
skeletonData,
|
|
12982
12953
|
darkTint,
|
|
12983
12954
|
autoUpdate,
|
|
@@ -13482,7 +13453,7 @@ var pixiSpine = {
|
|
|
13482
13453
|
Slot,
|
|
13483
13454
|
SlotData,
|
|
13484
13455
|
SpacingMode,
|
|
13485
|
-
Spine: Spine$
|
|
13456
|
+
Spine: Spine$1,
|
|
13486
13457
|
SpineDebugRenderer,
|
|
13487
13458
|
SpinePipe,
|
|
13488
13459
|
SpineTexture,
|
|
@@ -13510,25 +13481,13 @@ var pixiSpine = {
|
|
|
13510
13481
|
WindowedMean,
|
|
13511
13482
|
};
|
|
13512
13483
|
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13484
|
+
class SpineSystem extends SpineSystem$1 {
|
|
13485
|
+
init() {
|
|
13486
|
+
super.init({ pixiSpine });
|
|
13517
13487
|
}
|
|
13518
|
-
|
|
13519
|
-
_super.prototype.init.call(this, { pixiSpine: pixiSpine });
|
|
13520
|
-
};
|
|
13521
|
-
return SpineSystem;
|
|
13522
|
-
}(SpineSystem$2));
|
|
13523
|
-
var SpineSystem$1 = SpineSystem;
|
|
13488
|
+
}
|
|
13524
13489
|
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
function Spine() {
|
|
13528
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13529
|
-
}
|
|
13530
|
-
return Spine;
|
|
13531
|
-
}(Spine$3));
|
|
13532
|
-
var Spine$1 = Spine;
|
|
13490
|
+
class Spine extends Spine$2 {
|
|
13491
|
+
}
|
|
13533
13492
|
|
|
13534
|
-
export { Spine
|
|
13493
|
+
export { Spine, SpineSystem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/plugin-renderer-spine",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "@eva/plugin-renderer-spine",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-spine.esm.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"homepage": "https://eva.js.org",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@eva/inspector-decorator": "^0.0.5",
|
|
22
|
-
"@eva/plugin-renderer": "2.0.0-beta.
|
|
23
|
-
"@eva/eva.js": "2.0.0-beta.
|
|
24
|
-
"@eva/spine-base": "2.0.0-beta.
|
|
22
|
+
"@eva/plugin-renderer": "2.0.0-beta.2",
|
|
23
|
+
"@eva/eva.js": "2.0.0-beta.2",
|
|
24
|
+
"@eva/spine-base": "2.0.0-beta.2",
|
|
25
25
|
"pixi.js": "^8.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|