struct
Transform
pub struct Transform {
/* private fields */
}One element's transform state.
Methods
get
pub fn get(&self, prop: &str) -> f64The value of transform property prop (x, rotate…), or its default.
set
pub fn set(&mut self, prop: &str, value: &str)Set from a string; units other than the canonical one are ignored (numbers are taken as-is).