benfred/venn.js

Rounding error and exception thrown

jonnyrobbie opened this issue · 1 comments

If your json data contains size elements, which are expressed as an array of length one, sometimes the algorithm throws an exception when it expected zero, but got extremely small, but non-zero value.

Reproducible json is attached.
test2.json.zip

I have created a pull request for this issue #132