(point: DataPoint)
| 1 | import type { DataPoint, DataPointTuple } from '../config/types'; |
| 2 | |
| 3 | function isTupleDataPoint(point: DataPoint): point is DataPointTuple { |
| 4 | // `DataPoint` uses a readonly tuple; `Array.isArray` doesn't narrow it well without a predicate. |
| 5 | return Array.isArray(point); |
| 6 | } |
| 7 | |
| 8 | function lttbIndicesForInterleavedXY(data: Float32Array, targetPoints: number): Int32Array { |
| 9 | const n = data.length >>> 1; // floor(length / 2) |
no outgoing calls
no test coverage detected