Annotation editor #12

Closed
opened 2026-11-01 16:19:36 +01:00 by miko · 1 comment
Owner

Part of #1

Blocked by: #11

What

Draw coloured rectangles and circles on step images (glossary: Annotation). See ADR-0004.

Acceptance criteria

  • Prisma model Annotation (stepImageId, shape rect|circle, color, x, y, w, h in percent of the cropped image; circle: w = h relative to the 4:3 frame)
  • Own SVG overlay component: draw by dragging, select, move, resize, delete, pick palette colour (no black)
  • Outline only, fixed stroke width, scales with the image
  • Reading view renders annotations as SVG over the image (not burned into the image)
  • Unit tests for coordinate conversion

Vocabulary: GLOSSARY.md. Decisions: docs/adr/.

Part of #1 Blocked by: #11 ## What Draw coloured rectangles and circles on step images (glossary: Annotation). See ADR-0004. ## Acceptance criteria - [ ] Prisma model `Annotation` (stepImageId, shape `rect|circle`, color, x, y, w, h in percent of the cropped image; circle: w = h relative to the 4:3 frame) - [ ] Own SVG overlay component: draw by dragging, select, move, resize, delete, pick palette colour (no black) - [ ] Outline only, fixed stroke width, scales with the image - [ ] Reading view renders annotations as SVG over the image (not burned into the image) - [ ] Unit tests for coordinate conversion Vocabulary: `GLOSSARY.md`. Decisions: `docs/adr/`.
Author
Owner

Implemented in PR #26: annotations (rect/circle) per coloured step line (ADR-0011), editor dialog with line picker and Photoshop-style handles, SVG overlay in the reading view with click-to-highlight per line. Also fixed Editor.js not mounting in development.

Implemented in PR #26: annotations (rect/circle) per coloured step line (ADR-0011), editor dialog with line picker and Photoshop-style handles, SVG overlay in the reading view with click-to-highlight per line. Also fixed Editor.js not mounting in development.
miko closed this issue 2026-11-02 11:07:57 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MassiveDynamic/kataba#12
No description provided.