It is refactored to use Typescript, uses big integer to solve floating point accuracy causing errors. However it is likely quite a bit slower, unclear how much. Performance testing needed.
Suggest looking at use of setPrecision - luizbarboza/polyclip-ts#5