Files
photocraft/crates/engine/src/vector_cmds
e13a984042 Integration: refuse non-array stop lists, keep CMYK/Lab stops, stroke width takes the gradient (#7203)
- parse_fill took a present non-array "stops" / "opacityStops" / "midpoints"
  as absent: {"gradient":{"stops":"red"}} silently became black to white. It is
  an error now (CodeRabbit's finding); the hostile-values test also checks that a
  rejected shape.create leaves the document and history alone.
- The swatches sent every gradient stop as sRGB RGBA, so in a CMYK or Lab
  document ticking Reverse or changing the angle turned every stop into an RGB
  colour (written back to PSD as RGBC). Stops now go out as stored Colors, which
  shape.create / shape.edit accept, finite with alpha in 0..1.
- Options bar, strokeless shape selected, stroke gradient chosen: the width
  field and the stroke type added a solid background-colour stroke. They take
  the stroke gradient now, as the Fill checkbox and the next shape do.

Co-authored-by: Denis <179751626+deniskhud@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:37:56 +01:00
..