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

Method isPointInArea

src/core/core.controller.js:816–818  ·  view source on GitHub ↗

* Checks whether the given point is in the chart area. * @param {Point} point - in relative coordinates (see, e.g., getRelativePosition) * @returns {boolean}

(point)

Source from the content-addressed store, hash-verified

814 * @returns {boolean}
815 */
816 isPointInArea(point) {
817 return _isPointInArea(point, this.chartArea, this._minPadding);
818 }
819
820 getElementsAtEventForMode(e, mode, options, useFinalPosition) {
821 const method = Interaction.modes[mode];

Callers 4

_eventHandlerMethod · 0.95
getIntersectItemsFunction · 0.80
evaluationFuncFunction · 0.80
getNearestItemsFunction · 0.80

Calls 1

_isPointInAreaFunction · 0.85

Tested by

no test coverage detected