* Convert `SVGDocumentData` to `SVGDocument`. * @param data - `SVGDocumentData` to convert.
(data: SVGDocumentData)
| 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`. |