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