(id: number, file_path: string, label: string, start_line?: number, end_line?: number)
| 4 | import { collectSourceMetrics, measureSourceNode, scopeBrickHeights, sourceBrickHeight, sourceLanguage, languageColor, sourceNodeSizePercent } from './source-metrics'; |
| 5 | |
| 6 | const node = (id: number, file_path: string, label: string, start_line?: number, end_line?: number): GraphNode => ({ |
| 7 | id, file_path, label, start_line, end_line, name: `node${id}`, x: 0, y: 0, z: 0, size: 1, color: '', |
| 8 | }); |
| 9 | const graph: GraphData = { nodes: [node(1, 'src/api/a.ts', 'File', 0, 0), node(2, 'src/api/a.ts', 'Module', 1, 100), |
| 10 | node(3, 'src/api/a.ts', 'Class', 2, 95), node(4, 'src/api/a.ts', 'Method', 10, 80), |
| 11 | node(5, 'src/api/b.py', 'Module', 1, 300), node(6, 'src/api/b.py', 'Module', 1, 300), |
no outgoing calls
no test coverage detected