Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/app/directed_acyclic_graph_raw.ng.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,16 @@
This causes the DAG to open up, fade-in the label before hiding it,
which looks very glitchy
-->
<span *ngIf="group.treatAsLoop" class="fade-in" [attr.aria-hidden]="isGroupExpanded(group)">
<span class="iteration-counter"> {{ getIterationsFor(group).length }} iterations </span>
</span>
@if (showGroupLabel(group)) {
<div class="group-label">
<span class="fade-in">
<span> {{ group.groupLabel }} </span>
</span>
</div>
} @else if (group.treatAsLoop) {
<span class="fade-in" [attr.aria-hidden]="isGroupExpanded(group)">
<span class="iteration-counter"> {{ getIterationsFor(group).length }} iterations </span>
</span>
}
<button
class="expand-toggle"
Expand Down
8 changes: 5 additions & 3 deletions src/app/directed_acyclic_graph_raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,15 @@ export class DagRaw implements DoCheck, OnInit, OnDestroy {
}

showGroupLabel(group: DagGroup) {
if (group.treatAsLoop || !group.groupLabel) return false;
if (!group.groupLabel) return false;
if (this.isGroupExpanded(group) && group.hasControlNode &&
!group.hideControlNodeOnExpand) {
return false
return false;
}
return true

return true;
}

broadcastIterChange(
group: DagGroup, iterationNode: GroupIterationRecord['iterationNode']) {
(group as any)._cachedSelection = iterationNode;
Expand Down
Loading