(p: DataPoint)
| 57 | const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p); |
| 58 | |
| 59 | const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => { |
| 60 | if (isTupleDataPoint(p)) return { x: p[0], y: p[1] }; |
| 61 | return { x: p.x, y: p.y }; |
| 62 | }; |
| 63 | |
| 64 | const getPointSizeCssPx = (p: DataPoint): number | null => { |
| 65 | if (isTupleDataPoint(p)) { |
no test coverage detected