alonso.torres c5602b8170 🐛 Fit a synced masked group to its mask again
A masked group takes all its geometry from its mask. When a copy turned
the mask of a masked group, a sync gave the copy's group the geometry of
its main's group, square to the page, and fitted only the group's
parents, so the group no longer matched its turned mask; a reflow then
fitted it again, and settling and a full sync gave different files.

After a sync writes a masked group's attributes, the group fits its mask
again along with its parents.

Test: generated `a-synced-masked-group-fits-the-mask-its-copy-turned`
(fails before the fix).

Benchmark (bench-components, alone):

|                             :world | :baseline |    :now |  :mean | :ratio |
|------------------------------------+-----------+---------+--------+--------|
|  deepest-edit-through-three-levels |    35.215 |  22.245 | 23.118 |   0.63 |
| edit-through-a-chain-of-dependents |    68.931 |  43.743 | 44.839 |   0.63 |
|         library-update-into-copies |    83.083 |  54.447 | 57.814 |   0.66 |
|        main-edit-among-many-shapes |     4.837 |   2.742 |  2.876 |   0.57 |
|           main-edit-into-10-copies |      1.79 |   1.077 |  1.135 |    0.6 |
|          main-edit-into-100-copies |    15.415 |  10.488 | 11.093 |   0.68 |
|         main-edit-into-1000-copies |   153.086 | 106.222 |  112.37 |   0.69 |
|         variant-switch-into-copies |    32.052 |  23.155 | 23.929 |   0.72 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:50 +01:00
..
2022-11-08 13:02:14 +01:00