MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getAreaPath

Function getAreaPath

src/ui-react-dom-charts/components/Line.tsx:66–76  ·  view source on GitHub ↗
(
  points: ScaledPoint[],
  plotX: number,
  plotY: number,
  height: number,
)

Source from the content-addressed store, hash-verified

64 );
65
66const getAreaPath = (
67 points: ScaledPoint[],
68 plotX: number,
69 plotY: number,
70 height: number,
71) =>
72 arrayIsEmpty(points)
73 ? ''
74 : `${getLinePath(points, plotX, plotY)} L${
75 plotX + points[size(points) - 1][3]
76 },${plotY + height} L${plotX + points[0][3]},${plotY + height} Z`;

Callers 1

LineFunction · 0.70

Calls 3

arrayIsEmptyFunction · 0.90
sizeFunction · 0.90
getLinePathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…