# HG changeset patch # User Fadi Abbud # Date 1558434889 -7200 # Node ID 8da2f7b9a04bb9aea85ccabdc1dce6f3ed7e17d7 # Parent ac0006f675c0c6beb4a6d4c56f631ebb5216987e client: diagram-template:remove unnecessary template properties and typo diff -r ac0006f675c0 -r 8da2f7b9a04b client/src/components/fairway/Fairwayprofile.vue --- a/client/src/components/fairway/Fairwayprofile.vue Tue May 21 12:19:40 2019 +0200 +++ b/client/src/components/fairway/Fairwayprofile.vue Tue May 21 12:34:49 2019 +0200 @@ -107,8 +107,7 @@ defaultTemplate: { name: "default", properties: { - paperSize: "a4", - format: "lanscape" + paperSize: "a4" }, elements: [ { diff -r ac0006f675c0 -r 8da2f7b9a04b client/src/components/gauge/HydrologicalConditions.vue --- a/client/src/components/gauge/HydrologicalConditions.vue Tue May 21 12:19:40 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Tue May 21 12:34:49 2019 +0200 @@ -127,8 +127,7 @@ defaultTemplate: { name: "Default", properties: { - paperSize: "a4", - resolution: 80 + paperSize: "a4" }, elements: [ { diff -r ac0006f675c0 -r 8da2f7b9a04b client/src/components/gauge/Waterlevel.vue --- a/client/src/components/gauge/Waterlevel.vue Tue May 21 12:19:40 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Tue May 21 12:34:49 2019 +0200 @@ -118,8 +118,7 @@ defaultTemplate: { name: "Default", properties: { - paperSize: "a4", - resolution: "80" + paperSize: "a4" }, elements: [ { diff -r ac0006f675c0 -r 8da2f7b9a04b client/src/lib/mixins.js --- a/client/src/lib/mixins.js Tue May 21 12:19:40 2019 +0200 +++ b/client/src/lib/mixins.js Tue May 21 12:34:49 2019 +0200 @@ -10,7 +10,7 @@ * * Author(s): * Markus Kottländer - * * Fadi Abbud + * Fadi Abbud */ import locale2 from "locale2"; export const sortTable = { @@ -88,7 +88,7 @@ if (text.includes("{date}")) { text = text.replace("{date}", new Date().toLocaleString(locale2)); } - //get only day,month and year from the Date object + // get only day,month and year from the Date object if (text.includes("{date-minor}")) { var date = new Date(); var dt = @@ -141,7 +141,6 @@ if (["bottomright", "bottomleft"].indexOf(position) !== -1) { y = this.pdf.height - offset.y - height; } - this.addRoundedBox(x, y, width, height, color, rounding, brcolor); }, getTextHeight(numberOfLines) { @@ -199,7 +198,6 @@ let textLines = this.pdf.doc.splitTextToSize(text, textWidth); height = this.getTextHeight(textLines.length) + 2 * padding; } - this.addBox( position, offset,