Files
NapCatQQ/.pnpm-store/v3/files/93/4ecc3dfacd811421ee9a77d62e809bf943b9dc42a7e6f4079ef3df61dba91a11251915bdbf51bd1a28f695823fc3db99e6c10efd3b0159a56aa9baf414ecdf
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
721 B
Plaintext

import type { ClientRect } from '../../types';
interface Options {
ignoreTransform?: boolean;
}
/**
* Returns the bounding client rect of an element relative to the viewport.
*/
export declare function getClientRect(element: Element, options?: Options): {
top: number;
left: number;
width: number;
height: number;
bottom: number;
right: number;
};
/**
* Returns the bounding client rect of an element relative to the viewport.
*
* @remarks
* The ClientRect returned by this method does not take into account transforms
* applied to the element it measures.
*
*/
export declare function getTransformAgnosticClientRect(element: Element): ClientRect;
export {};