Skip to content

函数: getResvgWasmBytes()

ts
function getResvgWasmBytes(): Promise<ArrayBuffer>;

定义于: index.ts:281

resvg-wasm 字节(Web initWasm 用)。

返回

Promise<ArrayBuffer>

resvg-wasm 字节

抛出

wasm 资源读取或请求失败

示例

ts
import { initWasm } from "@resvg/resvg-wasm";

await initWasm(await getResvgWasmBytes());