Compare commits

...

7 Commits

6 changed files with 1528 additions and 2839 deletions

4343
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,10 +12,10 @@
"test": "vitest" "test": "vitest"
}, },
"dependencies": { "dependencies": {
"@vitejs/plugin-vue": "^3.2.0", "@vitejs/plugin-vue": "3.2.0",
"install": "^0.13.0", "install": "0.13.0",
"pinia": "^2.0.27", "pinia": "2.0.27",
"vite": "^3.2.4", "vite": "^3.2.10",
"vue": "3.2" "vue": "3.2"
}, },
"devDependencies": { "devDependencies": {

View File

@ -50,7 +50,7 @@
</div> </div>
</template> </template>
<style scope> <style>
:root { :root {
--dark1: #000000; --dark1: #000000;
--dark2: #333333; --dark2: #333333;

View File

@ -6,7 +6,7 @@
const updateCanvasHeight = (event) => { const updateCanvasHeight = (event) => {
const elem = event.target; const elem = event.target;
store.renderer.resize(elem.value, store.renderer.width); store.renderer.resize(store.renderer.width, elem.value);
}; };
const updateCanvasWidth = (event) => { const updateCanvasWidth = (event) => {

View File

@ -5,10 +5,10 @@
</script> </script>
<template> <template>
<div class="form-field"> <div class="reset-menu">
<div class="form-field"> <div class="form-field">
<label> <label>
Loop loop
<input <input
:value="store.loop" :value="store.loop"
type="checkbox" type="checkbox"
@ -21,7 +21,7 @@
type="button" type="button"
name="next" name="next"
class="next" class="next"
value="Next" value="next"
@click="store.toggleNext()" @click="store.toggleNext()"
/> />
<input <input
@ -42,9 +42,9 @@
</template> </template>
<style scoped> <style scoped>
.form-field { .reset-menu {
display: flex; display: flex;
margin: 5px;
justify-content: flex-end; justify-content: flex-end;
padding: 5px;
} }
</style> </style>

View File

@ -35,7 +35,7 @@ export const globalStore = defineStore("globalStore", {
picture: new Image(), picture: new Image(),
mainMenu: false, mainMenu: false,
activeSubMenu: "", activeSubMenu: "",
loop: false, loop: true,
lastAction: "drawfromlast", lastAction: "drawfromlast",
renderer: new Renderer(), renderer: new Renderer(),
}; };