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