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