|
@@ -115,23 +115,8 @@ const getStore = async (caseId: number, fileId: number, type: BoardType) => {
|
|
scale: 2,
|
|
scale: 2,
|
|
geoType: "BgImage",
|
|
geoType: "BgImage",
|
|
vectorId: "BgImage8",
|
|
vectorId: "BgImage8",
|
|
- points: [] // {
|
|
|
|
- // "x": 251,
|
|
|
|
- // "y": 140
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "x": 251,
|
|
|
|
- // "y": 795.1999999999999
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "x": 1158.1999999999998,
|
|
|
|
- // "y": 795.1999999999999
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "x": 1158.1999999999998,
|
|
|
|
- // "y": 140
|
|
|
|
- // }
|
|
|
|
- // ]
|
|
|
|
|
|
+ points: []
|
|
|
|
+
|
|
}
|
|
}
|
|
data.floors[0].bgImage = bgImage
|
|
data.floors[0].bgImage = bgImage
|
|
}
|
|
}
|
|
@@ -246,7 +231,7 @@ export const useBoard = (props: Ref<BoardProps | null>) => {
|
|
|
|
|
|
watchEffect((onCleanup) => {
|
|
watchEffect((onCleanup) => {
|
|
if (board.value && state.value.addShape) {
|
|
if (board.value && state.value.addShape) {
|
|
- const cleaup = board.value.readyAddShape(
|
|
|
|
|
|
+ const cleanup = board.value.readyAddShape(
|
|
state.value.addShape,
|
|
state.value.addShape,
|
|
state.value.addData || null,
|
|
state.value.addData || null,
|
|
() => {
|
|
() => {
|
|
@@ -258,7 +243,7 @@ export const useBoard = (props: Ref<BoardProps | null>) => {
|
|
if (ev.key === "Escape") {
|
|
if (ev.key === "Escape") {
|
|
state.value.addShape = null;
|
|
state.value.addShape = null;
|
|
state.value.addData = null;
|
|
state.value.addData = null;
|
|
- cleaup();
|
|
|
|
|
|
+ cleanup();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
document.documentElement.addEventListener("keyup", keyupHandler);
|
|
document.documentElement.addEventListener("keyup", keyupHandler);
|