Repository navigation
Boards: insert space with the by-line lasso (#276) - #292
Merged
Merged
Conversation
A board has no lines, so By line fell back to a rectangle lasso there. On a board it now inserts space: press anywhere and drag down (or right) to push everything that starts past the pen across the whole board, in whole steps of the paper's spacing; drag back to close empty space, never over anything drawn. Every element kind moves (sticky notes with their ink and text, comments, headings, regions); snapped straight lines and arrows across the line stretch so branches stay joined; locked pictures stay. One invertible ShiftBoardSpace command, planned by the pure src/model/board-space.ts. The notebook's margin arrows stand in one column at the view's left edge while the tool is on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
By line on a notebook page with no lines (blank, dotted, squared, planners)
fell back to a rectangle lasso, as it did on boards. It now inserts space
the board's way: press anywhere, drag down or right, by whole steps of the
paper, never pushing anything past the page's edge ("No room left on this
page" when nothing fits). Not on PDFs, whose notes belong by the printed
words, nor on covers. One column of arrows in the page's margin shows it.
The insert-space arrows sit in a soft accent rail, with smaller, cleaner
chevrons, on lined paper too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
For discussion #276: insert space on boards.
Boards have no writing lines, so the lasso's By line type fell back to a rectangle there. On a board it now inserts space:
ShiftBoardSpace). The board grows to hold what was pushed by its usual rule.Also: paper without lines, and the arrows
styles.css).Review page (before/after gallery shots, decisions): https://claude.ai/artifact/Wad2if4nqjAVPzm5Cn5h56
Code
src/model/board-space.ts(new, pure): planner, command, strip, step. 13 tests intests/model/board-space.test.ts.src/view/ink-surface.ts:dragBoardSpace,planBoardSpaceFor,boardSpaceColumn; 4 tests intests/view/ink-surface.test.ts.guide/04-on-the-page.md+ generated data), CHANGELOG.How to test
Not yet tried on the iPad. Gates: lint, lint:review, lint:css, typecheck, tests (9927), build all green locally. Branch is on 941ac42; merges cleanly with main at 353dbd2.
🤖 Generated with Claude Code