MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / isTupleDataPoint

Function isTupleDataPoint

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

Source from the content-addressed store, hash-verified

55};
56
57const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p);
58
59const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => {
60 if (isTupleDataPoint(p)) return { x: p[0], y: p[1] };

Callers 3

getPointXYFunction · 0.70
getPointSizeCssPxFunction · 0.70
toScatterTupleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected