@nebula-spatial/viewer 0.6.4 → 0.6.6

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 s, I as o, V as r, J as n, U as t, H as i, W as c, X as U, Y as d, Z as S, _ as E, $ as _, a0 as D, a1 as l, a2 as R, L as m, a3 as p, a4 as u, m as C, a5 as O, a6 as I, a7 as V, a8 as G, a9 as T, aa as f, ab as N } from "./index-QdE4B8Hz.js";
1
+ import { E as s, L as o, Y as r, N as n, U as t, K as c, Z as i, _ as d, $ as U, a0 as S, a1 as E, a2 as _, a3 as l, a4 as D, a5 as R, Q as m, a6 as p, a7 as u, m as C, a8 as O, a9 as G, aa as I, ab as N, ac as T, ad as V, ae as f } from "./index-DyBfusq5.js";
2
2
  import { configureCadTextBuilder as x } from "@nebula-spatial/cad-loader";
3
3
  export {
4
4
  s as DEFAULT_GROUND_GRID_SCALE,
@@ -6,26 +6,26 @@ export {
6
6
  r as USD_RESOURCE_EXTERNAL_DENIED,
7
7
  n as USD_RESOURCE_FETCH,
8
8
  t as USD_RESOURCE_INVALID,
9
- i as USD_RESOURCE_NOT_FOUND,
10
- c as axisGizmo,
11
- U as chooseGroundGridScale,
12
- d as clampJointValue,
9
+ c as USD_RESOURCE_NOT_FOUND,
10
+ i as axisGizmo,
11
+ d as chooseGroundGridScale,
12
+ U as clampJointValue,
13
13
  S as compileMujocoWasmModule,
14
14
  E as compileOpenUsdWasmModule,
15
15
  x as configureViewerText,
16
16
  _ as createSceneInstanceJoints,
17
- D as createSceneSession,
18
- l as createViewer,
17
+ l as createSceneSession,
18
+ D as createViewer,
19
19
  R as detectPlyContent,
20
20
  m as detectVisualContent,
21
21
  p as findInstanceId,
22
22
  u as formatGroundGridScale,
23
23
  C as getUsdQuery,
24
24
  O as isSceneScalarJoint,
25
- I as jointBlockReason,
26
- V as preloadUsdViewer,
27
- G as prewarmUsdWorker,
25
+ G as jointBlockReason,
26
+ I as preloadUsdViewer,
27
+ N as prewarmUsdWorker,
28
28
  T as probeUsdDependencies,
29
- f as toSceneJointDescriptor,
30
- N as viewerVersion
29
+ V as toSceneJointDescriptor,
30
+ f as viewerVersion
31
31
  };
@@ -1,6 +1,6 @@
1
- import { O as v, T as E, d as z } from "./index-QdE4B8Hz.js";
2
- import { Group as q, Euler as G, BoxGeometry as N, SphereGeometry as P, CylinderGeometry as $, CapsuleGeometry as I, PlaneGeometry as X, Mesh as j } from "three";
3
- function D(f) {
1
+ import { V as v, X as E, d as z } from "./index-DyBfusq5.js";
2
+ import { Group as q, Euler as G, BoxGeometry as N, SphereGeometry as P, CylinderGeometry as X, CapsuleGeometry as $, PlaneGeometry as I, Mesh as j } from "three";
3
+ function B(f) {
4
4
  const y = f.extension.documents, l = new q();
5
5
  l.name = f.name;
6
6
  try {
@@ -43,10 +43,10 @@ function D(f) {
43
43
  if (n === "box") i = new N(2 * r[0], 2 * r[1], 2 * r[2]);
44
44
  else if (n === "sphere") i = new P(r[0]);
45
45
  else if (n === "cylinder")
46
- i = new $(r[0], r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
46
+ i = new X(r[0], r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
47
47
  else if (n === "capsule")
48
- i = new I(r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
49
- else if (n === "plane") i = new X(2 * (r[0] || 5), 2 * (r[1] || 5));
48
+ i = new $(r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
49
+ else if (n === "plane") i = new I(2 * (r[0] || 5), 2 * (r[1] || 5));
50
50
  else throw new Error(`MJCF 独立预览暂不支持 geom ${n}`);
51
51
  const p = e.getAttribute("material"), o = [...u.querySelectorAll("asset > material")].find((t) => t.getAttribute("name") === p);
52
52
  if (p && !o) throw new Error(`Undefined MJCF material: ${p}`);
@@ -68,5 +68,5 @@ function D(f) {
68
68
  }
69
69
  }
70
70
  export {
71
- D as compileMjcfPreview
71
+ B as compileMjcfPreview
72
72
  };