Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make rectangle selection on multiple nodes with graph dracula?

I am working on some graph visualizations, and I am using the JavaScript library graph Dracula. Now, with this library, when I want to move a node I have to click the node I want to move and move it on the desired place (with drag and drop). But, what I want to do is to select more nodes and move all of them. I can't figure out how to do this, since I am not so experienced in JavaScript programming. So, my question is:

  1. How can I select multiple nodes with rectangle selection and move them?
  2. How can I select multiple nodes with, say, Ctrl + left click and select more nodes and then move them?
like image 799
Belphegor Avatar asked Jan 20 '13 02:01

Belphegor


1 Answers

By the looks of things, almost all of Dracula's graph rendering is really managed by RaphaelJS.

In which case, things may be quite a bit easier for you. It seems other people have asked how to move elements in RaphaelJS.

like image 184
NT3RP Avatar answered Oct 28 '22 16:10

NT3RP