@mocanvas/editor · interface
interface EditorEventsThis 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) => voidframe: (info: {mount: () => voidThe editor is on screen. A host emits this once its container is attached;
Editor.getIsMounted() is derived from it.
tick: (elapsed: number) => voidunmount: () => voidThe 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: () => voidmocanvas 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.