Expand description
Generic types for CSS values that are related to transformations.
Re-exports§
pub use self::GenericMatrix as Matrix;
pub use self::GenericMatrix3D as Matrix3D;
pub use self::GenericTransformOrigin as TransformOrigin;
pub use self::GenericPerspectiveFunction as PerspectiveFunction;
pub use self::GenericTransformOperation as TransformOperation;
pub use self::GenericTransform as Transform;
pub use self::GenericRotate as Rotate;
pub use self::GenericScale as Scale;
pub use self::GenericTranslate as Translate;
Structs§
- A generic 2D transformation matrix.
- A value of the
transform
property - A generic transform origin.
Enums§
- A value for the
perspective()
transform function, which is either a non-negative<length>
ornone
. - A value of the
Rotate
property - A value of the
Scale
property - A single operation in the list of a
transform
value - A value of the
translate
property
Traits§
- A trait to check if the current 3D vector is parallel to the DirectionVector. This is especially for serialization on Rotate.
- Convert a length type into the absolute lengths.
- Support the conversion to a 3d matrix.
- A little helper to deal with both specified and computed angles.
Functions§
- Return the transform matrix from a perspective length.
- Return the normalized direction vector and its angle for Rotate3D.
- is_same 🔒