@esotericsoftware/spine-canvas 4.1.47 → 4.1.48
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.
|
@@ -6040,8 +6040,8 @@ var spine = (() => {
|
|
|
6040
6040
|
let rotationIK = -bone.ashearX - bone.arotation, tx = 0, ty = 0;
|
|
6041
6041
|
switch (bone.data.transformMode) {
|
|
6042
6042
|
case 1 /* OnlyTranslation */:
|
|
6043
|
-
tx = targetX - bone.worldX;
|
|
6044
|
-
ty = targetY - bone.worldY;
|
|
6043
|
+
tx = (targetX - bone.worldX) * MathUtils.signum(bone.skeleton.scaleX);
|
|
6044
|
+
ty = (targetY - bone.worldY) * MathUtils.signum(bone.skeleton.scaleY);
|
|
6045
6045
|
break;
|
|
6046
6046
|
case 2 /* NoRotationOrReflection */:
|
|
6047
6047
|
let s = Math.abs(pa * pd - pb * pc) / Math.max(1e-4, pa * pa + pc * pc);
|