Open alex-r-bigelow opened 3 weeks ago
Thank you so much for contributing! Let me know if you have any problems understanding the code. Thorough commenting and explanation of the code is still a TODO unfortunately. I'll look into your reported bugs too.
Thanks for this awesome library!
Just reporting a few cases where very similar paths sometimes succeed, and sometimes fail, in case they're useful.
Note that, in order to actually see these paths on the demo page, tweaking the
viewBox
to be a bit bigger helps (these screenshots use 200x200).I'll look closer at the code and attempt a PR in a bit. My first guess would be that there's a problem related to the SVG arc syntax itself, in that it's impossible to specify a 360-degree circle without breaking it into semicircles; see also: https://stackoverflow.com/a/10477334
Working Correctly
The first path disappears, when the second is shifted slightly
Union not performed, with another position