@tscircuit/3d-viewer 0.0.532 → 0.0.533
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/index.js +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28674,13 +28674,9 @@ var AnyCadComponent = ({
|
|
|
28674
28674
|
}, [cad_component.rotation, layer]);
|
|
28675
28675
|
const adjustedPosition = useMemo8(() => {
|
|
28676
28676
|
if (!cad_component.position) return void 0;
|
|
28677
|
-
let z18;
|
|
28678
|
-
if (layer === "
|
|
28679
|
-
z18 = cad_component.position.z;
|
|
28680
|
-
} else if (layer === "bottom") {
|
|
28681
|
-
z18 = -(cad_component.position.z + pcbThickness);
|
|
28682
|
-
} else {
|
|
28683
|
-
z18 = cad_component.position.z;
|
|
28677
|
+
let z18 = cad_component.position.z + pcbThickness / 2;
|
|
28678
|
+
if (layer === "bottom") {
|
|
28679
|
+
z18 = -cad_component.position.z - pcbThickness / 2;
|
|
28684
28680
|
}
|
|
28685
28681
|
return [cad_component.position.x, cad_component.position.y, z18];
|
|
28686
28682
|
}, [cad_component.position, layer, pcbThickness]);
|
|
@@ -28856,7 +28852,7 @@ import * as THREE16 from "three";
|
|
|
28856
28852
|
// package.json
|
|
28857
28853
|
var package_default = {
|
|
28858
28854
|
name: "@tscircuit/3d-viewer",
|
|
28859
|
-
version: "0.0.
|
|
28855
|
+
version: "0.0.532",
|
|
28860
28856
|
main: "./dist/index.js",
|
|
28861
28857
|
module: "./dist/index.js",
|
|
28862
28858
|
type: "module",
|