C

FixedSubtreePlacer

A FixedSubtreePlacer keeps the current position of the subtrees and routes the edges.

Remarks

The children of local root nodes are not moved. The ISubtreePlacer just merges their rotated shapes and routes the edges.

This ISubtreePlacer may be useful if a local root node does not have any children or you want to place them manually.

Members

No filters for this type

Constructors

Creates a new LeftRightSubtreePlacer instance.

Parameters

Properties

Gets the modification matrix that defines the direction of the subtree.
conversionfinal

Property Value

the modification matrix

Default Value

The default value is: SubtreeTransform.NONE

Methods

Creates an edge comparison which takes the initial coordinates of the nodes into account.
This comparison defines the order of the outgoing edges of a node before the actual placement of the node's subtree is calculated.
final

Return Value

function(LayoutEdge, LayoutEdge): number
the comparison for the edges
Function Details
Encapsulates a method that compares two objects.
Parameters
x: LayoutEdge
The first object to compare.
y: T
The second object to compare.
Return Value
number
An integer value which is <0 if x is less than y, 0 if x is equal to y, or >0 if x is greater than y
final

Parameters

treeLayout: TreeLayout
graph: LayoutGraph
currentRoot: LayoutNode

Return Value

final

Parameters

localRoot: LayoutNode
connectorMap: IMapper<LayoutNode, ParentConnectorDirection>
final

Parameters

nodeShapeProvider: IMapper<LayoutNode, SubtreeShape>
subtreeShapeProvider: IMapper<LayoutNode, SubtreeShape>
graph: LayoutGraph
localRoot: LayoutNode
parentConnectorDirection: ParentConnectorDirection

Return Value