I saw in the cytoscape.js tutorial that there are ways to represent the graph as image (png, jpg), but there is a way to represent it as regular graph, and if the user would wan
You can use saveAs() directly, simply do:
import { saveAs } from "file-saver"; //or require ... saveAs(cy.png(), "graph.png");
No need to handle blob content, same goes for .jpg()
.jpg()