From 04b64de1de80e0d2bb38eb1e6b14a30d12e448d4 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:43:29 +0100 Subject: [PATCH] update: use getNodes in minimap instead of directly accessing nodes state val Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/additional-components/MiniMap/MiniMap.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/additional-components/MiniMap/MiniMap.vue b/src/additional-components/MiniMap/MiniMap.vue index de33ab66..7a4e0260 100644 --- a/src/additional-components/MiniMap/MiniMap.vue +++ b/src/additional-components/MiniMap/MiniMap.vue @@ -49,7 +49,7 @@ const viewBB = computed(() => ({ height: store.dimensions.height / store.transform[2], })) const viewBox = computed(() => { - const boundingRect = store.nodes && store.nodes.length ? getBoundsofRects(bb.value, viewBB.value) : viewBB.value + const boundingRect = store.getNodes && store.getNodes.length ? getBoundsofRects(bb.value, viewBB.value) : viewBB.value const scaledWidth = boundingRect.width / elementWidth const scaledHeight = boundingRect.height / elementHeight const viewScale = Math.max(scaledWidth, scaledHeight) @@ -93,8 +93,8 @@ export default { >