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

Method diff

src/core/core.controller.js:1151–1151  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1149 _updateHoverStyles(active, lastActive, replay) {
1150 const hoverOptions = this.options.hover;
1151 const diff = (a, b) => a.filter(x => !b.some(y => x.datasetIndex === y.datasetIndex && x.index === y.index));
1152 const deactivated = diff(lastActive, active);
1153 const activated = replay ? active : diff(active, lastActive);
1154

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected