@measurequick/measurequick-report-generator 1.0.47 → 1.0.48

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();
30
30
 
31
31
  return doc.output("datauristring");
32
32
  } catch (e) {
@@ -188,23 +188,18 @@ function printPhotoSections() {
188
188
  var x = 0;
189
189
  var y = 1;
190
190
  doc.addPage();
191
- reportData.dynamicPhotos.forEach(printPhoto);
192
191
  for (var i = 0; i < reportData.dynamicPhotos; i++) {
193
192
  doc.text(reportData.dynamicPhotos[i]);
194
193
  y += 1;
195
194
  }
196
195
  }
197
196
 
198
- function printPhoto() {
199
- doc.text();
200
- }
201
-
202
- function printInfoPage(reportType) {
197
+ function printInfoPage() {
203
198
  doc.addPage();
204
199
  doc.setTextColor(0, 0, 0);
205
- if (reportType == "cooling") {
200
+ if (reportData.meta.reportType == "cooling") {
206
201
  doc.text(templates.coolingInfoPage.body, 1, 1);
207
- } else if (reportType == "heating") {
202
+ } else if (reportData.meta.reportType == "heating") {
208
203
  doc.text(templates.heatingInfoPage.body, 1, 1);
209
204
  }
210
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {