cytoscape.js禁用抓取和移动节点 [英] cytoscape.js disable grab&moving nodes
问题描述
我在使用cytoscapeJS构建图形网络时遇到问题。
我可以添加节点并处理它们非常简单,但是我无法配置cytospace来禁用拖动/移动节点。
I'm having trouble building a graph network with cytoscapeJS. I can add nodes and handle them which is quite easy, but I'm not able to configure cytospace to disable Dragging/Moving nodes.
我找到了来自某人的JSbin,您可以尝试: http://jsbin.com/vasenatimu/ 2 /编辑?html,js,输出
I have found a JSbin from somebody where you can try: http://jsbin.com/vasenatimu/2/edit?html,js,output
看看 http://js.cytoscape.org 在初始化选项下,我尝试了所有选项,但他们没有解决我的问题(我几乎将所有选项设置为false,我仍然可以抓取并选择节点)。
Have a look at http://js.cytoscape.org under 'Initialisation options', I tried all the options, but they dont solve my problem (I set nearly all options to false and I can still grab and select nodes).
你能帮我解决这个问题吗?
Can you help me with this?
推荐答案
initOptions.autoungrabify:true
或 cy.nodes()。ungrabify()
这篇关于cytoscape.js禁用抓取和移动节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!