@measurequick/measurequick-report-generator 1.0.18 → 1.0.19

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 CHANGED
@@ -87,8 +87,10 @@ export const body = {
87
87
  "superheatTemperature": "iconRangeNormal",
88
88
  "subcoolingTemperature": "iconRangeNormal",
89
89
  "compressionRatio": "iconRangeNormal",
90
- "condenserVoltage": "iconRangeNormal",
91
- "condenserAmperage": "iconRangeNormal",
90
+ "condenserVoltageL1": "iconRangeNormal",
91
+ "condenserVoltageL2": "iconRangeNormal",
92
+ "condenserAmperageL1": "iconRangeNormal",
93
+ "condenserAmperageL2": "iconRangeNormal",
92
94
  "condenserPowerFactor": "iconRangeNormal",
93
95
  "condenserPower": "iconRangeNormal",
94
96
  "returnTemperature": "iconRangeNormal",
@@ -99,8 +101,10 @@ export const body = {
99
101
  "supplyWetBulb": "iconRangeNormal",
100
102
  "airflowEstimated": "iconRangeNormal",
101
103
  "totalExternalStaticPressure": "iconRangeNormal",
102
- "airHandlerVoltage": "iconRangeNormal",
103
- "airHandlerAmperage": "iconRangeNormal",
104
+ "airHandlerVoltageL1": "iconRangeNormal",
105
+ "airHandlerVoltageL2": "iconRangeNormal",
106
+ "airHandlerAmperageL1": "iconRangeNormal",
107
+ "airHandlerAmperageL2": "iconRangeNormal",
104
108
  "airHandlerPowerFactor": "iconRangeNormal",
105
109
  "airHandlerPower": "iconRangeNormal",
106
110
  "systemType": "iconRangeNormal",
@@ -146,8 +150,10 @@ export const body = {
146
150
  "superheatTemperature": "companyLogoFieldpiece",
147
151
  "subcoolingTemperature": "companyLogoFieldpiece",
148
152
  "compressionRatio": "companyLogoFieldpiece",
149
- "condenserVoltage": "companyLogoFieldpiece",
150
- "condenserAmperage": "companyLogoFieldpiece",
153
+ "condenserVoltageL1": "companyLogoFieldpiece",
154
+ "condenserVoltageL2": "companyLogoFieldpiece",
155
+ "condenserAmperageL1": "companyLogoFieldpiece",
156
+ "condenserAmperageL2": "companyLogoFieldpiece",
151
157
  "condenserPowerFactor": "companyLogoFieldpiece",
152
158
  "condenserPower": "companyLogoFieldpiece",
153
159
  "returnTemperature": "companyLogoFieldpiece",
@@ -158,8 +164,10 @@ export const body = {
158
164
  "supplyWetBulb": "companyLogoFieldpiece",
159
165
  "airflowEstimated": "companyLogoFieldpiece",
160
166
  "totalExternalStaticPressure": "companyLogoFieldpiece",
161
- "airHandlerVoltage": "companyLogoFieldpiece",
162
- "airHandlerAmperage": "companyLogoFieldpiece",
167
+ "airHandlerVoltageL1": "companyLogoFieldpiece",
168
+ "airHandlerVoltageL2": "companyLogoFieldpiece",
169
+ "airHandlerAmperageL1": "companyLogoFieldpiece",
170
+ "airHandlerAmperageL2": "companyLogoFieldpiece",
163
171
  "airHandlerPowerFactor": "companyLogoFieldpiece",
164
172
  "airHandlerPower": "companyLogoFieldpiece",
165
173
  "systemType": "companyLogoFieldpiece",
package/index.js CHANGED
@@ -68,6 +68,7 @@ function printHeaderData(reportName, techName, profilePicture, companyLogo) {
68
68
  width = doc.getStringUnitWidth(reportName) * size / 72;
69
69
  }
70
70
  doc.setFontSize(size);
71
+ doc.setFontStyle("bold");
71
72
  doc.text(reportName, 0.25, .75);
72
73
  doc.setFontSize(8);
73
74
  if (profilePicture) printProfilePicture("header", techName, profilePicture);
@@ -96,8 +97,8 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
96
97
  text = dataPoint.hasOwnProperty("secondaryValue") ? `${val} / ${reportData.values[dataPoint.secondaryValue]}` : val;
97
98
  doc.text(`${dataPoint.label} (${units}):`, xLeft, y);
98
99
  doc.text(val, alignRight(val, xRight, 8), y);
99
- doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight+.2, y, .2, .2);
100
- doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight+.4, y, .2, .2);
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);
101
102
  y += s;
102
103
  }
103
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {