_getActiveElements(e, lastActive, inChartArea, useFinalPosition) {
    if (e.type === 'mouseout') {
      return [];
    }

    if (!inChartArea) {
      // Let user control the active elements outside chartArea. Eg. using Legend.
      return lastActive;
    }

    const hoverOptions = this.options.hover;
    return this.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions, useFinalPosition);
  }
@param {ChartEvent} e - The event
@param {import('../types/index.js').ActiveElement[]} lastActive - Previously active elements
@param {boolean} inChartArea - Is the event inside chartArea
@param {boolean} useFinalPosition - Should the evaluation be done with current or final (after animation) element positions
@returns {import('../types/index.js').ActiveElement[]} - The active elements
@pravate