Options for an SvgContext.

interface SvgContextOptions {
    background?: string;
    strict?: boolean;
}

Properties

Properties

background?: string

What clearRect paints. A canvas clears to transparent, which a document that is appended to cannot do; when the export is opaque the honest stand-in is the background colour. Absent, clearRect paints nothing.

strict?: boolean

Throw on any call the serialiser cannot express. Off, the call is recorded in unsupported and skipped.