@mocanvas/editor · interface
interface TLEventMapThe editor-level notifications, by name, as argument tuples.
These are *not* the canvas input events above — they are the things a host
app subscribes to: the document changed, a frame was drawn, the editor
mounted. editor.on(name, handler) is typed against this map.
Properties · 7
change: [info: {The document changed. source says whether this client or a peer did it.
event: [info: EventInfo]A canvas input event was dispatched.
frame: [info: {A frame was rendered.
mount: []The editor's container is on screen.
tick: [elapsed: number]One animation frame elapsed; the argument is milliseconds since the last.
unmount: []The editor's container has gone away. Always paired with a mount.
update: []Something the editor derives from the store changed. Coalesced per batch.
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.