% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.get_visible_panel_ranges}
\alias{.get_visible_panel_ranges}
\title{Get visible panel ranges for an axis}
\usage{
.get_visible_panel_ranges(built, axis)
}
\arguments{
\item{built}{A built ggplot object, typically produced by
ggplot2::ggplot_build().}

\item{axis}{A character string giving the axis to inspect. Expected values are
"x" or "y".}
}
\value{
A list of numeric vectors, one per panel. Each vector gives the
visible range for the requested axis.
}
\description{
Internal helper used by coaching checks to retrieve the visible coordinate
range for each panel along a requested axis. This differs from the trained
scale range: for example, coord_cartesian() may crop the visible panel range
without dropping data from the scale.
}
\details{
This helper relies on ggplot2's built-plot internals and should therefore be
treated as best-effort/version-sensitive.
}
\keyword{internal}
