E

ViewportChanges
flags

Specifies constants that define actions that change the CanvasComponent.viewport of a CanvasComponent.

Remarks

This enum is used by CanvasComponent.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 CanvasComponent.autoScrollOnBounds should be animated.
Changing the viewport via CanvasComponent.ensureVisible should be animated.
The CanvasComponent.ensureVisible method is triggered by
static
Changing the viewport via Command.FIT_CONTENT or Command.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.

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
conversion
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.