Skip to content

eles.panify()

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

eles.panify — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Make dragging these elements pan the viewport instead of moving them
eles.panify(): this

Make dragging these elements pan the viewport instead of moving them. Pannable overrides grabbable.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.panify();
console.log(node.pannable()); // true

Example graph and handle setup