Mercurial > gemma
changeset 3350:8da2f7b9a04b
client: diagram-template:remove unnecessary template properties and typo
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Tue, 21 May 2019 12:34:49 +0200 |
parents | ac0006f675c0 |
children | dcae9b3e864b |
files | client/src/components/fairway/Fairwayprofile.vue client/src/components/gauge/HydrologicalConditions.vue client/src/components/gauge/Waterlevel.vue client/src/lib/mixins.js |
diffstat | 4 files changed, 5 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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: [ {
--- 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: [ {
--- 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: [ {
--- 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 <markus.kottlaender@intevation.de> - * * Fadi Abbud <fadi.abbud@intevation.de> + * Fadi Abbud <fadi.abbud@intevation.de> */ 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,