@nebula-spatial/viewer 0.5.11 → 0.5.12
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 +13 -0
- package/dist/{collision-debug-COTEHr4t.js → collision-debug-C-GfagYI.js} +1 -1
- package/dist/{index-BStaY4GZ.js → index-CPHfEIND.js} +375 -372
- package/dist/index.js +1 -1
- package/dist/{mjcf-visual-CD52zbv0.js → mjcf-visual-Coi35OaT.js} +1 -1
- package/dist/{mujoco-runtime-sHgzRbpf.js → mujoco-runtime-CciOWtJO.js} +1 -1
- package/dist/{session-CU4-Zy1h.js → session-BwQqwtuW.js} +7 -7
- package/dist/{session-HOTFzdIP.js → session-CoEU6ILc.js} +2 -2
- package/dist/{stage-BwDT2iC9.js → stage-C8MOE9K3.js} +1 -1
- package/dist/{urdf-session-D-o78xoS.js → urdf-session-CCfMSB3h.js} +5 -5
- package/dist/{usd-session-CxFNEMic.js → usd-session-CR2K_zdJ.js} +2702 -2598
- package/dist/version.d.ts +1 -1
- package/dist/{xacro-Bpz-UyEX.js → xacro-kijvGy5n.js} +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r, v as s, A as o, w as U, U as E, u as _, y as d, B as D, C as R, E as S, F as i, k as u, G as c, H as C, I as O } from "./index-
|
|
1
|
+
import { D as r, v as s, A as o, w as U, U as E, u as _, y as d, B as D, C as R, E as S, F as i, k as u, G as c, H as C, I as O } from "./index-CPHfEIND.js";
|
|
2
2
|
import { configureCadTextBuilder as m } from "@nebula-spatial/cad-loader";
|
|
3
3
|
export {
|
|
4
4
|
r as DEFAULT_GROUND_GRID_SCALE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as v, s as E } from "./session-
|
|
1
|
+
import { c as v, s as E } from "./session-BwQqwtuW.js";
|
|
2
2
|
import { Group as q, Euler as z, BoxGeometry as G, SphereGeometry as N, CylinderGeometry as P, CapsuleGeometry as $, PlaneGeometry as I, Mesh as X } from "three";
|
|
3
3
|
import { disposeModelResources as j } from "./resources-CHhCm2f7.js";
|
|
4
4
|
function U(f) {
|
|
@@ -3,7 +3,7 @@ var B = (v, t, e) => t in v ? F(v, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var f = (v, t, e) => B(v, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import L from "@mujoco/mujoco";
|
|
5
5
|
import { Quaternion as D, Vector3 as q } from "three";
|
|
6
|
-
import { b as R, z as C } from "./index-
|
|
6
|
+
import { b as R, z as C } from "./index-CPHfEIND.js";
|
|
7
7
|
let z = 0;
|
|
8
8
|
function V(v, t) {
|
|
9
9
|
const e = `/viewer-simulation-${++z}`;
|
|
@@ -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-
|
|
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-C-GfagYI.js";
|
|
2
2
|
import { disposeModelResources as ae } from "./resources-CHhCm2f7.js";
|
|
3
|
-
import { D as We } from "./index-
|
|
4
|
-
import { S as oe } from "./stage-
|
|
3
|
+
import { D as We } from "./index-CPHfEIND.js";
|
|
4
|
+
import { S as oe } from "./stage-C8MOE9K3.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-
|
|
519
|
+
const A = await (await import("./usd-session-CR2K_zdJ.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-
|
|
535
|
+
const A = await (await import("./urdf-session-CCfMSB3h.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-
|
|
559
|
+
const { MujocoRuntime: A } = await import("./mujoco-runtime-CciOWtJO.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-
|
|
567
|
+
const { compileMjcfPreview: K } = await import("./mjcf-visual-Coi35OaT.js");
|
|
568
568
|
let z;
|
|
569
569
|
try {
|
|
570
570
|
z = K(E);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DataTexture as ne, LinearMipmapLinearFilter as ke, LinearFilter as Xe, Loader as J, LoaderUtils as _e, FileLoader as Ve, TextureLoader as Me, RepeatWrapping as ue, ClampToEdgeWrapping as pe, Texture as Y, MeshPhongMaterial as W, MeshLambertMaterial as Se, ColorManagement as N, Color as k, SRGBColorSpace as X, EquirectangularReflectionMapping as Ge, Matrix4 as L, Group as ce, Bone as fe, PropertyBinding as ee, Object3D as Z, PerspectiveCamera as Ne, PointLight as he, MathUtils as B, SpotLight as $e, DirectionalLight as ze, SkinnedMesh as je, Mesh as Fe, LineBasicMaterial as He, Line as We, Vector3 as V, Skeleton as Ye, AmbientLight as qe, BufferGeometry as re, Float32BufferAttribute as j, Uint16BufferAttribute as Ke, Matrix3 as Ze, Vector2 as Qe, ShapeUtils as Je, Vector4 as et, Euler as z, AnimationClip as tt, Quaternion as G, VectorKeyframeTrack as nt, QuaternionKeyframeTrack as de, NumberKeyframeTrack as rt, LoadingManager as st, LinearSRGBColorSpace as me, RGBAFormat as Ie, UnsignedByteType as Ae, NoColorSpace as at, MeshPhysicalMaterial as De, Box3 as ot } from "three";
|
|
2
2
|
import { DRACOLoader as it } from "three/examples/jsm/loaders/DRACOLoader.js";
|
|
3
3
|
import { GLTFLoader as lt } from "three/examples/jsm/loaders/GLTFLoader.js";
|
|
4
|
-
import { D as ct } from "./index-
|
|
5
|
-
import { d as ge, a as ye, S as ut } from "./stage-
|
|
4
|
+
import { D as ct } from "./index-CPHfEIND.js";
|
|
5
|
+
import { d as ge, a as ye, S as ut } from "./stage-C8MOE9K3.js";
|
|
6
6
|
import { TGALoader as pt } from "three/examples/jsm/loaders/TGALoader.js";
|
|
7
7
|
import * as ft from "three/examples/jsm/libs/fflate.module.js";
|
|
8
8
|
import { unzlibSync as ht } from "three/examples/jsm/libs/fflate.module.js";
|
|
@@ -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-CPHfEIND.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-C-GfagYI.js";
|
|
5
|
+
import { S as Ze, m as ve } from "./stage-C8MOE9K3.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-BwQqwtuW.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-kijvGy5n.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-CciOWtJO.js");
|
|
1178
1178
|
if (v = new Z.MujocoRuntime(), await v.initialize(G, {
|
|
1179
1179
|
baseUrl: e.options.mujocoBaseUrl,
|
|
1180
1180
|
wasmModule: e.options.mujocoWasmModule
|