@esotericsoftware/spine-phaser-v3 4.2.79 → 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/esm/spine-phaser-v3.min.mjs +1 -1
- package/dist/esm/spine-phaser-v3.mjs +10 -4
- package/dist/esm/spine-phaser-v3.mjs.map +2 -2
- package/dist/iife/spine-phaser-v3.js +10 -4
- package/dist/iife/spine-phaser-v3.js.map +2 -2
- package/dist/iife/spine-phaser-v3.min.js +1 -1
- package/package.json +4 -4
|
@@ -4175,11 +4175,13 @@ var spine = (() => {
|
|
|
4175
4175
|
if (!last) {
|
|
4176
4176
|
this.setCurrent(trackIndex, entry, true);
|
|
4177
4177
|
this.queue.drain();
|
|
4178
|
+
if (delay < 0)
|
|
4179
|
+
delay = 0;
|
|
4178
4180
|
} else {
|
|
4179
4181
|
last.next = entry;
|
|
4180
4182
|
entry.previous = last;
|
|
4181
4183
|
if (delay <= 0)
|
|
4182
|
-
delay
|
|
4184
|
+
delay = Math.max(delay + last.getTrackComplete() - entry.mixDuration, 0);
|
|
4183
4185
|
}
|
|
4184
4186
|
entry.delay = delay;
|
|
4185
4187
|
return entry;
|
|
@@ -4218,7 +4220,7 @@ var spine = (() => {
|
|
|
4218
4220
|
addEmptyAnimation(trackIndex, mixDuration = 0, delay = 0) {
|
|
4219
4221
|
let entry = this.addAnimationWith(trackIndex, _AnimationState.emptyAnimation(), false, delay);
|
|
4220
4222
|
if (delay <= 0)
|
|
4221
|
-
entry.delay
|
|
4223
|
+
entry.delay = Math.max(entry.delay + entry.mixDuration - mixDuration, 0);
|
|
4222
4224
|
entry.mixDuration = mixDuration;
|
|
4223
4225
|
entry.trackEnd = mixDuration;
|
|
4224
4226
|
return entry;
|
|
@@ -4502,8 +4504,12 @@ var spine = (() => {
|
|
|
4502
4504
|
}
|
|
4503
4505
|
setMixDurationWithDelay(mixDuration, delay) {
|
|
4504
4506
|
this._mixDuration = mixDuration;
|
|
4505
|
-
if (
|
|
4506
|
-
|
|
4507
|
+
if (delay <= 0) {
|
|
4508
|
+
if (this.previous != null)
|
|
4509
|
+
delay = Math.max(delay + this.previous.getTrackComplete() - mixDuration, 0);
|
|
4510
|
+
else
|
|
4511
|
+
delay = 0;
|
|
4512
|
+
}
|
|
4507
4513
|
this.delay = delay;
|
|
4508
4514
|
}
|
|
4509
4515
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|