()
| 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 |
no test coverage detected