(id: number, name: string, file_path = 'src/service.ts', label = 'Method')
| 3 | import type { GraphData, GraphNode } from './types'; |
| 4 | |
| 5 | const node = (id: number, name: string, file_path = 'src/service.ts', label = 'Method'): GraphNode => ({ |
| 6 | id, name, qualified_name: `sample.${name}`, file_path, label, |
| 7 | x: id * 5, y: 10, z: 3, color: '#668899', size: 3, start_line: id, end_line: id + 1, |
| 8 | }); |
| 9 | const layout: GraphData = { |
| 10 | total_nodes: 8, |
| 11 | nodes: [node(1, 'file', 'src/service.ts', 'File'), node(2, 'class', 'src/service.ts', 'Class'), |
no outgoing calls
no test coverage detected