@measurequick/measurequick-report-generator 1.0.46 → 1.0.47

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
@@ -185,18 +185,20 @@ function printFooterData(techName, profilePicture, companyLogo) {
185
185
  function printPhotoSections() {
186
186
  doc.setFontSize(16);
187
187
  doc.setFontColor(0, 0, 0);
188
- doc.text("THIS IS JUST A TEST", 1, 1);
189
- var x = 1;
188
+ var x = 0;
190
189
  var y = 1;
191
- var i = 0;
192
- var photosToPrint = reportData.photos.userDocumented;
193
190
  doc.addPage();
194
- for (var photoIndex = 0; photoIndex < photosToPrint.length; photoIndex++) {
195
- doc.text(photosToPrint[photoIndex].base64, x, y);
191
+ reportData.dynamicPhotos.forEach(printPhoto);
192
+ for (var i = 0; i < reportData.dynamicPhotos; i++) {
193
+ doc.text(reportData.dynamicPhotos[i]);
196
194
  y += 1;
197
195
  }
198
196
  }
199
197
 
198
+ function printPhoto() {
199
+ doc.text();
200
+ }
201
+
200
202
  function printInfoPage(reportType) {
201
203
  doc.addPage();
202
204
  doc.setTextColor(0, 0, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {