@esotericsoftware/spine-canvas 4.2.40 → 4.2.42
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.
|
@@ -4386,11 +4386,11 @@ var spine = (() => {
|
|
|
4386
4386
|
set mixDuration(mixDuration) {
|
|
4387
4387
|
this._mixDuration = mixDuration;
|
|
4388
4388
|
}
|
|
4389
|
-
|
|
4389
|
+
setMixDurationWithDelay(mixDuration, delay) {
|
|
4390
4390
|
this._mixDuration = mixDuration;
|
|
4391
|
-
if (this.previous != null &&
|
|
4392
|
-
|
|
4393
|
-
this.delay =
|
|
4391
|
+
if (this.previous != null && delay <= 0)
|
|
4392
|
+
delay += this.previous.getTrackComplete() - mixDuration;
|
|
4393
|
+
this.delay = delay;
|
|
4394
4394
|
}
|
|
4395
4395
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|
|
4396
4396
|
* replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to
|
|
@@ -7832,7 +7832,7 @@ var spine = (() => {
|
|
|
7832
7832
|
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
|
7833
7833
|
* Runtimes Guide. */
|
|
7834
7834
|
updateWorldTransform(physics) {
|
|
7835
|
-
if (
|
|
7835
|
+
if (physics === void 0 || physics === null)
|
|
7836
7836
|
throw new Error("physics is undefined");
|
|
7837
7837
|
let bones = this.bones;
|
|
7838
7838
|
for (let i = 0, n = bones.length; i < n; i++) {
|