# HG changeset patch # User Fadi Abbud # Date 1562655300 -7200 # Node ID abc15a3182c74753482926d57f98f3cd24ecee98 # Parent 8acabf1f176fd242dcfcafbc87c18975819c950d client: pdf-gen: adjust diagramlegend size (waterlevel diagram) diff -r 8acabf1f176f -r abc15a3182c7 client/src/components/gauge/Waterlevel.vue --- 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