@tscircuit/3d-viewer 0.0.354 → 0.0.355

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25583,7 +25583,7 @@ import * as THREE10 from "three";
25583
25583
  // package.json
25584
25584
  var package_default = {
25585
25585
  name: "@tscircuit/3d-viewer",
25586
- version: "0.0.353",
25586
+ version: "0.0.354",
25587
25587
  main: "./dist/index.js",
25588
25588
  module: "./dist/index.js",
25589
25589
  type: "module",
@@ -28903,13 +28903,17 @@ var CadViewerManifold = ({
28903
28903
  );
28904
28904
  }
28905
28905
  };
28906
- if (window.ManifoldModule) {
28906
+ const existingManifold = window.ManifoldModule ?? window.MANIFOLD ?? window.MANIFOLD_MODULE;
28907
+ if (existingManifold) {
28908
+ window.ManifoldModule = existingManifold;
28907
28909
  initManifold(window.ManifoldModule);
28908
28910
  return;
28909
28911
  }
28910
28912
  const eventName = "manifoldLoaded";
28911
28913
  const handleLoad = () => {
28912
- if (window.ManifoldModule) {
28914
+ const loadedManifold = window.ManifoldModule ?? window.MANIFOLD ?? window.MANIFOLD_MODULE;
28915
+ if (loadedManifold) {
28916
+ window.ManifoldModule = loadedManifold;
28913
28917
  initManifold(window.ManifoldModule);
28914
28918
  } else {
28915
28919
  const errText = "ManifoldModule not found on window after script load.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.354",
3
+ "version": "0.0.355",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",