Files
Webklar.com/node_modules/dom-helpers/esm/position.d.ts
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

13 lines
292 B
TypeScript

/**
* Returns the relative position of a given element.
*
* @param node the element
* @param offsetParent the offset parent
*/
export default function position(node: HTMLElement, offsetParent?: HTMLElement): {
top: number;
left: number;
height: number;
width: number;
};