mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A library turns and flips an outer component; a file that has not accepted it resets a nested head of an unturned copy. The loaded main is turned onto the copy's parent with the angle between the parents, but under a mirror apply-transform negates the rotation before adding the turn: the head and its child got rotation 90 with an identity transform. The angle is now measured against the parent once transformed, as orient-like does. Benchmark (scripts/bench-components, lower quantile in ms): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 18.135 | 0.51 | | edit-through-a-chain-of-dependents | 68.931 | 39.807 | 0.58 | | library-update-into-copies | 83.083 | 44.721 | 0.54 | | main-edit-among-many-shapes | 4.837 | 1.972 | 0.41 | | main-edit-into-10-copies | 1.79 | 0.964 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.318 | 0.60 | | main-edit-into-1000-copies | 153.086 | 90.874 | 0.59 | | variant-switch-into-copies | 32.052 | 20.887 | 0.65 | AI-assisted-by: claude-opus-5-5