src/app/graphs/issue-graph-controls/issue-graph-controls.component.ts
This component contains the graph toggles, the search bar and the button for creating new components. Additionally it contains the actual graph component and feeds data to it. This component collects the state of the search bar and graph toggles, combines it and emits it via this.filter$. Another observable retrieved from the IssueGraphStateService maps these values into the graph data matching the filters. Whenever new graph data arrives it is feed to the actual graph component. (see ngAfterViewInit)
selector | app-issue-graph-controls |
styleUrls | ./issue-graph-controls.component.scss |
templateUrl | ./issue-graph-controls.component.html |
Properties |
|
Methods |
constructor(dialog: MatDialog, gs: IssueGraphStateService, route: ActivatedRoute)
|
||||||||||||
Parameters :
|
Private getSelectedCategories |
getSelectedCategories()
|
Gathers booleans indicating whether the toggle switches coressponding to values in IssueCategory are turned on or off
Returns :
SelectedCategories
|
layoutGraph |
layoutGraph()
|
Returns :
void
|
setRelationVisibility |
setRelationVisibility()
|
Tell the graph component whether to show issue relations or not.
Returns :
void
|
Public updateSelectedCategories |
updateSelectedCategories()
|
Emit newly selected categories via this.selectedCategories$
Returns :
void
|
bug |
Default value : true
|
Private destroy$ |
Default value : new ReplaySubject<void>(1)
|
Public dialog |
Type : MatDialog
|
featureRequests |
Default value : true
|
filter$ |
Type : BehaviorSubject<FilterState>
|
issueGraph |
Type : IssueGraphComponent
|
Decorators :
@ViewChild(IssueGraphComponent)
|
labelSearch |
Type : LabelSearchComponent
|
Decorators :
@ViewChild(LabelSearchComponent)
|
projectId |
Type : string
|
Public selectedCategories$ |
Default value : new BehaviorSubject<SelectedCategories>(this.getSelectedCategories())
|
showRelations |
Default value : true
|
unclassified |
Default value : true
|
./issue-graph-controls.component.scss