大型网络不呈现



我一直在使用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

(很可能是旧的)错误似乎与样式有关,而不是图形的大小。 你试过v2.0.4吗?

最新更新