Deserializer of SVG source data to JSCAD geometries.
- Source:
- See:
-
- README for supported conversion of SVG elements.
Example
const { deserializer, extension } = require('@jscad/svg-deserializer')
Methods
(static) deserialize(options, input) → {Array|String}
- Source:
- See:
Deserialize the given SVG source into either a script or an array of geometries
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | options used during deserializing, REQUIRED Properties
|
|||||||||||||||||||||||||||||||||||||||||||||
input |
string | SVG source data |
Returns:
either an array of objects (geometry) or a string (script)
- Type
- Array | String