A FixedSubtreePlacer keeps the current position of the subtrees and routes the edges.
Implements
Inheritance Hierarchy
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.
See Also
Developer's Guide
Members
No filters for this type
Constructors
Creates a new LeftRightSubtreePlacer instance.
Creates a new LeftRightSubtreePlacer instance.
Parameters
Properties
Gets the modification matrix that defines the direction of the subtree.
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.
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
<0ifxis less thany,0ifxis equal toy, or>0ifxis greater thany
final
Parameters
- treeLayout: TreeLayout
- graph: LayoutGraph
- currentRoot: LayoutNode
Return Value
- ISubtreePlacerProcessor | null
determineChildConnectors
(localRoot: LayoutNode, connectorMap: IMapper<LayoutNode, ParentConnectorDirection>)
determineChildConnectors
(localRoot: LayoutNode, connectorMap: IMapper<LayoutNode, ParentConnectorDirection>)final
Parameters
- localRoot: LayoutNode
- connectorMap: IMapper<LayoutNode, ParentConnectorDirection>
final
Parameters
- nodeShapeProvider: IMapper<LayoutNode, SubtreeShape>
- subtreeShapeProvider: IMapper<LayoutNode, SubtreeShape>
- graph: LayoutGraph
- localRoot: LayoutNode
- parentConnectorDirection: ParentConnectorDirection