katoikia-app/web-ui/web-react/node_modules/dom-helpers/cjs/offset.d.ts

12 lines
262 B
TypeScript
Raw Normal View History

2022-07-06 04:15: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;
};