'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var getGapWidth = function getGapWidth(trackElement) {
  if (!trackElement) {
    return 0;
  }
  var computedStyle = window.getComputedStyle(trackElement);
  var gap = Number.parseFloat(computedStyle.columnGap || computedStyle.gap);
  return Number.isNaN(gap) ? 0 : gap;
};

exports.getGapWidth = getGapWidth;
