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

Function getLinePath

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

Source from the content-addressed store, hash-verified

54};
55
56const getLinePath = (points: ScaledPoint[], plotX: number, plotY: number) =>
57 arrayJoin(
58 arrayMap(
59 points,
60 ([, , , x, y], index) =>
61 `${index == 0 ? 'M' : 'L'}${plotX + x},${plotY + y}`,
62 ),
63 ' ',
64 );
65
66const getAreaPath = (
67 points: ScaledPoint[],

Callers 2

LineFunction · 0.70
getAreaPathFunction · 0.70

Calls 2

arrayJoinFunction · 0.90
arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…