@esotericsoftware/spine-canvaskit 4.2.58 → 4.2.59
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.
|
@@ -5617,12 +5617,13 @@ var spine = (() => {
|
|
|
5617
5617
|
break;
|
|
5618
5618
|
}
|
|
5619
5619
|
case 2 /* NoRotationOrReflection */: {
|
|
5620
|
+
let sx = 1 / this.skeleton.scaleX, sy = 1 / this.skeleton.scaleY;
|
|
5621
|
+
pa *= sx;
|
|
5622
|
+
pc *= sy;
|
|
5620
5623
|
let s = pa * pa + pc * pc;
|
|
5621
5624
|
let prx = 0;
|
|
5622
5625
|
if (s > 1e-4) {
|
|
5623
|
-
s = Math.abs(pa * pd - pb * pc) / s;
|
|
5624
|
-
pa /= this.skeleton.scaleX;
|
|
5625
|
-
pc /= this.skeleton.scaleY;
|
|
5626
|
+
s = Math.abs(pa * pd * sy - pb * sx * pc) / s;
|
|
5626
5627
|
pb = pc * s;
|
|
5627
5628
|
pd = pa * s;
|
|
5628
5629
|
prx = Math.atan2(pc, pa) * MathUtils.radDeg;
|
|
@@ -5726,10 +5727,8 @@ var spine = (() => {
|
|
|
5726
5727
|
switch (this.inherit) {
|
|
5727
5728
|
case 2 /* NoRotationOrReflection */: {
|
|
5728
5729
|
let s2 = Math.abs(pa * pd - pb * pc) / (pa * pa + pc * pc);
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
pb = -sc * s2 * this.skeleton.scaleX;
|
|
5732
|
-
pd = sa * s2 * this.skeleton.scaleY;
|
|
5730
|
+
pb = -pc * this.skeleton.scaleX * s2 / this.skeleton.scaleY;
|
|
5731
|
+
pd = pa * this.skeleton.scaleY * s2 / this.skeleton.scaleX;
|
|
5733
5732
|
pid = 1 / (pa * pd - pb * pc);
|
|
5734
5733
|
ia = pd * pid;
|
|
5735
5734
|
ib = pb * pid;
|