Get whether nodes are automatically locked (i.e. if true, nodes are locked despite their individual state). http://js.cytoscape.org/#cy.autolock
Set whether nodes are automatically locked (i.e. if true, nodes are locked despite their individual state). http://js.cytoscape.org/#cy.autolock
Optional
bool: booleanA truthy value enables autolocking; a falsey value disables it.
Get whether nodes are automatically ungrabified (i.e. if true, nodes are ungrabbale despite their individual state). http://js.cytoscape.org/#cy.autoungrabify
Set whether nodes are automatically ungrabified (i.e. if true, nodes are ungrabbale despite their individual state). http://js.cytoscape.org/#cy.autoungrabify
Optional
bool: booleanA truthy value enables autolocking; a falsey value disables it.
Get whether nodes are automatically unselectified (i.e. if true, nodes are unselectable despite their individual state). http://js.cytoscape.org/#cy.autounselectify
Set whether nodes are automatically unselectified (i.e. if true, nodes are unselectable despite their individual state). http://js.cytoscape.org/#cy.autounselectify
Optional
bool: booleanA truthy value enables autolocking; a falsey value disables it.
Get whether box selection is enabled. If enabled, the user must hold left-click to initiate panning. http://js.cytoscape.org/#cy.boxSelectionEnabled
Set whether box selection is enabled. If enabled, the user must hold left-click to initiate panning. http://js.cytoscape.org/#cy.boxSelectionEnabled
Optional
bool: booleanA truthy value enables box selection; a falsey value disables it.
Pan the graph to the centre of a collection.
Optional
eles: CollectionArgumentThe collection to centre upon.
Pan the graph to the centre of a collection.
Optional
eles: CollectionArgumentThe collection to centre upon.
Get the extent of the viewport, a bounding box in model coordinates that lets you know what model positions are visible in the viewport. http://js.cytoscape.org/#cy.extent
Pan and zooms the graph to fit to a collection. http://js.cytoscape.org/#cy.fit
Optional
eles: CollectionArgument[optional] The collection to fit to.
Optional
padding: number[optional] An amount of padding (in pixels) to have around the graph
Force the renderer to redraw (i.e. draw a new frame).
This function forces the renderer to draw a new frame. It is useful for very specific edgecases, such as in certain UI plugins, but it should not be needed for most developers. http://js.cytoscape.org/#cy.forceRender
Get the on-screen height of the viewport in pixels. http://js.cytoscape.org/#cy.height
Get the maximum zoom level. http://js.cytoscape.org/#cy.maxZoom
Set the maximum zoom level. http://js.cytoscape.org/#cy.maxZoom
The new maximum zoom level to use.
Get the minimum zoom level. http://js.cytoscape.org/#cy.minZoom
Set the minimum zoom level. http://js.cytoscape.org/#cy.minZoom
The new minimum zoom level to use.
Get the panning position of the graph. http://js.cytoscape.org/#cy.pan
Set the panning position of the graph. http://js.cytoscape.org/#cy.pan
Optional
renderedPosition: PositionThe rendered position to pan the graph to.
Relatively pan the graph by a specified rendered position vector. http://js.cytoscape.org/#cy.panBy
The rendered position vector to pan the graph by.
Get whether panning is enabled. If cy.boxSelectionEnabled() === true, then the user must taphold to initiate panning. http://js.cytoscape.org/#cy.panningEnabled
Set whether panning is enabled. If cy.boxSelectionEnabled() === true, then the user must taphold to initiate panning. http://js.cytoscape.org/#cy.panningEnabled
Optional
bool: booleanA truthy value enables panning; a falsey value disables it.
Reset the graph to the default zoom level and panning position. http://js.cytoscape.org/#cy.reset
Force the renderer to recalculate the viewport bounds.
If your code resizes the graph's dimensions or position (i.e. by changing the style of the HTML DOM element that holds the graph), you will want to call cy.resize() to have the graph resize and redraw itself.
Cytoscape.js can not automatically monitor the bounding box of the viewport, as querying the DOM for those dimensions can be expensive. Although cy.resize() is automatically called for you on the window's resize event, there is no resize or style event for arbitrary DOM elements. http://js.cytoscape.org/#cy.resize
Get the selection type. http://js.cytoscape.org/#cy.selectionType
Set the selection type. http://js.cytoscape.org/#cy.selectionType
The selection type string; one of 'single' (default) or 'additive'.
Get whether panning by user events (e.g. dragging the graph background) is enabled. If cy.boxSelectionEnabled() === true, then the user must taphold to initiate panning. http://js.cytoscape.org/#cy.userPanningEnabled
Set whether panning by user events (e.g. dragging the graph background) is enabled. If cy.boxSelectionEnabled() === true, then the user must taphold to initiate panning. http://js.cytoscape.org/#cy.userPanningEnabled
Optional
bool: booleanA truthy value enables user panning; a falsey value disables it.
Get whether zooming by user events (e.g. mouse wheel, pinch-to-zoom) is enabled. http://js.cytoscape.org/#cy.userZoomingEnabled
Get or set whether zooming by user events get if no parameter provided (e.g. mouse wheel, pinch-to-zoom) is enabled. http://js.cytoscape.org/#cy.userZoomingEnabled
Optional
bool: booleanA truthy value enables user zooming; a falsey value disables it.
Set the viewport state (pan & zoom) in one call. http://js.cytoscape.org/#cy.viewport
Get the on-screen width of the viewport in pixels. http://js.cytoscape.org/#cy.width
Get the zoom level. http://js.cytoscape.org/#cy.zoom
Set the zoom level. http://js.cytoscape.org/#cy.zoom
Optional
level: ZoomOptionsThe zoom level to set.
Set or get whether zooming is enabled. Get if no parameter provided. http://js.cytoscape.org/#cy.zoomingEnabled
Optional
bool: booleanA truthy value enables zooming; a falsey value disables it.
http://js.cytoscape.org/#core/viewport-manipulation