function modifyTextBox(element, nearby) {
  var config = freehand.getConfiguration();
  var handleNearby = nearby.handleNearby;
  var toolIndex = nearby.toolIndex;

  element.addEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
  config.movingTextBox = true;
  config.currentHandle = handleNearby;
  config.currentTool = toolIndex;
}
/**
* Event handler called by mouseDownPassive which modifies a tool's textBox.
*
* @param {Object} element - The element associated with the event.
* @param {Object} nearby - Object containing information about a nearby handle.
*/
Event handler called by mouseDownPassive which modifies a tool's textBox.
Event handler called by mouseDownPassive which modifies a tool ' s textBox .
function modifyTextBox(element, nearby) {
  var config = freehand.getConfiguration();
  var handleNearby = nearby.handleNearby;
  var toolIndex = nearby.toolIndex;
  element.addEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
  config.movingTextBox = true;
  config.currentHandle = handleNearby;
  config.currentTool = toolIndex;
}
function modifyTextBox ( element , nearby ) { var config = freehand . getConfiguration ( ) ; var handleNearby = nearby . handleNearby ; var toolIndex = nearby . toolIndex ; element . addEventListener ( _events2 . default . MOUSE_UP , mouseUpCallback ) ; element . addEventListener ( _events2 . default . MOUSE_DRAG , mouseDragCallback ) ; config . movingTextBox = true ; config . currentHandle = handleNearby ; config . currentTool = toolIndex ; }
Event handler called by mouseDownPassive which modifies a tool's textBox.
Event handler called by mouseDownPassive which modifies a tool ' s textBox .