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,
        _ref$nice = _ref.nice,
        nice = _ref$nice === undefined ? false : _ref$nice,
        _ref$clamp = _ref.clamp,
        clamp = _ref$clamp === undefined ? false : _ref$clamp;
  
    var scale = (0, _d3Scale.scaleLinear)();
  
    if (range) scale.range(range);
    if (rangeRound) scale.rangeRound(rangeRound);
    if (domain) scale.domain(domain);
    if (nice) scale.nice();
    if (clamp) scale.clamp(true);
  
    return scale;
  };