sameer / svg2gcode

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

Don't Draw Hidden Sections #24

Closed mdiller closed 2 years ago

mdiller commented 2 years ago

This pull request adds a simple snippet of code that doesn't draw any paths or groups of paths that have a "display:none" as their style tag. The specific application/example I have for this is that when you hide a layer in an Inkscape svg, this change means it wont try to draw that layer when you convert it to gcode.