code: function _deletePoint(eventData, deleteInfo) {
    const toolData = getToolState(eventData.element, this.name);
  
    if (toolData === undefined) {
      return;
    }
  
    const deleteHandle = deleteInfo.handleIndex;
    const toolIndex = deleteInfo.toolIndex;
  
    // Get the toolData from insertInfo
    const data = toolData.data[toolIndex];
  
    const points = data.handles.points;
  
    // Only allow delete if > 3 points
    if (points.length <= 3) {
      return;
    }
  
    // Link the line of the previous handle to the one after handles[deleteHandle];
    if (deleteHandle === points.length - 1) {
      points[deleteHandle - 1].lines.pop();
      points[deleteHandle - 1].lines.push(points[0]);
    } else if (deleteHandle === 0) {
      points[points.length - 1].lines.pop();
      points[points.length - 1].lines.push(points[deleteHandle + 1]);
    } else {
      points[deleteHandle - 1].lines.pop();
      points[deleteHandle - 1].lines.push(points[deleteHandle + 1]);
    }
  
    // Remove the handle
    points.splice(deleteHandle, 1);
  
    data.invalidated = true;
    data.active = true;
    data.highlight = true;
  
    // Force onImageRendered to fire
    external.cornerstone.updateImage(eventData.element);
  }
docs: Deletes a point from a freehand tool.
  @private
  @method
  
  @param {Object} eventData The data object associated with the event.
  @param {Object} deleteInfo Object containing information about which point to delete.
  @returns {void}