mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A sync lined up a copy with its main by their untransformed top-left. Once the main is turned or flipped, a width change moves that point, so every copy that follows the main drifted about 7 px off the corner the resize keeps, and a child it overrides left its place. A swapped head of another size than its position did the same when its board turned: it was lined up by the untransformed boxes and turned about its own centre. An untouched copy root turned or flipped like its main now lines up with it at their first corner, and a swapped head turned like its position takes its place at that corner, so both turn rigidly with their board. The oracle resizes an expected turned head about its first corner in the same way. Benchmark (scripts/bench-components, lower quantile in ms): | world | baseline | now | ratio | |------------------------------------+----------+--------+-------| | deepest-edit-through-three-levels | 35.215 | 18.808 | 0.53 | | edit-through-a-chain-of-dependents | 68.931 | 38.155 | 0.55 | | library-update-into-copies | 83.083 | 46.798 | 0.56 | | main-edit-among-many-shapes | 4.837 | 2.193 | 0.45 | | main-edit-into-10-copies | 1.79 | 0.962 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.315 | 0.60 | | main-edit-into-1000-copies | 153.086 | 93.184 | 0.61 | | variant-switch-into-copies | 32.052 | 20.55 | 0.64 | AI-assisted-by: claude-opus-5-5