@nebula-spatial/viewer 0.5.7 → 0.5.8
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 +21 -0
- package/dist/assets/{usd-worker-B-HuMXLo.js → usd-worker-Cd5zDKyA.js} +192 -189
- package/dist/collision-debug-B9HJ34H8.js +2896 -0
- package/dist/{index-BTAC6njT.js → index-CIMsZtyY.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/{mjcf-visual-BVT3h87h.js → mjcf-visual-DCfPUwyh.js} +1 -1
- package/dist/{mujoco-runtime-CAyK0LHM.js → mujoco-runtime-B9AZiFiG.js} +1 -1
- package/dist/session-C-yjpG8R.js +2519 -0
- package/dist/{session-BQ8eCFRL.js → session-uIv9-Ok1.js} +8 -8
- package/dist/{stage-DUC-YNhD.js → stage-C2FchK6h.js} +2 -2
- package/dist/urdf-session-CjGG32Zy.js +1264 -0
- package/dist/{usd-session-BUD3KtCr.js → usd-session-Cb1e-Bx8.js} +1745 -1649
- package/dist/version.d.ts +1 -1
- package/dist/{xacro-F7rdDouN.js → xacro-C2EgfvS8.js} +1 -1
- package/package.json +1 -1
- package/dist/collision-debug-B2CISPB9.js +0 -792
- package/dist/session-Dwoi1H46.js +0 -965
- package/dist/urdf-session-E0Nnr4Vs.js +0 -3266
|
@@ -9,7 +9,7 @@ import { HDRLoader as vr } from "three/addons/loaders/HDRLoader.js";
|
|
|
9
9
|
import { createCadDocumentSession as gr, getCadDocumentRenderResource as br, formatCadInsertId as Et } from "@nebula-spatial/cad-loader";
|
|
10
10
|
import { CSS2DObject as yr, CSS2DRenderer as xr } from "three/addons/renderers/CSS2DRenderer.js";
|
|
11
11
|
import wr from "@mujoco/mujoco/mujoco.wasm?url";
|
|
12
|
-
const Cr = "0.5.
|
|
12
|
+
const Cr = "0.5.8", Er = "@nebula-spatial/viewer", St = "__NEBULA_SPATIAL_VIEWER_BANNER_PRINTED__";
|
|
13
13
|
function kt() {
|
|
14
14
|
const r = `%c ${Er} %c v${Cr} `;
|
|
15
15
|
console.log(r, "background:#111827;color:#ffffff;padding:4px 10px;border-radius:4px 0 0 4px;font-weight:700;", "background:#10B981;color:#ffffff;padding:4px 10px;border-radius:0 4px 4px 0;font-weight:700;");
|
|
@@ -6185,7 +6185,7 @@ class Qs {
|
|
|
6185
6185
|
n.updateMatrixWorld(!0);
|
|
6186
6186
|
const s = ((m = (u = this.inspection).pickRoots) == null ? void 0 : m.call(u)) ?? [];
|
|
6187
6187
|
for (const b of s) b.updateWorldMatrix(!0, !0);
|
|
6188
|
-
this.raycaster.setFromCamera(new G((e.clientX - i.left) / i.width * 2 - 1, 1 - (e.clientY - i.top) / i.height * 2), n);
|
|
6188
|
+
this.raycaster.firstHitOnly = !0, this.raycaster.setFromCamera(new G((e.clientX - i.left) / i.width * 2 - 1, 1 - (e.clientY - i.top) / i.height * 2), n);
|
|
6189
6189
|
const o = this.raycaster.intersectObjects([...s], !0).find((b) => {
|
|
6190
6190
|
if (!b.object.isMesh) return !1;
|
|
6191
6191
|
for (let v = b.object; v; v = v.parent) if (!v.visible) return !1;
|
|
@@ -8368,7 +8368,7 @@ const Ho = {
|
|
|
8368
8368
|
clearColor: ye.dark
|
|
8369
8369
|
},
|
|
8370
8370
|
async createSession(e, t) {
|
|
8371
|
-
const { createModelSession: i } = await import("./session-
|
|
8371
|
+
const { createModelSession: i } = await import("./session-C-yjpG8R.js");
|
|
8372
8372
|
return i(e, t);
|
|
8373
8373
|
}
|
|
8374
8374
|
});
|
|
@@ -8452,7 +8452,7 @@ const Go = {
|
|
|
8452
8452
|
clearColor: ye.dark
|
|
8453
8453
|
},
|
|
8454
8454
|
async createSession(e, t) {
|
|
8455
|
-
const { createSimulationSession: i } = await import("./session-
|
|
8455
|
+
const { createSimulationSession: i } = await import("./session-uIv9-Ok1.js").then((n) => n.a);
|
|
8456
8456
|
return i(e, t);
|
|
8457
8457
|
}
|
|
8458
8458
|
});
|
|
@@ -9596,7 +9596,7 @@ function Ka(r = {}) {
|
|
|
9596
9596
|
}
|
|
9597
9597
|
let vi = null;
|
|
9598
9598
|
function Ja() {
|
|
9599
|
-
return vi ?? (vi = import("./usd-session-
|
|
9599
|
+
return vi ?? (vi = import("./usd-session-Cb1e-Bx8.js").then(() => {
|
|
9600
9600
|
})), vi;
|
|
9601
9601
|
}
|
|
9602
9602
|
function ga(r) {
|
|
@@ -9801,7 +9801,7 @@ function Fi(r, e) {
|
|
|
9801
9801
|
function Ui() {
|
|
9802
9802
|
return new Worker(new URL(
|
|
9803
9803
|
/* @vite-ignore */
|
|
9804
|
-
"" + new URL("assets/usd-worker-
|
|
9804
|
+
"" + new URL("assets/usd-worker-Cd5zDKyA.js", import.meta.url).href,
|
|
9805
9805
|
import.meta.url
|
|
9806
9806
|
), {
|
|
9807
9807
|
type: "module",
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, t as r, y as o, u as U, U as E, s as _, w as d, z as D, A as R, B as S, C as i, j as u, E as c, F as C, G as O } from "./index-
|
|
1
|
+
import { D as s, t as r, y as o, u as U, U as E, s as _, w as d, z as D, A as R, B as S, C as i, j as u, E as c, F as C, G as O } from "./index-CIMsZtyY.js";
|
|
2
2
|
import { configureCadTextBuilder as m } from "@nebula-spatial/cad-loader";
|
|
3
3
|
export {
|
|
4
4
|
s as DEFAULT_GROUND_GRID_SCALE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as v, s as E } from "./session-
|
|
1
|
+
import { c as v, s as E } from "./session-uIv9-Ok1.js";
|
|
2
2
|
import { Group as q, Euler as z, BoxGeometry as G, SphereGeometry as N, CylinderGeometry as P, CapsuleGeometry as $, PlaneGeometry as I, Mesh as X } from "three";
|
|
3
3
|
import { disposeModelResources as j } from "./resources-CHhCm2f7.js";
|
|
4
4
|
function U(f) {
|
|
@@ -3,7 +3,7 @@ var B = (v, t, e) => t in v ? F(v, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var f = (v, t, e) => B(v, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import L from "@mujoco/mujoco";
|
|
5
5
|
import { Quaternion as D, Vector3 as q } from "three";
|
|
6
|
-
import { b as R, x as C } from "./index-
|
|
6
|
+
import { b as R, x as C } from "./index-CIMsZtyY.js";
|
|
7
7
|
let z = 0;
|
|
8
8
|
function V(v, t) {
|
|
9
9
|
const e = `/viewer-simulation-${++z}`;
|