jaal
jaal copied to clipboard
Limit node locations to visible area
Thank you for creating Jaal! It's very fun :D
Once request I have is this: When I filter edges, nodes the end up disconnected (no incoming/outgoing edegs) tend to "fly out" of the visible area. Right now I need to zoom out to see them again, in the hope I get them all. Is it possible to limit the nodes so that they don't fly out of the visible part of the canvas? Thanks!
To reproduce (I'm using Chrome on OSX):
If you run the Jaal demo code and in the browser filter edges using weight > 90
,
as the filter is set you will see that disconnected nodes get "pushed away", and some of them end up disappearing.
As a user, if I don't notice some have disappeared and zoom out, I will simply not see them (and miss out the notion of how some nodes get disconnected).
An alternative would be some button to set the zoom value so that all nodes are visible.
Thanks!
Hey @guy4261, agree with the issue. In fact, sometimes even these guys wander off the screen (without filter) 😄
Anyways, will have a look at this and come back. Thnx for sharing this!