documentationfor yFiles for HTML 2.6

IDrawingDistanceCalculator

This interface determines the minimum distances between elements that belong to the same layer.

Inheritance Hierarchy

Remarks

IDrawingDistanceCalculator is implemented by a helper class used by HierarchicLayoutCore during the phase of node placement (i.e. when the final coordinates for all nodes are calculated). IHierarchicLayoutNodePlacer uses instances of this interface to determine the minimum distances between elements that belong to the same layer.

Information about graph elements (i.e. nodes or edges) is given using a ILayoutDataProvider while information about layers is given through ILayer (describes a single layer of the hierarchic layout) or ILayers (manages multiple layers of the hierarchic layout).

Implementations not needed any more should be disposed of.

The default implementation used by the HierarchicLayoutCore is DefaultDrawingDistanceCalculator.

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.hierarchic.IDrawingDistanceCalculator

Methods