@esotericsoftware/spine-webgl 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.
package/dist/iife/spine-webgl.js
CHANGED
|
@@ -5656,12 +5656,13 @@ var spine = (() => {
|
|
|
5656
5656
|
break;
|
|
5657
5657
|
}
|
|
5658
5658
|
case 2 /* NoRotationOrReflection */: {
|
|
5659
|
+
let sx = 1 / this.skeleton.scaleX, sy = 1 / this.skeleton.scaleY;
|
|
5660
|
+
pa *= sx;
|
|
5661
|
+
pc *= sy;
|
|
5659
5662
|
let s = pa * pa + pc * pc;
|
|
5660
5663
|
let prx = 0;
|
|
5661
5664
|
if (s > 1e-4) {
|
|
5662
|
-
s = Math.abs(pa * pd - pb * pc) / s;
|
|
5663
|
-
pa /= this.skeleton.scaleX;
|
|
5664
|
-
pc /= this.skeleton.scaleY;
|
|
5665
|
+
s = Math.abs(pa * pd * sy - pb * sx * pc) / s;
|
|
5665
5666
|
pb = pc * s;
|
|
5666
5667
|
pd = pa * s;
|
|
5667
5668
|
prx = Math.atan2(pc, pa) * MathUtils.radDeg;
|
|
@@ -5765,10 +5766,8 @@ var spine = (() => {
|
|
|
5765
5766
|
switch (this.inherit) {
|
|
5766
5767
|
case 2 /* NoRotationOrReflection */: {
|
|
5767
5768
|
let s2 = Math.abs(pa * pd - pb * pc) / (pa * pa + pc * pc);
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
pb = -sc * s2 * this.skeleton.scaleX;
|
|
5771
|
-
pd = sa * s2 * this.skeleton.scaleY;
|
|
5769
|
+
pb = -pc * this.skeleton.scaleX * s2 / this.skeleton.scaleY;
|
|
5770
|
+
pd = pa * this.skeleton.scaleY * s2 / this.skeleton.scaleX;
|
|
5772
5771
|
pid = 1 / (pa * pd - pb * pc);
|
|
5773
5772
|
ia = pd * pid;
|
|
5774
5773
|
ib = pb * pid;
|