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

Function isTupleDataPoint

src/renderers/createLineRenderer.ts:38–40  ·  view source on GitHub ↗
(
  point: ResolvedLineSeriesConfig['data'][number]
)

Source from the content-addressed store, hash-verified

36 parseCssColorToRgba01(color) ?? ([0, 0, 0, 1] as const);
37
38const isTupleDataPoint = (
39 point: ResolvedLineSeriesConfig['data'][number]
40): point is DataPointTuple => Array.isArray(point);
41
42const getPointXY = (point: ResolvedLineSeriesConfig['data'][number]): { readonly x: number; readonly y: number } => {
43 if (isTupleDataPoint(point)) return { x: point[0], y: point[1] };

Callers 1

getPointXYFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected