Type Alias Scale

Source
pub type Scale = GenericScale<Number>;
Expand description

A computed CSS scale

Aliased Type§

#[repr(C, u8)]
pub enum Scale { None, Scale(f32, f32, f32), }

Variants§

§

None

‘none’

§

Scale(f32, f32, f32)

{1,3}’

Implementations§

Trait Implementations§

Source§

impl Animate for Scale

Source§

fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.
Source§

impl ComputeSquaredDistance for Scale

Source§

fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.