adapted components to pinia

This commit is contained in:
2022-12-02 17:10:21 +01:00
parent c316699172
commit 62abbddaea
8 changed files with 310 additions and 324 deletions

View File

@ -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;