(point: DataPoint)
| 50 | const isTupleDataPoint = (point: DataPoint): point is DataPointTuple => Array.isArray(point); |
| 51 | |
| 52 | const getPointXY = (point: DataPoint): { readonly x: number; readonly y: number } => { |
| 53 | if (isTupleDataPoint(point)) return { x: point[0], y: point[1] }; |
| 54 | return { x: point.x, y: point.y }; |
| 55 | }; |
| 56 | |
| 57 | const getPointSizeCssPx = (point: DataPoint): number | null => { |
| 58 | if (isTupleDataPoint(point)) { |
no test coverage detected