(point: DataPoint)
| 6 | } |
| 7 | |
| 8 | function getXY(point: DataPoint): { readonly x: number; readonly y: number } { |
| 9 | if (isTupleDataPoint(point)) return { x: point[0], y: point[1] }; |
| 10 | return { x: point.x, y: point.y }; |
| 11 | } |
| 12 | |
| 13 | function getSize(point: DataPoint): number | undefined { |
| 14 | if (isTupleDataPoint(point)) return point[2]; |
no test coverage detected