(left: number, top: number, width: number, height: number)
| 121 | } |
| 122 | |
| 123 | function createRect(left: number, top: number, width: number, height: number): Rect { |
| 124 | return { |
| 125 | left: left, |
| 126 | top: top, |
| 127 | right: left + width, |
| 128 | bottom: top + height, |
| 129 | width: width, |
| 130 | height: height, |
| 131 | }; |
| 132 | } |
| 133 | |
| 134 | function getClientRect(elem: Element): Rect { |
| 135 | var cachedRect = clientRectCache.get(elem); |
no outgoing calls
no test coverage detected