@phun-ky/arclace / bezierPath
Function: bezierPath()
bezierPath(
start,startSide,end,endSide,curvature?):ArcPathResultType
Defined in: src/utils/paths.ts:114
A cubic bezier curve that leaves start and arrives at end perpendicular to their sides.
Parameters
start
startSide
end
endSide
curvature?
number = 1
Returns
Throws
When a point or curvature isn't finite.
Throws
When a side isn't top, right, bottom or left.
Example
ts
bezierPath({ x: 0, y: 0 }, 'right', { x: 200, y: 100 }, 'left').d;