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

Method relayout

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

Source from the content-addressed store, hash-verified

319 }
320
321 relayout() {
322 super.relayout();
323 this.d3el
324 .select('.background')
325 .attr('width', this.width)
326 .attr('height', this.height);
327
328 this.set_x_range([this.x_scale]);
329 this.set_y_range([this.y_scale]);
330
331 this.brush.extent([
332 [0, 0],
333 [this.width, this.height],
334 ]);
335 this.syncModelToBrush();
336 }
337
338 private syncModelToBrush() {
339 // Move and redraw the brush selector, preventing move events to be triggered

Callers 2

relayoutMethod · 0.45
relayoutMethod · 0.45

Calls 2

syncModelToBrushMethod · 0.95
set_x_rangeMethod · 0.80

Tested by

no test coverage detected