@mocanvas/editor · function
declare function getInitialMetaForShape(editor: Editor, shape: UnknownShape): UnknownShape["meta"]The meta every newly created shape starts with.
The hook an app uses to stamp provenance onto shapes — who made it, which
campaign it belongs to, which template it came from — without having to
intercept every creation site. With no getInitialMetaForShape configured
this is an empty object.
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.