MCPcopy
hub / github.com/thx/resvg-js / toString

Method toString

wasm/index.js:355–370  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

353 * @returns {string}
354 */
355 toString() {
356 let deferred1_0;
357 let deferred1_1;
358 try {
359 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
360 wasm.resvg_toString(retptr, this.__wbg_ptr);
361 var r0 = getInt32Memory0()[retptr / 4 + 0];
362 var r1 = getInt32Memory0()[retptr / 4 + 1];
363 deferred1_0 = r0;
364 deferred1_1 = r1;
365 return getStringFromWasm0(r0, r1);
366 } finally {
367 wasm.__wbindgen_add_to_stack_pointer(16);
368 wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
369 }
370 }
371 /**
372 * Calculate a maximum bounding box of all visible elements in this SVG.
373 *

Callers 5

isMuslFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
wasm.spec.tsFile · 0.45
index.spec.tsFile · 0.45

Calls 2

getInt32Memory0Function · 0.70
getStringFromWasm0Function · 0.70

Tested by

no test coverage detected