var EPS = 0.00001;
export var shift = function (value, shift) {
    if (!value || !shift) {
        return value;
    }
    var unitSymbolsArray = value.match(/[a-z]|%/g) || [];
    var unit = unitSymbolsArray.join('');
    var floatNumber = parseFloat(value) + parseFloat(shift);
    var intNumber = parseInt("".concat(floatNumber), 10);
    var result = floatNumber % intNumber < EPS ? intNumber : Math.round(floatNumber * 10000) / 10000;
    return "".concat(result).concat(unit || 'px');
};
//# sourceMappingURL=DimensionFunctions.js.map