(clientRect: DOMRect, x: number, y: number)
| 33 | * @param y Coordinates along the Y axis. |
| 34 | */ |
| 35 | export function isInsideClientRect(clientRect: DOMRect, x: number, y: number) { |
| 36 | const {top, bottom, left, right} = clientRect; |
| 37 | return y >= top && y <= bottom && x >= left && x <= right; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Checks if the child element is overflowing from its parent. |
no outgoing calls
no test coverage detected