dist/chirashi.common.js
function getHeight(element) {
  var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  return _getLength(element, 'Height', offset);
}
function getHeight(element) {
  var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  return _getLength(element, 'Height', offset);
}
function getHeight ( element ) { var offset = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : false ; return _getLength ( element , 'Height' , offset ) ; }
Get element's height in pixels.
@param {(string|Array|NodeList|HTMLCollection|Element|HTMLElement)} element - The element. Note that it'll be passed to getElement to ensure there's only one.
@param {boolean} [offset=false] - If true height will include scrollbar and borders to size.
@return {number} height - The height in pixels.
@example //esnext
import { append, setStyleProp, getHeight } from 'chirashi'
append(document.body, '.maki')
const maki = setStyleProp('.maki', {
display: 'block',
border: '20px solid red',
padding: 10,
height: 200,
width: 200
})
getHeight(maki, true) //returns: 260
getHeight(maki) //returns: 220
@example //es5
Chirashi.append(document.body, '.maki')
var maki = Chirashi.setStyleProp('.maki', {
display: 'block',
border: '20px solid red',
padding: 10,
height: 200,
width: 200
})
Chirashi.getHeight(maki, true) //returns: 260
Chirashi.getHeight(maki) //returns: 220
Get element s height in pixels .