import _Object$assign from "@babel/runtime-corejs2/core-js/object/assign";
import _inheritsLoose from "../../../inheritsLoose";
import _defineProperty from "@babel/runtime-corejs2/helpers/defineProperty";
import { DShape } from './shape';
export var DImage =
/*#__PURE__*/
function (_DShape) {
  _inheritsLoose(DImage, _DShape);

  function DImage() {
    return _DShape.apply(this, arguments) || this;
  }

  var _proto = DImage.prototype;

  _proto.defaults = function defaults() {
    return _Object$assign({}, _DShape.prototype.defaults.call(this), {
      width: 80,
      height: 80,
      src: ''
    });
  };

  _proto._getStylesheet = function _getStylesheet() {
    var _this$get = this.get(),
        src = _this$get.src;

    return "image;html=1;labelBackgroundColor=#ffffff;image=" + src + ";";
  };

  return DImage;
}(DShape);

_defineProperty(DImage, "displayName", 'DImage');

_defineProperty(DImage, "propTypes", _Object$assign({}, DShape.propTypes, {
  src: String
}));