tremble 2 gadi atpakaļ
vecāks
revīzija
79bd465f58

+ 0 - 1
src/sdk/QJKanKan/modules/Tags.js

@@ -60,7 +60,6 @@ export default class Tags extends Emiter {
       // let atv = this.app.krpanoDom.get("curscreen_atv");
       // krpano.call("screentosphere(curscreen_x, curscreen_y, curscreen_ath, curscreen_atv);");
       const hotspot = convertJQHotspot(param);
-      if (!hotspot) return;
       // debugger;
       const hotspotStyle = Object.values(hotspot.style);
       const hotspotString = hotspotStyle.join('|');

+ 5 - 1
src/sdk/QJKanKan/modules/hotspot.js

@@ -48,6 +48,10 @@ const convertBaseStyle = (dest, origin) => {
         if (origin && origin.titleDisplayMode == "hover") {
             dest.visible = 2
         }
+        if ('visible' in origin && typeof origin.visible == "boolean") {
+            dest.visible = origin.visible ? 0 : 1
+            dest.style.position = "top"
+        }
         dest.style.borderColor = '';
         dest.style.fillColor = 'rgba(0,0,0,0.8)';
         dest.style.textColor = 'rgba(255,255,255,1)';
@@ -145,7 +149,7 @@ export const convertJQHotspot = (origin) => {
         case 'personalized_tag':
             return coverpersonalizedTag(origin);
         default:
-            return false;
+            return coverSystemIconPart(origin);
     }
 }