Skip to main content

size_from_attrs

Function size_from_attrs 

Source
fn size_from_attrs(attributes: &Attributes) -> Option<Vec2>
Expand description

Read the root <svg> size: prefer viewBox ("min-x min-y w h"), else the numeric part of width/height. None when neither is present.