sameer / svg2gcode

Convert vector graphics to g-code for pen plotters, laser engravers, and other CNC machines
https://sameer.github.io/svg2gcode
MIT License
241 stars 48 forks source link

Support use/def elements #56

Open sameer opened 5 months ago

sameer commented 5 months ago

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use

These are currently ignored by svg2gcode but could be pretty easily implemented with two pre-iteration passes: (1) extract element IDs needed by uses and (2) extract elements by ID