(id: string)
| 769 | // picture); a SET labels only those lines (the tree, where the arms of a |
| 770 | // decision are the one thing worth saying before anything is selected). |
| 771 | const restLabels = (id: string): boolean => (atRest === true ? true : atRest !== false && atRest.has(id)); |
| 772 | const anyAtRest = atRest === true || (atRest !== false && atRest.size > 0); |
| 773 | if (selected === null && !anyAtRest) return { pills, hidden: 0 }; |
| 774 | const nodes = new Map(model.layout.nodes.map((n) => [n.id, n])); |