@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.cjs
CHANGED
|
@@ -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
|
-
|
|
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;
|