diff client/src/components/fairway/AvailableFairwayDepth.vue @ 3820:ee0066dcfb93 yworks-svg2pdf

Move hydrological conditions to svg2pdf Added experimental aspectratio for A4. ToDO: Find better values.
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 05 Jul 2019 13:16:53 +0200
parents ff8ca2d80ce9
children 59dba489ec7b
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Fri Jul 05 12:54:27 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Fri Jul 05 13:16:53 2019 +0200
@@ -316,7 +316,7 @@
       svg2pdf(svgElement, this.pdf.doc, {
         xOffset: x,
         yOffset: y,
-        scale: 0.4 // TODO depend on the size and aspect ration on paper
+        scale: this.templateData.properties.paperSize === "a3" ? 0.45 : 0.18 // TODO depend on the size and aspect ration on paper
       });
     },
     addDiagramLegend(position, offset, color) {