Skip to content

regular/padding-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published