Skip to content

ele.renderedControlPoints()

eles.renderedControlPoints — Collection > Edge points. Cytoscape.js signatures, parameters and return contract.

eles.renderedControlPoints — Collection › Edge points

Preview · Collection › Edge points

Read in the complete API reference · All API members

// controlPoints() in rendered (CSS px) space
ele.renderedControlPoints(): Position[] | undefined

controlPoints() in rendered (CSS px) space.

Returns Position[] | undefined

the rendered control points, or undefined when the edge has none

Example

// Straight edges have no intermediate control points.
console.log(cy.getElementById('ab').renderedControlPoints()); // undefined

Example graph and handle setup