Editor's path 'close path' is not visible as an action — user with an open path (line) wanting to make it a closed path (polygon) has to either delete the last node or no documented way to do it #315
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#315
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
grep -rn 'closePath\|onClosePath' src/components/editor/returns 0. The editor has no explicit "Close path" action.A user drawing a path:
The fix is a "Close path" button (or automatic detection of "user clicked near the start node = close").
Where
src/components/editor/EditorCanvas.tsx(the pointer handler)grep -rn 'closePath' src/components/editor/returns 0src/components/editor/types.ts(StitchPath has nodes and... let me check forisClosed)Suggested fix shape
Type: add
isClosed: booleanto the StitchPath type.UI: a "Close path" button in the EditorContextMenu (per #191) and in the right panel's Path Properties:
Auto-close during draw: when the user is drawing a path and clicks near the first node (within 5mm), close the path automatically.
Visual feedback: a closed path renders with a closing segment (line from last node back to first); an open path doesn't.
History: the close/open toggle is a single undoable action.
Severity
Low. The user can manually drag the last node to the first. Power users notice.
Discovered by
Gap analysis (2026-10-02) of editor path operations.
Related
EditorCanvas.tsx) is the entry point; the close is the completion.