Table of contents

Public class

Signature
class ZoomTool extends StateNode {}
References

StateNode

Source

packages/tldraw/src/lib/tools/ZoomTool/ZoomTool.ts


Properties

children

Public static property

Signature
static children: () => (typeof Idle | typeof Pointing | typeof ZoomBrushing)[]

id

Public static property

Signature
static id: string

info

Public property

Signature
info: TLPointerEventInfo & {
  onInteractionEnd?: string | undefined
}
References

TLPointerEventInfo


initial

Public static property

Signature
static initial: string

onEnter

Public property

Signature
onEnter: (
  info: TLPointerEventInfo & {
    onInteractionEnd: string
  }
) => void
References

TLPointerEventInfo


onExit

Public property

Signature
onExit: () => void

onInterrupt

Public property

Signature
onInterrupt: TLInterruptEvent
References

TLInterruptEvent


onKeyDown

Public property

Signature
onKeyDown: TLKeyboardEvent | undefined
References

TLKeyboardEvent


onKeyUp

Public property

Signature
onKeyUp: TLKeyboardEvent
References

TLKeyboardEvent


ZoomToFitMenuItemZoomToSelectionMenuItem