arcSweepFlag()
function arcSweepFlag(
center,
start,
end
): 0 | 1;
Defined in: packages/core/src/render/arc-sweep.ts:10
Picks the SVG arc sweep-flag from already-transformed pixel-space points,
rather than assuming a fixed direction. The pixel transform may have
flipped or swapped axes (yDirection, orientation), which would otherwise
silently mirror the arc onto the wrong side. Shared between the SVG DOM
renderer and @pitchkit/react's JSX emission (both draw <path> arcs).
Parameters
| Parameter | Type |
|---|---|
center | Point |
start | Point |
end | Point |
Returns
0 | 1