1.0.0 • Published 6 years ago
padding-box v1.0.0
padding-box
const pbox = require('padding-box')
const rect = pbox(document.body.querySelector('h1'))
=> result has the same properties as getBoundingClientRect()
{
left, right, top, bottom,
x, y,
width,
height
}
License: ISC
1.0.0
6 years ago