text: function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  
  var Util = require('../../util/common');
  var GuideBase = require('./base');
  
  var Line = function (_GuideBase) {
    _inherits(Line, _GuideBase);
  
    function Line() {
      _classCallCheck(this, Line);
  
      return _possibleConstructorReturn(this, _GuideBase.apply(this, arguments));
    }
  
    Line.prototype._initDefaultCfg = function _initDefaultCfg() {
      this.type = 'line';
      this.start = [];
      this.end = [];
      this.style = {
        stroke: '#000',
        lineWidth: 1
      };
    };
  
    Line.prototype.render = function render(coord, container) {
      var points = [];
      points[0] = this.parsePoint(coord, this.start);
      points[1] = this.parsePoint(coord, this.end);
      var shape = container.addShape('Line', {
        className: 'guide-line',
        attrs: Util.mix({
          x1: points[0].x,
          y1: points[0].y,
          x2: points[1].x,
          y2: points[1].y
        }, this.style)
      });
      this.element = shape;
    };
  
    return Line;
  }(GuideBase);
  
  GuideBase.Line = Line;
  module.exports = Line;