HierarchicalLayoutDataProvider<TNodeData, TEdgeData>

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

For more information, see HierarchicalLayoutData.

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
edgeLabelPreferredPlacements?
Provides descriptors for the placement of edge labels.
(
label: LabelData
) => EdgeLabelPreferredPlacement
edgeThickness?
Provides a numerical value that represents the thickness of an edge.
(edge: TEdgeData) => number
groupNodePadding?
Provides the paddings for the group nodes, i.e., a rectangular area like padding in the interior of the node.
(
node: TNodeData
) => Insets
nodeMargins?
Provides margin for nodes, i.e., a rectangular area around a specific node considered during the layout.
(
node: TNodeData
) => NodeMargins
nodeTypes?
Provides types which can influence the ordering of nodes during layout.
(node: TNodeData) => any
ports?
Provides information about how an edge connects to its nodes.
PortDataProvider<TEdgeData>
sourceGroupIds?
Provides which edges should be grouped at source, i.e., share the beginning of their routes.
(edge: TEdgeData) => any
targetGroupIds?
Provides which edges should be grouped at target, i.e., share the end of their routes.
(edge: TEdgeData) => any