An update main that pushes a turn into a main holding a group turns the
group and its shapes. Its undo restores the shapes first and fits the
group around them while the group still has the turned transform, which
writes the turned bounds into its width and height; the group's own undo
then restores only the attributes the update main changed, so the group
kept the turned size.
The undo of a shape's synced attributes fits the shape itself, after its
own undo, as well as its parents; only groups and bools are fitted.
Test: undoing-an-update-main-that-turns-a-group-gives-the-group-its-size-back.
Focused sync, undo, group and golden master tests pass.
Benchmark (alone, shared with the next two commits):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 20.59 | 22.349 | 0.58 |
| edit-through-a-chain-of-dependents | 68.931 | 41.197 | 42.87 | 0.6 |
| library-update-into-copies | 83.083 | 50.286 | 53.679 | 0.61 |
| main-edit-among-many-shapes | 4.837 | 2.582 | 3.885 | 0.53 |
| main-edit-into-10-copies | 1.79 | 1.132 | 1.22 | 0.63 |
| main-edit-into-100-copies | 15.415 | 10.634 | 11.318 | 0.69 |
| main-edit-into-1000-copies | 153.086 | 100.406 | 125.813 | 0.66 |
| variant-switch-into-copies | 32.052 | 21.303 | 22.718 | 0.66 |
AI-assisted-by: claude-opus-5-5