"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getGapWidth", {
    enumerable: true,
    get: function() {
        return getGapWidth;
    }
});
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;
};
