mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
When update-main pushes a swap into the main as a plain nested copy, the copy authors its geometry when its orientation differs from its main's in the parent's orientation. A mirrored shape can store rotation 90 or 270 for the same axes, so comparing the stored rotations found a turn where the transforms matched, and marked a geometry override for no visible difference. The override now follows the axes, mirror included. Test: updating-a-main-from-a-mirrored-copy-pushes-its-swap-without-a- geometry-override, the variant gate program of round 11 (seed 164135730). Common suite: 2420 tests, 0 failures. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+--------+--------| | deepest-edit-through-three-levels | 35.215 | 19.46 | 20.414 | 0.55 | | edit-through-a-chain-of-dependents | 68.931 | 38.28 | 40.467 | 0.56 | | library-update-into-copies | 83.083 | 52.248 | 53.668 | 0.63 | | main-edit-among-many-shapes | 4.837 | 2.193 | 2.315 | 0.45 | | main-edit-into-10-copies | 1.79 | 1.06 | 1.077 | 0.59 | | main-edit-into-100-copies | 15.415 | 9.551 | 10.18 | 0.62 | | main-edit-into-1000-copies | 153.086 | 96.62 | 99.326 | 0.63 | | variant-switch-into-copies | 32.052 | 22.138 | 22.88 | 0.69 | AI-assisted-by: claude-opus-5-5