UNPKG

216 BTypeScriptView Raw
1/**
2 * Returns the width of a given element.
3 *
4 * @param node the element
5 * @param client whether to use `clientWidth` if possible
6 */
7export default function getWidth(node: HTMLElement, client?: boolean): number;