@d5techs/3dgs-lib 1.4.4 → 1.4.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/3dgs-lib.cjs CHANGED
@@ -441,7 +441,7 @@ class Camera {
441
441
  // 45度
442
442
  __publicField(this, "aspect", 1);
443
443
  __publicField(this, "near", 0.01);
444
- __publicField(this, "far", 9e3);
444
+ __publicField(this, "far", 1e5);
445
445
  // 矩阵
446
446
  __publicField(this, "viewMatrix", new Float32Array(16));
447
447
  __publicField(this, "projectionMatrix", new Float32Array(16));
@@ -13594,7 +13594,8 @@ class HotspotManager {
13594
13594
  setHotspotLabel(hotspotIndex, text, position = "top", fontSize = 14, visible = true) {
13595
13595
  if (hotspotIndex < 0 || hotspotIndex >= this.hotspots.length) return false;
13596
13596
  const info = this.hotspots[hotspotIndex];
13597
- info.label = { text, position, fontSize, visible };
13597
+ const normalizedPos = String(position).toLowerCase() || "top";
13598
+ info.label = { text, position: normalizedPos, fontSize, visible };
13598
13599
  this.ensureLabelElement(info);
13599
13600
  this.applyLabelStyle(info);
13600
13601
  return true;