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_styleslist. - 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.