@esotericsoftware/spine-canvaskit 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/esm/spine-canvaskit.min.mjs +2 -0
- package/dist/esm/spine-canvaskit.mjs +12033 -0
- package/dist/esm/spine-canvaskit.mjs.map +7 -0
- package/dist/iife/spine-canvaskit.js +18 -0
- package/dist/iife/spine-canvaskit.js.map +2 -2
- package/dist/iife/spine-canvaskit.min.js +2 -2
- package/dist/index.d.ts +28 -0
- package/dist/index.js +29 -1
- package/package.json +2 -2
|
@@ -3528,6 +3528,11 @@ var spine = (() => {
|
|
|
3528
3528
|
if (!(slotAttachment instanceof VertexAttachment) || slotAttachment.timelineAttachment != attachment)
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
|
+
if (direction == 1 /* mixOut */) {
|
|
3532
|
+
if (blend == 0 /* setup */)
|
|
3533
|
+
slot.sequenceIndex = -1;
|
|
3534
|
+
return;
|
|
3535
|
+
}
|
|
3531
3536
|
let frames = this.frames;
|
|
3532
3537
|
if (time < frames[0]) {
|
|
3533
3538
|
if (blend == 0 /* setup */ || blend == 1 /* first */)
|
|
@@ -7868,6 +7873,19 @@ var spine = (() => {
|
|
|
7868
7873
|
updateCache[i].update(physics);
|
|
7869
7874
|
}
|
|
7870
7875
|
updateWorldTransformWith(physics, parent) {
|
|
7876
|
+
if (!parent)
|
|
7877
|
+
throw new Error("parent cannot be null.");
|
|
7878
|
+
let bones = this.bones;
|
|
7879
|
+
for (let i = 1, n = bones.length; i < n; i++) {
|
|
7880
|
+
let bone = bones[i];
|
|
7881
|
+
bone.ax = bone.x;
|
|
7882
|
+
bone.ay = bone.y;
|
|
7883
|
+
bone.arotation = bone.rotation;
|
|
7884
|
+
bone.ascaleX = bone.scaleX;
|
|
7885
|
+
bone.ascaleY = bone.scaleY;
|
|
7886
|
+
bone.ashearX = bone.shearX;
|
|
7887
|
+
bone.ashearY = bone.shearY;
|
|
7888
|
+
}
|
|
7871
7889
|
let rootBone = this.getRootBone();
|
|
7872
7890
|
if (!rootBone)
|
|
7873
7891
|
throw new Error("Root bone must not be null.");
|