isElementVisible
FitFileViewer - API Documentation v29.9.0
FitFileViewer - API Documentation / utils/app/performance/lazyRenderingUtils / isElementVisible
Function: isElementVisible()
isElementVisible(
element:HTMLElement,threshold?:number):boolean
Defined in: utils/app/performance/lazyRenderingUtils.js:205
Check if element is visible in viewport
Parametersβ
elementβ
HTMLElement
Element to check
threshold?β
number = 0
Threshold (0-1). Default is 0
Returnsβ
boolean
True if visible