@measurequick/measurequick-report-generator 1.2.149 → 1.2.151
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/package.json
CHANGED
|
@@ -4,13 +4,10 @@ import * as base64 from '../base-64/icons.js';
|
|
|
4
4
|
let doc, globalVars, acrConnect, projectObj, test_name, testObj, template, equipObj, siteObj, imageMap, cloud_generation, testName, units, companyLogo, profileImage;
|
|
5
5
|
|
|
6
6
|
export function getReport(payload) {
|
|
7
|
-
|
|
8
|
-
try {
|
|
7
|
+
return Promise(resolve => {
|
|
9
8
|
let jsPDF = require('jspdf');
|
|
10
|
-
|
|
11
9
|
projectObj = payload.projectObj;
|
|
12
10
|
test_name = null;
|
|
13
|
-
//testObj = payload.test;
|
|
14
11
|
template = payload.globalVars.pdfTemplate;
|
|
15
12
|
globalVars = payload.globalVars;
|
|
16
13
|
equipObj = payload.equipmentObj;
|
|
@@ -18,7 +15,6 @@ export function getReport(payload) {
|
|
|
18
15
|
imageMap = payload.images.map;
|
|
19
16
|
acrConnect = payload.acr;
|
|
20
17
|
cloud_generation = false;
|
|
21
|
-
//testName = test_name ? test_name : testObj.test_name ? testObj.test_name : 'System Test';
|
|
22
18
|
units = {
|
|
23
19
|
temperature: payload.globalVars.units.temperature,
|
|
24
20
|
static_pressure: payload.globalVars.units.static_pressure_units,
|
|
@@ -3991,10 +3987,8 @@ export function getReport(payload) {
|
|
|
3991
3987
|
printText('The cooling efficiency is verified to test your unit’s actual electrical consumption compared to the relative efficiency of properly installed modern cooling equipment.', y, 'normal', fs);
|
|
3992
3988
|
}
|
|
3993
3989
|
|
|
3994
|
-
return doc.output('datauristring');
|
|
3995
|
-
}
|
|
3996
|
-
return error;
|
|
3997
|
-
}
|
|
3990
|
+
return resolve(doc.output('datauristring'));
|
|
3991
|
+
});
|
|
3998
3992
|
}
|
|
3999
3993
|
|
|
4000
3994
|
function hasPhotos(photos) {
|