@tscircuit/3d-viewer 0.0.511 → 0.0.512

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28338,9 +28338,9 @@ var AnyCadComponent = ({
28338
28338
  if (!cad_component.position) return void 0;
28339
28339
  let z18;
28340
28340
  if (layer === "top") {
28341
- z18 = pcbThickness / 2;
28341
+ z18 = cad_component.position.z;
28342
28342
  } else if (layer === "bottom") {
28343
- z18 = -(pcbThickness / 2);
28343
+ z18 = -(cad_component.position.z + pcbThickness);
28344
28344
  } else {
28345
28345
  z18 = cad_component.position.z;
28346
28346
  }
@@ -28464,7 +28464,7 @@ import * as THREE16 from "three";
28464
28464
  // package.json
28465
28465
  var package_default = {
28466
28466
  name: "@tscircuit/3d-viewer",
28467
- version: "0.0.510",
28467
+ version: "0.0.511",
28468
28468
  main: "./dist/index.js",
28469
28469
  module: "./dist/index.js",
28470
28470
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.511",
3
+ "version": "0.0.512",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",