@measurequick/measurequick-report-generator 1.0.40 → 1.0.41
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 +12 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -184,18 +184,19 @@ function printFooterData(techName, profilePicture, companyLogo) {
|
|
|
184
184
|
|
|
185
185
|
function printPhotos(photoSections) {
|
|
186
186
|
doc.addPage();
|
|
187
|
-
var x =
|
|
188
|
-
var y =
|
|
187
|
+
var x = 1;
|
|
188
|
+
var y = 1;
|
|
189
189
|
var i = 0;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
y
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
// runs up to this point
|
|
191
|
+
for (let photoSection in photoSections) { // project, equipment, site, customer
|
|
192
|
+
for (let p = 0; p < photoSection.length; p++) { // each image
|
|
193
|
+
doc.addImage(photoSection[p].base64, "PNG", x, y, .5, .5);
|
|
194
|
+
y += 1;
|
|
195
|
+
// i++;
|
|
196
|
+
// if (i == 2) {
|
|
197
|
+
// i = 0;
|
|
198
|
+
// doc.addPage();
|
|
199
|
+
// }
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
}
|