element-size
Get the size of an element in pixels, including margins
Last updated 12 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install element-size 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.1.1                                ...           latest (12 years ago)

3 Versions

  • 1.1.1                                ...           12 years ago
  • 1.1.0                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 16
Today 0
This Week 1
This Month 12
Last Day 1
Last Week 3
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE