This interface serves as a callback for HierarchicLayoutCore after the layering and sequencing phases.
Inheritance Hierarchy
IPortConstraintOptimizer
Remarks
Implementations of this interface may modify the port constraint information via setTemporaryPortConstraint.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.IPortConstraintOptimizer
Methods
optimizeAfterLayering
(graph: LayoutGraph, layers: ILayers, ldp: ILayoutDataProvider, itemFactory: IItemFactory)Assigns new temporary port constraints after the layering information has been determined.
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
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing information about the elements
- itemFactory - IItemFactory
- the IItemFactory to set the temporary port constraints with
See Also
optimizeAfterSequencing
(graph: LayoutGraph, layers: ILayers, ldp: ILayoutDataProvider, itemFactory: IItemFactory)Assigns new temporary port constraints after the sequence of the nodes has been determined.
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
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing information about the elements
- itemFactory - IItemFactory
- the IItemFactory to set the temporary port constraints with