documentationfor yFiles for HTML 2.6

PlaceNodesAtBarycenterStage

PlaceNodesAtBarycenterStage temporarily hides the affected nodes, applies the specified core layout algorithm (if any) to the resulting graph and, finally, reinserts the hidden nodes by placing them on the barycenter of their neighbors using the specified node sizes.

Inheritance Hierarchy
LayoutStageBase
PlaceNodesAtBarycenterStage
Implemented Interfaces

Remarks

A possible application for this stage are animated incremental layouts, i.e., if there are new elements, you can first place them near the barycenter of their existing neighbors before starting the animation. Hence, the animation will produce smoother layouts since the new elements "start" from suitable initial positions. If the new elements should be placed on their original coordinates and/or get their original sizes after starting the animation and before calling the core layout, then you can use the GivenCoordinatesStage.

Default Values of Properties

considerGroupingtrueThe grouping structure is considered.
removeBendstrueBends should be removed.

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.PlaceNodesAtBarycenterStage

See Also

Constructors

Properties

Methods

Constants