license param element param scrollContainers returns docs-private export function isElementScrolledOutsideView ( element , scrollContainers ) { return scrollContainers . some ( containerBounds => { const outsideAbove = element . bottom < containerBounds . top ; const outsideBelow = element . top > containerBounds . bottom ; const outsideLeft = element . right < containerBounds . left ; const outsideRight = element . left > containerBounds . right ; return outsideAbove || outsideBelow || outsideLeft || outsideRight ; } ) ; } param element param scrollContainers returns docs-private export function isElementClippedByScrolling ( element , scrollContainers ) { return scrollContainers . some ( scrollContainerRect => { const clippedAbove = element . top < scrollContainerRect . top ; const clippedBelow = element . bottom > scrollContainerRect . bottom ; const clippedLeft = element . left < scrollContainerRect . left ; const clippedRight = element . right > scrollContainerRect . right ; return clippedAbove || clippedBelow || clippedLeft || clippedRight ; } ) ; }