From 77d2e01fc0dea8795c8eeec6c13ef8eca21489ca Mon Sep 17 00:00:00 2001
From: Braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Thu, 21 Oct 2021 00:24:59 +0200
Subject: [PATCH] update: types
* Add elements to flowoptions type
* add window interface to custom shims
---
src/additional-components/Background/Background.vue | 4 ++--
src/additional-components/Controls/Controls.vue | 6 +++---
src/additional-components/MiniMap/MiniMap.vue | 10 +++++-----
src/container/Flow/Flow.vue | 5 ++++-
src/custom.d.ts | 3 +++
src/types/types.ts | 5 +++--
6 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/src/additional-components/Background/Background.vue b/src/additional-components/Background/Background.vue
index f0364e08..185bbfc6 100644
--- a/src/additional-components/Background/Background.vue
+++ b/src/additional-components/Background/Background.vue
@@ -1,9 +1,9 @@
diff --git a/src/additional-components/MiniMap/MiniMap.vue b/src/additional-components/MiniMap/MiniMap.vue
index 7261ba61..9e06055d 100644
--- a/src/additional-components/MiniMap/MiniMap.vue
+++ b/src/additional-components/MiniMap/MiniMap.vue
@@ -24,9 +24,8 @@ const props = withDefaults(defineProps(), {
nodeStrokeWidth: 2,
maskColor: 'rgb(240, 242, 243, 0.7)',
})
-const attrs: any = useAttrs()
-declare const window: any
+const attrs: any = useAttrs()
const defaultWidth = 200
const defaultHeight = 150
@@ -67,6 +66,8 @@ const viewBox = computed(() => {
height: viewHeight + offset * 2,
}
})
+
+const nodes = computed(() => store.nodes.filter((node) => !node.isHidden))