This interface is responsible for assigning port coordinates to the adjacent edges of each node of the graph.
Inheritance Hierarchy
IPortAllocator
Remarks
IPortAllocator is used by HierarchicLayoutCore after the sequencing phase.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.IPortAllocator
See Also
Methods
assignPorts
(graph: LayoutGraph, layers: ILayers, ldp: ILayoutDataProvider, itemFactory: IItemFactory)Assigns to each edge of the graph a source port and target port coordinate pair.
Remarks
This method is called by HierarchicLayoutCore after the sequencing phase.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layers - ILayers
- the given ILayers instance containing the elements in the layering
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing layering information about the nodes and edges of the graph
- itemFactory - IItemFactory
- the IItemFactory used temporarily for modifying the graph instance