mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Heatmap: Fixes issue introduced by new eventbus (#29322)
This commit is contained in:
parent
a6eebc22e8
commit
8e9778215b
@ -735,7 +735,7 @@ export class HeatmapRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMouseLeave() {
|
onMouseLeave() {
|
||||||
this.ctrl.dashboard.$emit(new LegacyGraphHoverClearEvent());
|
this.ctrl.dashboard.events.publish(new LegacyGraphHoverClearEvent());
|
||||||
this.clearCrosshair();
|
this.clearCrosshair();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -781,7 +781,7 @@ export class HeatmapRenderer {
|
|||||||
// Set minimum offset to prevent showing legend from another panel
|
// Set minimum offset to prevent showing legend from another panel
|
||||||
pos.panelRelY = Math.max(pos.offset.y / this.height, 0.001);
|
pos.panelRelY = Math.max(pos.offset.y / this.height, 0.001);
|
||||||
// broadcast to other graph panels that we are hovering
|
// broadcast to other graph panels that we are hovering
|
||||||
this.ctrl.dashboard.events.emit$(new LegacyGraphHoverEvent({ pos: pos, panel: this.panel }));
|
this.ctrl.dashboard.events.publish(new LegacyGraphHoverEvent({ pos: pos, panel: this.panel }));
|
||||||
}
|
}
|
||||||
|
|
||||||
limitSelection(x2: number) {
|
limitSelection(x2: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user