@esotericsoftware/spine-core 4.2.65 → 4.2.67
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/Animation.js +6 -1
- package/dist/Skeleton.js +14 -1
- package/dist/esm/spine-core.min.mjs +2 -0
- package/dist/esm/spine-core.mjs +11775 -0
- package/dist/esm/spine-core.mjs.map +7 -0
- package/dist/iife/spine-core.js +18 -0
- package/dist/iife/spine-core.js.map +2 -2
- package/dist/iife/spine-core.min.js +2 -2
- package/package.json +1 -1
package/dist/iife/spine-core.js
CHANGED
|
@@ -3524,6 +3524,11 @@ var spine = (() => {
|
|
|
3524
3524
|
if (!(slotAttachment instanceof VertexAttachment) || slotAttachment.timelineAttachment != attachment)
|
|
3525
3525
|
return;
|
|
3526
3526
|
}
|
|
3527
|
+
if (direction == 1 /* mixOut */) {
|
|
3528
|
+
if (blend == 0 /* setup */)
|
|
3529
|
+
slot.sequenceIndex = -1;
|
|
3530
|
+
return;
|
|
3531
|
+
}
|
|
3527
3532
|
let frames = this.frames;
|
|
3528
3533
|
if (time < frames[0]) {
|
|
3529
3534
|
if (blend == 0 /* setup */ || blend == 1 /* first */)
|
|
@@ -7864,6 +7869,19 @@ var spine = (() => {
|
|
|
7864
7869
|
updateCache[i].update(physics);
|
|
7865
7870
|
}
|
|
7866
7871
|
updateWorldTransformWith(physics, parent) {
|
|
7872
|
+
if (!parent)
|
|
7873
|
+
throw new Error("parent cannot be null.");
|
|
7874
|
+
let bones = this.bones;
|
|
7875
|
+
for (let i = 1, n = bones.length; i < n; i++) {
|
|
7876
|
+
let bone = bones[i];
|
|
7877
|
+
bone.ax = bone.x;
|
|
7878
|
+
bone.ay = bone.y;
|
|
7879
|
+
bone.arotation = bone.rotation;
|
|
7880
|
+
bone.ascaleX = bone.scaleX;
|
|
7881
|
+
bone.ascaleY = bone.scaleY;
|
|
7882
|
+
bone.ashearX = bone.shearX;
|
|
7883
|
+
bone.ashearY = bone.shearY;
|
|
7884
|
+
}
|
|
7867
7885
|
let rootBone = this.getRootBone();
|
|
7868
7886
|
if (!rootBone)
|
|
7869
7887
|
throw new Error("Root bone must not be null.");
|