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

Method render

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

Source from the content-addressed store, hash-verified

374
375export class BrushIntervalSelector extends BrushMixinXSelector {
376 async render() {
377 await super.render();
378 this.brush_render();
379
380 await this.mark_views_promise;
381 await this.create_scales();
382 this.brush = (
383 this.model.get('orientation') == 'vertical' ? d3.brushY() : d3.brushX()
384 )
385 .on('start', _.bind(this.brush_start, this))
386 .on('brush', _.bind(this.brush_move, this))
387 .on('end', _.bind(this.brush_end, this));
388 this.brush.extent([
389 [0, 0],
390 [this.width, this.height],
391 ]);
392
393 this.d3el.attr('class', 'selector brushintsel');
394 this.d3el.call(this.brush);
395 this.adjust_rectangle();
396 this.color_change();
397 this.create_listeners();
398 this.selected_changed();
399 }
400
401 create_listeners() {
402 super.create_listeners();

Callers

nothing calls this directly

Calls 5

create_listenersMethod · 0.95
selected_changedMethod · 0.95
renderMethod · 0.45
adjust_rectangleMethod · 0.45
color_changeMethod · 0.45

Tested by

no test coverage detected