MCPcopy Create free account
hub / github.com/chartjs/Chart.js / isPointInArea

Method isPointInArea

src/core/core.controller.js:820–822  ·  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

818 * @returns {boolean}
819 */
820 isPointInArea(point) {
821 return _isPointInArea(point, this.chartArea, this._minPadding);
822 }
823
824 getElementsAtEventForMode(e, mode, options, useFinalPosition) {
825 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