@jscad/x3d-deserializer 2.1.0 → 2.1.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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.1.3](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/x3d-deserializer@2.1.2...@jscad/x3d-deserializer@2.1.3) (2022-03-06)
7
+
8
+ **Note:** Version bump only for package @jscad/x3d-deserializer
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.1.2](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/x3d-deserializer@2.1.1...@jscad/x3d-deserializer@2.1.2) (2022-02-19)
15
+
16
+
17
+ ### Performance Improvements
18
+
19
+ * **modeling:** Use hypot instead of sqrt when possible ([#996](https://github.com/jscad/OpenJSCAD.org/issues/996)) ([113c636](https://github.com/jscad/OpenJSCAD.org/commit/113c636b1ac33e351c97789eb6ce0a546365141e))
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.1.1](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/x3d-deserializer@2.1.0...@jscad/x3d-deserializer@2.1.1) (2021-12-26)
26
+
27
+ **Note:** Version bump only for package @jscad/x3d-deserializer
28
+
29
+
30
+
31
+
32
+
6
33
  # 2.1.0 (2021-10-17)
7
34
 
8
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/x3d-deserializer",
3
- "version": "2.1.0",
3
+ "version": "2.1.3",
4
4
  "description": "X3D Deserializer for JSCAD",
5
5
  "repository": "https://github.com/jscad/OpenJSCAD.org/",
6
6
  "main": "src/index.js",
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@jscad/array-utils": "2.1.0",
29
+ "@jscad/array-utils": "2.1.2",
30
30
  "@jscad/modeling": "2.4.0",
31
31
  "saxes": "5.0.1"
32
32
  },
@@ -34,5 +34,5 @@
34
34
  "ava": "3.15.0",
35
35
  "nyc": "15.1.0"
36
36
  },
37
- "gitHead": "3d1d02f2863c65fd95406c7098c09297b3be1c10"
37
+ "gitHead": "92fb9c75eb070fca5f5ee8c2bab6614b1f54514e"
38
38
  }
@@ -1,7 +1,7 @@
1
1
  const Vector3 = require('./Vector3')
2
2
  const Rotation4 = require('./Rotation4')
3
3
 
4
- function Matrix4() {
4
+ function Matrix4 () {
5
5
  if (arguments.length) {
6
6
  this[0] = arguments[0]
7
7
  this[1] = arguments[1]
@@ -64,7 +64,7 @@ Rotation4.prototype = {
64
64
  this.z_ = z
65
65
  this.angle_ = angle
66
66
 
67
- let scale = Math.sqrt(x * x + y * y + z * z)
67
+ let scale = Math.hypot(x, y, z)
68
68
 
69
69
  if (scale === 0) {
70
70
  this.value.set(0, 0, 0, 1)