-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set complement and intersection subset areas #23
Comments
Its not supported right now, and its kinda tricky to do in general. The areas might not be contiguous like here with the blue 'A' circle: Interacting with the intersection areas is only possible because I spent some time calculating the area - which required breaking the intersection area down into something that can be translated to a svg path pretty easily. Its not quite as straightforward because of cases like above for what you're asking. It might be possible to do this with svg clipping instead (like in here: https://gist.github.com/mbostock/1067636) though I haven't looked at it that much |
I need this ability as well. I reckon the way to do it is to cheat, just find the correct coloured pixels. I'm going to attempt this this evening. Also, I'm going to only do the simple case where the area is contiguous by forcing the circles to be all positioned concentrically about a common mid-point if you know what I mean! |
Here's my attempt to make all the venn area parts selectable: |
@avnersch Ooh. Very nice. Well done. |
@avnersch Great! Could you please tell me how to assign the size to each venn area part? |
I am a big fan of your project, thanks for the good work. I would like to select and interact with any individual subset areas in the same way as is possible with intersection areas. Does this library already support this? If not is there any plan to implement this in the near future?
I would like to be able to select areas such as A ∖ (B ∪ C), B ∖ (A ∪ C) etc in the example below:
Kind Regards,
Vern
The text was updated successfully, but these errors were encountered: