无法使 cola.js 与 cytoscape 一起工作
Cannot get cola.js to work with cytoscape
我试图在 javascript 的 Cytoscape 图中使用 cola 布局,但出现错误
Can not apply layout: No such layout `cola` found; did you include its JS file?
我已经在我的 HTML:
中包含了 cola 和 cytoscape 库以及在 cytoscape 中使用 cola 所需的适配器
- 对于cytoscape.js:
https://github.com/cytoscape/cytoscape.js-cola/blob/master/cytoscape-cola.js
- cola.js:http://marvl.infotech.monash.edu/webcola/cola.v3.min.js
- 对于细胞景观-cola.js:https://github.com/cytoscape/cytoscape.js-cola/blob/master/cytoscape-cola.js
我不知道是否还缺少其他东西,或者我还应该尝试添加什么才能使用可乐!
重复:Including JavaScript files from GitHub into HTML pages
使用 CDN,如 Unpkg 或 CDNJS --- 或使用包管理器,如 npm。
我试图在 javascript 的 Cytoscape 图中使用 cola 布局,但出现错误
Can not apply layout: No such layout `cola` found; did you include its JS file?
我已经在我的 HTML:
中包含了 cola 和 cytoscape 库以及在 cytoscape 中使用 cola 所需的适配器- 对于cytoscape.js: https://github.com/cytoscape/cytoscape.js-cola/blob/master/cytoscape-cola.js
- cola.js:http://marvl.infotech.monash.edu/webcola/cola.v3.min.js
- 对于细胞景观-cola.js:https://github.com/cytoscape/cytoscape.js-cola/blob/master/cytoscape-cola.js
我不知道是否还缺少其他东西,或者我还应该尝试添加什么才能使用可乐!
重复:Including JavaScript files from GitHub into HTML pages
使用 CDN,如 Unpkg 或 CDNJS --- 或使用包管理器,如 npm。