| 137 | // its measure, the parts shown, its hotspot findings and the connections between the parts. |
| 138 | const openedEvidence = () => { |
| 139 | const scopeNode = (kind: 'area' | 'file', path: string): SemanticNode => ({ id: `${kind}:${path}`, kind, label: path, detail: '', position: [0, 0, 0], count: 0, members: [], |
| 140 | ...kind === 'area' ? { areaPath: path } : { filePath: path } }); |
| 141 | // Largest first, areas before files: the first parts named are the ones that make up the area. |
| 142 | const parts = model.nodes.filter(node => (node.kind === 'area' || node.kind === 'file') && !node.external) |
| 143 | .map(node => ({ node, measure: measureSourceNode(node, catalog) })) |