(id: string)
| 271 | if (open && symbol.file_path) onNavigate(symbol.file_path, symbol.start_line || undefined, symbol.name); |
| 272 | } |
| 273 | function selectNode(id: string) { |
| 274 | setSelection({ node: id }); |
| 275 | const found = model.nodes.find(candidate => candidate.id === id); |
| 276 | // Inspection deliberately leaves topology and camera unchanged. |
| 277 | if (found?.pathIndices?.length && !found.pathIndices.includes(activePathIndex)) setPathIndex(found.pathIndices[0]); |
| 278 | if (found?.depth !== undefined) setStepIndex(found.depth); |
| 279 | const symbol = found?.symbol; |
| 280 | if (symbol) selectSymbol(symbol); |
| 281 | } |
| 282 | function selectPath(index: number) { setPathIndex(index); setStepIndex(0); setSelection(undefined); } |
| 283 | function selectStep(index: number) { |
| 284 | if (!path?.nodes[index]) return; |
no test coverage detected