{"size": 543, "ext": "js", "max_stars_repo_path": "node_modules/@antv/util/lib/dom/get-outer-width.js", "max_stars_repo_name": "lsabella/baishu-admin", "max_stars_repo_stars_event_min_datetime": "2020-03-09T06:14:02.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-09T06:14:02.000Z", "max_issues_repo_path": "node_modules/@antv/util/lib/dom/get-outer-width.js", "max_issues_repo_name": "lsabella/baishu-admin", "max_issues_repo_issues_event_min_datetime": "2020-09-28T07:24:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T14:29:57.000Z", "max_forks_repo_path": "node_modules/@antv/util/lib/dom/get-outer-width.js", "max_forks_repo_name": "lsabella/baishu-admin", "max_forks_repo_forks_event_min_datetime": "2021-09-17T01:53:58.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-17T01:53:58.000Z"}
{"max_stars_count": 1, "max_issues_count": 34, "max_forks_count": 1, "avg_line_length": 38.7857142857, "max_line_length": 70, "alphanum_fraction": 0.6850828729}
/**
 * 获取外层宽度
 * @param  {HTMLElement} el dom节点
 * @param  {Number} defaultValue 默认值
 * @return {Number} 宽度
 */
module.exports = function getOuterWidth(el, defaultValue) {
  var width = this.getWidth(el, defaultValue);
  var bLeft = parseFloat(this.getStyle(el, 'borderLeftWidth')) || 0;
  var pLeft = parseFloat(this.getStyle(el, 'paddingLeft')) || 0;
  var pRight = parseFloat(this.getStyle(el, 'paddingRight')) || 0;
  var bRight = parseFloat(this.getStyle(el, 'borderRightWidth')) || 0;
  return width + bLeft + bRight + pLeft + pRight;
};