@mocanvas/editor · type

TLEventName

type TLEventName = PointerEventName | ClickEventName | KeyboardEventName | TLPinchEventName | "wheel" | "cancel" | "complete" | "interrupt" | "tick"

Every name a dispatched canvas event can carry.

The union a tool switches on. It is deliberately flat rather than nested by category: a state node's handleEvent sees one stream, and grouping the names would only make the switch longer.

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.