mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A grid fills a child turned in it along the grid's axes, which skews the child. In a column a fixed sibling left without width, the fill squeezed the child down to a line: its axes became parallel and its transform singular, and its stored rotation stopped describing it. The fill no longer narrows a turned child below 1px of thickness in its own axes; the child overflows its column instead. The grid passes each child's own corners with its bounds in the grid's axes to know its size and turn. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.605 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 41.613 | 0.60 | | library-update-into-copies | 83.083 | 47.375 | 0.57 | | main-edit-among-many-shapes | 4.837 | 2.321 | 0.48 | | main-edit-into-10-copies | 1.79 | 0.949 | 0.53 | | main-edit-into-100-copies | 15.415 | 10.086 | 0.65 | | main-edit-into-1000-copies | 153.086 | 92.412 | 0.60 | | variant-switch-into-copies | 32.052 | 20.051 | 0.63 | AI-assisted-by: claude-opus-5-5