Skip to main content

Home > @jsplumb/connector-bezier > BezierSegment > pointOnPath

BezierSegment.pointOnPath() method#

returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from 0 to 1 inclusive.

Signature:

pointOnPath(location: number, absolute?: boolean): PointXY;

Parameters#

ParameterTypeDescription
locationnumber
absoluteboolean

Returns:

PointXY