MCPcopy
hub / github.com/chartjs/Chart.js / evaluationFunc

Function evaluationFunc

src/core/core.interaction.js:121–128  ·  src/core/core.interaction.js::evaluationFunc
(element, datasetIndex, index)

Source from the content-addressed store, hash-verified

119 }
120
121 const evaluationFunc = function(element, datasetIndex, index) {
122 if (!includeInvisible && !_isPointInArea(element, chart.chartArea, 0)) {
123 return;
124 }
125 if (element.inRange(position.x, position.y, useFinalPosition)) {
126 items.push({element, datasetIndex, index});
127 }
128 };
129
130 evaluateInteractionItems(chart, axis, position, evaluationFunc, true);
131 return items;

Callers

nothing calls this directly

Calls 7

_isPointInAreaFunction · 0.85
getAngleFromPointFunction · 0.85
_angleBetweenFunction · 0.85
getPropsMethod · 0.80
isPointInAreaMethod · 0.80
inRangeMethod · 0.65
getCenterPointMethod · 0.65

Tested by

no test coverage detected