Skip to main content

Module transform

Module transform 

Source
Expand description

Transform passes that mutate the SceneGraph in-place.

Each pass has a single responsibility and is safe to compose. Passes are applied by format_document in format.rs based on FormatConfig.

Functions§

dedup_use_styles
Remove duplicate entries in each node’s use_styles list.
hoist_styles
Promote repeated identical inline styles into top-level style {} blocks.
sort_nodes
Reorder the root’s top-level children into canonical kind order.