Skip to content

Commit

Permalink
Merge pull request #7819 from abdelfetah18/minimap-interactions
Browse files Browse the repository at this point in the history
Landscape MiniMap: Add interactions (hover, selection, ...) to match current landscape state
  • Loading branch information
pascalgrimaud authored Oct 24, 2023
2 parents ff23866 + 360e9c6 commit ab30c81
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 ab30c81

Please sign in to comment.