NodeLayoutData

The result of the layout algorithm that provides all the necessary information to place the nodes and their handles, and arrange the labels. This information will be stored in the data.yData of each node.

Props

NameDescriptionType
labelBoxes
The layout information about the labels of a node or an edge. This information will be used by the NodeLabel component.
LabelBox[]
sourceHandles
The id, the location and the side of the handle on the source node of the edge. This information will be used by the MultiHandleNode to arrange the node handles.
{
id: string
location: { x: number; y: number }
position: Position
}
targetHandles
The id, the location and the side of the handle on the target node of the edge. This information will be used by the MultiHandleNode to arrange the node handles.
{
id: string
location: { x: number; y: number }
position: Position
}