mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
An update main that pushes a transformed fill child into the nested copy its main holds fixes that copy's layout sizing, as a resize does, so the layout keeps the pushed size. It did not mark the sizing as the nested copy's own override: the copy differed from its reference without an override, and the next sync would give it the fill back and undo the pushed size (F588, reachable since moves are generated). A main that is itself a copy now touches the sizing groups the push fixes. The composable model expects it to author them. Test: generated `generated-an-update-main-into-a-nested-copy-authors-the-sizing-it-fixes` (JVM and frontend replay). Benchmark (bench-components, alone): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.333 | 22.41 | 0.61 | | edit-through-a-chain-of-dependents | 68.931 | 42.992 | 44.734 | 0.62 | | library-update-into-copies | 83.083 | 55.577 | 58.064 | 0.67 | | main-edit-among-many-shapes | 4.837 | 2.625 | 3.164 | 0.54 | | main-edit-into-10-copies | 1.79 | 1.131 | 1.216 | 0.63 | | main-edit-into-100-copies | 15.415 | 11.226 | 12.849 | 0.73 | | main-edit-into-1000-copies | 153.086 | 103.22 | 108.455 | 0.67 | | variant-switch-into-copies | 32.052 | 23.27 | 24.267 | 0.73 | AI-assisted-by: claude-opus-5-5