Skip to main content

Interface: ZoomControlProps

Props for ZoomControl component.

See

ZoomControl

Properties

PropertyTypeDescription

dock

DockDirection

Dock direction on the canvas viewport.

dockOffsetX?

number

Horizontal offset from the dock direction.

Default

0

dockOffsetY?

number

Vertical offset from the dock direction.

Default

0

showPointerModeToggle?

boolean

Whether to display canvas pointer mode toggle.

In panning mode moving the pointer with pressed main button pans the canvas area unless the Shift is held: in that case it selects the elements instead.

In selection mode the actions are exchanged.

Default

false

See

CanvasApi.pointerMode