@phun-ky/arclace / straightPath
Function: straightPath()
straightPath(
start,end):ArcPathResultType
Defined in: src/utils/paths.ts:90
A straight line between two points.
Parameters
start
end
Returns
Throws
When a point doesn't have finite x and y.
Example
ts
straightPath({ x: 0, y: 0 }, { x: 100, y: 0 }).d; // 'M 0 0 L 100 0'