Skip to content

eles.unpanify()

eles.unpanify — Collection > Grab, lock and pannability. Cytoscape.js signatures, parameters and return contract.

eles.unpanify — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Stop these elements from panning the viewport when dragged, so a grabbable one becomes draggable again
eles.unpanify(): this

Stop these elements from panning the viewport when dragged, so a grabbable one becomes draggable again.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.unpanify();
console.log(node.pannable()); // false

Example graph and handle setup