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-editor
- yfiles-umd modules
- view-editor, view-table, view
- Legacy UMD name
- yfiles.input.Visualization
See Also
Constants
A dummy 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.
See Also
A primitive visualization is displayed during the gesture.
Remarks
The unchanged original is still visible during the gesture.
See Also
The item is changed directly during the gesture.
Remarks
This options 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 best be avoided.
See Also
No preview during the gesture, although some sort of visual feedback may be present.
Static Methods
Converts the argument to Visualization.
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 Visualization.
Returns
- ↪Visualization
- Either
value
if it is already a Visualization or an appropriate converted value.