The polyclip-ts library provides the same four functions as this library and was built to fix the bugs in this library. If you look at Issue number 1 in that project, you'll see that the first thing that they did was add dozens of test cases /from this repo/, many of which are still not fixed in this project:
The polyclip-ts library provides the same four functions as this library and was built to fix the bugs in this library. If you look at Issue number 1 in that project, you'll see that the first thing that they did was add dozens of test cases /from this repo/, many of which are still not fixed in this project:
https://github.com/luizbarboza/polyclip-ts/issues/1
There's a good chance that whatever bug you are running into this library are fixed in that library.