@tscircuit/3d-viewer 0.0.401 → 0.0.403
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 +7 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -26033,7 +26033,7 @@ import * as THREE11 from "three";
|
|
|
26033
26033
|
// package.json
|
|
26034
26034
|
var package_default = {
|
|
26035
26035
|
name: "@tscircuit/3d-viewer",
|
|
26036
|
-
version: "0.0.
|
|
26036
|
+
version: "0.0.402",
|
|
26037
26037
|
main: "./dist/index.js",
|
|
26038
26038
|
module: "./dist/index.js",
|
|
26039
26039
|
type: "module",
|
|
@@ -26079,7 +26079,7 @@ var package_default = {
|
|
|
26079
26079
|
"@jscad/modeling": "^2.12.5",
|
|
26080
26080
|
"@storybook/blocks": "9.0.0-alpha.17",
|
|
26081
26081
|
"@storybook/react-vite": "^9.1.5",
|
|
26082
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
26082
|
+
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
26083
26083
|
"@tscircuit/core": "^0.0.734",
|
|
26084
26084
|
"@tscircuit/props": "^0.0.337",
|
|
26085
26085
|
"@types/jsdom": "^21.1.7",
|
|
@@ -29713,10 +29713,15 @@ var CadViewerManifold = ({
|
|
|
29713
29713
|
const [manifoldJSModule, setManifoldJSModule] = useState14(null);
|
|
29714
29714
|
const [manifoldLoadingError, setManifoldLoadingError] = useState14(null);
|
|
29715
29715
|
useEffect21(() => {
|
|
29716
|
+
if (window.ManifoldModule && typeof window.ManifoldModule === "object" && window.ManifoldModule.setup) {
|
|
29717
|
+
setManifoldJSModule(window.ManifoldModule);
|
|
29718
|
+
return;
|
|
29719
|
+
}
|
|
29716
29720
|
const initManifold = async (ManifoldModule) => {
|
|
29717
29721
|
try {
|
|
29718
29722
|
const loadedModule = await ManifoldModule();
|
|
29719
29723
|
loadedModule.setup();
|
|
29724
|
+
window.ManifoldModule = loadedModule;
|
|
29720
29725
|
setManifoldJSModule(loadedModule);
|
|
29721
29726
|
} catch (error) {
|
|
29722
29727
|
console.error("Failed to initialize Manifold:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/3d-viewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.403",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@jscad/modeling": "^2.12.5",
|
|
47
47
|
"@storybook/blocks": "9.0.0-alpha.17",
|
|
48
48
|
"@storybook/react-vite": "^9.1.5",
|
|
49
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
49
|
+
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
50
50
|
"@tscircuit/core": "^0.0.734",
|
|
51
51
|
"@tscircuit/props": "^0.0.337",
|
|
52
52
|
"@types/jsdom": "^21.1.7",
|