From 34dad9c82a549ab3d5e55c8835a8d097f4da6e66 Mon Sep 17 00:00:00 2001 From: Stephen Belovarich Date: Mon, 3 Jul 2023 14:18:12 -0700 Subject: [PATCH] fix: show clusters and compound nodes when deferring --- .../swimlane/ngx-graph/src/lib/graph/graph.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/swimlane/ngx-graph/src/lib/graph/graph.component.ts b/projects/swimlane/ngx-graph/src/lib/graph/graph.component.ts index bfa035cd..aa7089f0 100644 --- a/projects/swimlane/ngx-graph/src/lib/graph/graph.component.ts +++ b/projects/swimlane/ngx-graph/src/lib/graph/graph.component.ts @@ -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); }); @@ -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); });