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

Method relayout

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

Source from the content-addressed store, hash-verified

457 }
458
459 relayout() {
460 super.relayout();
461
462 this.adjust_rectangle();
463 this.d3el
464 .select('.background')
465 .attr('width', this.width)
466 .attr('height', this.height);
467
468 this.set_range([this.scale]);
469 this.brush.extent([
470 [0, 0],
471 [this.width, this.height],
472 ]);
473 this.syncModelToBrush();
474 }
475
476 private syncModelToBrush() {
477 // Move and redraw the brush selector, 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