refactor(annotations): replace 8-square handles with 4 corner L-brackets

- 4 corner-only handles (nw/ne/sw/se), no edge midpoints
- Each handle renders as two short perpendicular lines meeting at the corner
  (10px arms, navy, square linecap) — no fill, no box
- Thin dashed selection border added to SVG overlay to signal edit mode
- Simplify applyHandleDrag to remove dead n/s/e/w branches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-14 11:14:30 +02:00
parent e7f88a4ea1
commit fcc0efbf02
4 changed files with 53 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ describe('AnnotationShape', () => {
});
const handles = document.querySelectorAll('[data-handle]');
expect(handles).toHaveLength(8);
expect(handles).toHaveLength(4);
});
});
});