function mouseUpCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var toolData = (0, _toolState.getToolState)(eventData.element, toolType);

  element.removeEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.removeEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
  element.removeEventListener(_events2.default.MOUSE_CLICK, mouseUpCallback);

  element.addEventListener(_events2.default.MOUSE_MOVE, mouseMoveCallback);

  if (toolData === undefined) {
    return;
  }

  var dropped = (0, _dropObject2.default)(e, toolData);

  if (dropped === 'handle') {
    endDrawing(eventData);
  }

  e.preventDefault();
  e.stopPropagation();

  _externalModules2.default.cornerstone.updateImage(eventData.element);
}
/**
* Event handler for MOUSE_UP event.
*
* @param {Object} e - The event.
*/
Event handler for MOUSE_UP event.
Event handler for MOUSE_UP event .
function mouseUpCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var toolData = (0, _toolState.getToolState)(eventData.element, toolType);
  element.removeEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.removeEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
  element.removeEventListener(_events2.default.MOUSE_CLICK, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_MOVE, mouseMoveCallback);
  if (toolData === undefined) {
    return;
  }
  var dropped = (0, _dropObject2.default)(e, toolData);
  if (dropped === 'handle') {
    endDrawing(eventData);
  }
  e.preventDefault();
  e.stopPropagation();
  _externalModules2.default.cornerstone.updateImage(eventData.element);
}
function mouseUpCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var toolData = ( 0 , _toolState . getToolState ) ( eventData . element , toolType ) ; element . removeEventListener ( _events2 . default . MOUSE_UP , mouseUpCallback ) ; element . removeEventListener ( _events2 . default . MOUSE_DRAG , mouseDragCallback ) ; element . removeEventListener ( _events2 . default . MOUSE_CLICK , mouseUpCallback ) ; element . addEventListener ( _events2 . default . MOUSE_MOVE , mouseMoveCallback ) ; if ( toolData === undefined ) { return ; } var dropped = ( 0 , _dropObject2 . default ) ( e , toolData ) ; if ( dropped === 'handle' ) { endDrawing ( eventData ) ; } e . preventDefault ( ) ; e . stopPropagation ( ) ; _externalModules2 . default . cornerstone . updateImage ( eventData . element ) ; }
Event handler for MOUSE_UP event.
Event handler for MOUSE_UP event .