comparison client/src/components/gauge/Waterlevel.vue @ 4154:d54d86d27e82

client: waterlevel: remove whitespace and add comment
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 02 Aug 2019 13:15:12 +0200
parents 7c44af0b9370
children 552ea22ed266
comparison
equal deleted inserted replaced
4153:7c44af0b9370 4154:d54d86d27e82
452 .selectAll(".line") 452 .selectAll(".line")
453 .selectAll("circle.d3-line-chunked-chunk-predicted-point") 453 .selectAll("circle.d3-line-chunked-chunk-predicted-point")
454 .attr("fill-opacity", 0.6); 454 .attr("fill-opacity", 0.6);
455 455
456 svg 456 svg
457 .selectAll(".hdc-line, .mw-line, .ldc-line, .rn-line ") 457 .selectAll(".hdc-line, .mw-line, .ldc-line, .rn-line")
458 .attr("stroke-width", 1) 458 .attr("stroke-width", 1)
459 .attr("fill", "none") 459 .attr("fill", "none")
460 .attr("clip-path", "url(#waterlevel-clip)"); 460 .attr("clip-path", "url(#waterlevel-clip)");
461 svg.selectAll(".hdc-line").attr("stroke", "red"); 461 svg.selectAll(".hdc-line").attr("stroke", "red");
462 svg.selectAll(".ldc-line").attr("stroke", "green"); 462 svg.selectAll(".ldc-line").attr("stroke", "green");
767 return () => { 767 return () => {
768 diagram.select(".prediction-area").attr("d", predictionArea()); 768 diagram.select(".prediction-area").attr("d", predictionArea());
769 }; 769 };
770 }, 770 },
771 drawRefLines({ refWaterLevels, diagram, scale, dimensions, extent }) { 771 drawRefLines({ refWaterLevels, diagram, scale, dimensions, extent }) {
772 // filling area between HDC and LDC
773 if (refWaterLevels) { 772 if (refWaterLevels) {
774 const { LDC, HDC } = this.determineLDCHDC(refWaterLevels); 773 const { LDC, HDC } = this.determineLDCHDC(refWaterLevels);
774 // filling area between HDC and LDC if both of them are available
775 if (LDC && HDC) { 775 if (LDC && HDC) {
776 diagram 776 diagram
777 .append("rect") 777 .append("rect")
778 .attr("class", "hdc-ldc-area") 778 .attr("class", "hdc-ldc-area")
779 .attr("x", 0) 779 .attr("x", 0)