mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A copy child that authors a constraint tying one of its dimensions to its copy parent keeps the size it shows when its main changes size; that size is kept by sync, not set by the user. Update main pushed it into the main with the constraint, so a main's nested copy lost the height it authors. Update main pushes such a copy shape, and its untouched descendants, with the main's geometry: the main keeps its own size and takes only what the copy authors. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 20.743 | 0.59 | | edit-through-a-chain-of-dependents | 68.931 | 41.304 | 0.60 | | library-update-into-copies | 83.083 | 51.06 | 0.61 | | main-edit-among-many-shapes | 4.837 | 2.565 | 0.53 | | main-edit-into-10-copies | 1.79 | 1.045 | 0.58 | | main-edit-into-100-copies | 15.415 | 10.021 | 0.65 | | main-edit-into-1000-copies | 153.086 | 107.311 | 0.70 | | variant-switch-into-copies | 32.052 | 22.143 | 0.69 | AI-assisted-by: claude-opus-5-5