|
@@ -19,13 +19,12 @@ import { ElButton, ElMessage } from "element-plus";
|
|
|
import { useDraw } from "../../../components/container/use-draw.ts";
|
|
import { useDraw } from "../../../components/container/use-draw.ts";
|
|
|
import Header from "../../../components/header/index.vue";
|
|
import Header from "../../../components/header/index.vue";
|
|
|
import { getHeaderActions } from "../../../components/header/actions.ts";
|
|
import { getHeaderActions } from "../../../components/header/actions.ts";
|
|
|
-import { Transform } from "konva/lib/Util";
|
|
|
|
|
import { selectExposeFormat } from "@/example/dialog/expose/index.ts";
|
|
import { selectExposeFormat } from "@/example/dialog/expose/index.ts";
|
|
|
import { grayscaleImage } from "@/utils/dom.ts";
|
|
import { grayscaleImage } from "@/utils/dom.ts";
|
|
|
import saveAs from "@/utils/file-serve.ts";
|
|
import saveAs from "@/utils/file-serve.ts";
|
|
|
import { jsPDF } from "jspdf";
|
|
import { jsPDF } from "jspdf";
|
|
|
import { getImage as getResourceImage } from "@/utils/resource.ts";
|
|
import { getImage as getResourceImage } from "@/utils/resource.ts";
|
|
|
-import { nextTick, onUnmounted } from "vue";
|
|
|
|
|
|
|
+import { onUnmounted } from "vue";
|
|
|
import { tabulationData } from "../../store.ts";
|
|
import { tabulationData } from "../../store.ts";
|
|
|
import { Mode } from "@/constant/mode.ts";
|
|
import { Mode } from "@/constant/mode.ts";
|
|
|
import { overviewId, tabulationId } from "@/example/env.ts";
|
|
import { overviewId, tabulationId } from "@/example/env.ts";
|
|
@@ -33,6 +32,7 @@ import { listener } from "@/utils/event.ts";
|
|
|
import { router } from "../../router.ts";
|
|
import { router } from "../../router.ts";
|
|
|
import { initViewport, paperConfigs } from "@/example/components/slide/actions.ts";
|
|
import { initViewport, paperConfigs } from "@/example/components/slide/actions.ts";
|
|
|
import { asyncTimeout } from "@/utils/shared.ts";
|
|
import { asyncTimeout } from "@/utils/shared.ts";
|
|
|
|
|
+import { Transform } from "konva/lib/Util";
|
|
|
|
|
|
|
|
const props = defineProps<{ title: string }>();
|
|
const props = defineProps<{ title: string }>();
|
|
|
const emit = defineEmits<{ (e: "screenshot", val: boolean): void }>();
|
|
const emit = defineEmits<{ (e: "screenshot", val: boolean): void }>();
|
|
@@ -78,11 +78,11 @@ const actions = [
|
|
|
{
|
|
{
|
|
|
...baseActions.initViewport,
|
|
...baseActions.initViewport,
|
|
|
handler: () => {
|
|
handler: () => {
|
|
|
- // if (import.meta.env.DEV) {
|
|
|
|
|
- // draw.viewer.setViewMat(new Transform());
|
|
|
|
|
- // } else {
|
|
|
|
|
- initViewport(draw, 0.05);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (import.meta.env.DEV) {
|
|
|
|
|
+ draw.viewer.setViewMat(new Transform());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ initViewport(draw, 0.05);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|