Skip to content

ele.renderedSegmentPoints()

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

eles.renderedSegmentPoints — Collection › Edge points

Preview · Collection › Edge points

Read in the complete API reference · All API members

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

segmentPoints() in rendered (CSS px) space.

Returns Position[] | undefined

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

Example

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

Example graph and handle setup