Skip to content
Snippets Groups Projects
Commit 414884c1 authored by mathias.chouet's avatar mathias.chouet
Browse files

MacroRugoCompound with inclined apron: display lateral inclination

parent 2693efad
No related branches found
No related tags found
No related merge requests found
Pipeline #137657 failed
......@@ -12,6 +12,10 @@
<macrorugo-compound-results-table *ngIf="hasDisplayableResults" [results]="mrcResults"></macrorugo-compound-results-table>
</div>
<div id="mrcLateralInclination" *ngIf="isInclined">
<strong [innerHTML]="uitextLateralInclination"></strong> {{ lateralInclination }}
</div>
<quicknav *ngIf="hasDisplayableResults" [items]="[ 'input', 'results', 'charts' ]"
[currentItem]="'charts'" [align]="'left'"></quicknav>
......
......@@ -2,3 +2,12 @@ results-chart {
margin-left: 1em;
margin-right: 1em;
}
#mrcLateralInclination {
margin-top: 1em;
margin-bottom: 2em;
> strong {
font-weight: bold;
}
}
import { Component, ViewChild, DoCheck } from "@angular/core";
import { Result, cLog, Message, MessageCode, MessageSeverity } from "jalhyd";
import { Result, cLog, Message, MessageCode, MessageSeverity, MacrorugoCompound } from "jalhyd";
import { fv } from "../../../app/util";
import { LogComponent } from "../../components/log/log.component";
import { CalculatorResults } from "../../results/calculator-results";
......@@ -310,6 +312,24 @@ export class MacrorugoCompoundResultsComponent implements DoCheck {
return this.i18nService.localizeText("INFO_TITREJOURNAL_GLOBAL");
}
public get uitextLateralInclination(): string {
return this.i18nService.localizeText("INFO_MACRORUGOCOMPOUND_LINCL");
}
public get isInclined(): boolean {
return (
this.mrcResults
&& this.mrcResults.result
&& this.mrcResults.result.sourceNub
&& this.mrcResults.result.sourceNub.properties.getPropValue("inclinedApron")
);
}
public get lateralInclination(): string {
const lincl = this.mrcResults.result.resultElements[this._mrcResults.variableIndex].values.LIncl;
return fv(lincl);
}
/** builds a set of PlottableData from MacrorugoCompoundResults, to feed the chart */
protected get plottableResults(): PlottableData {
this._plottableResults.setMrcResults(this.mrcResults);
......
......@@ -315,6 +315,7 @@
"INFO_MENU_DIAGRAM_TITLE": "Modules diagram",
"INFO_MACRORUGOCOMPOUND_TITRE": "Compound rock-ramp fishpasses (beta)",
"INFO_MACRORUGOCOMPOUND_TITRE_COURT": "Compound RR",
"INFO_MACRORUGOCOMPOUND_LINCL": "Lateral inclination (m/m): ",
"INFO_PENTE_TITRE": "Slope",
"INFO_PENTE_TITRE_COURT": "Slope",
"INFO_MENU_EMPTY_SESSION_TITLE": "New session",
......
......@@ -314,6 +314,7 @@
"INFO_MENU_DIAGRAM_TITLE": "Diagramme des modules",
"INFO_MACRORUGOCOMPOUND_TITRE": "Passe à macro-rugosités complexe (beta)",
"INFO_MACRORUGOCOMPOUND_TITRE_COURT": "M-Rugo complexe",
"INFO_MACRORUGOCOMPOUND_LINCL": "Dévers latéral (m/m)&nbsp;:",
"INFO_PENTE_TITRE": "Pente",
"INFO_PENTE_TITRE_COURT": "Pente",
"INFO_MENU_EMPTY_SESSION_TITLE": "Nouvelle session",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment