alonso.torres 5f4ef66314 🐛 Resize a copy's subtree through constraints when sync also turns it
When sync turns a copy parent, it turns and moves the parent's whole
subtree, geometry overrides included, by the parent's center. When the
same sync also resizes the parent, that center shift carries half the
resize, so a child with its own geometry moved as if its constraint were
center: a top-constrained child ended 10 px above its place after an
update main turned its parent back and shrank it by 20 px.

A parent that is turned and resized at once now resizes its subtree
through the children's constraints first, then turns and moves it as one
piece, as the main's subtree is placed into a copy.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):

| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  23.162 |  0.66 |
| edit-through-a-chain-of-dependents |   68.931 |  43.751 |  0.63 |
| library-update-into-copies         |   83.083 |  52.008 |  0.63 |
| main-edit-among-many-shapes        |    4.837 |   2.897 |  0.60 |
| main-edit-into-10-copies           |     1.79 |   1.103 |  0.62 |
| main-edit-into-100-copies          |   15.415 |  10.807 |  0.70 |
| main-edit-into-1000-copies         |  153.086 | 105.726 |  0.69 |
| variant-switch-into-copies         |   32.052 |  24.017 |  0.75 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:46 +01:00
..
2026-11-10 20:21:16 +01:00
2026-09-29 09:07:34 +02:00
2026-03-11 15:24:40 +01:00