Editor's Path Properties has 'Stitch type' but the 'cross-stitch' type has no per-stitch size input (cross-stitch X-size) — user wanting to control the cross-stitch size has no UI #390
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#390
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 'crossStitchSize\|crossStitchParams' src/components/editor/returns 0. The editor has no cross-stitch parameters.Cross-stitch has:
A user with a cross-stitch path:
The fix is cross-stitch parameters.
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'crossStitchSize' src/components/editor/returns 0Suggested fix shape
Type: add
crossStitchSize: numberandcrossStitchSpacing: numberto the StitchPath type (when stitchType is 'cross-stitch').UI: when stitch type is 'cross-stitch', show:
Visual: the canvas shows the cross-stitch pattern at the specified size.
Use cases:
Severity**
Medium. Cross-stitch size is critical for cross-stitch designs. Power users notice.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related**
Closing as part of the per-stitch-type parameter family covered by #314 (satin width). Cross-stitch size, zigzag amplitude (#391), running stitch length (#392), fill angle (#373), stitch direction (#374), density profile (#388), underlay (#319), pull comp (#318) are all the same underlying gap: the editor exposes only a generic density slider, not the embroidery-specific parameters. The umbrella fix is to expose per-stitch-type parameters in the Path Properties section.
Cross-stitch size + spacing parameters landed in commit
785f0de.The Path Properties block now surfaces two
<input type="number">rows when a cross-stitch path is selected:Both fields follow the same per-stitch-type parameter pattern as #314 (satinWidth) and #373 (fillAngle/fillSpacing):
StitchPathfields (crossStitchSize?: number,crossStitchSpacing?: number) so designs persisted before #390 keep loading with the 3.0 mm / 1.0 mm defaults.EditorRightPanelprops; rows render only when the handler is wired.paths.length < 2.src/components/editor/issue-390.test.tsxpinning the panel-side contract.The commit also drops the underscore-prefixed destructure of
previewStitchType/onPreviewStitchTypeand the cross-stitch props introduced by the recent#386underscore fix — that fix passed ESLint but broketsc -bbecause the type definitions don't have an underscore prefix. The truly-unused props are simply removed from the destructure; the cross-stitch props are read by the panel body so they remain in the destructure without the prefix.Engine export (
pathsToStitchObjects/WorkspaceStitchObject/drawCrossStitches) is intentionally untouched — the new fields persist in the design JSON but have no effect on PES/DST export until a follow-up issue lands. This is the editor-side UI gap only.Verified locally before push:
npx tsc -bexits 0,npx eslintexits 0 (1 pre-existing warning),npx vitest runis 364/364 across 7 test files including the newissue-390.test.tsx.gradient: { startColor, endColor }field to StitchPath type (#350 type layer) #393