Commit 8e6134da authored by juminet's avatar juminet

[client/geothermie] carotte: add piezo information - UH name

parent 5cb53e15
......@@ -401,9 +401,9 @@ const withContext = (ctx: CanvasRenderingContext2D) => {
const v1 = ref[1];
let it = 0;
PIEZO_LAYERS_NAME.slice().reverse().map((pizeoName) => {
const piezoDepth = getHydroLayerDepth(pizeoName);
const piezoThickness = getHydroLayersThicknesses()[getPiezoIndex(pizeoName)];
PIEZO_LAYERS_NAME.slice().reverse().map((piezoName) => {
const piezoDepth = getHydroLayerDepth(piezoName);
const piezoThickness = getHydroLayersThicknesses()[getPiezoIndex(piezoName)];
const piezoLayerBottom = piezoDepth + piezoThickness; // the bottom off the piezo layer
const distStart = distanceV0V1 * (12 - (it * 2)) / 14; // distStartI distPiezoI
const distEnd = distanceV0V1 * (13 - (it * 2)) / 14; // distStartI distPiezoI
......@@ -413,7 +413,7 @@ const withContext = (ctx: CanvasRenderingContext2D) => {
console.log(start);
console.log(end);
getPiezoValue(pizeoName).fold(
getPiezoValue(piezoName).fold(
null,
(piezoValue) => {
if(piezoValue > noPizeoValue) {
......@@ -455,6 +455,14 @@ const withContext = (ctx: CanvasRenderingContext2D) => {
ctx.textBaseline = "middle";
ctx.fillText(piezoValue.toFixed(0), start.x, end.y - piezoValue / depthPixelRatio);
// write piezo reference
ctx.fillStyle = color.blue;
ctx.font = "Bold 12px";
ctx.textAlign = "right";
ctx.textBaseline = "middle";
ctx.fillText(piezoName.replace('/RBC_', ''), start.x, end.y);
it = it + 1;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment