From 75306742c50ea1d521e24e6d02750d916ad1e864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 24 Jan 2023 23:19:25 +0000 Subject: [PATCH] more anonymous default exports --- ui/src/components/DoorMapEditor.vue | 2 +- ui/src/components/door_map/DoorChooser.vue | 2 +- ui/src/components/door_map/DoorPlacer.vue | 2 +- ui/src/components/rects/Rect.vue | 2 +- ui/src/components/rects/RectPad.vue | 2 +- ui/src/components/rects/RectText.vue | 2 +- ui/src/components/rects/ThouCanvas.vue | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index 607fef6..70de29d 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -44,7 +44,7 @@ type Step = { DoorChooser, }, }) -export default class DoorMapEditor extends Vue { +export default class extends Vue { private readonly steps: Step[] = [ { label: "Platzieren", icon: "fa-solid fa-crosshairs" }, { label: "Ordnen", icon: "fa-solid fa-list-ol" }, diff --git a/ui/src/components/door_map/DoorChooser.vue b/ui/src/components/door_map/DoorChooser.vue index 8193d95..e7dd845 100644 --- a/ui/src/components/door_map/DoorChooser.vue +++ b/ui/src/components/door_map/DoorChooser.vue @@ -45,7 +45,7 @@ import RectText from "../rects/RectText.vue"; }, emits: ["update:rectangles"], }) -export default class DoorChooser extends Vue { +export default class extends Vue { private rectangles!: Rectangle[]; private rectangles_chosen: Rectangle[] = []; diff --git a/ui/src/components/door_map/DoorPlacer.vue b/ui/src/components/door_map/DoorPlacer.vue index 514d430..f46de9a 100644 --- a/ui/src/components/door_map/DoorPlacer.vue +++ b/ui/src/components/door_map/DoorPlacer.vue @@ -28,7 +28,7 @@ import RectPad from "../rects/RectPad.vue"; }, emits: ["update:rectangles"], }) -export default class DoorPlacer extends Vue { +export default class extends Vue { private rectangles!: Rectangle[]; declare $refs: { diff --git a/ui/src/components/rects/Rect.vue b/ui/src/components/rects/Rect.vue index 11dc798..0301144 100644 --- a/ui/src/components/rects/Rect.vue +++ b/ui/src/components/rects/Rect.vue @@ -21,7 +21,7 @@ import { Rectangle } from "./rectangles"; rectangle: Rectangle, }, }) -export default class Rect extends Vue { +export default class extends Vue { private focused!: boolean; private rectangle!: Rectangle; } diff --git a/ui/src/components/rects/RectPad.vue b/ui/src/components/rects/RectPad.vue index 92b71c7..a0c78af 100644 --- a/ui/src/components/rects/RectPad.vue +++ b/ui/src/components/rects/RectPad.vue @@ -33,7 +33,7 @@ import Rect from "./Rect.vue"; Rect, }, }) -export default class RectPad extends Vue { +export default class extends Vue { private readonly min_rect_area = 300; private drawing = false; private preview_corner1 = new Vector2D(); diff --git a/ui/src/components/rects/RectText.vue b/ui/src/components/rects/RectText.vue index 8a3c834..ce31bdd 100644 --- a/ui/src/components/rects/RectText.vue +++ b/ui/src/components/rects/RectText.vue @@ -20,7 +20,7 @@ import { Rectangle, Vector2D } from "./rectangles"; text: String, }, }) -export default class RectText extends Vue { +export default class extends Vue { private rectangle!: Rectangle; private text!: string; private refreshKey = 0; diff --git a/ui/src/components/rects/ThouCanvas.vue b/ui/src/components/rects/ThouCanvas.vue index cf6d138..a1aa013 100644 --- a/ui/src/components/rects/ThouCanvas.vue +++ b/ui/src/components/rects/ThouCanvas.vue @@ -55,7 +55,7 @@ function mouse_event_validator(event: object, point: object): boolean { dblclick: mouse_event_validator, }, }) -export default class ThouCanvas extends Vue { +export default class extends Vue { private transform_mouse_event(event: MouseEvent) { const point = get_event_thous(event); this.$emit(event.type, event, point);