missing stop. toggles
This commit is contained in:
parent
89c2a79337
commit
cc2c002a4a
@ -164,13 +164,14 @@
|
|||||||
);
|
);
|
||||||
const newBoard = picToBoard(resized.data, store.board);
|
const newBoard = picToBoard(resized.data, store.board);
|
||||||
store.board.grid = Object.freeze(newBoard);
|
store.board.grid = Object.freeze(newBoard);
|
||||||
|
store.toggleStop();
|
||||||
};
|
};
|
||||||
|
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
store.toggleStop();
|
store.toggleStop();
|
||||||
store.board.grid = null;
|
store.board.grid = null;
|
||||||
store.renderer.reset();
|
store.renderer.reset();
|
||||||
store.reset = false;
|
store.toggleReset();
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
@ -66,32 +66,32 @@ export const globalStore = defineStore("globalStore", {
|
|||||||
toggleDraw1d() {
|
toggleDraw1d() {
|
||||||
this.setActiveSubMenu("");
|
this.setActiveSubMenu("");
|
||||||
this.setMainMenu(false);
|
this.setMainMenu(false);
|
||||||
this.draw1d = true;
|
this.draw1d = !this.draw1d;
|
||||||
},
|
},
|
||||||
toggleDraw2d() {
|
toggleDraw2d() {
|
||||||
this.setActiveSubMenu("");
|
this.setActiveSubMenu("");
|
||||||
this.lastAction = "draw2d";
|
this.lastAction = "draw2d";
|
||||||
this.setMainMenu(false);
|
this.setMainMenu(false);
|
||||||
this.toggleStop();
|
this.toggleStop();
|
||||||
this.canDraw = true;
|
this.canDraw = !this.canDraw;
|
||||||
this.draw2d = true;
|
this.draw2d = !this.draw2d;
|
||||||
},
|
},
|
||||||
toggleDraw2dLast() {
|
toggleDraw2dLast() {
|
||||||
this.setActiveSubMenu("");
|
this.setActiveSubMenu("");
|
||||||
this.lastAction = "drawfromlast";
|
this.lastAction = "drawfromlast";
|
||||||
this.setMainMenu(false);
|
this.setMainMenu(false);
|
||||||
this.toggleStop();
|
this.toggleStop();
|
||||||
this.canDraw = true;
|
this.canDraw = !this.canDraw;
|
||||||
this.draw2dLast = true;
|
this.draw2dLast = !this.draw2dLast;
|
||||||
},
|
},
|
||||||
toggle2dDrawFromPicture() {
|
toggle2dDrawFromPicture() {
|
||||||
this.toggleStop();
|
this.toggleStop();
|
||||||
this.canDraw = true;
|
this.canDraw = !this.canDraw;
|
||||||
this.draw2dpicture = true;
|
this.draw2dpicture = !this.draw2dpicture;
|
||||||
},
|
},
|
||||||
toggleReset() {
|
toggleReset() {
|
||||||
this.toggleStop();
|
this.toggleStop();
|
||||||
this.reset = true;
|
this.reset = !this.reset;
|
||||||
},
|
},
|
||||||
toggleStop() {
|
toggleStop() {
|
||||||
this.draw1d = false;
|
this.draw1d = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user