This interface is responsible for the assignment of the x-(sequence) and preliminary y-coordinates of the nodes in a hierarchic layout.
Remarks
Implementations of this interface are used during the drawing phase of HierarchicLayoutCore. They determine preliminary y-coordinates (which may be adjusted during the final edge routing) and the resulting x-coordinates of all elements that are part of the graph during the node placement phase.
The minimum distance between each pair of nodes of the graph is determined by a IDrawingDistanceCalculator instance.
The default implementation used by the HierarchicLayoutCore is SimplexNodePlacer. Custom implementations of IHierarchicLayoutNodePlacer interface can be used for hierarchic layout algorithms using methods nodePlacer or nodePlacer.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.INodePlacer
See Also
Methods
assignLayerCoordinates
(graph: LayoutGraph, layoutDataProvider: ILayoutDataProvider, layers: ILayers)Assigns preliminary y-coordinates for each layer of a hierarchic layout.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layoutDataProvider - ILayoutDataProvider
- the ILayoutDataProvider containing information about the elements
- layers - ILayers
- the ILayers instance that will be calculated by this method
assignSequenceCoordinates
(graph: LayoutGraph, layoutDataProvider: ILayoutDataProvider, layers: ILayers, drawingDistanceCalculator: IDrawingDistanceCalculator)Determines the resulting x-coordinates of a hierarchic layout.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layoutDataProvider - ILayoutDataProvider
- the ILayoutDataProvider containing information about the elements
- layers - ILayers
- the ILayers instance that will be calculated by this method
- drawingDistanceCalculator - IDrawingDistanceCalculator
- the given IDrawingDistanceCalculator instance