我一直在广泛使用cytoscape.js来渲染多个网络。它似乎适用于小型网络,但它失败了较大的网络(173个节点和214个边缘)。
我查看了Firebug控制台,它看起来如下:
TypeError: E._private.edges is undefined
http://localhost/WS/biojs-jmv/biojs/src/main/resources/dependencies/cytoscape/2.0.2/cytoscape.min.js
Line 125
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
http://localhost/WS/biojs-jmv/biojs/src/main/resources/dependencies/cytoscape/2.0.2/cytoscape.min.js
Line 259
TypeError: H._private.style.shape is undefined
http://localhost/WS/biojs-jmv/biojs/src/main/resources/dependencies/cytoscape/2.0.2/cytoscape.min.js
Line 259
我可能因为配置错过了什么吗?或者可能是库虫?
编辑:
我将库版本更新为2.0.4。但是,在渲染大型网络时问题仍然存在。这些是firebug报告的错误:
TypeError: E._private.edges is undefined
http://localhost/WS/biojs-jmv/biojs/src/main/resources/dependencies/cytoscape/2.0.4/cytoscape.min.js
Line 147
TypeError: d._private.style.shape is undefined
http://localhost/WS/biojs-jmv/biojs/src/main/resources/dependencies/cytoscape/2.0.4/cytoscape.min.js
Line 244
答案 0 :(得分:1)
(最可能是旧的)错误似乎与样式而不是图的大小有关。你试过v2.0.4吗?