Skip to content

Function: getSmoothStepPath ​

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

Get a smooth step path from source to target handle

Parameters ​

NameType
paramsGetSmoothStepPathParams

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.