feat(annotations): add N/S/E/W edge midpoint handles to resize overlay

Extends the 4-corner L-bracket handles with 4 tick-mark edge handles
(short lines along each edge), enabling single-axis resize from any edge.
Updates applyHandleDrag to route each handle to the correct axis.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-14 11:40:39 +02:00
parent fcc0efbf02
commit 9fe5b32a69
4 changed files with 33 additions and 15 deletions

View File

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