(container: HTMLElement)
| 36 | ); |
| 37 | |
| 38 | const getLinePathXs = (container: HTMLElement): number[][] => |
| 39 | Array.from(container.querySelectorAll('.plot .line-series .line'), (path) => |
| 40 | Array.from( |
| 41 | path.getAttribute('d')?.matchAll(/[ML]([^,]+)/g) ?? [], |
| 42 | ([, x]) => Number(x), |
| 43 | ), |
| 44 | ); |
| 45 | |
| 46 | const getBarCenters = (container: HTMLElement): number[] => |
| 47 | Array.from(container.querySelectorAll('.plot .bar'), (bar) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…