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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i bounding

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • ryanve