* The point the interaction modes measure an element by: the centre of the visible part * for a bar, the centre point for any other element.
(el, chartArea)
| 27 | * for a bar, the centre point for any other element. |
| 28 | */ |
| 29 | function getMeasurePoint(el, chartArea) { |
| 30 | const areaCenter = chartArea && el._getAreaCenter && el._getAreaCenter(chartArea); |
| 31 | return areaCenter || el.getCenterPoint(); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * The point the tooltip anchors to. A bar cut off by the chart area points at the centre |
no test coverage detected