update(types): Use node/edge component type to define defaults

* import handleprops from types
*

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 947baefa02
commit 212c91107f
3 changed files with 18 additions and 20 deletions
@@ -1,12 +1,10 @@
<script lang="ts" setup>
import { GraphNode, ShapeRendering } from '../../types'
import { ShapeRendering, StringFunc } from '../../types'
import { useVueFlow, useWindow } from '../../composables'
import { getBoundsofRects, getRectOfNodes } from '../../utils'
import type { MiniMapProps } from '../../types/components'
import MiniMapNode from './MiniMapNode.vue'
type StringFunc = (node: GraphNode) => string
const props = withDefaults(defineProps<MiniMapProps>(), {
nodeStrokeColor: '#555',
nodeColor: '#fff',