benfred/venn.js

Is there a way to programmatically get a list of intersections not shown.

Opened this issue · 4 comments

When the layout decides to not make an overlap because the circle does not fit, I would like to tell the user with a little alert. Is this data queryable?

Or would it be possible to generate a table of the displayed intersections? From that it might be easier to highlight a table of intersections not displayed.

I do see in the DOM that it logs with warnings about the intersections not displayed on screen, this might be a way to identify what's not shown. "[Log] WARNING: area AFI1,AFI2,NBR,EBERT,LAFCA,NSFC,NYFCC,NYT not represented on screen (venn.js, line 1737)"

Here is an example of using the warning logs to create a list of the intersections not shown: https://jacobmgreer.github.io/Film-Tracker/VennDiagram/

i would not have thought to overwrite console.log, for the specific need, this is cleaver!

it still seems reasonable for the developers to make this data available.