bounding

0.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i bounding

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ryanve