@mocanvas/editor · type

TLEnterEventHandler

type TLEnterEventHandler<Info = unknown> = (info: Info, from: string) => void

Called as a state node becomes active. info is whatever the transition carried; from is the id of the state being left, so a shared state can behave differently depending on where it was entered from.

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.