Mercurial > gemma
changeset 3853:abc15a3182c7
client: pdf-gen: adjust diagramlegend size (waterlevel diagram)
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Tue, 09 Jul 2019 08:55:00 +0200 |
parents | 8acabf1f176f |
children | 3fcc4e11fc00 |
files | client/src/components/gauge/Waterlevel.vue |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Mon Jul 08 17:43:48 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Tue Jul 09 08:55:00 2019 +0200 @@ -338,17 +338,17 @@ this.pdf.doc.setTextColor(color); this.pdf.doc.setDrawColor("white"); this.pdf.doc.setFillColor("steelblue"); - this.pdf.doc.circle(x, y, 2 * 2.8, "FD"); - this.pdf.doc.text(x + 3 * 2.83, y + 1 * 2.83, "Waterlevel"); + this.pdf.doc.circle(x, y, 2, "FD"); + this.pdf.doc.text(x + 3, y + 1, "Waterlevel"); this.pdf.doc.setFillColor("#dae6f0"); - this.pdf.doc.circle(x, y + 5 * 2.83, 2 * 2.83, "FD"); + this.pdf.doc.circle(x, y + 5, 2, "FD"); this.pdf.doc.setFillColor("#e5ffe5"); - this.pdf.doc.circle(x, y + 10 * 2.83, 2 * 2.83, "FD"); - this.pdf.doc.text(x + 3 * 2.83, y + 11 * 2.83, "Navigable Range"); + this.pdf.doc.circle(x, y + 10, 2, "FD"); + this.pdf.doc.text(x + 3, y + 11, "Navigable Range"); this.pdf.doc.setDrawColor("#90b4d2"); this.pdf.doc.setFillColor("#90b4d2"); - this.pdf.doc.circle(x, y + 5 * 2.83, 0.6 * 2.83, "FD"); - this.pdf.doc.text(x + 3 * 2.83, y + 6 * 2.83, "Prediction"); + this.pdf.doc.circle(x, y + 5, 0.6, "FD"); + this.pdf.doc.text(x + 3, y + 6, "Prediction"); }, drawDiagram() { // remove old diagram and exit if necessary data is missing