Mercurial > gemma
comparison client/src/components/fairway/Fairwayprofile.vue @ 4814:ad2ad7bae4a6
client: fairwayprofile: fix legend color for image-export
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Wed, 30 Oct 2019 09:33:59 +0100 |
parents | b6d8570b8480 |
children | 008bc1ae8897 |
comparison
equal
deleted
inserted
replaced
4813:0644c2b3af54 | 4814:ad2ad7bae4a6 |
---|---|
308 ctx.fillStyle = "black"; | 308 ctx.fillStyle = "black"; |
309 ctx.fillText(this.$gettext("Water"), x + 14, y + 5); | 309 ctx.fillText(this.$gettext("Water"), x + 14, y + 5); |
310 ctx.closePath(); | 310 ctx.closePath(); |
311 | 311 |
312 ctx.beginPath(); | 312 ctx.beginPath(); |
313 ctx.fillStyle = this.getLayerStyle(2).fillColor; | 313 ctx.fillStyle = this.getLayerStyle(1).fillColor; |
314 ctx.strokeStyle = this.getLayerStyle(2).strokeColor; | 314 ctx.strokeStyle = this.getLayerStyle(1).strokeColor; |
315 ctx.arc(x, (y += 20), 8, 0, 2 * Math.PI); | 315 ctx.arc(x, (y += 20), 8, 0, 2 * Math.PI); |
316 ctx.setLineDash([0.8], 0); | 316 ctx.setLineDash([0.8], 0); |
317 ctx.fill(); | 317 ctx.fill(); |
318 ctx.stroke(); | 318 ctx.stroke(); |
319 ctx.fillStyle = "black"; | 319 ctx.fillStyle = "black"; |