Skip to content

Interface: EdgeProps<Data, CustomEvents, Type> ​

these props are passed to edge components

Type parameters ​

NameType
DataElementData
CustomEvents{}
Typeextends string = string

Hierarchy ​

Table of contents ​

Properties ​

Properties ​

animated ​

• Optional animated: boolean


curvature ​

• Optional curvature: number


data ​

• data: Data


events ​

• events: EdgeEventsOn<CustomEvents>

contextual and custom events of edge


id ​

• id: string


interactionWidth ​

• Optional interactionWidth: number


label ​

• Optional label: string | Object | VNode<RendererNode, RendererElement, { [key: string]: any; }> | Component<EdgeTextProps, any, any, ComputedOptions, MethodOptions>


labelBgBorderRadius ​

• Optional labelBgBorderRadius: number

Label Bg border radius

Inherited from ​

EdgeLabelOptions.labelBgBorderRadius


labelBgPadding ​

• Optional labelBgPadding: [number, number]

Label Bg padding

Inherited from ​

EdgeLabelOptions.labelBgPadding


labelBgStyle ​

• Optional labelBgStyle: CSSProperties

Label Bg styles (CSSProperties)

Inherited from ​

EdgeLabelOptions.labelBgStyle


labelShowBg ​

• Optional labelShowBg: boolean

Show label bg

Inherited from ​

EdgeLabelOptions.labelShowBg


labelStyle ​

• Optional labelStyle: CSSProperties

Label styles (CSSProperties)

Inherited from ​

EdgeLabelOptions.labelStyle


markerEnd ​

• markerEnd: string


markerStart ​

• markerStart: string


selected ​

• Optional selected: boolean


source ​

• source: string


sourceHandleId ​

• Optional sourceHandleId: string


sourceNode ​

• sourceNode: GraphNode<any, any, string>


sourcePosition ​

• sourcePosition: Position


sourceX ​

• sourceX: number

Inherited from ​

EdgePositions.sourceX


sourceY ​

• sourceY: number

Inherited from ​

EdgePositions.sourceY


style ​

• Optional style: CSSProperties


target ​

• target: string


targetHandleId ​

• Optional targetHandleId: string


targetNode ​

• targetNode: GraphNode<any, any, string>


targetPosition ​

• targetPosition: Position


targetX ​

• targetX: number

Inherited from ​

EdgePositions.targetX


targetY ​

• targetY: number

Inherited from ​

EdgePositions.targetY


type ​

• type: Type


updatable ​

• Optional updatable: boolean

Released under the MIT License.