@esotericsoftware/spine-webgl 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.
package/dist/iife/spine-webgl.js
CHANGED
|
@@ -4426,11 +4426,11 @@ var spine = (() => {
|
|
|
4426
4426
|
set mixDuration(mixDuration) {
|
|
4427
4427
|
this._mixDuration = mixDuration;
|
|
4428
4428
|
}
|
|
4429
|
-
|
|
4429
|
+
setMixDurationWithDelay(mixDuration, delay) {
|
|
4430
4430
|
this._mixDuration = mixDuration;
|
|
4431
|
-
if (this.previous != null &&
|
|
4432
|
-
|
|
4433
|
-
this.delay =
|
|
4431
|
+
if (this.previous != null && delay <= 0)
|
|
4432
|
+
delay += this.previous.getTrackComplete() - mixDuration;
|
|
4433
|
+
this.delay = delay;
|
|
4434
4434
|
}
|
|
4435
4435
|
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|
|
4436
4436
|
* replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to
|
|
@@ -7872,7 +7872,7 @@ var spine = (() => {
|
|
|
7872
7872
|
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
|
7873
7873
|
* Runtimes Guide. */
|
|
7874
7874
|
updateWorldTransform(physics) {
|
|
7875
|
-
if (
|
|
7875
|
+
if (physics === void 0 || physics === null)
|
|
7876
7876
|
throw new Error("physics is undefined");
|
|
7877
7877
|
let bones = this.bones;
|
|
7878
7878
|
for (let i = 0, n = bones.length; i < n; i++) {
|