Skip to content
Snippets Groups Projects
Commit 05c7d181 authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Fix #389 - SectionParam: add Y on schema

parent eba93408
No related branches found
No related tags found
No related merge requests found
Pipeline #137844 passed
......@@ -54,6 +54,7 @@ export class SectionResultsComponent extends ResultsComponentDirective implement
"Ycor": { r: 128, g: 128, b: 128 },
"Yc": { r: 255, g: 128, b: 0 },
"Ycon": { r: 255, g: 0, b: 255 },
"Y": { r: 50, g: 50, b: 50 }
};
/** hardcoded bullet-proof default canvas size **/
......@@ -127,6 +128,10 @@ export class SectionResultsComponent extends ResultsComponentDirective implement
}
}
// ajout du tirant d'eau saisi
const valY = this._results.result.sourceNub.getParameter("Y").singleValue;
this._sectionCanvas.addLevel(valY, "Y = " + this.formattedValue(valY), SectionResultsComponent.labelColors["Y"]);
// wait just a little to draw, in case this._sectionCanvas.size was changed above (1st run)
setTimeout(() => {
if (this._results && this._results.section) {
......
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