@tscircuit/3d-viewer 0.0.288 → 0.0.290
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 +10 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17282,7 +17282,7 @@ import {
|
|
|
17282
17282
|
// package.json
|
|
17283
17283
|
var package_default = {
|
|
17284
17284
|
name: "@tscircuit/3d-viewer",
|
|
17285
|
-
version: "0.0.
|
|
17285
|
+
version: "0.0.289",
|
|
17286
17286
|
main: "./dist/index.js",
|
|
17287
17287
|
module: "./dist/index.js",
|
|
17288
17288
|
type: "module",
|
|
@@ -17314,7 +17314,7 @@ var package_default = {
|
|
|
17314
17314
|
"@react-three/drei": "^9.121.4",
|
|
17315
17315
|
"@react-three/fiber": "^8.17.14",
|
|
17316
17316
|
"@tscircuit/core": "^0.0.454",
|
|
17317
|
-
"@tscircuit/props": "^0.0.
|
|
17317
|
+
"@tscircuit/props": "^0.0.246",
|
|
17318
17318
|
"@tscircuit/soup-util": "^0.0.41",
|
|
17319
17319
|
"jscad-electronics": "^0.0.29",
|
|
17320
17320
|
"jscad-fiber": "^0.0.79",
|
|
@@ -19840,6 +19840,13 @@ var useManifoldBoardBuilder = (manifoldJSModule, circuitJson) => {
|
|
|
19840
19840
|
setIsLoading(false);
|
|
19841
19841
|
return;
|
|
19842
19842
|
}
|
|
19843
|
+
if ((boardData.width === 0 || !boardData.width) && (boardData.height === 0 || !boardData.height) && (!boardData.outline || boardData.outline.length < 3)) {
|
|
19844
|
+
setGeoms({ platedHoles: [], smtPads: [], vias: [] });
|
|
19845
|
+
setTextures({});
|
|
19846
|
+
setPcbThickness(boardData.thickness ?? 0);
|
|
19847
|
+
setIsLoading(false);
|
|
19848
|
+
return;
|
|
19849
|
+
}
|
|
19843
19850
|
setIsLoading(true);
|
|
19844
19851
|
setError(null);
|
|
19845
19852
|
const Manifold = manifoldJSModule.Manifold;
|
|
@@ -20182,7 +20189,7 @@ var CadViewerManifold = ({
|
|
|
20182
20189
|
}
|
|
20183
20190
|
);
|
|
20184
20191
|
}
|
|
20185
|
-
if (builderIsLoading
|
|
20192
|
+
if (builderIsLoading) {
|
|
20186
20193
|
return /* @__PURE__ */ jsx11("div", { style: { padding: "1em" }, children: "Processing board geometry..." });
|
|
20187
20194
|
}
|
|
20188
20195
|
return /* @__PURE__ */ jsxs8(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/3d-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.290",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@react-three/drei": "^9.121.4",
|
|
33
33
|
"@react-three/fiber": "^8.17.14",
|
|
34
34
|
"@tscircuit/core": "^0.0.454",
|
|
35
|
-
"@tscircuit/props": "^0.0.
|
|
35
|
+
"@tscircuit/props": "^0.0.246",
|
|
36
36
|
"@tscircuit/soup-util": "^0.0.41",
|
|
37
37
|
"jscad-electronics": "^0.0.29",
|
|
38
38
|
"jscad-fiber": "^0.0.79",
|