@tscircuit/3d-viewer 0.0.534 → 0.0.535
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 +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28674,9 +28674,13 @@ 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 =
|
|
28677
|
+
let z18;
|
|
28678
|
+
if (layer === "top") {
|
|
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;
|
|
28680
28684
|
}
|
|
28681
28685
|
return [cad_component.position.x, cad_component.position.y, z18];
|
|
28682
28686
|
}, [cad_component.position, layer, pcbThickness]);
|
|
@@ -28852,7 +28856,7 @@ import * as THREE16 from "three";
|
|
|
28852
28856
|
// package.json
|
|
28853
28857
|
var package_default = {
|
|
28854
28858
|
name: "@tscircuit/3d-viewer",
|
|
28855
|
-
version: "0.0.
|
|
28859
|
+
version: "0.0.534",
|
|
28856
28860
|
main: "./dist/index.js",
|
|
28857
28861
|
module: "./dist/index.js",
|
|
28858
28862
|
type: "module",
|