@mocanvas/editor · interface

GetSvgAsImageOptions

interface GetSvgAsImageOptions

Options for getSvgAsImage.


Properties · 5

height: number

The SVG's logical height in CSS pixels.

pixelRatio?: number

Multiplier on the output's pixel dimensions. Defaults to 2.

quality?: number

Encoder quality for the lossy formats, 0–1.

type?: Exclude<TLExportType, "svg">

Output format. Defaults to "png".

width: number

The SVG's logical width in CSS pixels.

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.