Reattach the legacy mapping doc to its function

This commit is contained in:
Dennis Kobert
2026-09-06 15:18:37 +00:00
parent 81c3ea14ee
commit 0a9a555f6d
2 changed files with 1 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ pub(crate) fn run_to_legacy_list<T: Clone + Send + Sync + dyn_any::StaticTypeSiz
Some(list)
}
/// The graphic with every `Group` converted to its legacy form.
pub fn map_groups_to_legacy<'out>(graphic: &Graphic<'_>) -> Graphic<'out> {
match graphic {
Graphic::Group(group) => group_to_legacy_graphic(group),

View File

@@ -438,7 +438,6 @@ pub(in crate::graphic) fn push_lane_paint_into_interiors(list: &mut List<Graphic
}
}
/// The graphic with every `Group` converted to its legacy form.
/// The count [`map_groups_to_legacy`] would expose through [`Graphic::as_vector`],
/// read from the run's lanes instead of materializing the legacy list. Mirrors
/// [`group_to_legacy_graphic`]'s typed-run path, where `Vector` is tried first.