E

ViewportChanges
flags

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

All viewport changes should be animated.
Changing the viewport via autoScrollOnBounds should be animated.
Changing the viewport via ensureVisible should be animated.
The ensureVisible method is triggered by
static
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.
None of the viewport changes 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.
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.
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.