Mercurial > gemma
comparison client/src/components/gauge/Waterlevel.vue @ 3150:38d9edce3331
client: fix width and height for pdf-template (waterlevel)
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 03 May 2019 13:19:54 +0200 |
parents | cdfb0093b7b1 |
children | b6c10b30d6bd |
comparison
equal
deleted
inserted
replaced
3149:a90091aaef67 | 3150:38d9edce3331 |
---|---|
202 // landscape format is used for both a3,a4 papersize | 202 // landscape format is used for both a3,a4 papersize |
203 let xDiagram = this.form.paperSize === "a3" ? 40 : 15, | 203 let xDiagram = this.form.paperSize === "a3" ? 40 : 15, |
204 yDiagram = this.form.paperSize === "a3" ? 60 : 50, | 204 yDiagram = this.form.paperSize === "a3" ? 60 : 50, |
205 widthDiagram = this.form.paperSize === "a3" ? 380 : 290, | 205 widthDiagram = this.form.paperSize === "a3" ? 380 : 290, |
206 heightDiagram = this.form.paperSize === "a3" ? 130 : 100; | 206 heightDiagram = this.form.paperSize === "a3" ? 130 : 100; |
207 this.pdf.width = this.form.paperSize === "a3" ? 420 : 297; | |
208 this.pdf.height = this.form.paperSize === "a3" ? 297 : 210; | |
207 this.pdf.doc.addImage( | 209 this.pdf.doc.addImage( |
208 imgData, | 210 imgData, |
209 "PNG", | 211 "PNG", |
210 xDiagram, | 212 xDiagram, |
211 yDiagram, | 213 yDiagram, |