@nebula-spatial/viewer 0.5.16 → 0.5.17

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.
@@ -1,7 +1,7 @@
1
- import { d as ze, f as Ve, c as ke, a as $e, b as Be, g as Xe, w as Ie, h as He, p as oe, S as Ee, e as We } from "./collision-debug-fwawwhH3.js";
1
+ import { d as ze, f as Ve, c as ke, a as $e, b as Be, g as Xe, w as Ie, h as He, p as oe, S as Ee, e as We } from "./collision-debug-CHPrPNT3.js";
2
2
  import { disposeModelResources as ie } from "./resources-CHhCm2f7.js";
3
- import { D as Ye } from "./index-D9-UMnkK.js";
4
- import { S as ne } from "./stage-CrDYgXLe.js";
3
+ import { D as Ye } from "./index-cM9KArXm.js";
4
+ import { S as ne } from "./stage-pxmOnL0U.js";
5
5
  import { Color as Ke, LinearSRGBColorSpace as Qe, SRGBColorSpace as Oe, MeshPhysicalMaterial as Ze, Float32BufferAttribute as x, DataTexture as xe, RGBAFormat as et, UnsignedByteType as tt, NoColorSpace as rt, RepeatWrapping as st, LinearFilter as ot, LinearMipmapLinearFilter as nt, BufferGeometry as me, Group as Se, Mesh as Pe, PlaneGeometry as Re, BoxGeometry as Fe, SphereGeometry as le, Matrix4 as at, CylinderGeometry as Te, CapsuleGeometry as Ne, BufferAttribute as ue } from "three";
6
6
  const H = 0.7, ae = 0.2, it = 110 * Math.PI / 180;
7
7
  function lt(t, e = {}) {
@@ -516,7 +516,7 @@ function At(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 S = await (await import("./usd-session-CNYn-3LD.js")).loadUsdSimulation(t, e, a);
519
+ const S = await (await import("./usd-session-auH_xmOc.js")).loadUsdSimulation(t, e, a);
520
520
  if (v || e.signal.aborted)
521
521
  throw S.dispose(), ce();
522
522
  T = S, u = { root: S.visual.root, sync() {
@@ -535,7 +535,7 @@ function At(t, e) {
535
535
  }
536
536
  if (U === "urdf" || U === "xacro") {
537
537
  (N = e.reportProgress) == null || N.call(e, "urdf", "正在解析 URDF 场景与运动学结构...");
538
- const S = await (await import("./urdf-session-BABUz6Qt.js")).loadUrdfSimulation(t, e, a);
538
+ const S = await (await import("./urdf-session-ChpRmt69.js")).loadUrdfSimulation(t, e, a);
539
539
  if (v || e.signal.aborted)
540
540
  throw S.dispose(), ce();
541
541
  E = S.asset, o = S.stage, A = S.inspection, f = S.dispose, c = S.step, n = S.reset, i = S.play, w = S.pause, p = S.isPlaying, M = () => S.capabilities, P = () => S.physics, m = !1, b = !1, g = S.warning ?? null, X(), K();
@@ -559,7 +559,7 @@ function At(t, e) {
559
559
  (ge = e.reportProgress) == null || ge.call(e, "compile", "正在编译物理模型与参数...");
560
560
  const D = await ft(E);
561
561
  Z(v, e.signal), (ve = e.reportProgress) == null || ve.call(e, "runtime", "正在初始化物理内核...");
562
- const { MujocoRuntime: S } = await import("./mujoco-runtime-D3JnsOCZ.js");
562
+ const { MujocoRuntime: S } = await import("./mujoco-runtime-BV2xR38M.js");
563
563
  s = new S(), await s.initialize(D, {
564
564
  baseUrl: e.options.mujocoBaseUrl,
565
565
  wasmModule: e.options.mujocoWasmModule
@@ -567,7 +567,7 @@ function At(t, e) {
567
567
  } catch (D) {
568
568
  const S = oe(D, e.signal, "mjcf-physics");
569
569
  s == null || s.dispose(), s = null;
570
- const { compileMjcfPreview: V } = await import("./mjcf-visual-8DniLezh.js");
570
+ const { compileMjcfPreview: V } = await import("./mjcf-visual-C0PWP0vB.js");
571
571
  let k;
572
572
  try {
573
573
  k = V(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 Re, 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-D9-UMnkK.js";
5
- import { d as ge, a as ye, S as ut } from "./stage-CrDYgXLe.js";
4
+ import { D as ct } from "./index-cM9KArXm.js";
5
+ import { d as ge, a as ye, S as ut } from "./stage-pxmOnL0U.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-D9-UMnkK.js";
6
+ import { V as b, D as A, y as W } from "./index-cM9KArXm.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-fwawwhH3.js";
5
- import { S as Ze, m as ve } from "./stage-CrDYgXLe.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-CHPrPNT3.js";
5
+ import { S as Ze, m as ve } from "./stage-pxmOnL0U.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-CEipzQYJ.js";
7
+ import { c as Se } from "./session-CKva1mAh.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-Q-egO2RI.js");
1127
+ const { expandXacro: v } = await import("./xacro-CjMp9HT5.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-D3JnsOCZ.js");
1177
+ const Z = await import("./mujoco-runtime-BV2xR38M.js");
1178
1178
  if (v = new Z.MujocoRuntime(), await v.initialize(G, {
1179
1179
  baseUrl: e.options.mujocoBaseUrl,
1180
1180
  wasmModule: e.options.mujocoWasmModule