Enum constants that specify the scope for the OrganicLayout and ClassicOrganicLayout.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.organic.Scope
See Also
Constants
Scope mode indicating that the algorithm should place all nodes of the graph.
Scope mode indicating that the algorithm should place a subset of nodes but may to a certain degree also move nodes that are structurally close to a node from the subset.
Remarks
Nodes that don't belong to the actual subset may be moved if they are structurally close to nodes from the subset, but they will keep their relative positions to the other nodes outside the subset.
The actual subset is determined by a boolean value returned by a IDataProvider registered with key AFFECTED_NODES_DP_KEY.
See Also
Sample Graphs
Scope mode indicating that the algorithm should place a subset of nodes but may to a certain degree also move nodes that are geometrically close to a node from the subset.
Remarks
Nodes that don't belong to the actual subset may be moved if they are geometrically close to nodes from the subset. To measure the geometric distance, the euclidean distance between node bounds is calculated and if a node that is not in the subset has a distance smaller than some threshold, it may be moved. The threshold depends on the specified preferred edge length and minimum node distance of the algorithm. Larger values of these properties increase the threshold.
The actual subset is determined by a boolean value returned by a IDataProvider registered with key AFFECTED_NODES_DP_KEY.
See Also
Sample Graphs
Scope mode indicating that the algorithm should only place a subset of nodes.
Remarks
See Also
Sample Graphs
Static Methods
Converts the argument to OrganicLayoutScope.
Parameters
A map of options to pass to the method.
- value - OrganicLayoutScope
- The value to convert to OrganicLayoutScope.
Returns
- ↪OrganicLayoutScope
- Either
value
if it is already a OrganicLayoutScope or an appropriate converted value.