parametric-svg-parse
A JS-based parser for parametric.svg graphics
Works in node and in browsers.
Install
$ npm install parametric-svg-parse
Use
const parse = ; // In the browser: const domify = ; const svg = ; // …or in node: const svg = document; const ast = ;ast;//» { type: 'ParametricSvgAst',// version: 1,// parameters: [object Set],// defaults: [object Set] }
You can now pass the ast
to parametric-svg-patch.