@nebula-spatial/viewer 0.5.13 → 0.5.14

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.
@@ -1,7 +1,7 @@
1
- import { d as Je, f as ze, c as Ve, a as ke, b as $e, g as Be, w as Xe, h as Ie, p as se, S as je, e as He } from "./collision-debug-Aey5D_9r.js";
1
+ import { d as Je, f as ze, c as Ve, a as ke, b as $e, g as Be, w as Xe, h as Ie, p as se, S as je, e as He } from "./collision-debug-B2bN8P2g.js";
2
2
  import { disposeModelResources as ae } from "./resources-CHhCm2f7.js";
3
- import { D as We } from "./index-DbJbq4N_.js";
4
- import { S as oe } from "./stage-PhbBBoMY.js";
3
+ import { D as We } from "./index-BSDalKkd.js";
4
+ import { S as oe } from "./stage-CvP0yaff.js";
5
5
  import { Color as Ye, LinearSRGBColorSpace as Ke, SRGBColorSpace as Ce, MeshPhysicalMaterial as Qe, Float32BufferAttribute as Z, DataTexture as Ze, RGBAFormat as xe, UnsignedByteType as et, NoColorSpace as tt, RepeatWrapping as rt, LinearFilter as st, LinearMipmapLinearFilter as ot, BufferGeometry as fe, Group as Ee, Mesh as Ae, PlaneGeometry as Oe, BoxGeometry as Re, SphereGeometry as ie, Matrix4 as nt, CylinderGeometry as Fe, CapsuleGeometry as Te, BufferAttribute as le } from "three";
6
6
  const X = 0.7, ne = 0.2, at = 110 * Math.PI / 180;
7
7
  function it(t, e = {}) {
@@ -516,7 +516,7 @@ function St(t, e) {
516
516
  const U = e.format;
517
517
  if (U === "usd" || U === "usda" || U === "usdc" || U === "usdz") {
518
518
  (l = e.reportProgress) == null || l.call(e, "usd-visual", "正在解析 USD 视觉场景...");
519
- const A = await (await import("./usd-session-Co9oFkxC.js")).loadUsdSimulation(t, e, a);
519
+ const A = await (await import("./usd-session-DSFtJk4b.js")).loadUsdSimulation(t, e, a);
520
520
  if (w || e.signal.aborted)
521
521
  throw A.dispose(), ce();
522
522
  T = A, u = { root: A.visual.root, sync() {
@@ -532,7 +532,7 @@ function St(t, e) {
532
532
  }
533
533
  if (U === "urdf" || U === "xacro") {
534
534
  (N = e.reportProgress) == null || N.call(e, "urdf", "正在解析 URDF 场景与运动学结构...");
535
- const A = await (await import("./urdf-session-DPOKRNNw.js")).loadUrdfSimulation(t, e, a);
535
+ const A = await (await import("./urdf-session-DcGOHFg2.js")).loadUrdfSimulation(t, e, a);
536
536
  if (w || e.signal.aborted)
537
537
  throw A.dispose(), ce();
538
538
  E = A.asset, o = A.stage, P = A.inspection, c = A.dispose, f = A.step, n = A.reset, i = A.play, b = A.pause, p = A.isPlaying, M = () => A.capabilities, S = () => A.physics, m = !1, v = !1, g = A.warning ?? null, $(), W();
@@ -556,7 +556,7 @@ function St(t, e) {
556
556
  (_e = e.reportProgress) == null || _e.call(e, "compile", "正在编译物理模型与参数...");
557
557
  const L = await ut(E);
558
558
  Q(w, e.signal), (ge = e.reportProgress) == null || ge.call(e, "runtime", "正在初始化物理内核...");
559
- const { MujocoRuntime: A } = await import("./mujoco-runtime-BPCq2bmg.js");
559
+ const { MujocoRuntime: A } = await import("./mujoco-runtime-CFQQsRmc.js");
560
560
  s = new A(), await s.initialize(L, {
561
561
  baseUrl: e.options.mujocoBaseUrl,
562
562
  wasmModule: e.options.mujocoWasmModule
@@ -564,7 +564,7 @@ function St(t, e) {
564
564
  } catch (L) {
565
565
  const A = se(L, e.signal, "mjcf-physics");
566
566
  s == null || s.dispose(), s = null;
567
- const { compileMjcfPreview: K } = await import("./mjcf-visual-B3UBh_gG.js");
567
+ const { compileMjcfPreview: K } = await import("./mjcf-visual-D6T3a1uQ.js");
568
568
  let z;
569
569
  try {
570
570
  z = K(E);
@@ -0,0 +1,2 @@
1
+ /** Loads the main-thread USD module graph before the first asset is opened. */
2
+ export declare function preloadUsdViewer(): Promise<void>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Instantiates the OpenUSD runtime before an asset is opened. The first USD load
3
+ * consumes the prepared worker; every scene still terminates its worker when
4
+ * disposed so WASM linear memory is reclaimed.
5
+ */
6
+ export declare function prewarmUsdWorker(baseUrl?: string, runtimeId?: string): Promise<void>;
@@ -3,7 +3,7 @@ var S = (a, t, e) => t in a ? R(a, t, { enumerable: !0, configurable: !0, writab
3
3
  var s = (a, t, e) => S(a, typeof t != "symbol" ? t + "" : t, e);
4
4
  import * as i from "three";
5
5
  import { Quaternion as P, Vector3 as V } from "three";
6
- import { V as b, D as A, y as W } from "./index-DbJbq4N_.js";
6
+ import { V as b, D as A, y as W } from "./index-BSDalKkd.js";
7
7
  import { disposeModelResources as T } from "./resources-CHhCm2f7.js";
8
8
  const v = 1, B = (
9
9
  /* glsl */
@@ -1,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
2
  var Ce = (i, e, n) => e in i ? We(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n;
3
3
  var A = (i, e, n) => Ce(i, typeof e != "symbol" ? e + "" : e, n);
4
- import { d as Ge, f as Te, c as Ve, a as Je, b as ye, M as Be, i as Qe, h as Xe, w as be, j as ge, S as we, p as Ke } from "./collision-debug-Aey5D_9r.js";
5
- import { S as Ze, m as ve } from "./stage-PhbBBoMY.js";
4
+ import { d as Ge, f as Te, c as Ve, a as Je, b as ye, M as Be, i as Qe, h as Xe, w as be, j as ge, S as we, p as Ke } from "./collision-debug-B2bN8P2g.js";
5
+ import { S as Ze, m as ve } from "./stage-CvP0yaff.js";
6
6
  import { Quaternion as O, Euler as X, LoadingManager as Pe, Group as L, Mesh as U, MeshLambertMaterial as Ye, MeshPhongMaterial as Me, MeshStandardMaterial as oe, Matrix4 as I, TextureLoader as He, SRGBColorSpace as et, RepeatWrapping as tt, BoxGeometry as re, SphereGeometry as ae, CylinderGeometry as _e, CapsuleGeometry as De, Vector3 as z, MathUtils as it, Matrix3 as Re, Box3 as Ae, AxesHelper as nt, ArrowHelper as $e, Line as st, BufferGeometry as ot, LineBasicMaterial as Ee, Float32BufferAttribute as rt, MeshBasicMaterial as je, LineSegments as at, EdgesGeometry as lt } from "three";
7
- import { c as Se } from "./session-52jx0mHi.js";
7
+ import { c as Se } from "./session-Ciaw522_.js";
8
8
  import { GLTFLoader as ct } from "three/examples/jsm/loaders/GLTFLoader.js";
9
9
  import { ColladaLoader as ut } from "three/examples/jsm/loaders/ColladaLoader.js";
10
10
  import { disposeModelResources as N } from "./resources-CHhCm2f7.js";
@@ -1124,7 +1124,7 @@ async function Jt(i, e, n) {
1124
1124
  const l = e.format === "xacro";
1125
1125
  if (l) {
1126
1126
  (q = e.reportProgress) == null || q.call(e, "xacro", "正在展开 Xacro 宏与依赖文件...");
1127
- const { expandXacro: v } = await import("./xacro-B50iFe4M.js");
1127
+ const { expandXacro: v } = await import("./xacro-bURYAikr.js");
1128
1128
  s = await v(s, t, n, e.options.xacro, e.signal);
1129
1129
  }
1130
1130
  if (e.signal.aborted) throw Q();
@@ -1174,7 +1174,7 @@ async function Jt(i, e, n) {
1174
1174
  try {
1175
1175
  const G = await vt(o);
1176
1176
  if (e.signal.aborted || R) throw Q();
1177
- const Z = await import("./mujoco-runtime-BPCq2bmg.js");
1177
+ const Z = await import("./mujoco-runtime-CFQQsRmc.js");
1178
1178
  if (v = new Z.MujocoRuntime(), await v.initialize(G, {
1179
1179
  baseUrl: e.options.mujocoBaseUrl,
1180
1180
  wasmModule: e.options.mujocoWasmModule