@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/assets/request.js +10 -28
- package/index.js +9 -13
- package/package.json +1 -1
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(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
199
|
-
|
|
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
|
}
|