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

Function getPointXY

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

Source from the content-addressed store, hash-verified

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] };
44 return { x: point.x, y: point.y };
45};
46
47const computeDataBounds = (
48 data: ResolvedLineSeriesConfig['data']

Callers 1

computeDataBoundsFunction · 0.70

Calls 1

isTupleDataPointFunction · 0.70

Tested by

no test coverage detected