C

RemoveOverlapsStageData<TNode, TEdge, TNodeLabel, TEdgeLabel>

Specifies custom data for the RemoveOverlapsStage.
Inheritance Hierarchy

Members

Show:

Constructors

Parameters

Properties

Gets or sets the collection of nodes that are fixed and must not be moved.
The algorithm tries to preserve the mental map and, thus, non-fixed nodes cannot simply pass/jump over the fixed nodes (i.e. fixed nodes restrict the possible movement of non-fixed nodes).
conversionfinal

See Also

API
FIXED_NODE_DATA_KEY
Gets or sets a mapping from nodes to their minimum distances to other nodes around them.

The default minimum distance specified by property minimumNodeDistance will be ignored when specifying individual distances.

Minimum distance values must be greater than 0.

conversionfinal

Examples

Minimum distances for individual nodes can, for example, be defined using a delegate in the following way:
Using a delegate to determine minimum node distances
// Scale the minimum distance around a node by the node size.
// This ensures that larger nodes get more space.
layoutData.minimumNodeDistances = (node) =>
  Math.max(node.layout.width, node.layout.height)

See Also

API
MINIMUM_DISTANCE_DATA_KEY

Methods

Combines this instance with the given layout data.
This keeps the current instance unmodified and instead returns a new instance that dynamically combines the contents of all involved instances.
final

Parameters

data: LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel>
The LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel> to combine this instance with.

Return Value

LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel>
The combined layout data.

See Also

Developer's Guide
API
CompositeLayoutData, GenericLayoutData