@mocanvas/mocanvas · interface

TldrawImageProps

interface TldrawImageProps

A 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?: string

Accessible description of the drawing. Empty marks it decorative.

background?: boolean

Paint the theme's background behind the shapes.

bindingUtils?: readonly BindingUtilConstructor[]

Extra binding utils beyond the defaults.

className?: string
darkMode?: boolean

Render with the dark theme.

padding?: number

Page units of padding around the shapes.

pageId?: string

Which 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: EditorStoreSnapshot

The document to draw.

style?: CSSProperties
user?: CurrentUser

Owns 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.