Home > @jsplumb/connector-bezier > BezierSegment
#
BezierSegment classSignature:
export declare class BezierSegment extends AbstractSegment
Extends: AbstractSegment
#
ConstructorsConstructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Constructs a new instance of the BezierSegment class |
#
PropertiesProperty | Modifiers | Type | Description |
---|---|---|---|
cp1x | number | ||
cp1y | number | ||
cp2x | number | ||
cp2y | number | ||
curve | Curve | ||
length | number | ||
segmentType | static | string | |
type | string |
#
MethodsMethod | Modifiers | Description |
---|---|---|
findClosestPointOnPath(x, y) | ||
getLength() | ||
getPath(isFirstSegment) | ||
gradientAtPoint(location, absolute) | returns the gradient of the segment at the given point. | |
lineIntersection(x1, y1, x2, y2) | ||
pointAlongPathFrom(location, distance, absolute) | ||
pointOnPath(location, absolute) | 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. |