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()
);Structsยง
- Align ๐
- Aspect
Ratio - Representation of
preserveAspectRatiovalues. - X ๐
- Y ๐
Enumsยง
Functionsยง
- parse_
align_ ๐xy - parse_
fit_ ๐mode