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

Method update_text

js/src/BrushSelector.ts:662–676  ·  view source on GitHub ↗
(item, extent)

Source from the content-addressed store, hash-verified

660 }
661
662 update_text(item, extent) {
663 if (extent === null) {
664 this.d3el.select('.brush_text_' + item).style('display', 'none');
665 return;
666 }
667
668 const orient = this.model.get('orientation') == 'vertical' ? 'y' : 'x';
669 const hide_names = !this.model.get('show_names');
670 const mid = (extent[0] + extent[1]) / 2;
671
672 this.d3el
673 .select('.brush_text_' + item)
674 .style('display', hide_names ? 'none' : 'inline')
675 .attr(orient, mid);
676 }
677
678 multi_brush_end(item) {
679 if (this.ignoreBrushEvents) {

Callers 2

multi_brush_moveMethod · 0.95
syncModelToBrushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected