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';
var shapes = {
  Diamond: {
    width: 80,
    height: 80,
    stylesheet: 'rhombus;whiteSpace=wrap;html=1;'
  },
  Triangle: {
    width: 60,
    height: 80,
    stylesheet: 'triangle;whiteSpace=wrap;html=1;'
  },
  Cylinder: {
    width: 60,
    height: 80,
    stylesheet: 'shape=cylinder;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;'
  },
  Cloud: {
    width: 120,
    height: 80,
    stylesheet: 'ellipse;shape=cloud;whiteSpace=wrap;html=1;'
  }
};
var components = {};

var _loop = function _loop(key) {
  var _class, _temp;

  var value = shapes[key];
  components[key] = (_temp = _class =
  /*#__PURE__*/
  function (_DShape) {
    _inheritsLoose(_class, _DShape);

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

    var _proto = _class.prototype;

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

    _proto._getStylesheet = function _getStylesheet() {
      return value.stylesheet;
    };

    return _class;
  }(DShape), _defineProperty(_class, "displayName", "D" + key), _temp);
};

for (var key in shapes) {
  _loop(key);
}

export default components;