@mocanvas/editor · type

TLInterruptEvent

type TLInterruptEvent = (info: InterruptEventInfo) => void

Called when something outside the tool takes over: a window blur, a programmatic tool change, a store reset. Distinct from cancel, which the person asked for.

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.