Files
effectcraft/crates/engine
Bar BorerandClaude Opus 5.5 f870db660b Text: Character and Paragraph changes reach all selected text layers (#2890)
* Text: Character and Paragraph changes reach all selected text layers (#2862)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Text: `layer.setText` reaches several layers through `selected` alone (#2862)

Drops the `layers` param, its docs/agents.md note and the tests that covered
only it or the merge key. The panels' behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Text: the layer-wide stroke order leaves a locked shown layer alone (#2862)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Text: `selected` with no layer to change is a no-op, and a per-character order resets them all (#2862)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Text: the panels show the first unlocked selected layer, not a locked one above it (#2862)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Properties: text rows change the edited layer's characters when another layer is first selected (#2862)

While a text layer was edited in the viewer and another layer was first in
the selection, the Properties text and paragraph rows dropped the edit's
range and changed the first layer's whole text instead. They now follow the
edited characters, as the Character panel does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* #2862: the text eyedropper writes to the layers that armed it

A whole-layer Fill or Stroke pick sent `selected: true` when it sampled, so
it reached the selection at the click, not the layers selected when it was
armed: with A+B armed and the selection changed to A+C, C took the colour.
The pick now captures the selected text layers when armed, and the viewer
sends them as `layer.setText {layers}`, skipping any that were deleted and
cancelling when none is left. `layer.setText` takes an explicit `layers`
list: the unlocked text layers in it change, whatever is selected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* #2862: the new text tests install the headless runtime like main's harnesses

Main's craft-libs runtime now refuses frames from a harness without its plugin (e34fc9ec), so the eight new Character tests build their harness with `framework::install_headless` too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* #2862: layer.setText refuses an explicit target it can't honour

A `layers` value that isn't a list, or a list given with a `range`, fell through to the layer and selection path and could edit a layer the caller didn't name. Both are now an error before anything changes. Without `layers`, the named layer (or the selection with `selected`) is still the default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-01 11:30:26 +01:00
..
2026-10-29 20:31:32 +01:00