MCPcopy Create free account
hub / github.com/bqplot/bqplot / relayout

Method relayout

js/src/BrushSelector.ts:717–734  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

715 selected_changed() {}
716
717 relayout() {
718 super.relayout();
719
720 this.adjust_rectangle();
721 this.d3el
722 .select('.background')
723 .attr('width', this.width)
724 .attr('height', this.height);
725
726 this.set_range([this.scale]);
727 this.brushes.forEach((brush) => {
728 brush.extent([
729 [0, 0],
730 [this.width, this.height],
731 ]);
732 });
733 this.syncModelToBrush();
734 }
735
736 private syncModelToBrush() {
737 // Move and redraw the brush selectors, preventing move events to be triggered

Callers

nothing calls this directly

Calls 4

syncModelToBrushMethod · 0.95
set_rangeMethod · 0.80
relayoutMethod · 0.45
adjust_rectangleMethod · 0.45

Tested by

no test coverage detected