@esotericsoftware/spine-webgl 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/iife/spine-webgl.js
CHANGED
|
@@ -4115,11 +4115,13 @@ var spine = (() => {
|
|
|
4115
4115
|
if (!last) {
|
|
4116
4116
|
this.setCurrent(trackIndex, entry, true);
|
|
4117
4117
|
this.queue.drain();
|
|
4118
|
+
if (delay < 0)
|
|
4119
|
+
delay = 0;
|
|
4118
4120
|
} else {
|
|
4119
4121
|
last.next = entry;
|
|
4120
4122
|
entry.previous = last;
|
|
4121
4123
|
if (delay <= 0)
|
|
4122
|
-
delay
|
|
4124
|
+
delay = Math.max(delay + last.getTrackComplete() - entry.mixDuration, 0);
|
|
4123
4125
|
}
|
|
4124
4126
|
entry.delay = delay;
|
|
4125
4127
|
return entry;
|
|
@@ -4158,7 +4160,7 @@ var spine = (() => {
|
|
|
4158
4160
|
addEmptyAnimation(trackIndex, mixDuration = 0, delay = 0) {
|
|
4159
4161
|
let entry = this.addAnimationWith(trackIndex, _AnimationState.emptyAnimation(), false, delay);
|
|
4160
4162
|
if (delay <= 0)
|
|
4161
|
-
entry.delay
|
|
4163
|
+
entry.delay = Math.max(entry.delay + entry.mixDuration - mixDuration, 0);
|
|
4162
4164
|
entry.mixDuration = mixDuration;
|
|
4163
4165
|
entry.trackEnd = mixDuration;
|
|
4164
4166
|
return entry;
|
|
@@ -4442,8 +4444,12 @@ var spine = (() => {
|
|
|
4442
4444
|
}
|
|
4443
4445
|
setMixDurationWithDelay(mixDuration, delay) {
|
|
4444
4446
|
this._mixDuration = mixDuration;
|
|
4445
|
-
if (
|
|
4446
|
-
|
|
4447
|
+
if (delay <= 0) {
|
|
4448
|
+
if (this.previous != null)
|
|
4449
|
+
delay = Math.max(delay + this.previous.getTrackComplete() - mixDuration, 0);
|
|
4450
|
+
else
|
|
4451
|
+
delay = 0;
|
|
4452
|
+
}
|
|
4447
4453
|
this.delay = delay;
|
|
4448
4454
|
}
|
|
4449
4455
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|