mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
A group takes its bounds from its children. Creating a bool inside a group left the group with its old bounds, though the bool's result can be smaller: a difference of a 12 px shape and a 20 px one inside a 30 px group kept the group at 30 px in the main, while sync gave the copies' groups the bool's 12 px. Creating a bool now refreshes the groups around it, as masking does. Tests: a-bool-made-in-a-group-gives-the-group-its-bounds; a-bool-made-in-a-main-group-gives-the-copy-groups-its-bounds (the shape structure program of gate seed 660536824). Benchmark (scripts/bench-components, ms, lower 2.5% quantile), with a 3 GB heap, alone: | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.558 | 23.752 | 0.61 | | edit-through-a-chain-of-dependents | 68.931 | 43.004 | 48.489 | 0.62 | | library-update-into-copies | 83.083 | 50.926 | 53.941 | 0.61 | | main-edit-among-many-shapes | 4.837 | 2.427 | 2.862 | 0.5 | | main-edit-into-10-copies | 1.79 | 1.121 | 1.214 | 0.63 | | main-edit-into-100-copies | 15.415 | 10.652 | 11.179 | 0.69 | | main-edit-into-1000-copies | 153.086 | 105.051 | 119.813 | 0.69 | | variant-switch-into-copies | 32.052 | 23.083 | 25.483 | 0.72 | AI-assisted-by: claude-opus-5-5