pixi-jsFunctions
Function: SVGParser()
> SVGParser(svg, graphicsContext?): GraphicsContext
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/svg/SVGParser.d.ts:24
Internal
Parses an SVG element or string and renders it to a graphics context. Handles both SVG strings and SVG DOM elements as input.
Parameters
svg
string | SVGElement | SVGSVGElement
The SVG content to parse, either as a string or element
graphicsContext?
Optional graphics context to render to
Returns
The graphics context with the SVG rendered into it