johnnyflinn / ngCytoscape

Angular directive for cytoscape.js
http://johnnyflinn.github.io/ngCytoscape
MIT License
17 stars 18 forks source link

Problem using cytoscape extensions #22

Closed lightsaber91 closed 7 years ago

lightsaber91 commented 7 years ago

Hi I'm a university student from University of Rome Tor Vergata and I'm developing a project for my graduate. I'm currently using ngCytoscape and I'm having problem importing extension such like cytoscape.js-cola (Here is the link https://github.com/cytoscape/cytoscape.js-cola). Is possible to import these type of extensions using ngCytoscape? And if so, how can I do? Thanks for your attention!

johnnyflinn commented 7 years ago

You have to add the extension js file after cytoscape.js, but before ngCytoscape. Then just pass the extension config object into ngCytoscape via the graph-layouts attribute.

See http://johnnyflinn.github.io/ngCytoscape/#/layouts

SanderBreivik commented 4 years ago

Would you mind explaining that in more detail @johnnyflinn ?