@d5techs/3dgs-lib 1.4.4 → 1.4.5

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
@@ -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;