An open API service indexing awesome lists of open source software.

https://github.com/ryanve/bounding

Normalized cross-browser getClientBoundingRect
https://github.com/ryanve/bounding

dom javascript

Last synced: 10 months ago
JSON representation

Normalized cross-browser getClientBoundingRect

Awesome Lists containing this project

README

          

# bounding
Normalized cross-browser `element.getClientBoundingRect`

```sh
npm install bounding --save
```

```js
var bounding = require('bounding')
```

## API
### `bounding(element)`
Get a normalized plain object representing element's client bounding rectangle

```js
{
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