A ITreeLayoutPortAssignment places the ports of edges connecting to the same node.
Inheritance Hierarchy
ITreeLayoutPortAssignment
Remarks
Classes implementing this interface are responsible for the assignment of the edges' ports. ITreeLayoutNodePlacer instances need to obey the currently set ports.
Type Details
- yfiles module
- layout-tree
- yfiles-umd modules
- layout-orthogonal-compact, layout-orthogonal, layout-tree, layout
- Legacy UMD name
- yfiles.tree.IPortAssignment
See Also
Methods
Places the ports of edges connecting to the given node.
Remarks
This method is called by TreeLayout before the actual layout calculation takes place. It assigns both the single incoming edge's target port as well as all source ports of all outgoing child edges.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the graph
- node - YNode
- the node whose adjacent edges' ports should be set
See Also
At the time this method gets invoked, TreeLayout may have reversed some edges in order to normalize the tree structure.