@nebula-spatial/viewer 0.5.5 → 0.5.7

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 (35) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +142 -7
  3. package/USD-VISUAL-MATERIAL-SUPPORT.md +14 -3
  4. package/basis/basis_transcoder.js +19 -0
  5. package/basis/basis_transcoder.wasm +0 -0
  6. package/dist/assets/ground-grid.d.ts +6 -0
  7. package/dist/assets/types.d.ts +49 -0
  8. package/dist/assets/usd-worker-B-HuMXLo.js +1505 -0
  9. package/dist/collision-debug-B2CISPB9.js +792 -0
  10. package/dist/index-BTAC6njT.js +10123 -0
  11. package/dist/index.d.ts +10 -2
  12. package/dist/index.js +17 -12
  13. package/dist/inspection/types.d.ts +79 -2
  14. package/dist/{mjcf-visual-zWaLqVqd.js → mjcf-visual-BVT3h87h.js} +7 -7
  15. package/dist/mujoco-runtime-CAyK0LHM.js +698 -0
  16. package/dist/resources-CHhCm2f7.js +27 -0
  17. package/dist/session-BQ8eCFRL.js +786 -0
  18. package/dist/{session-DVCZX72J.js → session-Dwoi1H46.js} +6 -5
  19. package/dist/simulation/mujoco-wasm-module.d.ts +11 -0
  20. package/dist/simulation/openusd-wasm-module.d.ts +10 -0
  21. package/dist/simulation/usd-query.d.ts +50 -0
  22. package/dist/simulation/usd-resource-policy.d.ts +28 -0
  23. package/dist/{stage-DGMYxyAS.js → stage-DUC-YNhD.js} +158 -170
  24. package/dist/{urdf-session-CF8xOenk.js → urdf-session-E0Nnr4Vs.js} +559 -546
  25. package/dist/usd-session-BUD3KtCr.js +6875 -0
  26. package/dist/version.d.ts +1 -1
  27. package/dist/{xacro-DidnrxXF.js → xacro-F7rdDouN.js} +1 -1
  28. package/openusd/openusd-runtime-manifest.json +15 -0
  29. package/openusd/openusd_probe.js +14 -14
  30. package/openusd/openusd_probe.wasm +0 -0
  31. package/package.json +5 -2
  32. package/dist/index-bTlVsOHA.js +0 -8165
  33. package/dist/mujoco-runtime-DTxVmIzc.js +0 -349
  34. package/dist/session-CZghJvw6.js +0 -883
  35. package/dist/usd-session-DkwOFmds.js +0 -4254
@@ -0,0 +1,27 @@
1
+ function u(t, d = []) {
2
+ var c;
3
+ const r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), a = new Set(d), i = /* @__PURE__ */ new Set();
4
+ t.traverse((e) => {
5
+ const o = e;
6
+ o.geometry && r.add(o.geometry);
7
+ for (const s of Array.isArray(o.material) ? o.material : [o.material])
8
+ if (s) {
9
+ n.add(s);
10
+ for (const f of Object.values(s))
11
+ m(f) && a.add(f);
12
+ }
13
+ });
14
+ for (const e of r) e.dispose();
15
+ for (const e of n) e.dispose();
16
+ for (const e of a) {
17
+ const o = (c = e.source) == null ? void 0 : c.data;
18
+ o && typeof o.close == "function" && i.add(o), e.dispose();
19
+ }
20
+ for (const e of i) e.close();
21
+ }
22
+ function m(t) {
23
+ return !!(t && typeof t == "object" && t.isTexture);
24
+ }
25
+ export {
26
+ u as disposeModelResources
27
+ };