mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 08:13:01 +00:00
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,
|
DoorChooser,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class DoorMapEditor extends Vue {
|
export default class extends Vue {
|
||||||
private readonly steps: Step[] = [
|
private readonly steps: Step[] = [
|
||||||
{ label: "Platzieren", icon: "fa-solid fa-crosshairs" },
|
{ label: "Platzieren", icon: "fa-solid fa-crosshairs" },
|
||||||
{ label: "Ordnen", icon: "fa-solid fa-list-ol" },
|
{ label: "Ordnen", icon: "fa-solid fa-list-ol" },
|
||||||
|
|
|
@ -45,7 +45,7 @@ import RectText from "../rects/RectText.vue";
|
||||||
},
|
},
|
||||||
emits: ["update:rectangles"],
|
emits: ["update:rectangles"],
|
||||||
})
|
})
|
||||||
export default class DoorChooser extends Vue {
|
export default class extends Vue {
|
||||||
private rectangles!: Rectangle[];
|
private rectangles!: Rectangle[];
|
||||||
private rectangles_chosen: Rectangle[] = [];
|
private rectangles_chosen: Rectangle[] = [];
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import RectPad from "../rects/RectPad.vue";
|
||||||
},
|
},
|
||||||
emits: ["update:rectangles"],
|
emits: ["update:rectangles"],
|
||||||
})
|
})
|
||||||
export default class DoorPlacer extends Vue {
|
export default class extends Vue {
|
||||||
private rectangles!: Rectangle[];
|
private rectangles!: Rectangle[];
|
||||||
|
|
||||||
declare $refs: {
|
declare $refs: {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { Rectangle } from "./rectangles";
|
||||||
rectangle: Rectangle,
|
rectangle: Rectangle,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class Rect extends Vue {
|
export default class extends Vue {
|
||||||
private focused!: boolean;
|
private focused!: boolean;
|
||||||
private rectangle!: Rectangle;
|
private rectangle!: Rectangle;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ import Rect from "./Rect.vue";
|
||||||
Rect,
|
Rect,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class RectPad extends Vue {
|
export default class extends Vue {
|
||||||
private readonly min_rect_area = 300;
|
private readonly min_rect_area = 300;
|
||||||
private drawing = false;
|
private drawing = false;
|
||||||
private preview_corner1 = new Vector2D();
|
private preview_corner1 = new Vector2D();
|
||||||
|
|
|
@ -20,7 +20,7 @@ import { Rectangle, Vector2D } from "./rectangles";
|
||||||
text: String,
|
text: String,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class RectText extends Vue {
|
export default class extends Vue {
|
||||||
private rectangle!: Rectangle;
|
private rectangle!: Rectangle;
|
||||||
private text!: string;
|
private text!: string;
|
||||||
private refreshKey = 0;
|
private refreshKey = 0;
|
||||||
|
|
|
@ -55,7 +55,7 @@ function mouse_event_validator(event: object, point: object): boolean {
|
||||||
dblclick: mouse_event_validator,
|
dblclick: mouse_event_validator,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class ThouCanvas extends Vue {
|
export default class extends Vue {
|
||||||
private transform_mouse_event(event: MouseEvent) {
|
private transform_mouse_event(event: MouseEvent) {
|
||||||
const point = get_event_thous(event);
|
const point = get_event_thous(event);
|
||||||
this.$emit(event.type, event, point);
|
this.$emit(event.type, event, point);
|
||||||
|
|
Loading…
Reference in a new issue