Module rsvg::aspect_ratio
source · Expand description
Handling of preserveAspectRatio
values.
This module handles preserveAspectRatio
values per the SVG specification.
We have an AspectRatio
struct which encapsulates such a value.
assert_eq!(
AspectRatio::parse_str("xMidYMid").unwrap(),
AspectRatio::default()
);