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

Function isTupleDataPoint

src/renderers/createScatterRenderer.ts:50–50  ·  view source on GitHub ↗
(point: DataPoint)

Source from the content-addressed store, hash-verified

48};
49
50const isTupleDataPoint = (point: DataPoint): point is DataPointTuple => Array.isArray(point);
51
52const getPointXY = (point: DataPoint): { readonly x: number; readonly y: number } => {
53 if (isTupleDataPoint(point)) return { x: point[0], y: point[1] };

Callers 3

getPointXYFunction · 0.70
getPointSizeCssPxFunction · 0.70
toScatterTupleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected