MCPcopy
hub / github.com/vercel/next.js / toString

Method toString

packages/next/src/compiled/@vercel/og/index.node.js:20981–20992  ·  view source on GitHub ↗

* Output usvg-simplified SVG string * @returns {string}

()

Source from the content-addressed store, hash-verified

20979 * @returns {string}
20980 */
20981 toString() {
20982 try {
20983 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
20984 wasm.resvg_toString(retptr, this.ptr);
20985 var r0 = getInt32Memory0()[retptr / 4 + 0];
20986 var r1 = getInt32Memory0()[retptr / 4 + 1];
20987 return getStringFromWasm0(r0, r1);
20988 } finally {
20989 wasm.__wbindgen_add_to_stack_pointer(16);
20990 wasm.__wbindgen_free(r0, r1);
20991 }
20992 }
20993 /**
20994 * Calculate a maximum bounding box of all visible elements in this SVG.
20995 *

Callers 13

index.node.jsFile · 0.45
oAFunction · 0.45
ZAFunction · 0.45
FIFunction · 0.45
BAFunction · 0.45
jAFunction · 0.45
PiFunction · 0.45
cQFunction · 0.45
CsFunction · 0.45
ZtFunction · 0.45
BlFunction · 0.45
trFunction · 0.45

Calls 2

getInt32Memory0Function · 0.70
getStringFromWasm0Function · 0.70

Tested by

no test coverage detected