__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
import { viewport } from "../enums.js";
import getViewportRect from "./getViewportRect.js";
import getDocumentRect from "./getDocumentRect.js";
import listScrollParents from "./listScrollParents.js";
import getOffsetParent from "./getOffsetParent.js";
import getDocumentElement from "./getDocumentElement.js";
import getComputedStyle from "./getComputedStyle.js";
import { isElement, isHTMLElement } from "./instanceOf.js";
import getBoundingClientRect from "./getBoundingClientRect.js";
import getParentNode from "./getParentNode.js";
import contains from "./contains.js";
import getNodeName from "./getNodeName.js";
import rectToClientRect from "../utils/rectToClientRect.js";
import { max, min } from "../utils/math.js";
function getInnerBoundingClientRect(element) {
  var rect = getBoundingClientRect(element);
  rect.top = rect.top + element.clientTop;
  rect.left = rect.left + element.clientLeft;
  rect.bottom = rect.top + element.clientHeight;
  rect.right = rect.left + element.clientWidth;
  rect.width = element.clientWidth;
  rect.height = element.clientHeight;
  rect.x = rect.left;
  rect.y = rect.top;
  return rect;
}
function getClientRectFromMixedType(element, clippingParent) {
  return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
}

// A "clipping parent" is an overflowable container with the characteristic of
// clipping (or hiding) overflowing elements with a position different from
// `initial`
function getClippingParents(element) {
  var clippingParents = listScrollParents(getParentNode(element));
  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
  var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
  if (!isElement(clipperElement)) {
    return [];
  }

  // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
  return clippingParents.filter(function (clippingParent) {
    return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
  });
}

// Gets the maximum area that the element is visible in due to any number of
// clipping parents
export default function getClippingRect(element, boundary, rootBoundary) {
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
  var firstClippingParent = clippingParents[0];
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
    var rect = getClientRectFromMixedType(element, clippingParent);
    accRect.top = max(rect.top, accRect.top);
    accRect.right = min(rect.right, accRect.right);
    accRect.bottom = min(rect.bottom, accRect.bottom);
    accRect.left = max(rect.left, accRect.left);
    return accRect;
  }, getClientRectFromMixedType(element, firstClippingParent));
  clippingRect.width = clippingRect.right - clippingRect.left;
  clippingRect.height = clippingRect.bottom - clippingRect.top;
  clippingRect.x = clippingRect.left;
  clippingRect.y = clippingRect.top;
  return clippingRect;
}

Filemanager

Name Type Size Permission Actions
contains.d.ts File 76 B 0644
contains.js File 669 B 0644
getBoundingClientRect.d.ts File 217 B 0644
getBoundingClientRect.js File 1006 B 0644
getClippingRect.d.ts File 283 B 0644
getClippingRect.js File 3.22 KB 0644
getCompositeRect.d.ts File 212 B 0644
getCompositeRect.js File 2.01 KB 0644
getComputedStyle.d.ts File 81 B 0644
getComputedStyle.js File 148 B 0644
getDocumentElement.d.ts File 124 B 0644
getDocumentElement.js File 313 B 0644
getDocumentRect.d.ts File 107 B 0644
getDocumentRect.js File 1.19 KB 0644
getHTMLElementScroll.d.ts File 120 B 0644
getHTMLElementScroll.js File 142 B 0644
getLayoutRect.d.ts File 105 B 0644
getLayoutRect.js File 765 B 0644
getNodeName.d.ts File 149 B 0644
getNodeName.js File 114 B 0644
getNodeScroll.d.ts File 146 B 0644
getNodeScroll.js File 396 B 0644
getOffsetParent.d.ts File 64 B 0644
getOffsetParent.js File 2.45 KB 0644
getParentNode.d.ts File 73 B 0644
getParentNode.js File 774 B 0644
getScrollParent.d.ts File 66 B 0644
getScrollParent.js File 544 B 0644
getViewportRect.d.ts File 217 B 0644
getViewportRect.js File 1.56 KB 0644
getWindow.d.ts File 51 B 0644
getWindow.js File 271 B 0644
getWindowScroll.d.ts File 148 B 0644
getWindowScroll.js File 258 B 0644
getWindowScrollBarX.d.ts File 71 B 0644
getWindowScrollBarX.js File 721 B 0644
instanceOf.d.ts File 214 B 0644
instanceOf.js File 616 B 0644
isScrollParent.d.ts File 71 B 0644
isScrollParent.js File 433 B 0644
isTableElement.d.ts File 67 B 0644
isTableElement.js File 162 B 0644
listScrollParents.d.ts File 188 B 0644
listScrollParents.js File 1.15 KB 0644
Filemanager