@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.
- package/CHANGELOG.md +45 -0
- package/README.md +32 -34
- package/dist/assets/types.d.ts +10 -1
- package/dist/assets/{usd-worker-CPCXyXkl.js → usd-worker-DU-u_iJN.js} +558 -502
- package/dist/{collision-debug-Aey5D_9r.js → collision-debug-1-acufd9.js} +55 -53
- package/dist/{index-DbJbq4N_.js → index-YdnQRm_T.js} +850 -836
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{mjcf-visual-B3UBh_gG.js → mjcf-visual-DTO5j9bm.js} +1 -1
- package/dist/{mujoco-runtime-BPCq2bmg.js → mujoco-runtime-gqyaQh9L.js} +1 -1
- package/dist/runtime-paths-Dj0itY6G.js +8 -0
- package/dist/{session-52jx0mHi.js → session-AUG5EJBJ.js} +7 -7
- package/dist/{session-C0KFNp50.js → session-mJGcCljH.js} +132 -129
- package/dist/simulation/usd-preload.d.ts +2 -0
- package/dist/simulation/usd-prewarm.d.ts +6 -0
- package/dist/{stage-PhbBBoMY.js → stage-BVdJLgsW.js} +1 -1
- package/dist/{urdf-session-DPOKRNNw.js → urdf-session-oLRIcAw1.js} +5 -5
- package/dist/{usd-session-Co9oFkxC.js → usd-session-Dexv9ijX.js} +1861 -1807
- package/dist/version.d.ts +1 -1
- package/dist/{xacro-B50iFe4M.js → xacro-BjsYN_8k.js} +1 -1
- package/draco/draco_decoder.wasm +0 -0
- package/draco/draco_wasm_wrapper.js +117 -0
- package/openusd/openusd-runtime-manifest.json +3 -3
- package/openusd/openusd_probe.wasm +0 -0
- package/package.json +28 -4
- package/runtime-assets.d.mts +9 -0
- package/runtime-assets.mjs +11 -0
- package/vite.d.mts +7 -0
- package/vite.mjs +115 -0
|
@@ -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-
|
|
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-
|
|
5
|
-
import { S as Ze, m as ve } from "./stage-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|