adapted components to pinia
This commit is contained in:
@ -38,22 +38,22 @@ export const globalStore = defineStore("globalStore", {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
draw1d() {
|
||||
toggleDraw1d() {
|
||||
this.draw1d = true;
|
||||
},
|
||||
draw2d() {
|
||||
toggleDraw2d() {
|
||||
this.canDraw = true;
|
||||
this.draw2d = true;
|
||||
},
|
||||
draw2dLast() {
|
||||
toggleDraw2dLast() {
|
||||
this.canDraw = true;
|
||||
this.draw2dLast = true;
|
||||
},
|
||||
reset() {
|
||||
this.stop();
|
||||
toggleReset() {
|
||||
this.toggleStop();
|
||||
this.reset = true;
|
||||
},
|
||||
stop() {
|
||||
toggleStop() {
|
||||
this.draw1d = false;
|
||||
this.draw2d = false;
|
||||
this.draw2dLast = false;
|
||||
|
||||
Reference in New Issue
Block a user