MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / toScatterTuple

Function toScatterTuple

src/interaction/findNearestPoint.ts:73–76  ·  view source on GitHub ↗
(p: DataPoint)

Source from the content-addressed store, hash-verified

71};
72
73const toScatterTuple = (p: DataPoint): ScatterPointTuple => {
74 if (isTupleDataPoint(p)) return p;
75 return [p.x, p.y, p.size] as const;
76};
77
78const safeCallSymbolSize = (
79 fn: (value: ScatterPointTuple) => number,

Callers 1

getScatterRadiusCssPxFunction · 0.70

Calls 1

isTupleDataPointFunction · 0.70

Tested by

no test coverage detected