Preserve nested architecture during authoring and distinguish allocation summaries

This commit is contained in:
2026-09-05 17:58:46 +03:00
parent c20a2073d7
commit c7101b970a
13 changed files with 2719 additions and 1653 deletions
+2 -2
View File
@@ -680,7 +680,7 @@ fn layout(p: &mut Project, diagram: Id) -> Result<(), ModelError> {
width = width.max(size.width + 48.);
height += size.height + 16.;
}
height += 8.;
height += crate::projection::port_footer(p, d.nodes[&id].element) - 16.;
} else {
height = own.height;
}
@@ -779,7 +779,7 @@ fn layout(p: &mut Project, diagram: Id) -> Result<(), ModelError> {
row_height = 0.;
}
place(*id, Position { x, y }, &children, &sizes, &mut positions);
x += sizes[id].width + 60.;
x += sizes[id].width + 240.;
row_height = row_height.max(sizes[id].height);
}
let d = p.diagrams.get_mut(&diagram).unwrap();