Specifies constants that define actions that change the viewport of a CanvasComponent.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.ViewportChanges
Constants
Changing the viewport via autoDrag 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
- MOVE_TO_PAGE_UP: move to page up command
- MOVE_TO_PAGE_DOWN: move to page 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, or ZOOM_TO_CURRENT_ITEM should be animated.
Static Methods
Converts the argument to ViewportChanges.
Parameters
A map of options to pass to the method.
- value - ViewportChanges
- The value to convert to ViewportChanges.
Returns
- ↪ViewportChanges
- Either
value
if it is already a ViewportChanges or an appropriate converted value.