(mouse_events?)
| 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) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…