@measurequick/measurequick-report-generator 1.0.16 → 1.0.18

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
@@ -13,67 +13,67 @@ export const body = {
13
13
  "airflow": "SCFM"
14
14
  },
15
15
  "values": {
16
- "lowSidePressure": 1,
17
- "lowSideTemperature": 2,
18
- "highSidePressure": 3,
19
- "highSideTemperature": 4,
20
- "suctionLineTemperature": 5,
21
- "liquidLineTemperature": 6,
22
- "dischargeLineTemperature": 7,
23
- "outdoorAirTemperature": 8,
24
- "superheatTemperature": 9,
25
- "subcoolingTemperature": 10,
26
- "compressionRatio": 11,
27
- "condenserVoltageL1": 12,
28
- "condenserVoltageL2": 13,
29
- "condenserAmperageL1": 14,
30
- "condenserAmperageL2": 15,
31
- "condenserPowerFactor": 16,
32
- "condenserPower": 17,
33
- "returnTemperature": 18,
34
- "returnRelativeHumidity": 19,
35
- "returnWetBulbTemperature": 20,
36
- "supplyTemperature": 21,
37
- "supplyRelativeHumidity": 22,
38
- "supplyWetBulb": 23,
39
- "airflowEstimated": 24,
40
- "totalExternalStaticPressure": 25,
41
- "airHandlerVoltageL1": 26,
42
- "airHandlerVoltageL2": 27,
43
- "airHandlerAmperageL1": 28,
44
- "airHandlerAmperageL2": 29,
45
- "airHandlerPowerFactor": 30,
46
- "airHandlerPower": 31,
47
- "systemType": 32,
48
- "nominalTonnage": 33,
49
- "refrigerant": 34,
50
- "airflowNominal": 35,
51
- "seer": 36,
52
- "meteringDevice": 37,
53
- "atmosphericPressure": 38,
54
- "elevation": 39,
55
- "temperature": 40,
56
- "humidity": 41,
57
- "dewPoint": 42,
58
- "systemStability": 43,
59
- "capacityNominal": 44,
60
- "capacityNormalized": 45,
61
- "capacityActual": 46,
62
- "capacityActualNormalized": 47,
63
- "capacitySensible": 48,
64
- "capacitySensibleNormalized": 49,
65
- "capacityLatent": 50,
66
- "capacityLatentNormalized": 51,
67
- "sensibleHeatRatio": 52,
68
- "temperatureSplitTarget": 53,
69
- "temperatureSplit": 54,
70
- "dehumidification": 55,
71
- "dehumidificationAlternate": 56,
72
- "fanEfficacy": 57,
73
- "totalPower": 58,
74
- "eer": 59,
75
- "seerApproximate": 60,
76
- "sensibleEfficiency": 61
16
+ "lowSidePressure": "1",
17
+ "lowSideTemperature": "2",
18
+ "highSidePressure": "3",
19
+ "highSideTemperature": "4",
20
+ "suctionLineTemperature": "5",
21
+ "liquidLineTemperature": "6",
22
+ "dischargeLineTemperature": "7",
23
+ "outdoorAirTemperature": "8",
24
+ "superheatTemperature": "9",
25
+ "subcoolingTemperature": "10",
26
+ "compressionRatio": "11",
27
+ "condenserVoltageL1": "12",
28
+ "condenserVoltageL2": "13",
29
+ "condenserAmperageL1": "14",
30
+ "condenserAmperageL2": "15",
31
+ "condenserPowerFactor": "16",
32
+ "condenserPower": "17",
33
+ "returnTemperature": "18",
34
+ "returnRelativeHumidity": "19",
35
+ "returnWetBulbTemperature": "20",
36
+ "supplyTemperature": "21",
37
+ "supplyRelativeHumidity": "22",
38
+ "supplyWetBulb": "23",
39
+ "airflowEstimated": "24",
40
+ "totalExternalStaticPressure": "25",
41
+ "airHandlerVoltageL1": "26",
42
+ "airHandlerVoltageL2": "27",
43
+ "airHandlerAmperageL1": "28",
44
+ "airHandlerAmperageL2": "29",
45
+ "airHandlerPowerFactor": "30",
46
+ "airHandlerPower": "31",
47
+ "systemType": "32",
48
+ "nominalTonnage": "33",
49
+ "refrigerant": "34",
50
+ "airflowNominal": "35",
51
+ "seer": "36",
52
+ "meteringDevice": "37",
53
+ "atmosphericPressure": "38",
54
+ "elevation": "39",
55
+ "temperature": "40",
56
+ "humidity": "41",
57
+ "dewPoint": "42",
58
+ "systemStability": "43",
59
+ "capacityNominal": "44",
60
+ "capacityNormalized": "45",
61
+ "capacityActual": "46",
62
+ "capacityActualNormalized": "47",
63
+ "capacitySensible": "48",
64
+ "capacitySensibleNormalized": "49",
65
+ "capacityLatent": "50",
66
+ "capacityLatentNormalized": "51",
67
+ "sensibleHeatRatio": "52",
68
+ "temperatureSplitTarget": "53",
69
+ "temperatureSplit": "54",
70
+ "dehumidification": "55",
71
+ "dehumidificationAlternate": "56",
72
+ "fanEfficacy": "57",
73
+ "totalPower": "58",
74
+ "eer": "59",
75
+ "seerApproximate": "60",
76
+ "sensibleEfficiency": "61"
77
77
  },
78
78
  "rangeIcons": {
79
79
  "lowSidePressure": "iconRangeLow",
package/index.js CHANGED
@@ -55,9 +55,7 @@ function printBoilerPlate(theme) {
55
55
  doc.setFontSize(6.5);
56
56
  doc.setFontStyle("bolditalic");
57
57
  doc.setTextColor(255, 255, 255);
58
- var disclaimer = `Disclaimer: This report was prepared by your service technician who is solely responsible for its
59
- content. This report is provided “as-is” excluding all warranties expressed or implied including without limitation
60
- the warranty of merchantability. ©2017-${new Date().getFullYear()} Manifold Cloud Services Ltd.`;
58
+ var disclaimer = `Disclaimer: This report was prepared by your service technician who is solely responsible for its content. This report is provided “as-is” excluding all warranties expressed or implied including without limitation the warranty of merchantability. ©2017-${new Date().getFullYear()} Manifold Cloud Services Ltd.`;
61
59
  disclaimer = doc.splitTextToSize(disclaimer.toUpperCase(), 8);
62
60
  doc.text(disclaimer, .125, 10.66);
63
61
  }
@@ -77,6 +75,7 @@ function printHeaderData(reportName, techName, profilePicture, companyLogo) {
77
75
  }
78
76
 
79
77
  function printBodyData(geolocationMap) {
78
+ doc.setTextColor(0,0,0);
80
79
  printMap(geolocationMap);
81
80
  printSingleBodySection(templates.outdoorMeasurements, .25, 2.317, 1.55);
82
81
  printSingleBodySection(templates.indoorMeasurements, 3.042, 5.109, 1.55);
@@ -95,10 +94,10 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
95
94
  val = reportData.values[key];
96
95
  units = Array.isArray(dataPoint.units) ? `${dataPoint.units[0]} / ${dataPoint.units[1]}` : dataPoint.units;
97
96
  text = dataPoint.hasOwnProperty("secondaryValue") ? `${val} / ${reportData.values[dataPoint.secondaryValue]}` : val;
98
- doc.text(`${dataPoint.label} (${units}):`, xLeft, y); // this prints
99
- doc.text(val, alignRight(val, xRight, 8), y); // this doesnt seem to print
100
- doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight, y, .2, .2);
101
- doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight, y, .2, .2);
97
+ doc.text(`${dataPoint.label} (${units}):`, xLeft, y);
98
+ 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);
102
101
  y += s;
103
102
  }
104
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {