FrontPastel/node_modules/dom-helpers/cjs/offset.d.ts

12 lines
262 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
/**
* Returns the offset of a given element, including top and left positions, width and height.
*
* @param node the element
*/
export default function offset(node: HTMLElement): {
top: number;
left: number;
height: number;
width: number;
};