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