Skip to content

Function: getSimpleBezierPath ​

â–¸ getSimpleBezierPath(simpleBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number]

Get a simple bezier path from source to target handle (no curvature)

Parameters ​

NameType
simpleBezierPathParamsGetSimpleBezierPathParams

Returns ​

[path: string, labelX: number, labelY: number, offsetX: number, offsetY: number]

A path string you can use in an SVG, the labelX and labelY position (center of path) and offsetX, offsetY between source handle and label

Released under the MIT License.