@d5techs/3dgs-lib 1.4.3 → 1.4.4

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/3dgs-lib.cjs CHANGED
@@ -14377,6 +14377,16 @@ class HotspotManager {
14377
14377
  getHotspotCount() {
14378
14378
  return this.hotspots.length;
14379
14379
  }
14380
+ /**
14381
+ * 更新热点的 placedScale,使 billboard 每帧重建矩阵时使用新值。
14382
+ * 解决编辑器侧通过 setHotspotScale 修改尺寸后,billboard 模式
14383
+ * 仍用旧 placedScale 覆盖的问题。
14384
+ */
14385
+ setHotspotPlacedScale(hotspotIndex, newPlacedScale) {
14386
+ if (hotspotIndex < 0 || hotspotIndex >= this.hotspots.length) return false;
14387
+ this.hotspots[hotspotIndex].placedScale = newPlacedScale;
14388
+ return true;
14389
+ }
14380
14390
  /**
14381
14391
  * 通过 overlay mesh 起始索引找到对应的热点索引
14382
14392
  */
@@ -16726,6 +16736,9 @@ class App {
16726
16736
  getHotspotBillboard(hotspotIndex) {
16727
16737
  return this.hotspotManager.getHotspotBillboard(hotspotIndex);
16728
16738
  }
16739
+ setHotspotPlacedScale(hotspotIndex, newPlacedScale) {
16740
+ return this.hotspotManager.setHotspotPlacedScale(hotspotIndex, newPlacedScale);
16741
+ }
16729
16742
  getHotspotCount() {
16730
16743
  return this.hotspotManager.getHotspotCount();
16731
16744
  }