comparison 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
comparison
equal deleted inserted replaced
3819:27bfa6b0c194 3820:ee0066dcfb93
314 } 314 }
315 315
316 svg2pdf(svgElement, this.pdf.doc, { 316 svg2pdf(svgElement, this.pdf.doc, {
317 xOffset: x, 317 xOffset: x,
318 yOffset: y, 318 yOffset: y,
319 scale: 0.4 // TODO depend on the size and aspect ration on paper 319 scale: this.templateData.properties.paperSize === "a3" ? 0.45 : 0.18 // TODO depend on the size and aspect ration on paper
320 }); 320 });
321 }, 321 },
322 addDiagramLegend(position, offset, color) { 322 addDiagramLegend(position, offset, color) {
323 let x = offset.x, 323 let x = offset.x,
324 y = offset.y; 324 y = offset.y;