( elementFromPoint: HTMLElement, callback: () => void, )
| 9 | } |
| 10 | |
| 11 | export function withElementFromPoint( |
| 12 | elementFromPoint: HTMLElement, |
| 13 | callback: () => void, |
| 14 | ) { |
| 15 | const originalElementFromPoint = document.elementFromPoint; |
| 16 | document.elementFromPoint = () => elementFromPoint; |
| 17 | callback(); |
| 18 | document.elementFromPoint = originalElementFromPoint; |
| 19 | } |
| 20 | |
| 21 | export const REQUEST_ANIMATION_FRAME_TIMEOUT = 15; |
| 22 |
no test coverage detected
searching dependent graphs…