Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The PCBViewer component accepts these props:
- `onEditEventsChanged`: Callback when edit events change
- `onBoundsSelected`: Callback when the Bounds tool completes a rectangle selection. Receives `{ minX, minY, maxX, maxY }`.
- `initialState`: Initial state for the viewer
- `focusOnHover`: Focus the viewer when the pointer hovers it. Set `focusOnHover={false}` to keep hover focus disabled.

### Features

Expand Down
4 changes: 2 additions & 2 deletions src/examples/2025/board.fixture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const AtariBoard = () => {
)
}

export const DisabledAutoFocus = () => {
export const FocusOnHoverDisabled = () => {
const circuit = new Circuit()

circuit.add(<board pcbX={0} pcbY={0} width="50mm" height="50mm" />)
Expand All @@ -121,7 +121,7 @@ export const DisabledAutoFocus = () => {

return (
<div style={{ backgroundColor: "black" }}>
<PCBViewer circuitJson={soup as any} />
<PCBViewer circuitJson={soup as any} focusOnHover={false} />
</div>
)
}
Expand Down
Loading