function mouseDownActivateCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var config = freehand.getConfiguration();
  var options = (0, _toolOptions.getToolOptions)(toolType, element);

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

  if (eventData.event.shiftKey) {
    config.activePencilMode = true;
  }

  startDrawing(eventData);
  addPoint(eventData);

  e.preventDefault();
  e.stopPropagation();
}
/**
* Event handler for MOUSE_DOWN_ACTIVATE event, if tool is active and
* the event is not caught by mouseDownCallback
*
* @event
* @param {Object} e - The event.
*/
Event handler for MOUSE_DOWN_ACTIVATE event, if tool is active and
the event is not caught by mouseDownCallback
Event handler for MOUSE_DOWN_ACTIVATE event if tool is active and the event is not caught by mouseDownCallback
function mouseDownActivateCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var config = freehand.getConfiguration();
  var options = (0, _toolOptions.getToolOptions)(toolType, element);
  if (!(0, _isMouseButtonEnabled2.default)(eventData.which, options.mouseButtonMask)) {
    return;
  }
  if (eventData.event.shiftKey) {
    config.activePencilMode = true;
  }
  startDrawing(eventData);
  addPoint(eventData);
  e.preventDefault();
  e.stopPropagation();
}
function mouseDownActivateCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var config = freehand . getConfiguration ( ) ; var options = ( 0 , _toolOptions . getToolOptions ) ( toolType , element ) ; if ( ! ( 0 , _isMouseButtonEnabled2 . default ) ( eventData . which , options . mouseButtonMask ) ) { return ; } if ( eventData . event . shiftKey ) { config . activePencilMode = true ; } startDrawing ( eventData ) ; addPoint ( eventData ) ; e . preventDefault ( ) ; e . stopPropagation ( ) ; }
Event handler for MOUSE_DOWN_ACTIVATE event, if tool is active and
the event is not caught by mouseDownCallback
Event handler for MOUSE_DOWN_ACTIVATE event if tool is active and the event is not caught by mouseDownCallback