comparison client/src/components/fairway/AvailableFairwayDepth.vue @ 4014:6036f8f76f76

fix legend
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 19 Jul 2019 14:02:19 +0200
parents e9ab7c53aa19
children 009e9400bef0
comparison
equal deleted inserted replaced
4013:e9ab7c53aa19 4014:6036f8f76f76
309 this.pdf.doc.roundedRect(x, y + 10, 10, 4, 1.5, 1.5, "FD"); 309 this.pdf.doc.roundedRect(x, y + 10, 10, 4, 1.5, 1.5, "FD");
310 this.pdf.doc.text(this.legend[2], x + 12, y + 13); 310 this.pdf.doc.text(this.legend[2], x + 12, y + 13);
311 } 311 }
312 }, 312 },
313 legendStyle(index) { 313 legendStyle(index) {
314 if (this.depthlimit1 === this.depthlimit2) {
315 let result = [
316 `background-color: ${this.$options.COLORS.LDC};`,
317 `background-color: ${this.$options.COLORS.HIGHEST};`
318 ];
319 this.fwData[0].lowerLevels.forEach((e, i) => {
320 result.push(`background-color: ${this.$options.COLORS.REST[i]};`);
321 });
322 return result[index];
323 }
314 return [ 324 return [
315 `background-color: ${this.$options.COLORS.LDC};`, 325 `background-color: ${this.$options.COLORS.LDC};`,
316 `background-color: ${this.$options.COLORS.HIGHEST};`, 326 `background-color: ${this.$options.COLORS.HIGHEST};`,
317 `background-color: ${this.$options.COLORS.REST[1]};`, 327 `background-color: ${this.$options.COLORS.REST[1]};`,
318 `background-color: ${this.$options.COLORS.REST[0]};` 328 `background-color: ${this.$options.COLORS.REST[0]};`