@mocanvas/editor · interface

EditorEvents

interface EditorEvents

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 7

change: (info: {
event: (info: EventInfo) => void
frame: (info: {
mount: () => void

The editor is on screen. A host emits this once its container is attached; Editor.getIsMounted() is derived from it.

tick: (elapsed: number) => void
unmount: () => void

The editor is no longer on screen. Emitted by a host that unmounts an editor it intends to keep, and by Editor.dispose() for one that was mounted — so a listener never sees a mount without a matching unmount.

update: () => void

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.