Mercurial > gemma
diff client/src/fairway/Fairwayprofile.vue @ 802:327aa4a18a1c
Fairway profile WIP
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 27 Sep 2018 13:36:43 +0200 |
parents | 1bee00039973 |
children | 30ff051e75e9 |
line wrap: on
line diff
--- a/client/src/fairway/Fairwayprofile.vue Thu Sep 27 13:18:50 2018 +0200 +++ b/client/src/fairway/Fairwayprofile.vue Thu Sep 27 13:36:43 2018 +0200 @@ -46,7 +46,8 @@ "yScaleRight", "margin", "totalLength", - "waterLevels" + "waterLevels", + "fairwayCoordinates" ], computed: { waterColor() { @@ -76,6 +77,9 @@ }, selectedWaterLevel() { this.drawDiagram(); + }, + fairwayCoordinates() { + this.drawDiagram(); } }, methods: { @@ -117,6 +121,17 @@ height, width }); + this.drawFairway({ + graph, + xScale, + yScaleLeft, + currentData, + height, + width + }); + }, + drawFairway() { + console.log(this.fairwayCoordinates); }, drawLabels({ graph, height }) { graph