Files
vectorcraft/crates
dotCooCoo 426ea94268 Live Paint: bucket paint commands replay from the journal with any tool
While the Live Paint Bucket is active, a paint or stroke command that names
no objects changes only the colors the bucket paints with. The journal
recorded the params as given, and the active tool is not journaled, so a
replay with the Selection tool active painted the selection instead.

The paint and stroke commands now take defaultsOnly: true, which keeps a
command without ids, id or item to the defaults with any tool active. When
the bucket routed a command, its journal entry notes defaultsOnly: true,
also when the params gave false. library.use (a color, gradient or pattern)
and swatch.library.add with apply note it too and pass it to the commands
they run.

- defaultsOnly is a bool. It is refused with ids, id or item, and in
  stroke.setAdvanced with brush.
- With New Art Has Basic Appearance off, new-art inheritance does not
  replace the defaults after such a command, unless a later step of a batch
  selects another first object or changes its appearance.
- A preview with defaultsOnly: true, and the one after it, starts from the
  defaults the interaction began with, and a cancel puts them back.
- paint.sampleColor with a stop and defaultsOnly reads the default's
  gradient.

Test: live_paint_bucket_commands_replay_from_the_journal_with_another_tool
(engine). Docs: docs/mcp.md, the Live Paint Bucket paragraph; params text
of each command.
2026-11-19 16:35:59 -08:00
..
2026-11-19 15:24:38 +07:00
2026-11-19 06:39:02 -08:00
…
2026-11-20 05:45:14 +07:00
2026-11-19 06:08:29 -08:00
2026-11-19 06:08:29 -08:00
2026-11-20 05:45:14 +07:00