We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Reset the graph to the default zoom level and panning position.
cy.reset() Resets the graph to its default viewport state
Resets the graph to its default viewport state
This resets the viewport to its state when Cytoscape Web was last loaded with cy.load() — that is, the default viewport state or origin of the graph.
cy.load( someGraphData ); // (1) cy.pan( somePosition ); cy.zoom( someZoomLevel ); cy.reset(); // reset back to the viewport state at (1)
There was an error while loading. Please reload this page.