Enumeration with different options on how to handle previews during a gesture.
Remarks
Used by some input gestures (e.g. edge relocation and label movement) to determine the way the changed item is visualized during the gesture.
Type Details
- yFiles module
- view
Constants
The item is changed directly during the gesture.
Remarks
This option offers the best visual fidelity and during the gesture everything should be an accurate preview of how things look after finishing it. However, since the actual item is changed, this may cause graph events to be raised during the gesture.
Generally, if you listen to events on IGraph, this option should be best avoided.
A helper item is displayed during the gesture, while the original one is hidden.
Remarks
This option has better compatibility than LIVE since the graph is not changed during the gesture, but may cause visual glitches in some circumstances, especially with items that depend on the one that is currently manipulated. In many cases, however, this option still looks accurate enough.
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Most notably, this method can convert an enum constant's name into the enum constant itself.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - Visualization
- The value to convert to an enum constant.
Returns
- ↪Visualization
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - Visualization
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.