I am using cytoscape.js to build my nice networks. I would like to know if there is any way to export the styles and the elements of the network into one file so that users of my web-app to be able to load it into their own Cytoscape desktop for further exploration and modification.
I know i can get the elements with:
cy.json().elements
and styles with:
cy.style().json()
But I cant figure out of how these can be merged into a file that is recognisable from cytoscape Desktop.
Any help? Thank you so much.