feat(stammbaum): keyboard pan/zoom on the canvas (#692)

+/- zoom by the fixed step and arrow keys pan by a tenth of the visible
extent, emitted via onPanZoom. Provides the keyboard-only alternative path
required by NFR-A11Y-002. Nodes keep their own Enter/Space selection.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-29 16:39:55 +02:00
parent 0422af8980
commit da1984b916
3 changed files with 91 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ function zoomOut() {
edges={data.edges}
selectedId={selectedId}
panZoom={view}
onPanZoom={(v) => (view = v)}
onSelect={(id) => (selectedId = id)}
/>
</div>