|
|
@@ -295,9 +295,11 @@ const setMapHandler = async (config: { url: string; size: Size }) => {
|
|
|
const needScreenshot = ref<false | number>(false);
|
|
|
const coverSetting = computed(() => {
|
|
|
const cover = draw.value?.store.items.find((item) => item.key === tableCoverKey);
|
|
|
- return cover?.userData as
|
|
|
+ const data = cover?.userData as
|
|
|
| { showScale: boolean; showViewportLabelLine?: boolean; scale: number }
|
|
|
| undefined;
|
|
|
+
|
|
|
+ return data;
|
|
|
});
|
|
|
|
|
|
let setOrigin: (canvas: HTMLCanvasElement) => void;
|
|
|
@@ -437,6 +439,7 @@ const setCover = (paperKey: PaperKey, draw: Draw) => {
|
|
|
};
|
|
|
}
|
|
|
text.disableDelete = true;
|
|
|
+ text.disableCopy = true;
|
|
|
|
|
|
const coverQue = computed(() => draw.store.getItem("image", cover.id));
|
|
|
const coverTexQue = computed(() => draw.store.getItem("text", text.id));
|
|
|
@@ -480,10 +483,13 @@ const setCover = (paperKey: PaperKey, draw: Draw) => {
|
|
|
{
|
|
|
label: ui18n.t("sys.hide"),
|
|
|
handler() {
|
|
|
- draw.store.setItem("text", {
|
|
|
- value: { ...tex, hide: true },
|
|
|
- id: tex.id,
|
|
|
- });
|
|
|
+ if (coverSetting.value) {
|
|
|
+ coverSetting.value.showScale = false;
|
|
|
+ draw.store.setItem("image", {
|
|
|
+ id: cover.id,
|
|
|
+ value: cover,
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
])
|
|
|
@@ -661,6 +667,7 @@ const compass = computed(
|
|
|
);
|
|
|
watch(compass, (compass, _, onCleanup) => {
|
|
|
if (!compass || !draw.value) return;
|
|
|
+ compass.disableCopy = true;
|
|
|
const mountMenus = draw.value.mountFilter;
|
|
|
const menusFilter = draw.value.menusFilter;
|
|
|
const quits = [
|