@mocanvas/mocanvas · class

ZoomTool

declare class ZoomTool extends StateNode

Click, alt-click or drag a box to move the camera.


Methods · 3

onEnter(info?: {
onExit(): void
returnToOriginatingTool(): void

Go back to whatever tool the user was in, or to select.


Properties · 4

static children: () => StateNodeConstructor[]
static id: string
info: {

The tool the user was in when they reached for zoom, if any.

static initial: string

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.