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