@measurequick/measurequick-report-generator 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -26,7 +26,7 @@ export function getReport(data=null) {
26
26
 
27
27
  printPhotoSections();
28
28
 
29
- printInfoPage(reportData.meta.reportType);
29
+ //printInfoPage(reportData.meta.reportType);
30
30
 
31
31
  return doc.output("datauristring");
32
32
  } catch (e) {
@@ -182,21 +182,17 @@ function printFooterData(techName, profilePicture, companyLogo) {
182
182
  }
183
183
  }
184
184
 
185
- function printPhotoSections(photoSections) {
186
- printSinglePhotoSection("project");
187
- printSinglePhotoSection("equipment");
188
- printSinglePhotoSection("site");
189
- printSinglePhotoSection("customer");
190
- }
191
-
192
- function printSinglePhotoSection(photoSection) {
193
- var photos = reportData.photos.userDocumented[photoSection];
194
- doc.addPage();
185
+ function printPhotoSections() {
186
+ doc.setFontSize(16);
187
+ doc.setFontColor(0, 0, 0);
188
+ doc.text("THIS IS JUST A TEST", 1, 1);
195
189
  var x = 1;
196
190
  var y = 1;
197
191
  var i = 0;
198
- for (let photoIndex = 0; photoIndex < photoSection.length; photoIndex++) {
199
- doc.addImage(photoSection[photoIndex].base64, "PNG", x, y, .5, .5);
192
+ var photosToPrint = reportData.photos.userDocumented;
193
+ doc.addPage();
194
+ for (var photoIndex = 0; photoIndex < photosToPrint.length; photoIndex++) {
195
+ doc.text(photosToPrint[photoIndex].base64, x, y);
200
196
  y += 1;
201
197
  }
202
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {