@mocanvas/editor · function

Canvas

declare function Canvas(props: CanvasProps): react.JSX.Element

The canvas: a WebGL2 surface driven by the engine, a DOM overlay for shapes that render through ShapeUtil.component, a 2D canvas overlay for shape indicators, and an SVG layer for the selection handles, snap lines, the brush — and for any util still on the deprecated indicator() hook.

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.