Mercurial > gemma
comparison client/src/components/fairway/Fairwayprofile.vue @ 2358:da75385887b9
fairway_profile: render riverbed on layer behind LOS
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 20 Feb 2019 13:48:22 +0100 |
parents | 940ae7c20326 |
children | 96b0314f2bd6 |
comparison
equal
deleted
inserted
replaced
2357:f910ecf23ce0 | 2358:da75385887b9 |
---|---|
213 width | 213 width |
214 ); | 214 ); |
215 if (!this.height || !this.width) return; // do not try to render when height and width are unknown | 215 if (!this.height || !this.width) return; // do not try to render when height and width are unknown |
216 this.drawWaterlevel({ graph, xScale, yScaleRight, height }); | 216 this.drawWaterlevel({ graph, xScale, yScaleRight, height }); |
217 this.drawLabels({ graph, height }); | 217 this.drawLabels({ graph, height }); |
218 this.drawFairway({ graph, xScale, yScaleRight }); | |
219 if (currentData) { | 218 if (currentData) { |
220 this.drawProfile({ | 219 this.drawProfile({ |
221 graph, | 220 graph, |
222 xScale, | 221 xScale, |
223 yScaleRight, | 222 yScaleRight, |
238 color: GROUND_COLOR, | 237 color: GROUND_COLOR, |
239 strokeColor: "#943007", | 238 strokeColor: "#943007", |
240 opacity: 0.6 | 239 opacity: 0.6 |
241 }); | 240 }); |
242 } | 241 } |
242 this.drawFairway({ graph, xScale, yScaleRight }); | |
243 }, | 243 }, |
244 drawFairway({ graph, xScale, yScaleRight }) { | 244 drawFairway({ graph, xScale, yScaleRight }) { |
245 if (this.fairwayData === undefined) { | 245 if (this.fairwayData === undefined) { |
246 return; | 246 return; |
247 } | 247 } |