(domRect: DOMRect)
| 26 | return this.fromDOM(domClientRect); |
| 27 | } |
| 28 | fromDOM(domRect: DOMRect) { |
| 29 | return new Rect( |
| 30 | new Vec2(domRect.left, domRect.top), |
| 31 | new Vec2(domRect.right, domRect.bottom), |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | clientToWorld(clientRect: Rect): Rect { |
| 36 | return new Rect( |
no outgoing calls
no test coverage detected