Specifies constants that define actions that change the viewport of a CanvasComponent.
Remarks
Type Details
- yFiles module
- view
Constants
Changing the viewport via autoScrollOnBounds should be animated.
Changing the viewport via ensureVisible should be animated.
Remarks
- PASTE: paste command
- DUPLICATE: duplicate command
- MOVE_LEFT: move left command
- MOVE_RIGHT: move right command
- MOVE_UP: move up command
- MOVE_DOWN: move down command
- ensureVisible: starting label editing
Changing the viewport via FIT_CONTENT or FIT_GRAPH_BOUNDS should be animated.
Scrolling the viewport via mouse wheel should be animated.
Changing the zoom of the viewport via mouse wheel should be animated.
Scrolling the viewport by changing the scroll bar values should be animated.
Scrolling the viewport via SCROLL_PAGE_UP, SCROLL_PAGE_DOWN, SCROLL_PAGE_LEFT, or SCROLL_PAGE_RIGHT should be animated.
Changing the zoom of the viewport via ZOOM, INCREASE_ZOOM, DECREASE_ZOOM, ZOOM_TO_CURRENT_ITEM, or ZOOM_TO_SELECTION should be animated.
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - ViewportChanges
- The value to convert to an enum constant.
Returns
- ↪ViewportChanges
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - ViewportChanges
- 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.