text: 'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  
  exports.default = Columns;
  
  var _react = require('react');
  
  var _react2 = _interopRequireDefault(_react);
  
  var _classnames = require('classnames');
  
  var _classnames2 = _interopRequireDefault(_classnames);
  
  var _propTypes = require('prop-types');
  
  var _propTypes2 = _interopRequireDefault(_propTypes);
  
  var _shape = require('@vx/shape');
  
  var _group = require('@vx/group');
  
  var _point = require('@vx/point');
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  
  Columns.propTypes = {
    top: _propTypes2.default.number,
    left: _propTypes2.default.number,
    className: _propTypes2.default.string,
    stroke: _propTypes2.default.string,
    strokeWidth: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
    strokeDasharray: _propTypes2.default.string,
    numTicks: _propTypes2.default.number,
    lineStyle: _propTypes2.default.object,
    offset: _propTypes2.default.number,
    scale: _propTypes2.default.func.isRequired,
    height: _propTypes2.default.number.isRequired,
    tickValues: _propTypes2.default.array
  };
  
  function Columns(_ref) {
    var _ref$top = _ref.top,
        top = _ref$top === undefined ? 0 : _ref$top,
        _ref$left = _ref.left,
        left = _ref$left === undefined ? 0 : _ref$left,
        scale = _ref.scale,
        height = _ref.height,
        _ref$stroke = _ref.stroke,
        stroke = _ref$stroke === undefined ? '#eaf0f6' : _ref$stroke,
        _ref$strokeWidth = _ref.strokeWidth,
        strokeWidth = _ref$strokeWidth === undefined ? 1 : _ref$strokeWidth,
        strokeDasharray = _ref.strokeDasharray,
        className = _ref.className,
        _ref$numTicks = _ref.numTicks,
        numTicks = _ref$numTicks === undefined ? 10 : _ref$numTicks,
        lineStyle = _ref.lineStyle,
        offset = _ref.offset,
        tickValues = _ref.tickValues,
        restProps = _objectWithoutProperties(_ref, ['top', 'left', 'scale', 'height', 'stroke', 'strokeWidth', 'strokeDasharray', 'className', 'numTicks', 'lineStyle', 'offset', 'tickValues']);
  
    var ticks = scale.ticks ? scale.ticks(numTicks) : scale.domain();
    if (tickValues) ticks = tickValues;
    return _react2.default.createElement(
      _group.Group,
      { className: (0, _classnames2.default)('vx-columns', className), top: top, left: left },
      ticks.map(function (d, i) {
        var x = offset ? scale(d) + offset : scale(d);
        var fromPoint = new _point.Point({
          x: x,
          y: 0
        });
        var toPoint = new _point.Point({
          x: x,
          y: height
        });
        return _react2.default.createElement(_shape.Line, _extends({
          key: 'column-line-' + d + '-' + i,
          from: fromPoint,
          to: toPoint,
          stroke: stroke,
          strokeWidth: strokeWidth,
          strokeDasharray: strokeDasharray,
          style: lineStyle
        }, restProps));
      })
    );
  }