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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 18:00:54

问题


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?

回答1:


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.



来源:https://stackoverflow.com/questions/14421128/how-can-i-make-rectangle-selection-on-multiple-nodes-with-graph-dracula

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!