()
| 6 | export function scrollAndSelectNodeById(nodeId) { |
| 7 | // Helper to get edges from lastDataStr (as in main.js resize) |
| 8 | function getCurrentEdges() { |
| 9 | let edges = []; |
| 10 | if (typeof lastDataStr === 'string') { |
| 11 | try { |
| 12 | const parsed = JSON.parse(lastDataStr); |
| 13 | edges = parsed.edges || []; |
| 14 | } catch {} |
| 15 | } |
| 16 | return edges; |
| 17 | } |
| 18 | const container = document.getElementById('node-list-container'); |
| 19 | if (container) { |
| 20 | const rows = Array.from(container.children); |
no outgoing calls
no test coverage detected