@esotericsoftware/spine-pixi-v8 4.2.80 → 4.2.81
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.
- package/dist/Spine.js +2 -1
- package/dist/esm/spine-pixi-v8.min.mjs +2 -2
- package/dist/esm/spine-pixi-v8.mjs +11 -4
- package/dist/esm/spine-pixi-v8.mjs.map +2 -2
- package/dist/iife/spine-pixi-v8.js +11 -4
- package/dist/iife/spine-pixi-v8.js.map +2 -2
- package/dist/iife/spine-pixi-v8.min.js +2 -2
- package/package.json +2 -2
|
@@ -3960,11 +3960,13 @@ var _AnimationState = class {
|
|
|
3960
3960
|
if (!last) {
|
|
3961
3961
|
this.setCurrent(trackIndex, entry, true);
|
|
3962
3962
|
this.queue.drain();
|
|
3963
|
+
if (delay < 0)
|
|
3964
|
+
delay = 0;
|
|
3963
3965
|
} else {
|
|
3964
3966
|
last.next = entry;
|
|
3965
3967
|
entry.previous = last;
|
|
3966
3968
|
if (delay <= 0)
|
|
3967
|
-
delay
|
|
3969
|
+
delay = Math.max(delay + last.getTrackComplete() - entry.mixDuration, 0);
|
|
3968
3970
|
}
|
|
3969
3971
|
entry.delay = delay;
|
|
3970
3972
|
return entry;
|
|
@@ -4003,7 +4005,7 @@ var _AnimationState = class {
|
|
|
4003
4005
|
addEmptyAnimation(trackIndex, mixDuration = 0, delay = 0) {
|
|
4004
4006
|
let entry = this.addAnimationWith(trackIndex, _AnimationState.emptyAnimation(), false, delay);
|
|
4005
4007
|
if (delay <= 0)
|
|
4006
|
-
entry.delay
|
|
4008
|
+
entry.delay = Math.max(entry.delay + entry.mixDuration - mixDuration, 0);
|
|
4007
4009
|
entry.mixDuration = mixDuration;
|
|
4008
4010
|
entry.trackEnd = mixDuration;
|
|
4009
4011
|
return entry;
|
|
@@ -4287,8 +4289,12 @@ var TrackEntry = class {
|
|
|
4287
4289
|
}
|
|
4288
4290
|
setMixDurationWithDelay(mixDuration, delay) {
|
|
4289
4291
|
this._mixDuration = mixDuration;
|
|
4290
|
-
if (
|
|
4291
|
-
|
|
4292
|
+
if (delay <= 0) {
|
|
4293
|
+
if (this.previous != null)
|
|
4294
|
+
delay = Math.max(delay + this.previous.getTrackComplete() - mixDuration, 0);
|
|
4295
|
+
else
|
|
4296
|
+
delay = 0;
|
|
4297
|
+
}
|
|
4292
4298
|
this.delay = delay;
|
|
4293
4299
|
}
|
|
4294
4300
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|
|
@@ -12554,6 +12560,7 @@ var Spine = class extends ViewContainer {
|
|
|
12554
12560
|
};
|
|
12555
12561
|
}
|
|
12556
12562
|
super({});
|
|
12563
|
+
this.allowChildren = true;
|
|
12557
12564
|
const skeletonData = options instanceof SkeletonData ? options : options.skeletonData;
|
|
12558
12565
|
this.skeleton = new Skeleton(skeletonData);
|
|
12559
12566
|
this.state = new AnimationState(new AnimationStateData(skeletonData));
|