diff client/src/lib/mixins.js @ 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 107de6def0c3
children 169680c3698b
line wrap: on
line diff
--- 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,