Skip to content

@vue-flow/monorepo • Docs


Function: getSimpleBezierPath() ​

getSimpleBezierPath(simpleBezierPathParams): [string, number, number, number, number]

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

Parameters ​

• simpleBezierPathParams: GetSimpleBezierPathParams

Returns ​

[string, number, number, number, 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.