feat(edges): add arrow head options

This commit is contained in:
moklick
2020-07-14 12:57:12 +02:00
parent 1b3f58486a
commit 0593db289a
13 changed files with 157 additions and 10 deletions
+8
View File
@@ -42,6 +42,11 @@ export interface Node {
sourcePosition?: Position;
}
export enum ArrowHeadType {
Arrow = 'arrow',
ArrowClosed = 'arrowclosed',
}
export interface Edge {
id: ElementId;
type?: string;
@@ -53,6 +58,7 @@ export interface Edge {
labelBgStyle?: CSSProperties;
style?: CSSProperties;
animated?: boolean;
arrowHeadType?: ArrowHeadType;
}
export enum BackgroundVariant {
@@ -82,6 +88,8 @@ export interface EdgeProps {
labelShowBg?: boolean;
labelBgStyle?: CSSProperties;
style?: CSSProperties;
arrowHeadType?: ArrowHeadType;
markerEndId?: string;
}
export interface EdgeBezierProps extends EdgeProps {