% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tf-ggplot.R
\name{build_tf_layer_data}
\alias{build_tf_layer_data}
\title{Build long-format data and new mapping for a single tf layer}
\usage{
build_tf_layer_data(
  layer_info,
  plot_tf_aes,
  scalar_col_map,
  layer_idx,
  enriched_data,
  user_arg,
  interpolate
)
}
\arguments{
\item{layer_info}{List from \code{all_layers} with \code{layer}, \code{parsed_aes}, \code{is_tf_layer}}

\item{plot_tf_aes}{tf aesthetics from the plot level (used when \code{inherit.aes = TRUE})}

\item{scalar_col_map}{Named list: key -> column name in enriched_data}

\item{layer_idx}{Integer index of this layer (for keying layer-level scalar aes)}

\item{enriched_data}{Data frame with original data + pre-evaluated scalar tf columns}

\item{user_arg}{Optional evaluation grid (overrides natural grid)}

\item{interpolate}{Whether to interpolate tf objects to \code{arg}}
}
\value{
\code{NULL} when no effective tf aes, otherwise \code{list(long_data, new_mapping)}
}
\description{
Evaluates the layer's tf aesthetics independently on their own natural grid
(or the user-specified grid). Called by \code{\link[=finalize_tf_ggplot]{finalize_tf_ggplot()}} per layer.
}
\keyword{internal}
