% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/label_placement.R
\name{expand_limits_with_canvas}
\alias{expand_limits_with_canvas}
\title{Union the current \code{xlim}/\code{ylim} with the canvas bbox reported by
eunoia. Returns the (possibly widened) limits.}
\usage{
expand_limits_with_canvas(limits, placements, slack = 1.4)
}
\description{
\code{slack} pads the canvas bbox before the union (multiplicative,
centered on the bbox center). The setup-time bbox is sized for one
reference device; padding gives the draw-time placement headroom
when the user resizes the device smaller than that reference and
labels grow in native units accordingly. A \code{slack} of 1.4 absorbs
roughly a 30 \% linear resize before exterior labels start to fall
outside the panel viewport.
}
\keyword{internal}
