(el: HTMLElement | typeof window)
| 167 | // ------------------------------ |
| 168 | |
| 169 | export function normalizedHeight(el: HTMLElement | typeof window): number { |
| 170 | if (isDocumentElement(el)) { |
| 171 | return window.innerHeight; |
| 172 | } |
| 173 | |
| 174 | return el.clientHeight; |
| 175 | } |
| 176 | |
| 177 | // Normalized scrollTo & scrollTop |
| 178 | // ------------------------------ |
no test coverage detected
searching dependent graphs…