Files
effectcraft/crates
Valentin Klein e093724e7a Gradient opacity stops given in any order in automation JSON now look the same as in ascending order (#4280)
* Gradient stops given out of order in automation JSON sample as if in order

Opacity stops of the plain form, and colour and opacity stops of the typed form, are sorted by position (stably) when coerced, as the plain form's colour stops already were.

* Gradient stops at positions 0 and -0 keep the order they were given in

The stop sort used total_cmp, which puts -0.0 before 0.0 although both are
the same position, so a stable sort reordered such stops. Compare equal
positions as equal, for colour and opacity stops in the plain and typed forms.
2026-12-01 11:00:56 +01:00
..