@jscad/modeling 2.9.4 → 2.9.5

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/jscad-modeling.min.js +125 -128
  3. package/package.json +2 -2
  4. package/src/colors/colorize.d.ts +6 -5
  5. package/src/geometries/geom2/type.d.ts +3 -2
  6. package/src/geometries/geom3/type.d.ts +3 -2
  7. package/src/geometries/path2/type.d.ts +3 -2
  8. package/src/geometries/poly3/measureBoundingSphere.d.ts +2 -2
  9. package/src/geometries/poly3/measureBoundingSphere.js +46 -8
  10. package/src/geometries/poly3/measureBoundingSphere.test.js +16 -26
  11. package/src/geometries/poly3/type.d.ts +3 -2
  12. package/src/geometries/types.d.ts +4 -2
  13. package/src/maths/mat4/fromRotation.js +9 -7
  14. package/src/maths/mat4/fromTaitBryanRotation.js +8 -6
  15. package/src/maths/mat4/fromXRotation.js +4 -2
  16. package/src/maths/mat4/fromYRotation.js +4 -2
  17. package/src/maths/mat4/fromZRotation.js +4 -2
  18. package/src/maths/mat4/rotate.js +9 -5
  19. package/src/maths/mat4/rotateX.js +4 -2
  20. package/src/maths/mat4/rotateY.js +4 -2
  21. package/src/maths/mat4/rotateZ.js +4 -2
  22. package/src/maths/mat4/translate.test.js +2 -3
  23. package/src/maths/utils/index.d.ts +1 -0
  24. package/src/maths/utils/index.js +2 -0
  25. package/src/{utils → maths/utils}/trigonometry.d.ts +0 -0
  26. package/src/{utils → maths/utils}/trigonometry.js +1 -1
  27. package/src/{utils → maths/utils}/trigonometry.test.js +0 -0
  28. package/src/maths/vec2/distance.js +1 -1
  29. package/src/maths/vec2/fromAngleRadians.js +4 -2
  30. package/src/maths/vec2/length.js +1 -1
  31. package/src/maths/vec2/length.test.js +0 -10
  32. package/src/maths/vec3/angle.js +2 -2
  33. package/src/maths/vec3/angle.test.js +0 -12
  34. package/src/maths/vec3/distance.js +1 -1
  35. package/src/maths/vec3/length.js +1 -1
  36. package/src/maths/vec3/length.test.js +0 -10
  37. package/src/operations/booleans/trees/PolygonTreeNode.js +2 -2
  38. package/src/operations/extrusions/extrudeRotate.test.js +42 -42
  39. package/src/operations/extrusions/project.test.js +2 -2
  40. package/src/operations/extrusions/slice/repair.js +1 -1
  41. package/src/primitives/circle.test.js +7 -0
  42. package/src/primitives/cylinderElliptic.js +4 -2
  43. package/src/primitives/cylinderElliptic.test.js +7 -1
  44. package/src/primitives/ellipse.js +1 -1
  45. package/src/primitives/ellipse.test.js +7 -0
  46. package/src/primitives/ellipsoid.js +1 -1
  47. package/src/primitives/geodesicSphere.js +3 -2
  48. package/src/primitives/roundedCuboid.js +4 -2
  49. package/src/primitives/roundedCylinder.js +1 -1
  50. package/src/primitives/torus.test.js +7 -3
  51. package/src/utils/index.d.ts +0 -1
  52. package/src/utils/index.js +1 -3
  53. package/src/maths/mat4/constants.d.ts +0 -1
  54. package/src/maths/mat4/constants.js +0 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.9.5](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/modeling@2.9.4...@jscad/modeling@2.9.5) (2022-06-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **modeling:** use special trig functions for rotations in maths and primitives ([#1090](https://github.com/jscad/OpenJSCAD.org/issues/1090)) ([42c2664](https://github.com/jscad/OpenJSCAD.org/commit/42c2664c088dd3cf1d53dcb26aa79524ac2958db))
12
+
13
+
14
+ ### Performance Improvements
15
+
16
+ * **modeling:** optimize poly3.measureBoundingSphere and cache results for performance ([6ad02d5](https://github.com/jscad/OpenJSCAD.org/commit/6ad02d5514ac130b8867d51a090f5745115a278d))
17
+ * **modeling:** replace Math.hypot with faster Math.sqrt()([#1099](https://github.com/jscad/OpenJSCAD.org/issues/1099)) ([1f71c5b](https://github.com/jscad/OpenJSCAD.org/commit/1f71c5b88d4132333458242d3461a91c5e637f88))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [2.9.4](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/modeling@2.9.3...@jscad/modeling@2.9.4) (2022-05-15)
7
24
 
8
25