Specifies constants that define actions that change the viewport of a CanvasComponent.
Remarks
This enum is used by animatedViewportChanges to determine which of these actions should be animated.
Members
No filters for this type
Constants
Changing the viewport via autoScrollOnBounds should be animated.
Changing the viewport via autoScrollOnBounds should be animated.
Changing the viewport via ensureVisible should be animated.
Changing the viewport via ensureVisible should be animated.
The ensureVisible method is triggered by
- 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
static
Changing the viewport via FIT_CONTENT or FIT_GRAPH_BOUNDS should be animated.
Changing the viewport via FIT_CONTENT or FIT_GRAPH_BOUNDS should be animated.
Scrolling the viewport via SCROLL_PAGE_UP, SCROLL_PAGE_DOWN, SCROLL_PAGE_LEFT, or SCROLL_PAGE_RIGHT 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.
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.
Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static
Parameters
- value: ViewportChanges
- The value to convert to an enum constant.
Return Value
- ViewportChanges
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Returns the name of the given enum constant.
static
Parameters
- value: ViewportChanges
- The numeric value of an enum constant.
Return Value
- 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.