Skip to main content

Interface: CenterToOptions

Options for CanvasApi.centerTo method.

Extends

Properties

PropertyTypeDescriptionInherited from

animate?

boolean

True if operation should be animated.

If duration is provided and greater than zero then defaults to true, otherwise it is set to false.

ViewportOptions.animate

duration?

number

Animation duration in milliseconds.

Implicitly sets animate: true if greater than zero.

Default

500

ViewportOptions.duration

scale?

number

Scale to set when changing the viewport.