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

Method diff

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected