comparison client/src/components/fairway/Fairwayprofile.vue @ 1588:2888bfacd331

fairwayprofile: do not try to render fairwayprofile without dimensions
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 14 Dec 2018 11:24:50 +0100
parents 0ded4c56978e
children a08e0f532304
comparison
equal deleted inserted replaced
1587:af17c29df8f0 1588:2888bfacd331
210 const { xScale, yScaleRight, graph } = this.generateCoordinates( 210 const { xScale, yScaleRight, graph } = this.generateCoordinates(
211 svg, 211 svg,
212 height, 212 height,
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 this.drawWaterlevel({ graph, xScale, yScaleRight, height }); 216 this.drawWaterlevel({ graph, xScale, yScaleRight, height });
216 this.drawLabels({ graph, height }); 217 this.drawLabels({ graph, height });
217 this.drawFairway({ graph, xScale, yScaleRight }); 218 this.drawFairway({ graph, xScale, yScaleRight });
218 if (currentData) { 219 if (currentData) {
219 this.drawProfile({ 220 this.drawProfile({