(id: string)
| 288 | setSelection(data?.overview ? undefined : found ? { node: found.id } : undefined); selectSymbol(path.nodes[index]); |
| 289 | } |
| 290 | function selectEdge(id: string) { |
| 291 | const found = model.edges.find(item => item.id === id); |
| 292 | const nextPath = found?.pathIndices?.includes(activePathIndex) ? activePathIndex : found?.pathIndices?.[0] ?? activePathIndex; |
| 293 | setPathIndex(nextPath); |
| 294 | setStepIndex(Math.max(0, paths[nextPath]?.edges.findIndex(item => item.id === found?.pathEdge?.id) ?? 0)); |
| 295 | setSelection({ edge: id }); |
| 296 | } |
| 297 | function open(symbol: SystemSymbol) { selectSymbol(symbol, true); } |
| 298 | function revealEvidence() { |
| 299 | const details = document.getElementById(`system-evidence-${view}`) as HTMLDetailsElement | null; |
no outgoing calls
no test coverage detected