简体   繁体   English

无法使cola.js与cytoscape一起使用

[英]Cannot get cola.js to work with cytoscape

I am trying to use the cola layout in a Cytoscape graph in javascript, but I get the error 我正在尝试在javascript的Cytoscape图形中使用可乐布局,但出现错误

Can not apply layout: No such layout `cola` found; did you include its JS file?

I have already included both the cola and cytoscape libraries as well as the adaptor required to use cola in cytoscape in my HTML: 我已经在HTML中包括了可乐库和cytoscape库以及在cytoscape中使用可乐所需的适配器:

I don't know if there is still something else I am missing or what else I should try to include to be able to use cola! 我不知道是否还有其他我想念的东西,或者我应该尝试包括什么才能使用可乐!

Duplicate of : Including JavaScript files from GitHub into HTML pages 重复的:将来自GitHub的JavaScript文件包含到HTML页面中

Use a CDN, like Unpkg or CDNJS --- or use a package manager like npm. 使用CDN,例如Unpkg或CDNJS ---或使用软件包管理器,例如npm。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM