#ele.midpoint()
// Midpoint of the edge: the curve/route midpoint for curved edges , the endpoint-center average for straight ones
ele.midpoint(): Position | undefinedMidpoint of the edge: the curve/route midpoint for curved edges , the endpoint-center average for straight ones.
Position | undefinedthe point a mid-label and a mid-arrow anchor at, in model space; undefined for non-edges. Mid-tween it inherits the position lease's staleness, like the endpoints it derives from
Example
const point = cy.getElementById('ab').midpoint();console.log(Number.isFinite(point.x)); // true