Skip to Content

Function: initResvgWasm()

function initResvgWasm(wasm: ResvgWasmInput): Promise<void>;

Initialize browser PNG rasterization with resvg WebAssembly.

SVG conversion and editor sessions do not require this initialization.

Parameters

wasm

ResvgWasmInput

WebAssembly bytes or a fetched Response.

Returns

Promise<void>

A promise that resolves after initialization.