feat(edge-options): add labelBgPadding #421

This commit is contained in:
moklick
2020-08-11 10:36:22 +02:00
parent 6d651bdc98
commit 6bbc152041
10 changed files with 57 additions and 37 deletions
+4
View File
@@ -62,6 +62,7 @@ export interface Edge {
labelStyle?: CSSProperties;
labelShowBg?: boolean;
labelBgStyle?: CSSProperties;
labelBgPadding?: [number, number];
style?: CSSProperties;
animated?: boolean;
arrowHeadType?: ArrowHeadType;
@@ -96,6 +97,7 @@ export interface EdgeProps {
labelStyle?: CSSProperties;
labelShowBg?: boolean;
labelBgStyle?: CSSProperties;
labelBgPadding?: [number, number];
style?: CSSProperties;
arrowHeadType?: ArrowHeadType;
markerEndId?: string;
@@ -235,6 +237,7 @@ export interface EdgeCompProps {
labelStyle?: CSSProperties;
labelShowBg?: boolean;
labelBgStyle?: CSSProperties;
labelBgPadding?: [number, number];
onClick?: (event: ReactMouseEvent, edge: Edge) => void;
animated?: boolean;
selected?: boolean;
@@ -248,6 +251,7 @@ export interface EdgeTextProps {
labelStyle?: CSSProperties;
labelShowBg?: boolean;
labelBgStyle?: CSSProperties;
labelBgPadding?: [number, number];
}
export type NodePosUpdate = {