@nebula-spatial/viewer 0.5.11 → 0.5.13

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/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-BStaY4GZ.js";
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-DbJbq4N_.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-CU4-Zy1h.js";
1
+ import { c as v, s as E } from "./session-52jx0mHi.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-BStaY4GZ.js";
6
+ import { b as R, z as C } from "./index-DbJbq4N_.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-COTEHr4t.js";
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-Aey5D_9r.js";
2
2
  import { disposeModelResources as ae } from "./resources-CHhCm2f7.js";
3
- import { D as We } from "./index-BStaY4GZ.js";
4
- import { S as oe } from "./stage-BwDT2iC9.js";
3
+ import { D as We } from "./index-DbJbq4N_.js";
4
+ import { S as oe } from "./stage-PhbBBoMY.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-CxFNEMic.js")).loadUsdSimulation(t, e, a);
519
+ const A = await (await import("./usd-session-Co9oFkxC.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-D-o78xoS.js")).loadUrdfSimulation(t, e, a);
535
+ const A = await (await import("./urdf-session-DPOKRNNw.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-sHgzRbpf.js");
559
+ const { MujocoRuntime: A } = await import("./mujoco-runtime-BPCq2bmg.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-CD52zbv0.js");
567
+ const { compileMjcfPreview: K } = await import("./mjcf-visual-B3UBh_gG.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-BStaY4GZ.js";
5
- import { d as ge, a as ye, S as ut } from "./stage-BwDT2iC9.js";
4
+ import { D as ct } from "./index-DbJbq4N_.js";
5
+ import { d as ge, a as ye, S as ut } from "./stage-PhbBBoMY.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-BStaY4GZ.js";
6
+ import { V as b, D as A, y as W } from "./index-DbJbq4N_.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-COTEHr4t.js";
5
- import { S as Ze, m as ve } from "./stage-BwDT2iC9.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-Aey5D_9r.js";
5
+ import { S as Ze, m as ve } from "./stage-PhbBBoMY.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-CU4-Zy1h.js";
7
+ import { c as Se } from "./session-52jx0mHi.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-Bpz-UyEX.js");
1127
+ const { expandXacro: v } = await import("./xacro-B50iFe4M.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-sHgzRbpf.js");
1177
+ const Z = await import("./mujoco-runtime-BPCq2bmg.js");
1178
1178
  if (v = new Z.MujocoRuntime(), await v.initialize(G, {
1179
1179
  baseUrl: e.options.mujocoBaseUrl,
1180
1180
  wasmModule: e.options.mujocoWasmModule