Skip to content

Commit

Permalink
fix: show clusters and compound nodes when deferring
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Jul 3, 2023
1 parent 864870b commit 34dad9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/swimlane/ngx-graph/src/lib/graph/graph.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ export class GraphComponent implements OnInit, OnChanges, OnDestroy, AfterViewIn
n.data = {};
}
n.data.color = this.colors.getColor(this.groupResultsBy(n));
if (this.deferDisplayUntilPosition) {
n.hidden = false;
}
oldClusters.add(n.id);
});

Expand All @@ -467,6 +470,9 @@ export class GraphComponent implements OnInit, OnChanges, OnDestroy, AfterViewIn
n.data = {};
}
n.data.color = this.colors.getColor(this.groupResultsBy(n));
if (this.deferDisplayUntilPosition) {
n.hidden = false;
}
oldCompoundNodes.add(n.id);
});

Expand Down

0 comments on commit 34dad9c

Please sign in to comment.