% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conversion.R
\name{parse_svg_root_dim}
\alias{parse_svg_root_dim}
\title{Parse a numeric width/height from the root <svg ...> tag}
\usage{
parse_svg_root_dim(svg_content, attr = c("width", "height"))
}
\arguments{
\item{svg_content}{Character SVG.}

\item{attr}{"width" or "height".}
}
\value{
Numeric value (in CSS px) or NA_real_ if not found.
}
\description{
Tries:
\enumerate{
\item width="..." / height="..." (supports px, numbers)
\item viewBox="minx miny width height" as fallback
}
}
\keyword{internal}
