Editor's Path Properties has 'Path length' but no 'Bounding box' (width × height) — user wanting to know the path's extents (for fit-to-view, alignment) has to compute from the nodes #356
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#356
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 'boundingBox\|pathBoundingBox' src/components/editor/EditorRightPanel.tsxreturns 0. The right panel doesn't show the path's bounding box.A user with a path:
The fix is to add bounding box dimensions.
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'pathBoundingBox' src/components/editor/returns 0src/components/editor/geometry.ts(thepathBoundingBoxfunction exists; it's just not displayed)Suggested fix shape
Visual: the bounding box is drawn on the canvas as a faint dashed line (already in place per the canvasRenderer?).
Use cases:
Severity
Low. The user can compute. Power users notice.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related
pathBoundingBoxis the source.Shipped in commit
547222c. Two new rows in Path Statistics (right panel, node-edit mode):20.00 × 20.00 mm. Includes control handles, so a smooth node whose handles extend past the anchors reports a larger box than the anchors alone.(0.00, 0.00).Both source from the existing
pathBoundingBox(geometry)helper — the same one the canvas transform handlers use as the flip / mirror / rotate pivot and the canvas editor selects on. So the numbers match what fit-to-view (F), flip, mirror, and rotate see.Renders alongside Path Length / Stitches / Path area / Perimeter / Thread usage / Stitch time / Fabric coverage — sibling rows, same commit-and-format style.
6 new tests in
src/components/editor/issue-356.test.tsxpin:(-25, -15)to(25, 15)→50 × 30mm, top-left(-25, -15))controlOutpast anchors grows the bbox)Closes #356.