(points: ScaledPoint[], plotX: number, plotY: number)
| 54 | }; |
| 55 | |
| 56 | const getLinePath = (points: ScaledPoint[], plotX: number, plotY: number) => |
| 57 | arrayJoin( |
| 58 | arrayMap( |
| 59 | points, |
| 60 | ([, , , x, y], index) => |
| 61 | `${index == 0 ? 'M' : 'L'}${plotX + x},${plotY + y}`, |
| 62 | ), |
| 63 | ' ', |
| 64 | ); |
| 65 | |
| 66 | const getAreaPath = ( |
| 67 | points: ScaledPoint[], |
no test coverage detected
searching dependent graphs…