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

Method _positionChanged

src/plugins/plugin.tooltip.js:1216–1220  ·  view source on GitHub ↗

* Determine if the active elements + event combination changes the * tooltip position * @param {array} active - Active elements * @param {ChartEvent} e - Event that triggered the position change * @returns {boolean} True if the position has changed

(active, e)

Source from the content-addressed store, hash-verified

1214 * @returns {boolean} True if the position has changed
1215 */
1216 _positionChanged(active, e) {
1217 const {caretX, caretY, options} = this;
1218 const position = positioners[options.position].call(this, active, e);
1219 return position !== false && (caretX !== position.x || caretY !== position.y);
1220 }
1221}
1222
1223export default {

Callers 2

setActiveElementsMethod · 0.95
handleEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected