circuit-json-to-gltf 0.0.141 → 0.0.143

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 (2) hide show
  1. package/dist/index.js +12 -12
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -14861,18 +14861,18 @@ function transformMesh(mesh, translation, rotation, scale) {
14861
14861
  const rz = x * sinY + z * cosY;
14862
14862
  x = rx;
14863
14863
  z = rz;
14864
- const cosX = Math.cos(rotation.x);
14865
- const sinX = Math.sin(rotation.x);
14866
- const ry = y * cosX + z * sinX;
14867
- const rz2 = -y * sinX + z * cosX;
14868
- y = ry;
14869
- z = rz2;
14870
14864
  const cosZ = Math.cos(rotation.z);
14871
14865
  const sinZ = Math.sin(rotation.z);
14872
14866
  const rx2 = x * cosZ + y * sinZ;
14873
14867
  const ry2 = -x * sinZ + y * cosZ;
14874
14868
  x = rx2;
14875
14869
  y = ry2;
14870
+ const cosX = Math.cos(rotation.x);
14871
+ const sinX = Math.sin(rotation.x);
14872
+ const ry = y * cosX + z * sinX;
14873
+ const rz2 = -y * sinX + z * cosX;
14874
+ y = ry;
14875
+ z = rz2;
14876
14876
  }
14877
14877
  result.positions[i] = x + translation.x;
14878
14878
  result.positions[i + 1] = y + translation.y;
@@ -14889,18 +14889,18 @@ function transformMesh(mesh, translation, rotation, scale) {
14889
14889
  const rnz = nx * sinY + nz * cosY;
14890
14890
  nx = rnx;
14891
14891
  nz = rnz;
14892
- const cosX = Math.cos(rotation.x);
14893
- const sinX = Math.sin(rotation.x);
14894
- const rny = ny * cosX + nz * sinX;
14895
- const rnz2 = -ny * sinX + nz * cosX;
14896
- ny = rny;
14897
- nz = rnz2;
14898
14892
  const cosZ = Math.cos(rotation.z);
14899
14893
  const sinZ = Math.sin(rotation.z);
14900
14894
  const rnx2 = nx * cosZ + ny * sinZ;
14901
14895
  const rny2 = -nx * sinZ + ny * cosZ;
14902
14896
  nx = rnx2;
14903
14897
  ny = rny2;
14898
+ const cosX = Math.cos(rotation.x);
14899
+ const sinX = Math.sin(rotation.x);
14900
+ const rny = ny * cosX + nz * sinX;
14901
+ const rnz2 = -ny * sinX + nz * cosX;
14902
+ ny = rny;
14903
+ nz = rnz2;
14904
14904
  result.normals[i] = nx;
14905
14905
  result.normals[i + 1] = ny;
14906
14906
  result.normals[i + 2] = nz;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "circuit-json-to-gltf",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.141",
5
+ "version": "0.0.143",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/tscircuit/circuit-json-to-gltf.git"
@@ -24,7 +24,7 @@
24
24
  "@tscircuit/alphabet": "^0.0.25",
25
25
  "earcut": "^3.0.2",
26
26
  "gl-matrix": "^3.4.4",
27
- "jscad-electronics": "^0.0.178",
27
+ "jscad-electronics": "^0.0.182",
28
28
  "jscad-planner": "^0.0.14",
29
29
  "jscad-to-gltf": "^0.0.5",
30
30
  "occt-import-js": "^0.0.23"