Skip to main content

Home > @jsplumbtoolkit/core > Path > getEdgeAt

Path.getEdgeAt() method#

Gets the Edge at the given index in the Path.

Signature:

getEdgeAt(idx: number): Edge;

Parameters#

ParameterTypeDescription
idxnumberIndex of the Edge to retrieve. You can use negative numbers here: an index of -1 means get the last edge. An index of -2 means get the last but one. etc.

Returns:

Edge