@eva/plugin-renderer-spine 2.0.0-beta.5 → 2.0.0-beta.7

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,6 +1,8 @@
1
+ import PixiSpine from 'pixi-spine';
1
2
  import { Spine as Spine_2 } from '@eva/spine-base';
2
3
  import { SpineParams } from '@eva/spine-base';
3
4
  import { SpineSystem as SpineSystem_2 } from '@eva/spine-base';
5
+ export { PixiSpine }
4
6
 
5
7
  export declare class Spine extends Spine_2 {
6
8
  }
@@ -1,5 +1,5 @@
1
- import { SpineSystem as SpineSystem$1, Spine as Spine$2 } from '@eva/spine-base';
2
1
  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';
2
+ import { SpineSystem as SpineSystem$1, Spine as Spine$2 } from '@eva/spine-base';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) =>
@@ -3691,14 +3691,17 @@ var _AnimationState = class {
3691
3691
  let finished = this.updateMixingFrom(from, delta);
3692
3692
  from.animationLast = from.nextAnimationLast;
3693
3693
  from.trackLast = from.nextTrackLast;
3694
- if (to.mixTime > 0 && to.mixTime >= to.mixDuration) {
3695
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
3696
- to.mixingFrom = from.mixingFrom;
3697
- if (from.mixingFrom) from.mixingFrom.mixingTo = to;
3698
- to.interruptAlpha = from.interruptAlpha;
3699
- this.queue.end(from);
3694
+ if (to.nextTrackLast != -1) {
3695
+ const discard = to.mixTime == 0 && from.mixTime == 0;
3696
+ if (to.mixTime >= to.mixDuration || discard) {
3697
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3698
+ to.mixingFrom = from.mixingFrom;
3699
+ if (from.mixingFrom != null) from.mixingFrom.mixingTo = to;
3700
+ to.interruptAlpha = from.interruptAlpha;
3701
+ this.queue.end(from);
3702
+ }
3703
+ return finished;
3700
3704
  }
3701
- return finished;
3702
3705
  }
3703
3706
  from.trackTime += delta * from.timeScale;
3704
3707
  to.mixTime += delta;
@@ -13443,6 +13446,7 @@ var pixiSpine = {
13443
13446
  ShearXTimeline,
13444
13447
  ShearYTimeline,
13445
13448
  Skeleton,
13449
+ SpineTexture,
13446
13450
  SkeletonBinary,
13447
13451
  SkeletonBounds,
13448
13452
  SkeletonClipping,
@@ -13490,4 +13494,4 @@ class SpineSystem extends SpineSystem$1 {
13490
13494
  class Spine extends Spine$2 {
13491
13495
  }
13492
13496
 
13493
- export { Spine, SpineSystem };
13497
+ export { pixiSpine as PixiSpine, 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.5",
3
+ "version": "2.0.0-beta.7",
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.5",
23
- "@eva/eva.js": "2.0.0-beta.5",
24
- "@eva/spine-base": "2.0.0-beta.5",
25
- "pixi.js": "^8.6.3"
22
+ "@eva/plugin-renderer": "2.0.0-beta.7",
23
+ "@eva/eva.js": "2.0.0-beta.7",
24
+ "@eva/spine-base": "2.0.0-beta.7",
25
+ "pixi.js": "^8.6.5"
26
26
  }
27
27
  }