# HG changeset patch # User Fadi Abbud # Date 1562829539 -7200 # Node ID 976c83b6f47929415411bdcb592e7af9d087444e # Parent 7b172a1fd9e710caa7e2d695a9f898c97d3c9741 client: pdf-gen: set diagram scale on pdf and adjust default template values(fairwayprofile) diff -r 7b172a1fd9e7 -r 976c83b6f479 client/src/components/fairway/Fairwayprofile.vue --- a/client/src/components/fairway/Fairwayprofile.vue Wed Jul 10 17:16:59 2019 +0200 +++ b/client/src/components/fairway/Fairwayprofile.vue Thu Jul 11 09:18:59 2019 +0200 @@ -187,9 +187,9 @@ { type: "diagram", position: "topleft", - offset: { x: 20, y: 60 }, - width: 280, - height: 90 + offset: { x: 18, y: 60 }, + width: 190, + height: 52 }, { type: "diagramtitle", @@ -398,8 +398,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.3 : 0.27 + scale: 0.353 }); offScreen.removeChild(svg); },