Skip to content

Commit

Permalink
fix: 🐛 Add all nodes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 19, 2021
1 parent 387b7f5 commit fa24115
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/Components/Stats.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
</td>
<td>Nodes</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data[i][dir].Merged.nodesStr}
Expand All @@ -153,6 +154,7 @@
{data[i][dir].Merged.nodes.length}
</td>
{/each}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={cellStr(i, "Merged", "nodesStr")}
Expand All @@ -164,6 +166,7 @@
<tr>
<td>Real Edges</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data[i][dir].Merged.edgesStr}
Expand All @@ -172,6 +175,7 @@
{data[i][dir].Merged.edges.length}
</td>
{/each}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={cellStr(i, "Merged", "edgesStr")}
Expand All @@ -183,6 +187,7 @@
<tr>
<td>Implied Edges</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data[i][dir].Implied.edgesStr}
Expand All @@ -191,6 +196,7 @@
{data[i][dir].Implied.edges.length}
</td>
{/each}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={cellStr(i, "Implied", "edgesStr")}
Expand All @@ -204,6 +210,7 @@
<td rowspan="3"> Totals </td>
<td>Nodes</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data.map((datum) => datum[dir].Merged.nodesStr).join("\n")}
Expand Down Expand Up @@ -245,6 +252,7 @@
<tr>
<td>Real Edges</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data.map((datum) => datum[dir].Merged.edgesStr).join("\n")}
Expand Down Expand Up @@ -282,6 +290,7 @@
<tr>
<td>Implied Edges</td>
{#each DIRECTIONS as dir}
<!-- svelte-ignore a11y-unknown-aria-attribute -->
<td
aria-label-position="left"
aria-label={data.map((datum) => datum[dir].Implied.edgesStr).join("\n")}
Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,12 @@ export default class BCPlugin extends Plugin {
const targets = hier[dir][fieldName];

this.populateGraph(g, currFileName, targets, dir, fieldName);
addNodeIfNot(graphs.main, currFileName, {
dir,
fieldName,
order: neighbours.order,
});
targets.forEach((target) => {
addNodeIfNot(graphs.main, currFileName, {
dir,
fieldName,
order: neighbours.order,
});
addNodeIfNot(graphs.main, target, {
dir,
fieldName,
Expand Down

0 comments on commit fa24115

Please sign in to comment.