MCPcopy
hub / github.com/midrender/revideo / parseSVG

Method parseSVG

packages/2d/src/lib/components/SVG.ts:197–199  ·  view source on GitHub ↗

* Convert an SVG string to `SVGDocument`. * @param svg - An SVG string to be parsed.

(svg: string)

Source from the content-addressed store, hash-verified

195 * @param svg - An SVG string to be parsed.
196 */
197 protected parseSVG(svg: string): SVGDocument {
198 return this.buildDocument(SVG.parseSVGData(svg));
199 }
200
201 /**
202 * Create a tweening list to tween between two SVG nodes.

Callers 2

tweenSvgMethod · 0.95
documentMethod · 0.95

Calls 2

buildDocumentMethod · 0.95
parseSVGDataMethod · 0.80

Tested by

no test coverage detected