API — Function: render()

Function: render()

function render(source, opts?): Promise<Result<SVGElement, Diagnostic[]>>;

Defined in: index.ts:59

Browser-only: parse SVG string into an SVGElement via DOMParser.

Parameters

source

string

opts?

AllOpts = {}

Returns

Promise<Result<SVGElement, Diagnostic[]>>