MCPcopy Index your code
hub / github.com/bqplot/bqplot / reset_selection

Method reset_selection

js/src/Map.ts:380–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378 }
379
380 reset_selection() {
381 this.model.set('selected', []);
382 this.touch();
383 this.highlight_g.selectAll('.selected').remove();
384 d3.select(this.d3el.node().parentNode as Element)
385 .selectAll('path')
386 .classed('selected', false);
387 d3.select(this.d3el.node().parentNode as Element)
388 .selectAll('path')
389 .classed('hovered', false);
390
391 this.stroke_g.selectAll('path').style('stroke', (d, i) => {
392 return this.hoverfill(d, i);
393 });
394 this.fill_g
395 .selectAll('path')
396 .classed('selected', false)
397 .style('fill', (d, i) => {
398 return this.fill_g_colorfill(d, i);
399 });
400 }
401
402 change_stroke_color() {
403 this.stroke_g

Callers

nothing calls this directly

Calls 3

hoverfillMethod · 0.95
fill_g_colorfillMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected