changeset 4675:a586de1b4466

custom fairway box limit to diagram fix
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 15 Oct 2019 16:13:10 +0200
parents 3b7de89527a3
children 5b9ba358a4e7
files client/src/components/fairway/Fairwayprofile.vue
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue	Tue Oct 15 16:05:43 2019 +0200
+++ b/client/src/components/fairway/Fairwayprofile.vue	Tue Oct 15 16:13:10 2019 +0200
@@ -467,7 +467,10 @@
         data.coordinates.forEach(coordinates => {
           const [startPoint, endPoint, depth] = coordinates;
           let customdepth =
-            this.depth < this.maxAlt ? this.depth : this.maxAlt * 1.1;
+            this.depth < this.maxAlt
+              ? this.depth
+              : this.maxAlt * 1.1 +
+                (this.waterlevel - this.refWaterlevel) / 100;
           let fairwayArea = d3
             .area()
             .x(function(d) {