linting and formating

This commit is contained in:
Gator
2022-12-02 17:11:34 +01:00
parent 0556992c3b
commit d7c2d45180
9 changed files with 66 additions and 62 deletions

View File

@ -56,7 +56,7 @@
</template>
<script>
import { mapWritableState } from 'pinia'
import { mapWritableState } from "pinia";
import { globalStore } from "../stores/index.js";
import MenuRow from "./MenuRow.vue";
export default {
@ -65,24 +65,21 @@
MenuRow,
},
computed: {
...mapWritableState(
globalStore,
[
"canvasWidth",
"canvasHeight",
"refreshRate",
"drawingDirection"
]
),
...mapWritableState(globalStore, [
"canvasWidth",
"canvasHeight",
"refreshRate",
"drawingDirection",
]),
},
methods: {
updateCanvasHeight: function (event) {
const elem = event.target;
this.canvasHeight = elem.value
this.canvasHeight = elem.value;
},
updateCanvasWidth: function (event) {
const elem = event.target;
this.canvasWidth = elem.value
this.canvasWidth = elem.value;
},
updateRefreshRate: function (event) {
const elem = event.target;
@ -91,7 +88,7 @@
updateDrawingDirection: function (event) {
const elem = event.target;
const value = elem.checked ? "x" : "y";
this.drawingDirection = value
this.drawingDirection = value;
},
},
};