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

Modules diagram: show which linked parameters are calculated

parent c52a3e32
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@
<div id="diagram" #diagram></div>
<div id="diagram-legend">
* {{ uitextCalculatedParam }}
</div>
<!-- <a class="show-debug" (click)="initSvgPanZoom()">init zoom </a> -->
<!-- <a class="show-debug" (click)="showDebug = ! showDebug"> debug</a> -->
......
......@@ -63,6 +63,10 @@ export class ModulesDiagramComponent implements AfterContentInit, AfterViewCheck
return this.intlService.localizeText("INFO_DIAGRAM_DRAWING_ERROR");
}
public get uitextCalculatedParam(): string {
return this.intlService.localizeText("INFO_DIAGRAM_CALCULATED_PARAM");
}
public ngAfterViewChecked() {
if (this.needsToInitSvgPanZoom) {
this.initSvgPanZoom();
......@@ -175,11 +179,11 @@ export class ModulesDiagramComponent implements AfterContentInit, AfterViewCheck
for (const p of nub.parameterIterator) {
if (p.valueMode === ParamValueMode.LINK && p.isReferenceDefined()) {
const target = p.referencedValue.nub;
// move all children links to parent for now (sections, structures...)
/* if (target.parent !== undefined) {
target = target.parent;
} */
def.push(nub.uid + "-->|" + p.symbol + "|" + target.uid);
let symb = p.symbol;
if (p.referencedValue.isCalculated()) {
symb += "*";
}
def.push(nub.uid + "-->|" + symb + "|" + target.uid);
}
}
}
......
......@@ -74,6 +74,7 @@
"INFO_DEVER_TITRE": "Free flow weir stage-discharge laws",
"INFO_DIAGRAM_TITLE": "Calculation modules diagram",
"INFO_DIAGRAM_DRAWING_ERROR": "Error while drawing diagram",
"INFO_DIAGRAM_CALCULATED_PARAM": "calculated parameter",
"INFO_DIALOG_COMPUTED_VALUE_TITLE": "Edit initial value",
"INFO_DIALOG_EDIT_PAB_INTERPOLATION_BOUNDS": "between %s and %s",
"INFO_DIALOG_EDIT_PAB_N_DEVICES": "%s device(s)",
......
......@@ -74,6 +74,7 @@
"INFO_DEVER_TITRE": "Lois de déversoirs dénoyés",
"INFO_DIAGRAM_TITLE": "Diagramme des modules de calcul",
"INFO_DIAGRAM_DRAWING_ERROR": "Erreur lors du dessin du diagramme",
"INFO_DIAGRAM_CALCULATED_PARAM": "paramètre calculé",
"INFO_DIALOG_COMPUTED_VALUE_TITLE": "Modifier la valeur initiale",
"INFO_DIALOG_EDIT_PAB_INTERPOLATION_BOUNDS": "entre %s et %s",
"INFO_DIALOG_EDIT_PAB_N_DEVICES": "%s ouvrage(s)",
......
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