comparison client/src/components/fairway/AvailableFairwayDepthLNWL.vue @ 3381:540ef09bd6bc

fix linting
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 15:53:05 +0200
parents d83c738e8627
children 0ba142a4bf43
comparison
equal deleted inserted replaced
3380:d83c738e8627 3381:540ef09bd6bc
511 .attr("y", d => { 511 .attr("y", d => {
512 return this.yScale(d.translateY); 512 return this.yScale(d.translateY);
513 }) 513 })
514 .attr("width", this.barsWidth) 514 .attr("width", this.barsWidth)
515 .attr("fill", d => { 515 .attr("fill", d => {
516 if (d.level === "LDC") return "#aaaaaa"; 516 return this.$options.LWNLCOLORS[d.level];
517 return "#3333cc";
518 }); 517 });
519 }, 518 },
520 drawScaleLabel() { 519 drawScaleLabel() {
521 const center = this.dimensions.mainHeight / 2; 520 const center = this.dimensions.mainHeight / 2;
522 this.diagram 521 this.diagram
548 fwLNWLData() { 547 fwLNWLData() {
549 this.drawDiagram(); 548 this.drawDiagram();
550 } 549 }
551 }, 550 },
552 LEGEND: app.$gettext("Percent"), 551 LEGEND: app.$gettext("Percent"),
553 AFDCOLORS: ["#33333", "#666666", "#999999"] 552 AFDCOLORS: ["#782121", "#ff6c6c", "#3675ff"],
553 LWNLCOLORS: {
554 LDC: "#aaaaaa",
555 HDC: "#ff6600"
556 }
554 }; 557 };
555 </script> 558 </script>