import o from"./getBoundingClientRect.js";import t from"./getNodeScroll.js";import r from"./getNodeName.js";import{isHTMLElement as e}from"./instanceOf.js";import i from"./getWindowScrollBarX.js";import l from"./getDocumentElement.js";import m from"./isScrollParent.js";function f(f,n,c){void 0===c&&(c=!1);var s=l(n),p=o(f),d=e(n),g={scrollLeft:0,scrollTop:0},j={x:0,y:0};return(d||!d&&!c)&&(("body"!==r(n)||m(s))&&(g=t(n)),e(n)?((j=o(n)).x+=n.clientLeft,j.y+=n.clientTop):s&&(j.x=i(s))),{x:p.left+g.scrollLeft-j.x,y:p.top+g.scrollTop-j.y,width:p.width,height:p.height}}export default f;
//# sourceMappingURL=getCompositeRect.js.map
