fix(types): edge text type

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-22 21:38:31 +01:00
parent 0b57ee167e
commit 0dd5ed7836
8 changed files with 24 additions and 25 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ export interface MiniMapNodeProps {
}
export interface EdgeTextProps {
x?: number
y?: number
x: number
y: number
label?:
| string
| {
+2 -2
View File
@@ -15,8 +15,8 @@ export interface Edge<T = any> {
label?:
| string
| {
component: DefineComponent<EdgeTextProps> | any
props?: EdgeTextProps | any
component: any
props?: EdgeTextProps
}
labelStyle?: any
labelShowBg?: boolean