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

Function show_tooltip

js/src/Mark.ts:325–351  ·  view source on GitHub ↗
(mouse_events?)

Source from the content-addressed store, hash-verified

323 abstract compute_view_padding();
324
325 show_tooltip(mouse_events?) {
326 //this function displays the tooltip at the location of the mouse
327 //event is the d3 event for the data.
328 //mouse_events is a boolean to enable mouse_events or not.
329 //If this property has never been set, it will default to false.
330 if (this.tooltip_view) {
331 if (
332 mouse_events === undefined ||
333 mouse_events === null ||
334 !mouse_events
335 ) {
336 this.tooltip_div.style('pointer-events', 'none');
337 } else {
338 this.tooltip_div.style('pointer-events', 'all');
339 }
340 applyStyles(this.tooltip_div, this.model.get('tooltip_style')).style(
341 'display',
342 null
343 );
344 MessageLoop.sendMessage(
345 getLuminoWidget(this.tooltip_view),
346 Widget.Msg.AfterShow
347 );
348 this.parent.popper.enableEventListeners();
349 this.move_tooltip();
350 }
351 }
352
353 move_tooltip(mouse_events?) {
354 if (this.tooltip_view) {

Callers

nothing calls this directly

Calls 3

applyStylesFunction · 0.90
getLuminoWidgetFunction · 0.90
move_tooltipMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…