HierarchicLayoutDataProvider<TNodeData, TEdgeData>

A provider for individual options per nodes or edges in a HierarchicLayout. It allows for defining a function that provide values for each element.

For more information, see HierarchicLayoutData.

Props

NameDescriptionType
edgeDirectedness?
Provides 0, 1, or -1 for each edge to indicate if it is undirected, in layout direction, or against layout direction.
(edge: TEdgeData) => number
edgeLabelPreferredPlacement?
Provides descriptors for the placement of edge labels.
(
label: LabelData
) => PreferredPlacementDescriptor
edgeThickness?
Provides a numerical value that represents the thickness of an edge.
(edge: TEdgeData) => number
groupNodeInsets?
Provides the insets the group nodes, i.e., a rectangular area like padding in the interior of the node.
(
node: TNodeData
) => Insets
nodeHalos?
Provides halos for nodes, i.e., a rectangular area around a specific node considered during the layout.
(
node: TNodeData
) => NodeHalo
nodeTypes?
Provides types which can influence the ordering of nodes during layout.
(node: TNodeData) => any
sourceGroupIds?
Provides which edges should be grouped at source, i.e., share the beginning of their routes.
(edge: TEdgeData) => any
sourcePortCandidates?
Provides the directions in which an edge can leave its source node.
(
edge: TEdgeData
) => PortDirections[]
targetGroupIds?
Provides which edges should be grouped at target, i.e., share the end of their routes.
(edge: TEdgeData) => any
targetPortCandidates?
Provides the directions in which an edge can enter its target node.
(
edge: TEdgeData
) => PortDirections[]