Skip to content

Edge

Interface representing an edge (connection) between nodes in the flow diagram

T extends DataObject = DataObject

readonly optional computedZIndex: number

ComputedZIndex is computed by the system and should not be set manually. The z-index of the node. This value is set automatically


data: T

The data associated with the edge.


id: string

The unique identifier for the edge.


readonly optional measuredLabels: EdgeLabel[]

MeasuredLabels are computed by the system and should not be set manually. The labels of the edge with computed position and size.


optional points: Point[]

The points of the edge defining the path.


optional routing: EdgeRoutingName

The routing of the edge.


optional routingMode: RoutingMode

The routing mode of the edge. ‘auto’ (default): Points are computed automatically based on routing algorithm ‘manual’: Points are provided by the user and routing algorithm is used to render the path


optional selected: boolean

Whether the edge is selected


source: string

The source node of the edge. If empty string it will use sourcePosition.


optional sourceArrowhead: string

The id of the source arrowhead of the edge.


optional sourcePort: string

The port of the source node.


optional sourcePosition: Point

The position of the edge start.


target: string

The target node of the edge. If empty string it will use targetPosition.


optional targetArrowhead: string

The id of the target arrowhead of the edge.


optional targetPort: string

The port of the target node.


optional targetPosition: Point

The position of the edge end.


optional temporary: boolean

Whether the edge is temporary.


optional type: string

The type of the edge declared in edgeTemplateMap.


optional zOrder: number

The z-order of the edge.