(data, id, cell)
| 717 | } |
| 718 | |
| 719 | mouseover_handler(data, id, cell) { |
| 720 | const transform = d3.select(cell).attr('transform'); |
| 721 | if (this.model.get('enable_hover')) { |
| 722 | const rect = this.fig_hover |
| 723 | .append('rect') |
| 724 | .attr('class', 'hover_' + id) |
| 725 | .attr('transform', transform) |
| 726 | .attr('x', 0) |
| 727 | .attr('y', 0) |
| 728 | .attr('width', this.column_width) |
| 729 | .attr('height', this.row_height); |
| 730 | applyStyles(rect, { |
| 731 | stroke: this.hovered_stroke, |
| 732 | 'stroke-width': '3px', |
| 733 | fill: 'none', |
| 734 | 'pointer-events': 'none', |
| 735 | }); |
| 736 | this.show_tooltip(d3.event, data); |
| 737 | this.send({ event: 'hover', data: data.name, ref_data: data.ref_data }); |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | update_selected_stroke(model, value) { |
| 742 | this.selected_stroke = value; |
no test coverage detected