The names of the internal layout objects from ggplot_build changed slightly.

get_panel_y_range(layout, index = 1)

get_panel_x_range(layout, index = 1)

get_panel_params(layout, index = 1)

Arguments

layout

layout part from ggplot_build

index

Could be panel number?