Is there a function that resets the graph to it's freshly loaded state? I've tried cy.reset() but that just resets zoom and pan, not restoring to the virgin graph.
Also is there a way to restore all removed elements?
Thanks!
Call cy.elements().remove()
and cy.add()
with the same graph data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With