MCPcopy
hub / github.com/dc-js/dc.js / fadeDeselectedArea

Method fadeDeselectedArea

src/base/bubble-mixin.js:280–296  ·  view source on GitHub ↗
(selection)

Source from the content-addressed store, hash-verified

278 }
279
280 fadeDeselectedArea (selection) {
281 if (this.hasFilter()) {
282 const chart = this;
283 this.selectAll(`g.${chart.BUBBLE_NODE_CLASS}`).each(function (d) {
284 if (chart.isSelectedNode(d)) {
285 chart.highlightSelected(this);
286 } else {
287 chart.fadeDeselected(this);
288 }
289 });
290 } else {
291 const chart = this;
292 this.selectAll(`g.${chart.BUBBLE_NODE_CLASS}`).each(function () {
293 chart.resetHighlight(this);
294 });
295 }
296 }
297
298 isSelectedNode (d) {
299 return this.hasFilter(d.key);

Callers

nothing calls this directly

Calls 6

hasFilterMethod · 0.80
selectAllMethod · 0.80
fadeDeselectedMethod · 0.80
resetHighlightMethod · 0.80
isSelectedNodeMethod · 0.45
highlightSelectedMethod · 0.45

Tested by

no test coverage detected