element-size
Get the size of an element in pixels, including margins
Last updated 11 years ago by hughsk .
MIT · Repository · Bugs · Original npm
$ cnpm 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 (11 years ago)

1 Versions

  • 1.1.1                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org