define(["exports","./dom.js"],function(_exports,_dom){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_dom=babelHelpers.interopRequireDefault(_dom);function _default(elem,partial,thresholdX,thresholdY){if(thresholdX=thresholdX||0,thresholdY=thresholdY||0,!elem.getBoundingClientRect)return!0;var windowSize=_dom.default.getWindowSize(),vpWidth=windowSize.innerWidth,vpHeight=windowSize.innerHeight,rec=elem.getBoundingClientRect(),tViz=0<=rec.top&&rec.top<vpHeight+thresholdY,bViz=0<rec.bottom&&rec.bottom<=vpHeight+thresholdY,lViz=0<=rec.left&&rec.left<vpWidth+thresholdX,rViz=0<rec.right&&rec.right<=vpWidth+thresholdX;return(partial?tViz||bViz:tViz&&bViz)&&(partial?lViz||rViz:lViz&&rViz)}_exports.default=_default});