padding-box

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i padding-box

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.44 kB

Total Files

3

Last publish

Collaborators

  • regular