Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.labeling.OptimizationStrategy
See Also
Constants
An optimization strategy aiming at a good balance between the available optimization options.
An optimization strategy that especially reduces overlaps between labels and edges.
An optimization strategy that especially reduces overlaps between labels.
An optimization strategy that especially reduces overlaps between labels and nodes as well as labels and node halos.
An optimization strategy that especially reduces overlaps of labels and the PartitionGrid.
Remarks
This strategy tries to avoid label positions that intersect with the grid lines themselves, and to a lesser case the insets of the grid. Placement completely outside of the grid bounds is also avoided more strictly. Note that this optimization relies on the original positions of the RowDescriptor and ColumnDescriptor. If the labeling algorithm is used standalone and a previous layout run has modified the partition grid, the original values may be out of date and the computed values need to be written back manually.
See Also
An optimization strategy that mainly tries to satisfy the preferences described by a PreferredPlacementDescriptor associated with edge labels.
Static Methods
Converts the argument to OptimizationStrategy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - OptimizationStrategy
- The value to convert to OptimizationStrategy.
Returns
- ↪OptimizationStrategy
- Either
value
if it is already a OptimizationStrategy or an appropriate converted value.