@mocanvas/editor · interface

ContentElementSource

interface ContentElementSource

The half of a shape util this manager needs. Structural, so it is testable without an Editor.


Properties · 2

getContentElement?(shape: UnknownShape): HTMLElement | undefined
onReleaseContentElement?(shape: UnknownShape, element: HTMLElement): void

Mentioned here

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.