OrganicLayoutDataProvider<TNodeData, TEdgeData>

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

For more information, see OrganicLayoutData.

Props

NameDescriptionType
edgeLabelPreferredPlacements?
Provides descriptors for the placement of edge labels.
(
label: LabelData
) => EdgeLabelPreferredPlacement
groupNodePadding?
Provides the paddings for the group nodes, i.e., a rectangular area like padding in the interior of the node.
(
node: TNodeData
) => Insets
minimumEdgeLengths?
Provides the minimal length that an edge should have.
(edge: TEdgeData) => number
minimumNodeDistances?
Provides the minimal distance from a node to all other nodes.
(node: TNodeData) => number
nodeMargins?
Provides margins 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
preferredEdgeLengths?
Provides the preferred length for an edge. It is not mandatory but works as a guidance length.
(edge: TEdgeData) => number
scope?
Provides which nodes should be placed.
OrganicScopeDataProvider<TNodeData>