Module aspect_ratio

Module 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()
);

Structsยง

Align ๐Ÿ”’
AspectRatio
Representation of preserveAspectRatio values.
X ๐Ÿ”’
Y ๐Ÿ”’

Enumsยง

Align1D ๐Ÿ”’
FitMode ๐Ÿ”’

Functionsยง

parse_align_xy ๐Ÿ”’
parse_fit_mode ๐Ÿ”’