Skip to content

v0.11.13 — live stroke preview and canvas modifiers

Choose a tag to compare

@corderro-artz corderro-artz released this 09 Sep 13:33
· 613 commits to main since this release

The canvas draws while you draw

A line, a shape or a brush stroke showed no pixels until you let go. The overlay drew a 1px accent hairline the whole time, which is why no test caught it — but the shape tools fill, and a line commits at the brush's size in the brush's ink, so the outline disagreed with the result in weight, in color and in whether the middle is painted at all. The brush and eraser had no band at all.

The gesture now previews as the pixels it will commit: the same edit command the release will build, applied, rendered and undone inside one call, so the surface, the undo stack, the dirty flag and the filmstrip never see it.

Gestures also capture the pointer now — a drag that wandered off the canvas tile used to be silently lost.

Modifiers

  • Shift (or Ctrl) — 45° for a line, a freehand stroke or a marquee move; a square bounding box for a rectangle, circle, triangle or new marquee
  • Alt — draw a shape from its center
  • Escape mid-drag — abandon the stroke; with no drag in progress it still drops the marquee

Two holes this found

  • Ctrl+Z / Ctrl+Y were printed on the quick-reference sheet and bound nowhere. The only undo in the app was a toolbar button. Both are bound now (Ctrl+Shift+Z too).
  • The editor page never took keyboard focus, so any chord it declared was inert.

1,960 tests green.