text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const DragComponent_1 = require("../Component/DragComponent");
  class DragElement extends DragComponent_1.DragComponent {
      constructor(paper, paperRect = null, regionData, callbacks) {
          super(paper, paperRect, regionData, callbacks);
          this.dragNode = paper.circle(this.x, this.y, DragElement.DEFAULT_DRAG_RADIUS);
          this.dragNode.addClass("dragPointStyle");
          this.node.add(this.dragNode);
          this.subscribeToDragEvents();
      }
      redraw() {
          window.requestAnimationFrame(() => {
              this.dragNode.attr({
                  cx: this.x,
                  cy: this.y
              });
          });
      }
  }
  DragElement.DEFAULT_DRAG_RADIUS = 7;
  exports.DragElement = DragElement;
  //# sourceMappingURL=DragElement.js.map