test load picture on canvas

This commit is contained in:
2022-12-06 17:41:32 +01:00
parent 83c14b8001
commit 6bd75ba840
5 changed files with 75 additions and 11 deletions

View File

@ -32,8 +32,10 @@ export const globalStore = defineStore("globalStore", {
draw1d: false,
draw2d: false,
draw2dLast: false,
draw2dpicture: false,
reset: false,
canDraw: true,
picture: null,
};
},
actions: {
@ -58,6 +60,12 @@ export const globalStore = defineStore("globalStore", {
this.canDraw = true;
this.draw2dLast = true;
},
toggle2dDrawFromPicture() {
console.log("toggleDraw2dFromPicture");
this.toggleStop();
this.canDraw = true;
this.draw2dpicture = true;
},
toggleReset() {
this.toggleStop();
this.reset = true;
@ -66,6 +74,7 @@ export const globalStore = defineStore("globalStore", {
this.draw1d = false;
this.draw2d = false;
this.draw2dLast = false;
this.draw2dpicture = false;
this.canDraw = false;
},
},