@@ -5,7 +5,7 @@ import {_isPointInArea} from '../helpers/helpers.canvas';
55import { _lookup , _rlookup } from '../helpers/helpers.collection' ;
66
77/**
8- * @typedef { import("./core.controller") } Chart
8+ * @typedef { import("./core.controller").Chart } Chart
99 */
1010
1111/**
@@ -121,7 +121,7 @@ function getDistanceMetricForAxis(axis) {
121121 * @param {Chart } chart - the chart
122122 * @param {object } position - the point to be nearest to
123123 * @param {string } axis - the axis mode. x|y|xy
124- * @return {ChartElement [] } the nearest items
124+ * @return {object [] } the nearest items
125125 */
126126function getIntersectItems ( chart , position , axis ) {
127127 const items = [ ] ;
@@ -146,7 +146,7 @@ function getIntersectItems(chart, position, axis) {
146146 * @param {object } position - the point to be nearest to
147147 * @param {string } axis - the axes along which to measure distance
148148 * @param {boolean } [intersect] - if true, only consider items that intersect the position
149- * @return {ChartElement [] } the nearest items
149+ * @return {object [] } the nearest items
150150 */
151151function getNearestItems ( chart , position , axis , intersect ) {
152152 const distanceMetric = getDistanceMetricForAxis ( axis ) ;
0 commit comments