feat: Extend minimap node type

This commit is contained in:
Braks
2022-04-13 22:48:23 +02:00
parent e178a3ce44
commit 2eacdc9830
2 changed files with 4 additions and 1 deletions
@@ -1,4 +1,3 @@
export { default as MiniMap } from './MiniMap/MiniMap.vue'
export { default as MiniMapNode } from './MiniMap/MiniMapNode.vue'
export { default as Controls } from './Controls/Controls.vue'
export { default as Background } from './Background/Background.vue'
+4
View File
@@ -86,6 +86,10 @@ export interface MiniMapProps<Data = ElementData> {
/** these props are passed to mini map node slots */
export interface MiniMapNodeProps {
id: string
parentNode?: string
selected?: boolean
dragging?: boolean
position: XYPosition
dimensions: Dimensions
borderRadius?: number