Mercurial > gemma
diff client/src/components/gauge/Waterlevel.vue @ 3811:37e896990c99 yworks-svg2pdf
client: improve pdf generation towards vector diagrams
* Moving AvailableFairwayDepth.vue addDiagram to svg2pdf.
* Mark the scaling and aspect ration as todos for both vector diagrams
in pdf generation AvailableFairwayDepth.vue and Waterlevel.vue.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 05 Jul 2019 10:50:55 +0200 |
parents | 7f2c5576ec0a |
children | ee0066dcfb93 |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Fri Jul 05 10:31:53 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Fri Jul 05 10:50:55 2019 +0200 @@ -314,6 +314,7 @@ svg2pdf(svg, this.pdf.doc, { xOffset: x, yOffset: y, + // TODO depend on the size and aspect ration on paper scale: this.templateData.properties.paperSize === "a3" ? 0.45 : 0.25 });