# HG changeset patch # User Thomas Junk # Date 1571148790 -7200 # Node ID a586de1b4466e69f3b12362e88c9be7f1c4eaf3e # Parent 3b7de89527a300e8ae2297763650f4b608d332b0 custom fairway box limit to diagram fix diff -r 3b7de89527a3 -r a586de1b4466 client/src/components/fairway/Fairwayprofile.vue --- 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) {