@mocanvas/mocanvas · interface
interface TldrawImagePropsA snapshot, rendered as a static picture.
The point is that it is *not* an editor: no engine, no event handlers, no store subscription. A document listing, a thumbnail grid or a printed report needs the drawing and none of the machinery, and mounting a real editor per thumbnail is what makes those pages unusable.
The snapshot is rendered through the same SVG exporter the file export uses, so a thumbnail and a downloaded file agree.
Properties · 12
alt?: stringAccessible description of the drawing. Empty marks it decorative.
background?: booleanPaint the theme's background behind the shapes.
bindingUtils?: readonly BindingUtilConstructor[]Extra binding utils beyond the defaults.
className?: stringdarkMode?: booleanRender with the dark theme.
padding?: numberPage units of padding around the shapes.
pageId?: stringWhich page to draw. Defaults to the snapshot's current page.
shapeIds?: readonly string[]Draw only these shapes.
shapeUtils?: readonly ShapeUtilConstructor[]Extra shape utils beyond the defaults, for a document with custom shapes.
snapshot: EditorStoreSnapshotThe document to draw.
style?: CSSPropertiesuser?: CurrentUserOwns the preferences the render reads.
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.