diff client/src/components/Pdftool.vue @ 4454:69166db6ba8a

console.log removed
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 23 Sep 2019 09:19:03 +0200
parents c0bfe7283384
children 3543af71d04c
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Fri Sep 20 17:41:11 2019 +0200
+++ b/client/src/components/Pdftool.vue	Mon Sep 23 09:19:03 2019 +0200
@@ -262,13 +262,6 @@
        *
        */
       this.readyToGenerate = false;
-      console.log(
-        "will generate pdf with",
-        this.form.paperSize,
-        this.form.format,
-        this.form.resolution
-      );
-
       if (this.form.format !== "portrait") {
         this.pdf.width = paperSizes[this.form.paperSize][0];
         this.pdf.height = paperSizes[this.form.paperSize][1];
@@ -300,7 +293,6 @@
                 .getResolution()
             )
         );
-        console.log("scaleDenominator = ", scaleDenominator);
         var snapshot = canvas.toDataURL("image/jpeg");
         this.pdf.doc.addImage(
           snapshot,
@@ -518,12 +510,10 @@
 
       maxLength /= unitConversionFactor;
 
-      // DEBUG console.log(maxLength, unit);
       let unroundedLength = maxLength;
       let numberOfDigits = Math.floor(log10(unroundedLength));
       let factor = Math.pow(10, numberOfDigits);
       let mapped = unroundedLength / factor;
-      // DEBUG console.log(mapped);
 
       var length = Math.floor(maxLength); // just to have an upper limit