import { DragObjectType } from '../types';
// import { DragEvent } from 'react'
var Dragon = function Dragon(innerDragon) {
  var _this = this;
  this.innerDragon = void 0;
  this.onNodeDataDragStart = function (packageName) {
    if (_this.innerDragon.designer.componentSpecMap.has(packageName)) {
      _this.innerDragon.onDragStart({
        type: DragObjectType.NodeData,
        data: _this.innerDragon.designer.componentSpecMap.get(packageName)
      });
    }
  };
  this.innerDragon = innerDragon;
};
export { Dragon as default };