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

Function getPointXY

src/core/createRenderCoordinator.ts:284–287  ·  view source on GitHub ↗
(p: DataPoint)

Source from the content-addressed store, hash-verified

282const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p);
283
284const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => {
285 if (isTupleDataPoint(p)) return { x: p[0], y: p[1] };
286 return { x: p.x, y: p.y };
287};
288
289const computeRawBoundsFromData = (data: ReadonlyArray<DataPoint>): Bounds | null => {
290 let xMin = Number.POSITIVE_INFINITY;

Callers 9

computeRawBoundsFromDataFunction · 0.70
computeGlobalBoundsFunction · 0.70
sliceVisibleRangeByXFunction · 0.70
computeVisibleYBoundsFunction · 0.70
buildTooltipParamsFunction · 0.70
renderFunction · 0.70

Calls 1

isTupleDataPointFunction · 0.70

Tested by

no test coverage detected