plushie/widget/pin
Pin widget builder (absolutely positioned element).
Types
Option type for pin properties.
pub type Opt {
X(Float)
Y(Float)
Width(length.Length)
Height(length.Length)
A11y(a11y.A11y)
}
Constructors
-
X(Float) -
Y(Float) -
Width(length.Length) -
Height(length.Length) -
A11y(a11y.A11y)
Values
pub fn x_animated(p: Pin, animation: node.PropValue) -> Pin
Set x to an animation descriptor (Transition, Spring, or Sequence).
The descriptor must be pre-encoded via its module’s encode function.
pub fn y_animated(p: Pin, animation: node.PropValue) -> Pin
Set y to an animation descriptor (Transition, Spring, or Sequence).
The descriptor must be pre-encoded via its module’s encode function.