Skip to content

Commit

Permalink
Add interactions (hover, selection, ...) to match current landscape s…
Browse files Browse the repository at this point in the history
…tate.
  • Loading branch information
abdelfetah18 committed Oct 23, 2023
1 parent 337f381 commit 360e9c6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ export default defineComponent({
const startX: Ref<number> = ref(0);
const startY: Ref<number> = 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);

Expand Down

0 comments on commit 360e9c6

Please sign in to comment.