Skip to main content

ZoomOptions

Options for configuring the zoom behavior of a canvas.

Implements​

Constructors​

new ZoomOptions()​

new ZoomOptions(options): ZoomOptions

Creates a new instance of ZoomOptions.

Parameters​

• options: Partial<IZoomOptions> = {}

The partial options provided by the user.

Returns​

ZoomOptions

Defined in​

options/ZoomOptions.ts:30

Properties​

step​

step: number

The step value for zoom increments.

Implementation of​

IZoomOptions.step

Defined in​

options/ZoomOptions.ts:10


useWheel​

useWheel: boolean

Whether zooming with the mouse wheel is enabled.

Implementation of​

IZoomOptions.useWheel

Defined in​

options/ZoomOptions.ts:15


DefaultOptions​

readonly static DefaultOptions: IZoomOptions

Default zoom options.

Defined in​

options/ZoomOptions.ts:20