SVGnest
SVGnest copied to clipboard
Avoid to fill the holes
Hi all,
let me say, this repo is awesome!! Is there a way to maintain unfilled the holes? Let me show an example:
This is the source:
This is the result:
Thank you in advance
Ps. I can pay a pizza, for a fast work
Greetings from Italy 🇮🇹🍕
ah this is actually not that trivial, I'll have a look when I have some time : ]
Any updates on this issue? It seems that any form of compound paths gets filled with black.
I wanted to give an update on this issue, depending on your use-case this might (or might not) work for you.
If you look in svgparser.js
on line 59
you see the method this.recurse(this.svgRoot, this.splitPath)
. This is a function designed to split up compound paths
. If you comment this line out it should work.
I'm not sure if it has any implications for your implementation but for me this fixed it.