@esotericsoftware/spine-canvaskit 4.2.66 → 4.2.68
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-canvaskit.min.mjs +2 -0
- package/dist/esm/spine-canvaskit.mjs +12036 -0
- package/dist/esm/spine-canvaskit.mjs.map +7 -0
- package/dist/iife/spine-canvaskit.js +24 -8
- package/dist/iife/spine-canvaskit.js.map +2 -2
- package/dist/iife/spine-canvaskit.min.js +2 -2
- package/package.json +2 -2
|
@@ -3669,15 +3669,18 @@ var spine = (() => {
|
|
|
3669
3669
|
let finished = this.updateMixingFrom(from, delta);
|
|
3670
3670
|
from.animationLast = from.nextAnimationLast;
|
|
3671
3671
|
from.trackLast = from.nextTrackLast;
|
|
3672
|
-
if (to.
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
if (from.
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3672
|
+
if (to.nextTrackLast != -1) {
|
|
3673
|
+
const discard = to.mixTime == 0 && from.mixTime == 0;
|
|
3674
|
+
if (to.mixTime >= to.mixDuration || discard) {
|
|
3675
|
+
if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
|
|
3676
|
+
to.mixingFrom = from.mixingFrom;
|
|
3677
|
+
if (from.mixingFrom != null)
|
|
3678
|
+
from.mixingFrom.mixingTo = to;
|
|
3679
|
+
to.interruptAlpha = from.interruptAlpha;
|
|
3680
|
+
this.queue.end(from);
|
|
3681
|
+
}
|
|
3682
|
+
return finished;
|
|
3679
3683
|
}
|
|
3680
|
-
return finished;
|
|
3681
3684
|
}
|
|
3682
3685
|
from.trackTime += delta * from.timeScale;
|
|
3683
3686
|
to.mixTime += delta;
|
|
@@ -7873,6 +7876,19 @@ var spine = (() => {
|
|
|
7873
7876
|
updateCache[i].update(physics);
|
|
7874
7877
|
}
|
|
7875
7878
|
updateWorldTransformWith(physics, parent) {
|
|
7879
|
+
if (!parent)
|
|
7880
|
+
throw new Error("parent cannot be null.");
|
|
7881
|
+
let bones = this.bones;
|
|
7882
|
+
for (let i = 1, n = bones.length; i < n; i++) {
|
|
7883
|
+
let bone = bones[i];
|
|
7884
|
+
bone.ax = bone.x;
|
|
7885
|
+
bone.ay = bone.y;
|
|
7886
|
+
bone.arotation = bone.rotation;
|
|
7887
|
+
bone.ascaleX = bone.scaleX;
|
|
7888
|
+
bone.ascaleY = bone.scaleY;
|
|
7889
|
+
bone.ashearX = bone.shearX;
|
|
7890
|
+
bone.ashearY = bone.shearY;
|
|
7891
|
+
}
|
|
7876
7892
|
let rootBone = this.getRootBone();
|
|
7877
7893
|
if (!rootBone)
|
|
7878
7894
|
throw new Error("Root bone must not be null.");
|