modern-pdf-lib / parseSvg
Function: parseSvg()
parseSvg(
svgString):SvgElement
Defined in: src/assets/svg/svgParser.ts:864
Parse an SVG string into an SvgElement tree.
The returned element represents the root <svg> element (or a synthetic root if the input contains multiple top-level elements).
Parameters
svgString
string