grafanimate icon indicating copy to clipboard operation
grafanimate copied to clipboard

Event handling broken since Grafana 8 introduced React

Open amotl opened this issue 2 years ago • 1 comments

Hi there,

since Grafana 8 introduced React, grafanimate is having a hard time to properly synchronize with the frontend in order to capture frames efficiently. More information can be found at ^1.

With kind regards, Andreas.

amotl avatar Sep 20 '22 19:09 amotl

@IntermittentNRG apparently found a solution for newer versions of Grafana, and submitted GH-19, reflecting that. Thanks a stack!

The code just invokes grafanaRuntime.getPanelData() and checks the result items for state=='Done', without further ado. It could have been so easy! ;]

It is still a synthesized event handling, but much better than waiting for unknown amounts of time through the currently implemented exposure-time option.

amotl avatar Oct 15 '23 19:10 amotl