The object plotlyEvent passed to a listener to plotly_click events contains amongst other the properties:
plotlyEvent.points[0].data = trace before transforms
plotlyEvent.points[0].fullData = trace after transforms
This codepen shows a chart with a sort transform that reorders the circles from A, B, C to B, C, A. It also defines a plotly_click listener that outputs the order in data and fullData.
The screencast below shows how before zooming the order in fullData is B, C, A but after zooming the order changes to A, B, C.
