more anonymous default exports
This commit is contained in:
parent
31ee11fbf2
commit
75306742c5
7 changed files with 7 additions and 7 deletions
|
@ -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" },
|
||||
|
|
|
@ -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[] = [];
|
||||
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue