the-graph icon indicating copy to clipboard operation
the-graph copied to clipboard

bump nodes while dragging

Open forresto opened this issue 11 years ago • 2 comments

With some simple physics, you could drag a node between two adjacent nodes, and it would bump them out of the way a bit. Everything would go back to the original positions if you don't leave the node there.

forresto avatar Aug 19 '14 17:08 forresto

It's not nodes, but feels pretty close to what you're describing : https://www.youtube.com/watch?v=p7NYgqG0CQ8

If you're ever interested in the implementation : https://github.com/djdeath/noflo-clutter/blob/master/components/WindowOverlapping.coffee The idea is to generate trees of nodes around you (top/bottom/left/right). These trees contains the dependencies of things relatively one to another. So when you move a node, you move the top/bottom/left/right trees relatively.

djdeath avatar Sep 09 '14 20:09 djdeath

It is! Nice.

forresto avatar Sep 09 '14 20:09 forresto