__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import getDocumentElement from "./getDocumentElement.js";
import getComputedStyle from "./getComputedStyle.js";
import getWindowScrollBarX from "./getWindowScrollBarX.js";
import getWindowScroll from "./getWindowScroll.js";
import { max } from "../utils/math.js"; // Gets the entire size of the scrollable document area, even extending outside
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
export default function getDocumentRect(element) {
var _element$ownerDocumen;
var html = getDocumentElement(element);
var winScroll = getWindowScroll(element);
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
var y = -winScroll.scrollTop;
if (getComputedStyle(body || html).direction === 'rtl') {
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
}
return {
width: width,
height: height,
x: x,
y: y
};
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| contains.js | File | 669 B | 0644 |
|
| getBoundingClientRect.js | File | 1006 B | 0644 |
|
| getClippingRect.js | File | 3.22 KB | 0644 |
|
| getCompositeRect.js | File | 2.01 KB | 0644 |
|
| getComputedStyle.js | File | 148 B | 0644 |
|
| getDocumentElement.js | File | 313 B | 0644 |
|
| getDocumentRect.js | File | 1.19 KB | 0644 |
|
| getHTMLElementScroll.js | File | 142 B | 0644 |
|
| getLayoutRect.js | File | 765 B | 0644 |
|
| getNodeName.js | File | 114 B | 0644 |
|
| getNodeScroll.js | File | 396 B | 0644 |
|
| getOffsetParent.js | File | 2.45 KB | 0644 |
|
| getParentNode.js | File | 774 B | 0644 |
|
| getScrollParent.js | File | 544 B | 0644 |
|
| getViewportRect.js | File | 1.56 KB | 0644 |
|
| getWindow.js | File | 271 B | 0644 |
|
| getWindowScroll.js | File | 258 B | 0644 |
|
| getWindowScrollBarX.js | File | 721 B | 0644 |
|
| instanceOf.js | File | 616 B | 0644 |
|
| isScrollParent.js | File | 433 B | 0644 |
|
| isTableElement.js | File | 162 B | 0644 |
|
| listScrollParents.js | File | 1.15 KB | 0644 |
|