plushie/widget/svg
SVG display widget builder.
Types
Option type for svg properties.
pub type Opt {
Width(length.Length)
Height(length.Length)
ContentFit(content_fit.ContentFit)
Rotation(Float)
Opacity(Float)
Color(color.Color)
Alt(String)
Description(String)
Decorative(Bool)
A11y(a11y.A11y)
}
Constructors
-
Width(length.Length) -
Height(length.Length) -
ContentFit(content_fit.ContentFit) -
Rotation(Float) -
Opacity(Float) -
Color(color.Color) -
Alt(String) -
Description(String) -
Decorative(Bool) -
A11y(a11y.A11y)
Values
pub fn content_fit(s: Svg, cf: content_fit.ContentFit) -> Svg
Set how content is fitted within the widget bounds.
pub fn opacity_animated(s: Svg, animation: node.PropValue) -> Svg
Set opacity to an animation descriptor (Transition, Spring, or
Sequence). The descriptor must be pre-encoded via its module’s
encode function.
pub fn rotation_animated(
s: Svg,
animation: node.PropValue,
) -> Svg
Set rotation to an animation descriptor (Transition, Spring, or
Sequence). The descriptor must be pre-encoded via its module’s
encode function.