function initialiseSculpting(eventData) {
  var config = freehandSculpter.getConfiguration();
  var element = eventData.element;

  getDistanceToClosestHandleInTool(eventData);
  config.active = true;

  getMouseLocation(eventData);

  // Begin mouseDragCallback loop - call mouseUpCallback at end of drag or straight away if just a click.
  element.addEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_CLICK, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
}
/**
* Choose the tool radius from the mouse position relative to the active freehand
* tool, and begin sculpting.
*
* @param {Object} eventData - Data object associated with the event.
*/
Choose the tool radius from the mouse position relative to the active freehand
tool, and begin sculpting.
Choose the tool radius from the mouse position relative to the active freehand tool and begin sculpting .
function initialiseSculpting(eventData) {
  var config = freehandSculpter.getConfiguration();
  var element = eventData.element;
  getDistanceToClosestHandleInTool(eventData);
  config.active = true;
  getMouseLocation(eventData);
  element.addEventListener(_events2.default.MOUSE_UP, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_CLICK, mouseUpCallback);
  element.addEventListener(_events2.default.MOUSE_DRAG, mouseDragCallback);
}
function initialiseSculpting ( eventData ) { var config = freehandSculpter . getConfiguration ( ) ; var element = eventData . element ; getDistanceToClosestHandleInTool ( eventData ) ; config . active = true ; getMouseLocation ( eventData ) ; element . addEventListener ( _events2 . default . MOUSE_UP , mouseUpCallback ) ; element . addEventListener ( _events2 . default . MOUSE_CLICK , mouseUpCallback ) ; element . addEventListener ( _events2 . default . MOUSE_DRAG , mouseDragCallback ) ; }
Choose the tool radius from the mouse position relative to the active freehand
tool, and begin sculpting.
Choose the tool radius from the mouse position relative to the active freehand tool and begin sculpting .
// Begin mouseDragCallback loop - call mouseUpCallback at end of drag or straight away if just a click.