()
| 224 | |
| 225 | export class BrushSelector extends BrushMixinXYSelector { |
| 226 | async render() { |
| 227 | await super.render(); |
| 228 | this.brush_render(); |
| 229 | |
| 230 | await this.create_scales(); |
| 231 | await this.mark_views_promise; |
| 232 | this.brush = d3 |
| 233 | .brush() |
| 234 | .on('start', _.bind(this.brush_start, this)) |
| 235 | .on('brush', _.bind(this.brush_move, this)) |
| 236 | .on('end', _.bind(this.brush_end, this)); |
| 237 | this.brush.extent([ |
| 238 | [0, 0], |
| 239 | [this.width, this.height], |
| 240 | ]); |
| 241 | |
| 242 | this.d3el.attr('class', 'selector brushintsel'); |
| 243 | this.d3el.call(this.brush); |
| 244 | this.adjust_rectangle(); |
| 245 | this.color_change(); |
| 246 | this.create_listeners(); |
| 247 | this.selected_changed(); |
| 248 | } |
| 249 | |
| 250 | create_listeners() { |
| 251 | super.create_listeners(); |
no test coverage detected