This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1 @@
export default function contains(parent: Element, child: Element): boolean;

View File

@@ -0,0 +1,2 @@
import type { ClientRectObject, VirtualElement } from "../types";
export default function getBoundingClientRect(element: Element | VirtualElement, includeScale?: boolean): ClientRectObject;

View File

@@ -0,0 +1,3 @@
import type { ClientRectObject } from "../types";
import type { Boundary, RootBoundary } from "../enums";
export default function getClippingRect(element: Element, boundary: Boundary, rootBoundary: RootBoundary): ClientRectObject;

View File

@@ -0,0 +1,2 @@
import type { Rect, VirtualElement, Window } from "../types";
export default function getCompositeRect(elementOrVirtualElement: Element | VirtualElement, offsetParent: Element | Window, isFixed?: boolean): Rect;

View File

@@ -0,0 +1 @@
export default function getComputedStyle(element: Element): CSSStyleDeclaration;

View File

@@ -0,0 +1,2 @@
import type { Window } from "../types";
export default function getDocumentElement(element: Element | Window): HTMLElement;

View File

@@ -0,0 +1,2 @@
import type { Rect } from "../types";
export default function getDocumentRect(element: HTMLElement): Rect;

View File

@@ -0,0 +1,4 @@
export default function getHTMLElementScroll(element: HTMLElement): {
scrollLeft: number;
scrollTop: number;
};

View File

@@ -0,0 +1,2 @@
import type { Rect } from "../types";
export default function getLayoutRect(element: HTMLElement): Rect;

View File

@@ -0,0 +1,2 @@
import type { Window } from "../types";
export default function getNodeName(element: (Node | null | undefined) | Window): string | null | undefined;

View File

@@ -0,0 +1,5 @@
import type { Window } from "../types";
export default function getNodeScroll(node: Node | Window): {
scrollLeft: any;
scrollTop: any;
};

View File

@@ -0,0 +1 @@
export default function getOffsetParent(element: Element): any;

View File

@@ -0,0 +1 @@
export default function getParentNode(element: Node | ShadowRoot): Node;

View File

@@ -0,0 +1 @@
export default function getScrollParent(node: Node): HTMLElement;

View File

@@ -0,0 +1,6 @@
export default function getViewportRect(element: Element): {
width: number;
height: number;
x: number;
y: number;
};

View File

@@ -0,0 +1 @@
export default function getWindow(node: any): any;

View File

@@ -0,0 +1,5 @@
import type { Window } from "../types";
export default function getWindowScroll(node: Node | Window): {
scrollLeft: any;
scrollTop: any;
};

View File

@@ -0,0 +1 @@
export default function getWindowScrollBarX(element: Element): number;

View File

@@ -0,0 +1,4 @@
declare function isElement(node: unknown): boolean;
declare function isHTMLElement(node: unknown): boolean;
declare function isShadowRoot(node: unknown): boolean;
export { isElement, isHTMLElement, isShadowRoot };

View File

@@ -0,0 +1 @@
export default function isScrollParent(element: HTMLElement): boolean;

View File

@@ -0,0 +1 @@
export default function isTableElement(element: Element): boolean;

View File

@@ -0,0 +1,2 @@
import type { Window, VisualViewport } from "../types";
export default function listScrollParents(element: Node, list?: Array<Element | Window>): Array<Element | Window | VisualViewport>;