()
| 374 | |
| 375 | export 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(); |
nothing calls this directly
no test coverage detected