@nebula-spatial/viewer 0.4.6 → 0.5.1
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 +54 -0
- package/README.md +40 -11
- package/USD-VISUAL-MATERIAL-SUPPORT.md +50 -50
- package/dist/assets/source-types.d.ts +9 -0
- package/dist/assets/types.d.ts +17 -1
- package/dist/cad/types.d.ts +4 -8
- package/dist/{index-BMpPLW5X.js → index-CXdFFc74.js} +821 -778
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/{mjcf-visual-BKHVxVrs.js → mjcf-visual-BnZWMjcp.js} +2 -2
- package/dist/session-BhTeAhTq.js +809 -0
- package/dist/{session-DN0DckL_.js → session-BvgzEStG.js} +2 -2
- package/dist/{stage-D1FYXbPa.js → stage-DBmU5D0V.js} +1 -1
- package/dist/{urdf-session-Dp4X1_x8.js → urdf-session-BtARifnH.js} +3 -3
- package/dist/usd-session-DmO4QMLH.js +2240 -0
- package/dist/version.d.ts +5 -0
- package/dist/{xacro-BcGEW8o5.js → xacro-B8n3d29Q.js} +1 -1
- package/openusd/openusd_probe.js +14 -0
- package/openusd/openusd_probe.wasm +0 -0
- package/package.json +6 -5
- package/dist/session-BaKbYHiJ.js +0 -809
- package/dist/usd-session-CxjXcMVI.js +0 -1907
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTexture as N, LinearMipmapLinearFilter as re, LinearFilter as se, LoadingManager as oe, Loader as ae, Texture as X, TextureLoader as ie, LinearSRGBColorSpace as G, SRGBColorSpace as le, RGBAFormat as K, UnsignedByteType as J, NoColorSpace as ce, Mesh as ue, MeshPhysicalMaterial as Z, MeshPhongMaterial as k, MeshLambertMaterial as fe, Color as C, Group as pe, Box3 as de, Vector3 as he } from "three";
|
|
2
2
|
import { DRACOLoader as me } from "three/examples/jsm/loaders/DRACOLoader.js";
|
|
3
3
|
import { GLTFLoader as ge } from "three/examples/jsm/loaders/GLTFLoader.js";
|
|
4
|
-
import { d as Y, a as q, S as ye, b as j } from "./stage-
|
|
4
|
+
import { d as Y, a as q, S as ye, b as j } from "./stage-DBmU5D0V.js";
|
|
5
5
|
import { TGALoader as we } from "three/examples/jsm/loaders/TGALoader.js";
|
|
6
6
|
import { FBXLoader as be } from "three/examples/jsm/loaders/FBXLoader.js";
|
|
7
7
|
import { unzlibSync as xe } from "three/examples/jsm/libs/fflate.module.js";
|
|
@@ -177,7 +177,7 @@ async function Te(e, t, n) {
|
|
|
177
177
|
return l = new be(m).parse(e, ""), await Promise.all(p), t.signal.throwIfAborted(), { root: l, textures: d };
|
|
178
178
|
} catch (u) {
|
|
179
179
|
if (s.abort(u), await Promise.allSettled(p), l) {
|
|
180
|
-
const { disposeModelResources: w } = await import("./stage-
|
|
180
|
+
const { disposeModelResources: w } = await import("./stage-DBmU5D0V.js").then((f) => f.r);
|
|
181
181
|
w(l, d);
|
|
182
182
|
} else for (const w of d) w.dispose();
|
|
183
183
|
throw u;
|
|
@@ -3,7 +3,7 @@ var P = (n, e, t) => e in n ? w(n, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var a = (n, e, t) => P(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { Quaternion as y, Vector3 as C } from "three";
|
|
6
|
-
import { V as x } from "./index-
|
|
6
|
+
import { V as x } from "./index-CXdFFc74.js";
|
|
7
7
|
const m = 1, S = (
|
|
8
8
|
/* glsl */
|
|
9
9
|
`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var un = Object.defineProperty;
|
|
2
2
|
var fn = (n, t, i) => t in n ? un(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
|
|
3
3
|
var $ = (n, t, i) => fn(n, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
-
import { d as dn, b as pn, e as oi, c as mn, a as ri, r as hn, S as ai, p as yn } from "./session-
|
|
5
|
-
import { b as ft, S as gn, m as ci } from "./stage-
|
|
4
|
+
import { d as dn, b as pn, e as oi, c as mn, a as ri, r as hn, S as ai, p as yn } from "./session-BhTeAhTq.js";
|
|
5
|
+
import { b as ft, S as gn, m as ci } from "./stage-DBmU5D0V.js";
|
|
6
6
|
import { Quaternion as K, Euler as Zt, LoadingManager as Ci, Group as ut, Mesh as C, MeshLambertMaterial as wn, MeshPhongMaterial as li, MeshStandardMaterial as Je, Matrix4 as H, TextureLoader as bn, SRGBColorSpace as xn, RepeatWrapping as An, BoxGeometry as He, SphereGeometry as Ze, CylinderGeometry as Ni, CapsuleGeometry as qi, Vector3 as z, MathUtils as Mn, Matrix3 as ui, Box3 as it, BufferAttribute as Oi, Line3 as dt, Plane as Vi, Vector2 as gt, Triangle as $t, BackSide as vn, DoubleSide as Pn, REVISION as Wi, Ray as Sn, FrontSide as fi, LineSegments as Qe, LineLoop as Gi, Line as Ye, Points as Xi, Sphere as Tn, BatchedMesh as Rn, AxesHelper as Bn, ArrowHelper as di, BufferGeometry as _n, LineBasicMaterial as pi, Float32BufferAttribute as En, MeshBasicMaterial as mi, EdgesGeometry as zn } from "three";
|
|
7
7
|
import { GLTFLoader as Un } from "three/examples/jsm/loaders/GLTFLoader.js";
|
|
8
8
|
import { ColladaLoader as Fn } from "three/examples/jsm/loaders/ColladaLoader.js";
|
|
@@ -3124,7 +3124,7 @@ async function yo(n, t, i) {
|
|
|
3124
3124
|
const r = t.format === "xacro";
|
|
3125
3125
|
if (r) {
|
|
3126
3126
|
(E = t.reportProgress) == null || E.call(t, "xacro", "正在展开 Xacro 宏与依赖文件...");
|
|
3127
|
-
const { expandXacro: U } = await import("./xacro-
|
|
3127
|
+
const { expandXacro: U } = await import("./xacro-B8n3d29Q.js");
|
|
3128
3128
|
s = await U(s, e, i, t.options.xacro, t.signal);
|
|
3129
3129
|
}
|
|
3130
3130
|
if (t.signal.aborted) throw Jt();
|