Repository navigation
Highlighter, fading ink, whiteboard, and a UX pass before 0.5.0 - #12
Merged
Merged
Conversation
- 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>
Collaborator
Author
|
UX pass before the release (two more commits): Toolbar layout. The dock was centred with
Esc steps back. It deselects, then removes the board, and only then switches to click-through. Hints with the current keys:
Settings and colors:
Checked in the browser harness at 800, 1024, 1280 and 1440 px (row layout measured); 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
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.For the new toolbar button):Wfor a white board,Kfor a dark one (as in ZoomIt); press the same key again to remove it; the board button cycles none → white → dark;How
core/fade.js— hold/fade timing and splitting a gesture's new shapes (tested).core/shapes.js—isStrokeandstrokeWidth.core/scene.js— themarkertype.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.jsdraws the board and the fading list, animating only while something is fading;pointer.jsmoves new shapes to fading after a gesture;mode.jsre-renders on mode change, so the board follows the mode.[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 startlaunches the app.Mpicks it.Fon, a stroke and an arrow vanish after ~3.5 s;Ctrl+Zundoes the previous real stroke, not the faded ones.WandKshow 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.🤖 Generated with Claude Code