Mercurial > gemma
changeset 4335:2f212f520a04
client: (minor) beautify code format
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 05 Sep 2019 15:02:06 +0200 |
parents | 8ac59c8183e8 |
children | 45307cf4931a |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu Sep 05 14:50:05 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Sep 05 15:02:06 2019 +0200 @@ -503,11 +503,12 @@ .filter(d => hoursInDays(d.height) > 0) .insert("text") .attr("y", d => { - return ( 2 * yScale(0) - - yScale(hoursInDays(d.translateY)) - + this.paddingTop - + (yScale(0) - yScale(hoursInDays(d.height))) - + (yScale(0) - yScale(1.9)) //instead o alignment-baseline hanging + return ( + 2 * yScale(0) - + yScale(hoursInDays(d.translateY)) + + this.paddingTop + + (yScale(0) - yScale(hoursInDays(d.height))) + + (yScale(0) - yScale(1.9)) //instead o alignment-baseline hanging ); }) .attr("x", widthPerItem / 2) @@ -560,7 +561,7 @@ .filter(d => hoursInDays(d.ldc) > 0) .append("text") .attr("y", yScale(0.5)) // some distance from the bar - .attr("x", spaceBetween / 2) + .attr("x", spaceBetween / 2) .text(d => hoursInDays(d.ldc)) .attr("text-anchor", "left") .attr("font-size", "8")