Skip to content

API reference

cy.pointerCursors — Core > Interaction controls. Cytoscape.js signatures, parameters and return contract.

cy.pointerCursors — Core › Interaction controls

Preview · Core › Interaction controls

Read in the complete API reference · All API members

#cy.pointerCursors()

// Get cursor settings
cy.pointerCursors(): boolean | Partial<CursorMap>

Read the pointer cursor settings.

Returns boolean | Partial<CursorMap>

true or false for built-in cursors, or the custom cursor configuration

Example

console.log(cy.pointerCursors()); // true

Example graph and handle setup

#cy.pointerCursors(cursors)

// Set cursor settings
cy.pointerCursors(cursors: boolean | Partial<CursorMap>): this

Set the pointer cursors used by gestures.

Parameters
NameDescription
cursors: boolean | Partial<CursorMap>

true for built-in cursors, false to disable, or custom cursors

Returns this

this core, for chaining

Example

const result = cy.pointerCursors(false);
console.log(result === cy); // true

Example graph and handle setup