diff --git a/README.md b/README.md index ae84a0cf..400d2faa 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ The PCBViewer component accepts these props: - `editEvents`: Array of edit events to apply - `onEditEventsChanged`: Callback when edit events change - `initialState`: Initial state for the viewer +- `focusOnHover`: When `true`, the viewer container receives focus on mouse enter so keyboard shortcuts work without clicking first (default: `false`) +- `clickToInteractEnabled`: When `true`, user must click or tap once before pan/zoom (default: `false`) +- `debugGraphics`: Optional debug overlay payload +- `disablePcbGroups`: When `true`, PCB group UI is hidden in initial state ### Features diff --git a/src/examples/2025/board.fixture.tsx b/src/examples/2025/board.fixture.tsx index 65ae1b74..6c47e31b 100644 --- a/src/examples/2025/board.fixture.tsx +++ b/src/examples/2025/board.fixture.tsx @@ -112,7 +112,7 @@ export const AtariBoard = () => { ) } -export const DisabledAutoFocus = () => { +export const BoardWithoutHoverFocus = () => { const circuit = new Circuit() circuit.add() @@ -121,7 +121,7 @@ export const DisabledAutoFocus = () => { return (
- +
) } @@ -131,4 +131,5 @@ export default { TriangleBoard, OctagonBoard, AtariBoard, + BoardWithoutHoverFocus, }