function addPointPencilMode(eventData, dataHandles) {
  var config = freehand.getConfiguration();

  var mousePoint = config.mouseLocation.handles.start;

  for (var i = 0; i < dataHandles.length; i++) {
    if (_externalModules2.default.cornerstoneMath.point.distance(dataHandles[i], mousePoint) < config.spacing) {
      return;
    }
  }

  addPoint(eventData);
}
/**
* If in pencilMode, check the mouse position is farther than the minimum
* distance between points, then add a point.
*
* @param {Object} eventData - Data object associated with an event.
* @param {Object} dataHandles - Data object associated with the tool.
*/
If in pencilMode, check the mouse position is farther than the minimum
distance between points, then add a point.
If in pencilMode check the mouse position is farther than the minimum distance between points then add a point .
function addPointPencilMode(eventData, dataHandles) {
  var config = freehand.getConfiguration();
  var mousePoint = config.mouseLocation.handles.start;
  for (var i = 0; i < dataHandles.length; i++) {
    if (_externalModules2.default.cornerstoneMath.point.distance(dataHandles[i], mousePoint) < config.spacing) {
      return;
    }
  }
  addPoint(eventData);
}
function addPointPencilMode ( eventData , dataHandles ) { var config = freehand . getConfiguration ( ) ; var mousePoint = config . mouseLocation . handles . start ; for ( var i = 0 ; i < dataHandles . length ; i ++ ) { if ( _externalModules2 . default . cornerstoneMath . point . distance ( dataHandles [ i ] , mousePoint ) < config . spacing ) { return ; } } addPoint ( eventData ) ; }
If in pencilMode, check the mouse position is farther than the minimum
distance between points, then add a point.
If in pencilMode check the mouse position is farther than the minimum distance between points then add a point .