outer-dimensions

1.0.1 • Public • Published

outer-dimensions

Get the outer dimensions of an element, including margins

var outerDimensions = require('outer-dimentions');
 
var dimensions = outerDimensions(element);

dimensions is an object with width and height properties.

{
    width: //offsetWidth + left and right margins,
    height: //offsetHeight + top and bottom margins
}

Readme

Keywords

none

Package Sidebar

Install

npm i outer-dimensions

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • korynunn
  • mattlarner