Compare commits

..

No commits in common. "b77a42956884c18102a95248fd6805ad0831fe65" and "11071a5972de19c426b39addb2d1ae824375edb2" have entirely different histories.

6 changed files with 2837 additions and 1526 deletions

4339
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.10", "vite": "^3.2.4",
"vue": "3.2" "vue": "3.2"
}, },
"devDependencies": { "devDependencies": {

View File

@ -50,7 +50,7 @@
</div> </div>
</template> </template>
<style> <style scope>
: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(store.renderer.width, elem.value); store.renderer.resize(elem.value, store.renderer.width);
}; };
const updateCanvasWidth = (event) => { const updateCanvasWidth = (event) => {

View File

@ -5,10 +5,10 @@
</script> </script>
<template> <template>
<div class="reset-menu"> <div class="form-field">
<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>
.reset-menu { .form-field {
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: true, loop: false,
lastAction: "drawfromlast", lastAction: "drawfromlast",
renderer: new Renderer(), renderer: new Renderer(),
}; };