% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geometry.R
\name{shape_bounding_box}
\alias{shape_bounding_box}
\title{Per-shape bounding box dispatch. Reads the \code{type} tag on \code{shapes} (rows
are assumed to share a tag since a diagram fixes one shape kind), then
picks the appropriate width/height calculation. Falls back to the
rotated-ellipse formula when the type is unknown so external callers
constructing ad-hoc \verb{$shapes} frames still get a sensible box.}
\usage{
shape_bounding_box(shapes)
}
\description{
Per-shape bounding box dispatch. Reads the \code{type} tag on \code{shapes} (rows
are assumed to share a tag since a diagram fixes one shape kind), then
picks the appropriate width/height calculation. Falls back to the
rotated-ellipse formula when the type is unknown so external callers
constructing ad-hoc \verb{$shapes} frames still get a sensible box.
}
\keyword{internal}
