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

Function mouse_over

js/src/Mark.ts:522–537  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 }
521
522 mouse_over() {
523 if (this.model.get('enable_hover')) {
524 const el = d3.select(d3GetEvent().target);
525 if (this.is_hover_element(el)) {
526 const data: any = el.data()[0];
527 //make tooltip visible
528 const hovered_data = this.model.get_data_dict(data, data.index);
529 this.trigger('update_tooltip', hovered_data);
530 this.show_tooltip();
531 this.send({
532 event: 'hover',
533 point: hovered_data,
534 });
535 }
536 }
537 }
538
539 mouse_out() {
540 if (this.model.get('enable_hover')) {

Callers

nothing calls this directly

Calls 4

d3GetEventFunction · 0.90
show_tooltipMethod · 0.80
sendMethod · 0.80
get_data_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…