src/tools/FreehandRoiSculptorTool.js
/**
   * _pushHandles -Pushes the points radially away from the mouse if they are
   * contained within the circle defined by the freehandSculpter's toolSize and
   * the mouse position.
   *
   * @returns {Object}  The first and last pushedHandles.
   */
Pushes the points radially away from the mouse if they are
contained within the circle defined by the freehandSculpter's toolSize and
the mouse position.

@returns {Object}  The first and last pushedHandles.
Pushes the points radially away from the mouse if they are contained within the circle defined by the freehandSculpter ' s toolSize and the mouse position . @returns { Object } The first and last pushedHandles .
_pushHandles() {
    const { points, mousePoint, toolSize } = this._sculptData;
    const pushedHandles = {};
    for (let i = 0; i < points.length; i++) {
      const distanceToHandle = external.cornerstoneMath.point.distance(
        points[i],
        mousePoint
      );
      if (distanceToHandle > toolSize) {
        continue;
      }
      this._pushOneHandle(i, distanceToHandle);
      if (pushedHandles.first === undefined) {
        pushedHandles.first = i;
        pushedHandles.last = i;
      } else {
        pushedHandles.last = i;
      }
    }
    return pushedHandles;
  }
_pushHandles ( ) { const { points , mousePoint , toolSize } = this . _sculptData ; const pushedHandles = { } ; for ( let i = 0 ; i < points . length ; i ++ ) { const distanceToHandle = external . cornerstoneMath . point . distance ( points [ i ] , mousePoint ) ; if ( distanceToHandle > toolSize ) { continue ; } this . _pushOneHandle ( i , distanceToHandle ) ; if ( pushedHandles . first === undefined ) { pushedHandles . first = i ; pushedHandles . last = i ; } else { pushedHandles . last = i ; } } return pushedHandles ; }
_pushHandles -Pushes the points radially away from the mouse if they are
 contained within the circle defined by the freehandSculpter's toolSize and
 the mouse position.
_pushHandles - Pushes the points radially away from the mouse if they are contained within the circle defined by the freehandSculpter ' s toolSize and the mouse position .
// Push point if inside circle, to edge of circle.