src/util/freehand/FreehandLineFinder.js
/**
   * Looks for tools near the mouse cursor.
   *
   * @public
   * @method
   *
   * @returns {ClickedLineData} Data object corresponding to the clicked line.
   */
Looks for tools near the mouse cursor.
@public
@method

@returns {ClickedLineData} Data object corresponding to the clicked line.
Looks for tools near the mouse cursor . @public @method @returns { ClickedLineData } Data object corresponding to the clicked line .
findTool() {
    this._toolData = getToolState(this._eventData.element, this._toolName);
    this._mousePoint = this._eventData.currentPoints.canvas;
    if (!this._toolData) {
      return null;
    }
    const closestHandle = this._nearestHandleToPointAllTools();
    return closestHandle.toolIndex;
  }
findTool ( ) { this . _toolData = getToolState ( this . _eventData . element , this . _toolName ) ; this . _mousePoint = this . _eventData . currentPoints . canvas ; if ( ! this . _toolData ) { return null ; } const closestHandle = this . _nearestHandleToPointAllTools ( ) ; return closestHandle . toolIndex ; }
Looks for tools near the mouse cursor.
Looks for tools near the mouse cursor .