如何使用图德古拉在多个节点上进行矩形选择? [英] How can I make rectangle selection on multiple nodes with graph dracula?
问题描述
我正在研究一些图形可视化,并且正在使用JavaScript库图德古拉。现在,在这个库中,当我想要移动一个节点时,我必须单击要移动的节点并将其移动到所需的位置(通过拖放操作)。但是,我想要做的是选择更多节点并移动它们。我无法弄清楚如何做到这一点,因为我在JavaScript编程方面经验不足。所以,我的问题是:
- 如何选择多个矩形选择节点并移动
它们? - 如何选择多个节点,例如Ctrl +左键单击并选择更多节点,然后移动它们?
RaphaelJS
。在这种情况下,事情对你来说可能会更容易一些。看来其他人已经问过如何移动RaphaelJS中的元素。 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:
- How can I select multiple nodes with rectangle selection and move them?
- How can I select multiple nodes with, say, Ctrl + left click and select more nodes and then move them?
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.
这篇关于如何使用图德古拉在多个节点上进行矩形选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!