From 360e9c6a04e7a535c430897fc80ae8adec4a63bb Mon Sep 17 00:00:00 2001 From: abdelfetah18 Date: Mon, 23 Oct 2023 20:08:58 +0100 Subject: [PATCH] Add interactions (hover, selection, ...) to match current landscape state. --- .../primary/landscape-minimap/LandscapeMiniMap.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts b/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts index aaf0e5f9cfa..bbdb7bb237d 100644 --- a/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts +++ b/src/main/webapp/app/module/primary/landscape-minimap/LandscapeMiniMap.component.ts @@ -25,6 +25,11 @@ export default defineComponent({ const startX: Ref = ref(0); const startY: Ref = ref(0); + const observer = new MutationObserver(() => { + minimapHTML.value = removeDataSelectorAttrs(landscapeContainer.outerHTML); + }); + observer.observe(landscapeContainer, { attributes: true, childList: true, subtree: true }); + onMounted(() => { minimapHTML.value = removeDataSelectorAttrs(landscapeContainer.outerHTML);