test load picture on canvas
This commit is contained in:
@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user