From d387aceedd6b8064f3dc31d703abafcc0ec2ca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 19 Jan 2023 00:22:01 +0000 Subject: [PATCH] bulma-ify DoorMapEditor --- ui/src/components/DoorMapEditor.vue | 66 +++++++++++++---------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index cf181e3..be404d2 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -1,7 +1,28 @@ @@ -15,46 +36,19 @@ import RectPad from "./rects/RectPad.vue"; }, }) export default class CalendarImage extends Vue { - private resize_observer?: ResizeObserver; - - declare $refs: { - container: HTMLDivElement; - background: HTMLImageElement; - }; - - private on_resize() { - this.$refs.container.style.height = - this.$refs.background.offsetHeight + "px"; - } - - public mounted() { - this.resize_observer = new ResizeObserver(this.on_resize); - this.resize_observer.observe(this.$refs.background); - } - - public unmounted() { - if (this.resize_observer instanceof ResizeObserver) { - this.resize_observer.disconnect(); - delete this.resize_observer; - } - } + private step = 0; } \ No newline at end of file