venn.js icon indicating copy to clipboard operation
venn.js copied to clipboard

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

Open jonborchardt opened this issue 2 years ago • 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?

jonborchardt avatar May 11 '23 23:05 jonborchardt

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.

jacobmgreer avatar Sep 29 '23 08:09 jacobmgreer

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)"

jacobmgreer avatar Sep 29 '23 08:09 jacobmgreer

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/

jacobmgreer avatar Sep 30 '23 22:09 jacobmgreer

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.

jonborchardt avatar Oct 02 '23 16:10 jonborchardt