mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
When sync turns a subtree, it added the head's angle to the rotation of every shape in it. A shape mirrored relative to the head stores its turn the other way, so it kept the right transform and corners with a stored rotation 90 degrees off: 225 for a transform that its vertical flip decomposes as 315. Each turned shape now stores its rotation plus the angle, or minus it when only that one decomposes its transform with its flips. A copy flipped through a turned nested head now stores 90, the turn its transform decomposes into, where it stored 270; the test that recorded 270 checks that the oracle still accepts either sign. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 21.321 | 0.61 | | edit-through-a-chain-of-dependents | 68.931 | 40.817 | 0.59 | | library-update-into-copies | 83.083 | 52.024 | 0.63 | | main-edit-among-many-shapes | 4.837 | 2.486 | 0.51 | | main-edit-into-10-copies | 1.79 | 0.972 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.993 | 0.65 | | main-edit-into-1000-copies | 153.086 | 102.183 | 0.67 | | variant-switch-into-copies | 32.052 | 23.063 | 0.72 | AI-assisted-by: claude-opus-5-5