@mocanvas/mocanvas · type

TLUiEventHandler

type TLUiEventHandler = (name: string, data: TLUiEventData) => void

What a host supplies as onUiEvent. The name is a key of TLUiEventMap for anything mocanvas reports, and any string for anything an app's own chrome reports.

Mentioned here

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.