// Get the first edge's source arrow position in model coordinates
ele.sourceEndpoint(): Position | undefinedGet the first edge's source arrow position in model coordinates. Straight edges meet the source node's boundary with the arrowhead's spacing applied. The line can end farther back to leave room for a hollow arrowhead.
Curved routes return the corresponding point along their computed geometry. Returns undefined when the first element is not an edge.
Returns
Position | undefinedthe endpoint, or undefined for non-edges
Example
const point = cy.getElementById('ab').sourceEndpoint();console.log(Number.isFinite(point.x)); // true