@measurequick/measurequick-report-generator 1.0.65 → 1.0.67
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.
|
@@ -55,7 +55,8 @@ function printBoilerPlateStandard() {
|
|
|
55
55
|
doc.setFontSize(8);
|
|
56
56
|
doc.text(headers.headerSection4Subsection1, .25, 4.655);
|
|
57
57
|
doc.text(headers.headerSection4Subsection2, 2.25, 4.655);
|
|
58
|
-
|
|
58
|
+
let subsectionY = headers.headerSection4Subsection3 == 'Energy' ? 5.855 : 5.655;
|
|
59
|
+
doc.text(headers.headerSection4Subsection3, 2.25, subsectionY);
|
|
59
60
|
doc.setFontSize(6.5);
|
|
60
61
|
doc.setFontStyle("bolditalic");
|
|
61
62
|
theme == "dark" ? doc.setTextColor(255, 255, 255) : doc.setTextColor(0, 0, 0);
|
|
@@ -127,6 +128,7 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
|
|
|
127
128
|
let sMultiplier = 1;
|
|
128
129
|
|
|
129
130
|
for (let key in dataPoints.values) {
|
|
131
|
+
if (key == "condenserVoltageSource" || key == "condenserAmperageSource" || key == "airHandlerVoltageSource" || key == "airHandlerAmperageSource") break;
|
|
130
132
|
let dataPoint = dataPoints.values[key];
|
|
131
133
|
let valueBeforeEditing = dataPoint;
|
|
132
134
|
let templateRef = templates[measurementSection][key];
|
|
@@ -135,6 +137,8 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
|
|
|
135
137
|
if (templateRef.hasOwnProperty("units")) {
|
|
136
138
|
units = Array.isArray(templateRef.units) ? `(${templateRef.units[0]} / ${templateRef.units[1]})` : `(${templateRef.units})`;
|
|
137
139
|
labelText += ` ${units}:`;
|
|
140
|
+
if ((key == "condenserVoltage" || key == "condenserAmperage" || key == "airHandlerVoltage" || key == "airHandlerAmperage") && dataPoints.values[`${key}Source`])
|
|
141
|
+
doc.addImage(graphics[dataPoints.values[`${key}Source`]], "JPEG", xRight + .25, y - .12, .16, .16);
|
|
138
142
|
} else labelText += ':';
|
|
139
143
|
if (templateRef.hasOwnProperty("roundTo")) {
|
|
140
144
|
dataPoint *= 1;
|
|
@@ -176,7 +180,7 @@ function printBodySection(currentSnapshot, measurementSection, xLeft, xRight, y)
|
|
|
176
180
|
y = yTop;
|
|
177
181
|
} else if (key == "newRow") {
|
|
178
182
|
y += .35;
|
|
179
|
-
}
|
|
183
|
+
} else console.log("No Template Found for: " + key);
|
|
180
184
|
}
|
|
181
185
|
}
|
|
182
186
|
|
|
@@ -280,6 +284,7 @@ function printSystemDiagnostics() {
|
|
|
280
284
|
function printCorrectiveActions() {
|
|
281
285
|
let y = 3.8;
|
|
282
286
|
doc.setFontSize(9);
|
|
287
|
+
doc.setTextColor(0, 0, 0);
|
|
283
288
|
let ca = JSON.parse(reportData.correctiveActions);
|
|
284
289
|
for (let i = 0; i < Object.keys(ca).length; i++) {
|
|
285
290
|
let sectionKey = Object.keys(ca)[i];
|
package/package.json
CHANGED
|
@@ -119,14 +119,10 @@ export const electricalMeasurements = {
|
|
|
119
119
|
|
|
120
120
|
export const systemProfileWeatherDataGas = {
|
|
121
121
|
"heat_type": {
|
|
122
|
-
"label": "Heating Type"
|
|
123
|
-
"units": "",
|
|
124
|
-
"roundTo": 1
|
|
122
|
+
"label": "Heating Type"
|
|
125
123
|
},
|
|
126
124
|
"fuel_type": {
|
|
127
|
-
"label": "Fuel Type"
|
|
128
|
-
"units": "",
|
|
129
|
-
"roundTo": 1
|
|
125
|
+
"label": "Fuel Type"
|
|
130
126
|
},
|
|
131
127
|
"gas_supply_pressure_min": {
|
|
132
128
|
"label": "Min Gas Supply Pres.",
|
|
@@ -570,7 +566,7 @@ export const mqHeatingInfoPage = {
|
|
|
570
566
|
"Indoor Equipment Condition:",
|
|
571
567
|
"Venting System:",
|
|
572
568
|
"Fuel Delivery System:",
|
|
573
|
-
"
|
|
569
|
+
"Make Up Air System (CAZ):",
|
|
574
570
|
"Heat Exchanger:",
|
|
575
571
|
"Safety System:",
|
|
576
572
|
"Combustion Efficiency:",
|