Editor has no reference image backdrop — user tracing a hand-drawn sketch on the canvas has no way to load the sketch as a backdrop, the editor canvas is always blank (or shows the path being drawn) #245
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#245
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/EditorCanvas.tsxrenders paths on a blank canvas. There's no:onDrophandler (per my earlier scan:grep -n 'onDrop' src/components/editor/EditorCanvas.tsxreturns 0)grep -n 'referenceImage\|traceImage\|backdrop' src/components/editor/returns 0.A user who wants to digitize a hand-drawn sketch:
Standard vector editors (Illustrator, Inkscape, Figma) all have a "trace image" or "reference image" affordance: load an image, place it on the canvas, lock it (so clicks pass through to the vectors), use it as a visual reference.
Where
src/components/editor/EditorCanvas.tsx(no image loading)src/components/editor/EditorToolbar.tsx(no "Load reference" button)src/pages/Editor.tsx(no reference image state)Suggested fix shape
State: add
referenceImage: { src: string; opacity: number; visible: boolean } | nullto the editor's state.UI: add a "Load reference image..." button to the editor toolbar (next to the existing file actions):
onLoadReferenceImageopens a file picker, accepts PNG/JPG/SVG/BMP, reads as data URL, setsreferenceImage.Rendering: in
canvasRenderer.ts, drawreferenceImagefirst (behind the paths), withopacity: referenceImage.opacityand a "lock" mode where pointer events pass through to the paths.Right panel: add a "Reference Image" section with:
onDropaccepts a file and treats it as a reference image (vs. the workspace's "load as design" semantics).Severity
Medium. The auto-digitize path doesn't help users who want to tune the output. Power users with hand-drawn references notice.
Discovered by
Gap analysis (2026-10-02) of editor image affordances.
Related
useWorkspacestate). The editor doesn't.Fix landed on origin/main; closing it out (watcher for kanban t_ebec167c).
Two commits deliver the Editor reference-image affordance:
c074f86fix(#245): Editor reference image hooks — file picker + draw + type re-exporta4391f1test(#245): pin Editor reference-image affordance (toolbar Reference button + referenceImage helpers)A prerequisite CI fix was also linked here:
dffc31efix(ci): restore ImagePolyfill + suppress TS6133 on indirectly-used membersSurface added (
c074f86):Test pinning (
a4391f1): 13/13 vitest passing in src/pages/issue-245.test.tsx covering toolbar Reference button + referenceImage helpers. Lint clean across touched files.Both
c074f86anda4391f1verified as ancestors of origin/main at git merge-base --is-ancestor. The kilo-gsd run that produced these commits died mid-flow after pushing but before closing; the watcher is closing now since the fix is complete and on main.