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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    207,044
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    207,044
  • 1.1.0
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i element-size

Weekly Downloads

207,045

Version

1.1.1

License

MIT

Last publish

Collaborators

  • hughsk