function mouseUpCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var config = freehandSculpter.getConfiguration();

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

  config.active = false;

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

  triggerStatisticsCalculation(eventData);
}
/**
* 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 config = freehandSculpter.getConfiguration();
  element.removeEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.removeEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
  element.removeEventListener(_events2.default.MOUSE_CLICK, mouseUpCallback);
  config.active = false;
  e.preventDefault();
  e.stopPropagation();
  triggerStatisticsCalculation(eventData);
}
function mouseUpCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var config = freehandSculpter . getConfiguration ( ) ; element . removeEventListener ( _events2 . default . MOUSE_UP , mouseUpCallback ) ; element . removeEventListener ( _events2 . default . MOUSE_DRAG , mouseDragCallback ) ; element . removeEventListener ( _events2 . default . MOUSE_CLICK , mouseUpCallback ) ; config . active = false ; e . preventDefault ( ) ; e . stopPropagation ( ) ; triggerStatisticsCalculation ( eventData ) ; }
Event handler for MOUSE_UP event.
Event handler for MOUSE_UP event .