mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:31:59 +00:00
Applying a typography to a copy text overrides all six styles it sets, equal values too, so the typography stays the copy's own. A switch that carried that text set its overrides from what differs from the new main only: a family equal to the new main's lost its override while the text kept the typography, a reference whose styles were split between the copy and its main, which a later sync could not describe. When the text a switch carries holds a typography that differs from the new main's, it overrides all six styles, as applying it does. The component model predicts the same, and also when the typography came from a copy level the switched copy refers to. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 20.947 | 0.59 | | edit-through-a-chain-of-dependents | 68.931 | 40.747 | 0.59 | | library-update-into-copies | 83.083 | 47.063 | 0.57 | | main-edit-among-many-shapes | 4.837 | 2.363 | 0.49 | | main-edit-into-10-copies | 1.790 | 0.964 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.223 | 0.60 | | main-edit-into-1000-copies | 153.086 | 95.751 | 0.63 | | variant-switch-into-copies | 32.052 | 21.325 | 0.67 | AI-assisted-by: claude-opus-5-5