minerender 2.1.0-alpha.130 → 2.1.0-alpha.131
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/browser/esm/util/model.mjs +7 -7
- package/dist/browser/esm/util/model.mjs.map +1 -1
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/bundle.js +7 -7
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.js +7 -7
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -38432,13 +38432,13 @@ ${key}` : key, async () => {
|
|
|
38432
38432
|
break;
|
|
38433
38433
|
}
|
|
38434
38434
|
if (rotation.rescale) {
|
|
38435
|
-
|
|
38436
|
-
|
|
38437
|
-
|
|
38438
|
-
|
|
38439
|
-
|
|
38440
|
-
|
|
38441
|
-
|
|
38435
|
+
const angle = toRadians(rotation.angle);
|
|
38436
|
+
const s4 = 1 / Math.max(Math.abs(Math.cos(angle)), Math.abs(Math.sin(angle)));
|
|
38437
|
+
geometry.scale(
|
|
38438
|
+
rotation.axis === "x" /* X */ ? 1 : s4,
|
|
38439
|
+
rotation.axis === "y" /* Y */ ? 1 : s4,
|
|
38440
|
+
rotation.axis === "z" /* Z */ ? 1 : s4
|
|
38441
|
+
);
|
|
38442
38442
|
}
|
|
38443
38443
|
geometry.translate(origin.x, origin.y, origin.z);
|
|
38444
38444
|
}
|