Editor has no 'snap to grid' or 'snap to angle' feedback — user drawing a path wants a faint grid overlay or angle snap to 15/30/45 degrees, no visual reference for precise drawing #288
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
src/components/editor/types.tsdefinesSnapSettings(per the snippet earlier):snapToGridis in the type.grep -n 'gridSize\|snapToGrid' src/components/editor/canvasRenderer.ts— let me check if the grid is rendered.grep -n 'drawGrid' src/components/editor/canvasRenderer.tsreturns 0. The grid is in the settings but may not be rendered.A user with
snapToGrid: true, gridSize: 5:The fix is a faint grid overlay that the user can toggle on/off, with line spacing matching the
gridSize.Where
src/components/editor/types.ts(the type)src/components/editor/canvasRenderer.ts(where the grid would be drawn)grep -n 'drawGrid' src/components/editor/canvasRenderer.tsreturns 0Suggested fix shape
State: add
showGrid: booleanto SnapSettings (or as a separate UI state).Render: in
canvasRenderer.ts, whenshowGridis true (orsnapToGridis true), draw faint grid lines:UI toggle: in the editor's toolbar (or settings), a "Show grid" toggle that overrides the snap setting.
Major lines: every 5th grid line is darker for the user's reference.
Severity
Low. The user can use the snap behavior. The visual reference is a polish improvement.
Discovered by
Gap analysis (2026-10-02) of editor snap affordances.
Related
Shipped fix(#288) at
2359263on origin/main.Editor now renders the snap grid as faint lines at the user's
gridSize(major every 5th line, rgba(0,0,0,0.14) for major / rgba(0,0,0,0.06) for minor), independent of whether snap-to-grid is on. NewshowGridtoggle in SnapSettings + right panel lets the user see the grid without snapping, or snap with no visual clutter.Bonus angle snap:
angleSnapStepsin SnapSettings + a new rule inapplySnap(5th argfromPointfor the anchor). Three preset chips in the right panel — 15° / 45° / 90° — toggle inclusion in the step list. Distance from anchor is preserved; result rounded to 1/1000mm so the position bar stays readable.Tests: 5 new drawSnapGrid cases + 7 new applySnap angle-snap cases (no-op when empty / no anchor / nearest step / distance preserved / indicator / wraparound). 7 test fixtures migrated from inline SnapSettings literals to DEFAULT_SNAP_SETTINGS so future interface changes don't cascade.