Heatmap: Fixes issue introduced by new eventbus (#29322)

This commit is contained in:
Torkel Ödegaard 2020-11-24 09:31:25 +01:00 committed by GitHub
parent a6eebc22e8
commit 8e9778215b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -735,7 +735,7 @@ export class HeatmapRenderer {
}
onMouseLeave() {
this.ctrl.dashboard.$emit(new LegacyGraphHoverClearEvent());
this.ctrl.dashboard.events.publish(new LegacyGraphHoverClearEvent());
this.clearCrosshair();
}
@ -781,7 +781,7 @@ export class HeatmapRenderer {
// Set minimum offset to prevent showing legend from another panel
pos.panelRelY = Math.max(pos.offset.y / this.height, 0.001);
// 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) {