This interface is used by classes capable of generating a layer assignment.
Remarks
Layer assignment takes place during the first part of the hierarchic layout algorithms. During this phase, each node of the graph is assigned to a layer.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.ILayerer
See Also
HierarchicLayoutCore.layerer,
HierarchicLayout.fixedElementsLayerer,
HierarchicLayout.fromScratchLayerer,
Relevant Classes,
Layer Assignment Options
Methods
Assigns all nodes of the graph to layers and adds them to the ILayers instance.
Remarks
In order to create new layers, factory method insert has to be used.
Information about the nodes is provided by a ILayoutDataProvider. However, positional information (see position and layer) is not available during this 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 ILayers instance that will be filled with the results of the calculation
- ldp - ILayoutDataProvider
- the ILayoutDataProvider used for querying information about the nodes and edges