Editor's Path Properties section has 'Path length' but the 'per-node distance' is not visible — user wanting to know the length of each segment (e.g., 'node 4 to 5 is 12mm') has to compute from the (x, y) values #370
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#370
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 'segmentLength\|segmentLengths' src/components/editor/returns 0. The Path Properties doesn't show the length of each segment.A user with a 10-node path:
The fix is to show the segment lengths (e.g., on hover of a node, or in a tooltip on the segment).
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'segmentLength' src/components/editor/returns 0src/components/editor/geometry.ts(the algorithm is trivial: distance between consecutive nodes)Suggested fix shape
Highlight longest segment: the segment with the maximum length is drawn in a different color.
Statistics: a "Longest: 12 mm, Average: 5 mm" summary.
Use cases:
Severity**
Low. The user can compute. Power users with complex paths notice.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related
pathLengthis the source.Closed by commit aeadc39 on main.
Adds a
Longest segmentrow to Path Info (sits right under the existing Path Length row) showing the longest individual edge plus the average, so the user can spot segment imbalances without computing (delta-x)^2 + (delta-y)^2 by hand. TheNode N of MSelected Nodes hint gets an inlinein X / out Y mmsuffix for a single selected node so the user can see both adjacent edges at a glance.The new
segmentLengthsMmhelper lives next toestimatePathLengthinEditorRightPanel.tsx; both the Path Info row and the per-node hint read from it so the numbers stay consistent. Closed paths get an implicit closing edge (n segments for closed vs n-1 for open) so the values add up to the existing Perimeter row.