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

Method buildDocument

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

* Convert `SVGDocumentData` to `SVGDocument`. * @param data - `SVGDocumentData` to convert.

(data: SVGDocumentData)

Source from the content-addressed store, hash-verified

170 * @param data - `SVGDocumentData` to convert.
171 */
172 protected buildDocument(data: SVGDocumentData): SVGDocument {
173 return {
174 size: data.size,
175 nodes: data.nodes.map(ch => this.buildShape(ch)),
176 };
177 }
178
179 /**
180 * Convert `SVGShapeData` to `SVGShape`.

Callers 1

parseSVGMethod · 0.95

Calls 1

buildShapeMethod · 0.95

Tested by

no test coverage detected