@nebula-spatial/viewer 0.5.6 → 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 +56 -0
- package/README.md +101 -7
- package/USD-VISUAL-MATERIAL-SUPPORT.md +10 -1
- package/dist/assets/types.d.ts +14 -2
- package/dist/assets/usd-worker-Cd5zDKyA.js +1508 -0
- package/dist/collision-debug-B9HJ34H8.js +2896 -0
- package/dist/{index-D6-ClMfm.js → index-CIMsZtyY.js} +4170 -2956
- package/dist/index.d.ts +5 -1
- package/dist/index.js +18 -16
- package/dist/inspection/types.d.ts +79 -2
- package/dist/{mjcf-visual-B8RE9CqV.js → mjcf-visual-DCfPUwyh.js} +1 -1
- package/dist/mujoco-runtime-B9AZiFiG.js +698 -0
- package/dist/session-C-yjpG8R.js +2519 -0
- package/dist/session-uIv9-Ok1.js +786 -0
- package/dist/simulation/mujoco-wasm-module.d.ts +11 -0
- package/dist/simulation/openusd-wasm-module.d.ts +10 -0
- package/dist/{stage-CSRMl8kx.js → stage-C2FchK6h.js} +2 -2
- package/dist/urdf-session-CjGG32Zy.js +1264 -0
- package/dist/usd-session-Cb1e-Bx8.js +6971 -0
- package/dist/version.d.ts +1 -1
- package/dist/{xacro-BpICdIYd.js → xacro-C2EgfvS8.js} +1 -1
- package/openusd/openusd-runtime-manifest.json +3 -3
- package/openusd/openusd_probe.js +14 -14
- package/package.json +2 -1
- package/dist/assets/usd-worker-CnpILBYh.js +0 -1352
- package/dist/collision-debug-CqRm6cC8.js +0 -479
- package/dist/mujoco-runtime-ZuEJSHnD.js +0 -396
- package/dist/session-CDrNB1J2.js +0 -965
- package/dist/session-DgvOdcLe.js +0 -632
- package/dist/urdf-session-DD3HOAib.js +0 -3263
- package/dist/usd-session-BCCp_YDr.js +0 -6217
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface MujocoWasmCompileOptions {
|
|
2
|
+
readonly mujocoBaseUrl?: string;
|
|
3
|
+
readonly signal?: AbortSignal;
|
|
4
|
+
}
|
|
5
|
+
/** Resolves the same MuJoCo WASM URL used by `MujocoRuntime.initialize`. */
|
|
6
|
+
export declare function resolveMujocoWasmUrl(mujocoBaseUrl?: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Downloads and compiles the configured MuJoCo WASM. Caching and sharing are
|
|
9
|
+
* owned by the caller; this function creates no global cache.
|
|
10
|
+
*/
|
|
11
|
+
export declare function compileMujocoWasmModule(options?: MujocoWasmCompileOptions): Promise<WebAssembly.Module>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface OpenUsdWasmCompileOptions {
|
|
2
|
+
readonly openUsdBaseUrl?: string;
|
|
3
|
+
readonly openUsdRuntimeId?: string;
|
|
4
|
+
readonly signal?: AbortSignal;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Downloads and compiles the configured OpenUSD Probe. Caching and sharing are
|
|
8
|
+
* owned by the caller; this function creates no global cache.
|
|
9
|
+
*/
|
|
10
|
+
export declare function compileOpenUsdWasmModule(options?: OpenUsdWasmCompileOptions): Promise<WebAssembly.Module>;
|
|
@@ -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 C, Vector3 as V } from "three";
|
|
6
|
-
import { V as b, D as A,
|
|
6
|
+
import { V as b, D as A, w as W } from "./index-CIMsZtyY.js";
|
|
7
7
|
import { disposeModelResources as T } from "./resources-CHhCm2f7.js";
|
|
8
8
|
const v = 1, B = (
|
|
9
9
|
/* glsl */
|
|
@@ -475,7 +475,7 @@ class rt {
|
|
|
475
475
|
}
|
|
476
476
|
beginGrab(t, e, r) {
|
|
477
477
|
if (!this.runtime || this.disposed) return !1;
|
|
478
|
-
this.pointerRay(t, e, r);
|
|
478
|
+
this.pointerRay(t, e, r), this.raycaster.firstHitOnly = !0;
|
|
479
479
|
const o = this.raycaster.intersectObject(this.model, !0).find((d) => d.object.isMesh);
|
|
480
480
|
if (!o) return !1;
|
|
481
481
|
const n = this.findBodyGroup(o.object);
|