import t from"./getWindow.js";import i from"./getDocumentElement.js";import e from"./getWindowScrollBarX.js";import o from"./isLayoutViewport.js";function r(r,f){var m=t(r),n=i(r),s=m.visualViewport,h=n.clientWidth,p=n.clientHeight,a=0,d=0;if(s){h=s.width,p=s.height;var l=o();(l||!l&&"fixed"===f)&&(a=s.offsetLeft,d=s.offsetTop)}return{width:h,height:p,x:a+e(r),y:d}}export{r as default};
//# sourceMappingURL=getViewportRect.js.map
