( point: ResolvedLineSeriesConfig['data'][number] )
| 36 | parseCssColorToRgba01(color) ?? ([0, 0, 0, 1] as const); |
| 37 | |
| 38 | const isTupleDataPoint = ( |
| 39 | point: ResolvedLineSeriesConfig['data'][number] |
| 40 | ): point is DataPointTuple => Array.isArray(point); |
| 41 | |
| 42 | const getPointXY = (point: ResolvedLineSeriesConfig['data'][number]): { readonly x: number; readonly y: number } => { |
| 43 | if (isTupleDataPoint(point)) return { x: point[0], y: point[1] }; |