function mouseDownCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var options = (0, _toolOptions.getToolOptions)(toolType, element);

  if (!(0, _isMouseButtonEnabled2.default)(eventData.which, options.mouseButtonMask)) {
    return;
  }

  var config = freehand.getConfiguration();
  var currentTool = config.currentTool;

  if (currentTool < 0) {
    mouseDownPassive(e);
  } else {
    var toolData = (0, _toolState.getToolState)(eventData.element, toolType);

    if (currentTool >= 0 && toolData.data[currentTool].active) {
      mouseDownActive(e, toolData, currentTool);
    }
  }
}
/**
* Event handler for MOUSE_DOWN event.
*
* @event
* @param {Object} e - The event.
*/
Event handler for MOUSE_DOWN event.
Event handler for MOUSE_DOWN event .
function mouseDownCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var options = (0, _toolOptions.getToolOptions)(toolType, element);
  if (!(0, _isMouseButtonEnabled2.default)(eventData.which, options.mouseButtonMask)) {
    return;
  }
  var config = freehand.getConfiguration();
  var currentTool = config.currentTool;
  if (currentTool < 0) {
    mouseDownPassive(e);
  } else {
    var toolData = (0, _toolState.getToolState)(eventData.element, toolType);
    if (currentTool >= 0 && toolData.data[currentTool].active) {
      mouseDownActive(e, toolData, currentTool);
    }
  }
}
function mouseDownCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var options = ( 0 , _toolOptions . getToolOptions ) ( toolType , element ) ; if ( ! ( 0 , _isMouseButtonEnabled2 . default ) ( eventData . which , options . mouseButtonMask ) ) { return ; } var config = freehand . getConfiguration ( ) ; var currentTool = config . currentTool ; if ( currentTool < 0 ) { mouseDownPassive ( e ) ; } else { var toolData = ( 0 , _toolState . getToolState ) ( eventData . element , toolType ) ; if ( currentTool >= 0 && toolData . data [ currentTool ] . active ) { mouseDownActive ( e , toolData , currentTool ) ; } } }
Event handler for MOUSE_DOWN event.
Event handler for MOUSE_DOWN event .