bill 2 dni temu
rodzic
commit
c52ec625d8

+ 5 - 2
src/example/fuse/views/tabulation/overview-viewport.vue

@@ -195,6 +195,8 @@ const updateOrigin = async () => {
       const isIcon = type === "icon" || type === "lineIcon";
       if (!("fixed" in item) && !isIcon) return;
 
+      if (isIcon) return;
+
       item.fixed = false;
       item.fix = true;
       if ("strokeWidth" in item && !("__strokeWidth" in item)) {
@@ -205,7 +207,7 @@ const updateOrigin = async () => {
       }
       if (isIcon) {
         item.strokeWidth =
-          ((item.strokeWidth || iconDefaultStyle.strokeWidth) * viewScale.value!) / 10;
+          ((item.__strokeWidth || iconDefaultStyle.strokeWidth) * viewScale.value!) / 10;
       }
     };
     if (d?.store) {
@@ -263,11 +265,12 @@ watch([coverScale, () => props.showLabelLine], () => {
   position: absolute;
   left: -100vw;
   top: -100vh;
+  visibility: hidden;
+
   // left: 0;
   // top: 0;
   width: 100vw;
   height: 100vh;
   pointer-events: none;
-  visibility: hidden;
 }
 </style>