mirror of
https://github.com/penpot/penpot.git
synced 2026-11-22 10:20:51 +00:00
A detach makes the nested copies of the copy it detaches refer one level up. A swapped head turned 45 degrees by the position it filled becomes a copy root of its own unturned component; its turn was not its own, so the next sync turned it back to 0 and moved its children. The geometry of such a copy was made its own only under a copy parent. Under a plain parent, where a copy is placed freely, the copy now keeps as its own an orientation or a size that differs from its main turned like that parent. The orientation is compared by composing the axes of the plain parent, of the main's parent and of the main, without placing anything, so a main at the root of its page, whose parent is the page's 0x0 frame, compares right too; the size is compared with the main's. The model expects the same. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.758 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 41.031 | 0.60 | | library-update-into-copies | 83.083 | 51.567 | 0.62 | | main-edit-among-many-shapes | 4.837 | 2.314 | 0.48 | | main-edit-into-10-copies | 1.79 | 0.933 | 0.52 | | main-edit-into-100-copies | 15.415 | 9.007 | 0.58 | | main-edit-into-1000-copies | 153.086 | 90.173 | 0.59 | | variant-switch-into-copies | 32.052 | 21.637 | 0.68 | AI-assisted-by: claude-opus-5-5