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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user