vasturiano / react-force-graph

React component for 2D, 3D, VR and AR force directed graphs
https://vasturiano.github.io/react-force-graph/example/large-graph/
MIT License
2.19k stars 283 forks source link

Is it possible to incorporate a lasso selection? #480

Open kwjjohnson opened 10 months ago

kwjjohnson commented 10 months ago

I've seen a lasso selection solution incorporated into D3. Wondering if it's possible to incorporate it into react-force-graph-2d. It's an amazing library and appreciate any input. Best Regards!

vasturiano commented 10 months ago

I believe it should be possible, if you overlay an element where you can draw the lasso shape, and then figure out which nodes it encompasses by cross checking their positions. But I haven't seen a specific example that does exactly that.

kwjjohnson commented 10 months ago

Thanks for the input. I'll let you know about any progress...