documentationfor yFiles for HTML 3.0.0.3

LayoutAnchoringStage

LayoutAnchoringStage anchors the graph on an initial position based on either a single graph item or the alignment of the bounds of several items (but not the positions of the individual items).

Inheritance Hierarchy
LayoutStageBase
LayoutAnchoringStage
Implemented Interfaces

Remarks

The absolute coordinates of the anchor point (the center of the union of the included graph items) are the same before and after invoking the core layout algorithm. However, the relative coordinates of the single items can be altered by the core layout. If you want to fix the absolute coordinates of multiple elements you have to use a suitable layout algorithm instead, e.g., the PartialLayout or OrganicLayout.

Type Details

yFiles module
algorithms
This stage does not alter the layout calculated by the core layout algorithm. It only moves the entire graph as a post-processing step. If a LayoutGrid is present, it will also be shifted accordingly to maintain alignment with the graph. For use cases requiring an incremental layout, where the algorithm should only arrange some items while others remain unchanged (or change only slightly), please refer to the PartialLayout, the HierarchicalLayout (see property fromSketchMode), or the OrganicLayout (see property scope).

Sample Graphs

Constructors

Properties

Methods

Constants