@phun-ky/arclace / orthogonalPath
Function: orthogonalPath()
orthogonalPath(
start,startSide,end,endSide,__namedParameters?):ArcPathResultType
Defined in: src/utils/paths.ts:326
An orthogonal line with rounded corners.
Parameters
start
startSide
end
endSide
__namedParameters?
offset?
number = 20
radius?
number = 8
Returns
Throws
When a point, radius or offset isn't finite.
Throws
When a side isn't top, right, bottom or left, or radius or offset is negative.
Example
ts
orthogonalPath({ x: 0, y: 0 }, 'right', { x: 200, y: 100 }, 'left', {
radius: 8,
offset: 20
}).d;