Add the group variant to Graphic with typed run walks

This commit is contained in:
Dennis Kobert
2026-08-21 19:34:03 +00:00
parent da8ae2be43
commit b5c4aa4598
5 changed files with 193 additions and 4 deletions
+1
View File
@@ -183,6 +183,7 @@ fn flatten_vector(graphic_list: &List<Graphic>) -> List<Vector> {
.flat_map(|index| {
let graphic = graphic_list.element(index).unwrap();
match graphic.clone() {
Graphic::Group(_) => Vec::new(),
Graphic::Vector(vector) => {
// Apply the parent graphic's transform to each element of the `List<Vector>`
let parent_transform: DAffine2 = graphic_list.attribute_cloned_or_default(ATTR_TRANSFORM, index);