bounding
v0.1.0
Published
Normalized cross-browser getBoundingClientRect
Downloads
3
Maintainers
Readme
bounding
Normalized cross-browser element.getClientBoundingRect
npm install bounding --save
var bounding = require('bounding')
API
bounding(element)
Get a normalized plain object representing element's client bounding rectangle
{
bottom: 118.875,
height: 97.4375,
left: 19.5,
right: 630.5,
top: 21.4375,
width: 611,
x: 19.5,
y: 21.4375
}
License
MIT