text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("dom-dimensions",[],e):"object"==typeof exports?exports["dom-dimensions"]=e():t["dom-dimensions"]=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t){var e={};for(var n in t)e[n]=parseFloat(t[n])||0;return e}var i=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.domElement=e,this.style=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||("undefined"==typeof window?null:window);return void 0!==e&&e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle}(e,n),this.boundingClientRect=e.getBoundingClientRect()}return r(t,[{key:"margin",value:function(){var t=this.style;return o({left:t.marginLeft,right:t.marginRight,top:t.marginTop,bottom:t.marginBottom})}},{key:"border",value:function(){var t=this.style;return o({left:t.borderLeftWidth,right:t.borderRightWidth,top:t.borderTopWidth,bottom:t.borderBottomWidth})}},{key:"padding",value:function(){var t=this.style;return o({left:t.paddingLeft,right:t.paddingRight,top:t.paddingTop,bottom:t.paddingBottom})}},{key:"width",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.boundingClientRect.width,n=["padding","margin","border"],r=0;r<n.length;r++){var o=n[r];if(!t[o]){var i=this[o]();e=e-i.left-i.right}}return e}},{key:"height",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.boundingClientRect.height,n=["padding","margin","border"],r=0;r<n.length;r++){var o=n[r];if(!t[o]){var i=this[o]();e=e-i.top-i.bottom}}return e}}]),t}();e.default=i,t.exports=e.default}])});
  //# sourceMappingURL=dom-dimensions.js.map