element-size
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/element-size package

1.1.1 • Public • Published

element-size stable

Get the size of an element in pixels, including margins

Usage

NPM

[width, height] = size(element)

Given a DOM element, return an array containing that element's width and height in pixels.

License

MIT. See LICENSE.md for details.

Package Sidebar

Install

npm i element-size

Weekly Downloads

186,177

Version

1.1.1

License

MIT

Last publish

Collaborators

  • hughsk