Skip to content

Highlighter, fading ink, whiteboard, and a UX pass before 0.5.0 - #12

Merged
Feargin merged 3 commits into
mainfrom
drawing-modes
Oct 25, 2026
Merged

Feargin merged 3 commits into
mainfrom
drawing-modes

Conversation

@Feargin

@Feargin Feargin commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

What

  • Highlighter (M, next to the brush). A wide, see-through stroke to mark a line of text without hiding it. The whole stroke is one path at 0.38 opacity, so where it crosses itself it does not get darker. Saved in files; the scene validator accepts it.
  • Fading ink (F or the new toolbar button):
    • while it is on, new lines, arrows and shapes stay for 2.5 s and fade out over 0.8 s;
    • text, blocks and screenshots stay — they are meant to be edited;
    • faded ink is not in undo and not in saved files;
    • the choice is remembered between launches.
  • Whiteboard:
    • W for a white board, K for a dark one (as in ZoomIt); press the same key again to remove it; the board button cycles none → white → dark;
    • the board shows only in drawing mode, so click-through still shows the windows below;
    • copied and saved images include it.
  • Cheat sheet: rows for fading ink and the board.
  • Tour: the tools step mentions the highlighter; a new step covers fading ink and the board.

How

  • core/fade.js — hold/fade timing and splitting a gesture's new shapes (tested).
  • core/shapes.js — isStroke and strokeWidth.
  • core/scene.js — the marker type.
  • Tool keys are now explicit in tools/index.js (key). The 11th tool did not shift the digits of the others, and the default bindings stay exactly as before.
  • state.board, state.fade, state.fading:
    • canvas.js draws the board and the fading list, animating only while something is fading;
    • pointer.js moves new shapes to fading after a gesture;
    • mode.js re-renders on mode change, so the board follows the mode.
  • 7 new strings and an updated tour text in all 11 languages; READMEs, ROADMAP, CHANGELOG [0.5.0].

Checked

  • npm run check, npm test (21, 4 new), cargo fmt --check, cargo clippy --all-targets -D warnings, cargo test — clean. npm start launches the app.
  • Browser harness with real mouse drags and key presses:
    • Highlighter: wide and see-through next to a brush stroke; M picks it.
    • Fading ink: with F on, a stroke and an arrow vanish after ~3.5 s; Ctrl+Z undoes the previous real stroke, not the faded ones.
    • Board: W and K show the board (the pixel colour matches); the same key again removes it; it hides in click-through and returns in drawing mode; the button cycles; the fading choice persists.
    • Tour and cheat sheet: the new step and the highlighter text are in place; the cheat sheet lists M, F, W · K.

🤖 Generated with Claude Code

Feargin and others added 3 commits October 25, 2026 11:34
- Highlighter (M): a `marker` shape with points like the brush, drawn
  about four times wider (strokeWidth) at 0.38 opacity as one path, so
  self-overlaps do not darken. Hit test, bounds, move and the scene
  validator know it. Tool keys are explicit in the tool registry, so the
  new tool did not shift the digits of the others
- Fading ink (F, toolbar button): new lines, arrows and shapes of a
  gesture move from the canvas to state.fading, stay for 2.5 s and fade
  out over 0.8 s (core/fade.js, tested); text, blocks and screenshots
  stay. Faded ink is not in undo or in saved files. The choice is
  remembered
- Whiteboard: W white, K dark (as in ZoomIt), the board button cycles.
  The board shows only in drawing mode, so click-through still shows the
  windows below; copied and saved images include it
- Cheat sheet rows for both; the tour mentions the highlighter and gets
  a step for fading ink and the board; 7 new strings in all 11 languages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The dock gets its own width (up to 760 px). Centred with left: 50%,
  the browser capped it at half the screen, so on 1280 px it broke into
  three rows with Settings and Hide alone on the last one. Now it is two
  even rows from 1024 px up: what to draw with / what to do
- The cheat sheet hides while Settings is open; on smaller screens it
  showed through the panel
- The Keys section shows a chevron that turns when it opens
- The near-black color gets a light outline on the dark toolbar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… board

- Esc deselects, then removes the board, and only then switches to
  click-through
- Short hints with the current keys: "The canvas is cleared — Ctrl+Z
  brings it back", fading ink turned on (and off), and "White board —
  W or Esc brings the screen back"; the board hint goes away with the
  board
- The tour step for the board mentions Esc; 4 new strings in all 11
  languages; READMEs, ROADMAP and CHANGELOG updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Feargin Feargin changed the title Highlighter, fading ink and whiteboard Highlighter, fading ink, whiteboard, and a UX pass before 0.5.0 Oct 25, 2026
@Feargin

Feargin commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

UX pass before the release (two more commits):

Toolbar layout. The dock was centred with left: 50%, so the browser capped it at half the screen:

  • on 1280 px it broke into three rows, with Settings and Hide alone on the last one;
  • with its own width (up to 760 px) it now fits in two even rows from 1024 px up — what to draw with / what to do.

Esc steps back. It deselects, then removes the board, and only then switches to click-through.

Hints with the current keys:

  • "The canvas is cleared — Ctrl+Z brings it back";
  • fading ink turned on or off;
  • "White board — W or Esc brings the screen back" (it goes away with the board).

Settings and colors:

  • the cheat sheet hides while Settings is open (on small screens it showed through);
  • the Keys section has a chevron that turns when it opens;
  • the near-black color is outlined on the dark toolbar.

Checked in the browser harness at 800, 1024, 1280 and 1440 px (row layout measured); npm run check, npm test, clippy and cargo test are clean; npm start launches the app.

🤖 Generated with Claude Code

@Feargin
Feargin merged commit dcf152b into main Oct 25, 2026
8 checks passed
@Feargin
Feargin deleted the drawing-modes branch October 25, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant