refactor(nodes, edges): Add slots to node/edge labels

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 518d12d381
commit d9e0675385
7 changed files with 31 additions and 20 deletions
+7 -2
View File
@@ -74,10 +74,15 @@ export interface MiniMapNodeProps {
export interface EdgeTextProps {
x: number
y: number
label?: string
label?:
| string
| {
component: any
props?: any
}
labelStyle?: CSSProperties
labelShowBg?: boolean
labelBgStyle?: any
labelBgStyle?: CSSProperties
labelBgPadding?: [number, number]
labelBgBorderRadius?: number
}