text: 'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _d3Scale = require('d3-scale');
  
  exports.default = function (_ref) {
    var range = _ref.range,
        rangeRound = _ref.rangeRound,
        domain = _ref.domain,
        padding = _ref.padding,
        paddingInner = _ref.paddingInner,
        paddingOuter = _ref.paddingOuter,
        align = _ref.align,
        tickFormat = _ref.tickFormat;
  
    var scale = (0, _d3Scale.scaleBand)();
    scale.type = 'band';
  
    if (range) scale.range(range);
    if (rangeRound) scale.rangeRound(rangeRound);
    if (domain) scale.domain(domain);
    if (padding) scale.padding(padding);
    if (paddingInner) scale.paddingInner(paddingInner);
    if (paddingOuter) scale.paddingOuter(paddingOuter);
    if (align) scale.align(align);
    if (tickFormat) scale.tickFormat = tickFormat;
  
    return scale;
  };