@tscircuit/3d-viewer 0.0.448 → 0.0.449
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28464,7 +28464,7 @@ import * as THREE15 from "three";
|
|
|
28464
28464
|
// package.json
|
|
28465
28465
|
var package_default = {
|
|
28466
28466
|
name: "@tscircuit/3d-viewer",
|
|
28467
|
-
version: "0.0.
|
|
28467
|
+
version: "0.0.448",
|
|
28468
28468
|
main: "./dist/index.js",
|
|
28469
28469
|
module: "./dist/index.js",
|
|
28470
28470
|
type: "module",
|
|
@@ -32175,11 +32175,12 @@ function addFauxBoardIfNeeded(circuitJson) {
|
|
|
32175
32175
|
if (element.type === "cad_component") {
|
|
32176
32176
|
const cadComponent = element;
|
|
32177
32177
|
if (cadComponent.position) {
|
|
32178
|
+
const positionZOffset = cadComponent.position.z ?? 0;
|
|
32178
32179
|
return {
|
|
32179
32180
|
...cadComponent,
|
|
32180
32181
|
position: {
|
|
32181
32182
|
...cadComponent.position,
|
|
32182
|
-
z: componentZ
|
|
32183
|
+
z: positionZOffset + componentZ
|
|
32183
32184
|
}
|
|
32184
32185
|
};
|
|
32185
32186
|
}
|