@mocanvas/editor · function

SVGContainer

declare function SVGContainer({ children, className, style, ...rest }: SVGContainerProps): react.JSX.Element

The SVG body of a shape: an <svg> filling the shape's bounds, whose user space is the shape's own local coordinate space, so a <path> drawn at (0, 0) sits at the shape's origin at any pan, zoom or rotation.

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.