diff options
Diffstat (limited to 'subprojects/frontend/src/graph/dotSource.ts')
-rw-r--r-- | subprojects/frontend/src/graph/dotSource.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/frontend/src/graph/dotSource.ts b/subprojects/frontend/src/graph/dotSource.ts index 5f7707aa..5e0b44c8 100644 --- a/subprojects/frontend/src/graph/dotSource.ts +++ b/subprojects/frontend/src/graph/dotSource.ts | |||
@@ -142,7 +142,7 @@ function createNodes(graph: GraphStore, lines: string[]): void { | |||
142 | const classes = classList.join(' '); | 142 | const classes = classList.join(' '); |
143 | const name = nodeName(graph, node); | 143 | const name = nodeName(graph, node); |
144 | const border = node.kind === 'INDIVIDUAL' ? 2 : 1; | 144 | const border = node.kind === 'INDIVIDUAL' ? 2 : 1; |
145 | const count = scopes && data.equalsSelf !== 'TRUE' ? ` ${data.count}` : ''; | 145 | const count = scopes ? ` ${data.count}` : ''; |
146 | lines.push(`n${i} [id="${node.name}", class="${classes}", label=< | 146 | lines.push(`n${i} [id="${node.name}", class="${classes}", label=< |
147 | <table border="${border}" cellborder="0" cellspacing="0" style="rounded" bgcolor="white"> | 147 | <table border="${border}" cellborder="0" cellspacing="0" style="rounded" bgcolor="white"> |
148 | <tr><td cellpadding="4.5" width="32" bgcolor="green">${name}${count}</td></tr>`); | 148 | <tr><td cellpadding="4.5" width="32" bgcolor="green">${name}${count}</td></tr>`); |
@@ -323,7 +323,7 @@ function createEdges(graph: GraphStore, lines: string[]): void { | |||
323 | 323 | ||
324 | export default function dotSource( | 324 | export default function dotSource( |
325 | graph: GraphStore | undefined, | 325 | graph: GraphStore | undefined, |
326 | ): string | undefined { | 326 | ): [string, number] | undefined { |
327 | if (graph === undefined) { | 327 | if (graph === undefined) { |
328 | return undefined; | 328 | return undefined; |
329 | } | 329 | } |
@@ -336,5 +336,5 @@ export default function dotSource( | |||
336 | createNodes(graph, lines); | 336 | createNodes(graph, lines); |
337 | createEdges(graph, lines); | 337 | createEdges(graph, lines); |
338 | lines.push('}'); | 338 | lines.push('}'); |
339 | return lines.join('\n'); | 339 | return [lines.join('\n'), lines.length]; |
340 | } | 340 | } |