(style_arr?)
| 527 | } |
| 528 | |
| 529 | apply_styles(style_arr?) { |
| 530 | if (style_arr === undefined || style_arr === null) { |
| 531 | style_arr = [ |
| 532 | this.selected_style, |
| 533 | this.unselected_style, |
| 534 | this.hovered_style, |
| 535 | this.unhovered_style, |
| 536 | ]; |
| 537 | } |
| 538 | super.apply_styles(style_arr); |
| 539 | |
| 540 | const all_indices = _.range(this.model.mark_data.length); |
| 541 | |
| 542 | this.set_style_on_elements(this.hovered_style, this.hovered_index); |
| 543 | const unhovered_indices = !this.hovered_index |
| 544 | ? [] |
| 545 | : _.difference(all_indices, this.hovered_index); |
| 546 | this.set_style_on_elements(this.unhovered_style, unhovered_indices); |
| 547 | } |
| 548 | |
| 549 | clear_style(style_dict, indices) { |
| 550 | let nodes = this.d3el.selectAll('.element'); |
no test coverage detected