MCPcopy Index your code
hub / github.com/bqplot/bqplot / mouseover_handler

Method mouseover_handler

js/src/MarketMap.ts:719–739  ·  view source on GitHub ↗
(data, id, cell)

Source from the content-addressed store, hash-verified

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;

Callers 1

draw_mapMethod · 0.45

Calls 3

show_tooltipMethod · 0.95
applyStylesFunction · 0.90
sendMethod · 0.80

Tested by

no test coverage detected