@nebula-spatial/viewer 0.5.18 → 0.6.1
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/CHANGELOG.md +83 -35
- package/README.md +5 -0
- package/dist/asset-ir-BXa1EdOy.js +637 -0
- package/dist/assets/source-types.d.ts +10 -0
- package/dist/assets/types.d.ts +61 -6
- package/dist/assets/{usd-worker-B6-1I5dT.js → usd-worker-r6Nuoxlk.js} +671 -584
- package/dist/index-CHf9y9eX.js +17406 -0
- package/dist/index.d.ts +21 -2
- package/dist/index.js +29 -18
- package/dist/{mjcf-visual-CtY2Wk3w.js → mjcf-visual-DxMXiBnu.js} +12 -13
- package/dist/mujoco-runtime-BA88JuDR.js +791 -0
- package/dist/physics-guide-size-CplAlsve.js +12 -0
- package/dist/scene/instances.d.ts +36 -0
- package/dist/scene/joints.d.ts +129 -0
- package/dist/scene/session.d.ts +26 -0
- package/dist/scene/types.d.ts +292 -0
- package/dist/session-DLi-MvLB.js +240 -0
- package/dist/{session-DxTeRKCd.js → session-DqEr1CxY.js} +581 -567
- package/dist/session-ZNb3ZYLq.js +562 -0
- package/dist/simulation/physics-runtime-state.d.ts +73 -0
- package/dist/simulation/types.d.ts +151 -0
- package/dist/simulation/usd-dependency-probe.d.ts +42 -0
- package/dist/simulation/usd-inspection.d.ts +66 -0
- package/dist/spark-renderer-BGF_AaI9.js +25 -0
- package/dist/spark.module-kM8pwA1o.js +9278 -0
- package/dist/types.d.ts +75 -1
- package/dist/ui/camera-axis-gizmo.d.ts +5 -0
- package/dist/urdf-session-CKlR-fOQ.js +1230 -0
- package/dist/usd-session-DyNMsD-v.js +11199 -0
- package/dist/version.d.ts +1 -1
- package/dist/visual/classification.d.ts +20 -0
- package/dist/{xacro-x2TeKQ7T.js → xacro-BCLnc3tY.js} +1 -1
- package/openusd/openusd-runtime-manifest.json +6 -6
- package/openusd/openusd_probe.js +1 -1
- package/openusd/openusd_probe.wasm +0 -0
- package/package.json +2 -1
- package/runtime-assets.d.mts +9 -9
- package/runtime-assets.mjs +11 -11
- package/vite.d.mts +7 -7
- package/vite.mjs +115 -115
- package/dist/collision-debug-BSJoz5J7.js +0 -2947
- package/dist/index-E8DHSeyT.js +0 -11499
- package/dist/mujoco-runtime-fDWdXNEc.js +0 -739
- package/dist/resources-CHhCm2f7.js +0 -27
- package/dist/session-DB-osaBL.js +0 -801
- package/dist/stage-BnRjc-Rp.js +0 -592
- package/dist/urdf-session-Q_c3Rd1M.js +0 -1264
- package/dist/usd-session-tW3LxVFs.js +0 -10647
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|