components/plots/plots.component.ts
Main application plots showing magnitude frequency distribution: magnitude vs. rate.
By default all MFD types are show, select menu with ability to change to specific MFD type.
OnInit
selector | app-plots |
imports |
NshmpPlotsContainerComponent
NshmpPlotComponent
NshmpAppMetadataComponent
MatAccordion
MatExpansionPanel
MatExpansionPanelHeader
MatExpansionPanelTitle
MatDivider
MatFormField
MatLabel
MatSelect
MatOption
ParameterSummaryComponent
ReactiveFormsModule
|
templateUrl | ./plots.component.html |
styleUrl | ./plots.component.scss |
Properties |
|
Methods |
ngOnInit |
ngOnInit()
|
Defined in components/plots/plots.component.ts:79
|
Returns :
void
|
Private destroyRef |
Default value : inject(DestroyRef)
|
Defined in components/plots/plots.component.ts:49
|
formGroup |
Default value : this.service.formGroup
|
Defined in components/plots/plots.component.ts:54
|
Form field state |
mfdPlotData |
Default value : this.service.mfdPlotData
|
Defined in components/plots/plots.component.ts:57
|
MFD plot data state |
MfdType |
Default value : MfdType
|
Defined in components/plots/plots.component.ts:51
|
mfdTypes |
Default value : computed(() => {
const serviceResponse = this.service.serviceResponse();
if (serviceResponse === null) {
return [];
}
const mfdTypes = serviceResponse.response.branches
.map(branch => {
return branch.mfds.map(mfdInfo => mfdInfo.mfd.props.type);
})
.reduce((prev, curr) => [...prev, ...curr]);
return Array.from(new Set(mfdTypes)).sort((a, b) => a.localeCompare(b));
})
|
Defined in components/plots/plots.component.ts:60
|
MFD types plotted for select menu |
repositories |
Default value : computed(() => this.service.usage()?.metadata.repositories)
|
Defined in components/plots/plots.component.ts:77
|
Repo metadata |
Private service |
Default value : inject(AppService)
|
Defined in components/plots/plots.component.ts:48
|