@nebula-spatial/viewer 0.5.13 → 0.5.15

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.
@@ -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-YdnQRm_T.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-1-acufd9.js";
5
+ import { S as Ze, m as ve } from "./stage-BVdJLgsW.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-AUG5EJBJ.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-BjsYN_8k.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-gqyaQh9L.js");
1178
1178
  if (v = new Z.MujocoRuntime(), await v.initialize(G, {
1179
1179
  baseUrl: e.options.mujocoBaseUrl,
1180
1180
  wasmModule: e.options.mujocoWasmModule