(element: HTMLElement)
| 291 | |
| 292 | // cannot get keys using array notation with DOMRect |
| 293 | export function getBoundingClientObj(element: HTMLElement) { |
| 294 | const rect = element.getBoundingClientRect(); |
| 295 | return { |
| 296 | bottom: rect.bottom, |
| 297 | height: rect.height, |
| 298 | left: rect.left, |
| 299 | right: rect.right, |
| 300 | top: rect.top, |
| 301 | width: rect.width, |
| 302 | }; |
| 303 | } |
| 304 | export interface RectType { |
| 305 | left: number; |
| 306 | right: number; |
no outgoing calls
no test coverage detected
searching dependent graphs…