* Measure the viewport size for the provided orientation. * * @param orientation The orientation to measure the size from.
(orientation: 'horizontal' | 'vertical')
| 22 | * @param orientation The orientation to measure the size from. |
| 23 | */ |
| 24 | measureViewportSize(orientation: 'horizontal' | 'vertical') { |
| 25 | const viewportEl = this.elementRef.nativeElement; |
| 26 | return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Measure the bounding DOMRect size including the scroll offset. |
nothing calls this directly
no outgoing calls
no test coverage detected