@measurequick/measurequick-report-generator 1.0.19 → 1.0.20

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.
@@ -7,6 +7,7 @@ export const docOptions = {
7
7
  };
8
8
 
9
9
  export const indoorMeasurements = {
10
+ "headerLabel": "Indoor Measurements",
10
11
  "returnTemperature": {
11
12
  "label": "Return Temp",
12
13
  "units": "°F"
@@ -55,6 +56,7 @@ export const indoorMeasurements = {
55
56
  };
56
57
 
57
58
  export const outdoorMeasurements = {
59
+ "headerLabel": "Outdoor Measurements",
58
60
  "lowSidePressure": {
59
61
  "label": "Low Pressure",
60
62
  "units": ["PSIG", "°F"],
@@ -110,6 +112,7 @@ export const outdoorMeasurements = {
110
112
  };
111
113
 
112
114
  export const performanceData = {
115
+ "headerLabel": "Performance Data",
113
116
  "capacityNominal": {
114
117
  "label": "Test Label"
115
118
  },
@@ -167,6 +170,7 @@ export const performanceData = {
167
170
  };
168
171
 
169
172
  export const systemInfo = {
173
+ "headerLabel": "System & Weather Info",
170
174
  "systemType": {
171
175
  "label": "System Type"
172
176
  },
package/index.js CHANGED
@@ -76,7 +76,7 @@ function printHeaderData(reportName, techName, profilePicture, companyLogo) {
76
76
  }
77
77
 
78
78
  function printBodyData(geolocationMap) {
79
- doc.setTextColor(0,0,0);
79
+ doc.setTextColor(0, 0, 0);
80
80
  printMap(geolocationMap);
81
81
  printSingleBodySection(templates.outdoorMeasurements, .25, 2.317, 1.55);
82
82
  printSingleBodySection(templates.indoorMeasurements, 3.042, 5.109, 1.55);
@@ -90,6 +90,9 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
90
90
  var val;
91
91
  var units;
92
92
  var text;
93
+ doc.setFontStyle("bold");
94
+ doc.text(dataPoints.headerLabel, xLeft, y - .22);
95
+ doc.setFontStyle("normal");
93
96
  for (let key in dataPoints) {
94
97
  dataPoint = dataPoints[key];
95
98
  val = reportData.values[key];
@@ -97,8 +100,8 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
97
100
  text = dataPoint.hasOwnProperty("secondaryValue") ? `${val} / ${reportData.values[dataPoint.secondaryValue]}` : val;
98
101
  doc.text(`${dataPoint.label} (${units}):`, xLeft, y);
99
102
  doc.text(val, alignRight(val, xRight, 8), y);
100
- doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight, y - .15, .2, .2);
101
- doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight+.2, y - .15, .2, .2);
103
+ doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight + .05, y - .15, .16, .16);
104
+ doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight+.2, y - .15, .16, .16);
102
105
  y += s;
103
106
  }
104
107
  }
@@ -132,6 +135,7 @@ function printFooterData(techName, profilePicture, companyLogo) {
132
135
  }
133
136
 
134
137
  function printPhotos(photoArray) {
138
+ doc.addPage();
135
139
  for (let photo in photoArray) {
136
140
 
137
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {