Skip to main content

Module transforms

Module transforms 

Source
Expand description

CSS transform / transform-origin parsing and matrix composition.

Mirrors morph/style/transforms.py (parse_transform, compose_transform) and the builder’s _parse_transform_origin so the Rust pipeline resolves transforms at build time instead of shipping CSS strings to the runtime.

Enums§

LengthUnit
TransformOp

Functions§

compose_transform
Compose parsed ops into a single column-major 4x4 matrix.
parse_transform
Parse a CSS transform value into ops.
parse_transform_origin
Parse a CSS transform-origin value into a raw ((x, is_pct), (y, is_pct)) pair plus the fraction already resolvable without the element box.

Type Aliases§

LengthComp