@nebula-spatial/viewer 0.6.5 → 0.6.7

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 CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this package are documented in this file.
4
4
 
5
+ ## 0.6.7
6
+
7
+ ### Fixed
8
+
9
+ - 修复场景运行时对模型世界包围盒重复应用实例变换,导致移动、旋转、缩放或设置原点后包围盒与实际几何不一致的问题;`getFitBounds()` 统一返回当前世界坐标包围盒,点云与 Gaussian 资产同步按当前挂载变换测量。
10
+
11
+ ## 0.6.6
12
+
13
+ ### Fixed
14
+
15
+ - 修复 MuJoCo 物理 Worker 在 library build 中重复内联 `mujoco.wasm`、导致 Worker 体积膨胀和
16
+ 初始化缓慢的问题。Worker 恢复 Vite 原生构建,WASM URL 由主线程传入,并在构建与发布校验中
17
+ 确保每个 Worker 只输出 hashed JS、且不包含内联 WASM。
18
+
5
19
  ## 0.6.5
6
20
 
7
21
  ### Added
package/README.md CHANGED
@@ -276,6 +276,11 @@ export default defineConfig({
276
276
  `assets.ktx2TranscoderPath` 和 `assets.dracoDecoderPath` 仍可覆盖到自有静态目录或 CDN;
277
277
  不配置时无需复制文件。
278
278
 
279
+ MuJoCo 物理 Worker 使用 Vite 原生 Worker 构建,产物是带内容哈希的
280
+ `dist/assets/mujoco-physics-worker-<hash>.js`。`@mujoco/mujoco` 的 Emscripten loader 内置了静态
281
+ `mujoco.wasm` fallback,Viewer 只在 Worker 子构建中移除这段不可达 fallback;WASM URL 始终由主线程
282
+ 通过 init 消息传入,因此 Worker 不包含 WASM 副本。
283
+
279
284
  URDF 和 MJCF 以 MuJoCo WASM 运行,仍由 Viewer 唯一的 scene/runtime/RAF 驱动。多文件模型请传
280
285
  `{ kind: 'files', files, entry }`;`entry` 是包内 URDF 或 MJCF XML 路径。USD 会加载视觉与可可靠映射的物理数据,远端 URL 会以根 USD 文件的完整 URL 作为相对子层、纹理和其他资源的解析基址。
281
286
  普通 `UsdGeomPoints` 由 OpenUSD Probe 独立 stream 为 typed arrays,再创建 Three.js `Points`;支持 authored positions、normals、intensity、constant `widths`、constant/vertex `displayColor` 与 `displayOpacity`。颜色和 opacity 映射到 point material;normals/intensity 保留为 `BufferGeometry` attributes,不用于默认点材质的光照/着色。点云沿 USD prim hierarchy 继承 TRS、visibility 和 purpose,并进入 fit bounds 与 Raycaster 拾取,但不会写入 mesh geometry 或物理 collider。当前 Viewer 不接受变化的 per-point widths,也不将 Gaussian schema 降级为普通点云。