@measurequick/measurequick-report-generator 1.0.21 → 1.0.22

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.
@@ -112,7 +112,7 @@ export const outdoorMeasurements = {
112
112
  };
113
113
 
114
114
  export const performanceData = {
115
- "headerLabel": "Performance Data",
115
+ "headerLabel": "Performance Calculations",
116
116
  "capacityNominal": {
117
117
  "label": "Test Label"
118
118
  },
@@ -238,8 +238,8 @@ export const footerData = [
238
238
 
239
239
  export const profilePictureCoordinates = {
240
240
  "header": {
241
- "x": 1,
242
- "y": 1,
241
+ "x": 7.5,
242
+ "y": 7.75,
243
243
  "w": 1,
244
244
  "h": 1
245
245
  },
@@ -253,8 +253,8 @@ export const profilePictureCoordinates = {
253
253
 
254
254
  export const companyLogoCoordinates = {
255
255
  "header": {
256
- "x": 6.5,
257
- "y": 1,
256
+ "x": 7.5,
257
+ "y": 0,
258
258
  "w": 1,
259
259
  "h": 1
260
260
  },
package/index.js CHANGED
@@ -81,7 +81,7 @@ function printBodyData(geolocationMap) {
81
81
  printSingleBodySection(templates.outdoorMeasurements, .25, 2.317, 1.55);
82
82
  printSingleBodySection(templates.indoorMeasurements, 3.042, 5.109, 1.55);
83
83
  printSingleBodySection(templates.systemInfo, 5.834, 7.9, 1.55);
84
- printSingleBodySection(templates.performanceData, .25, 2, 4.455);
84
+ printSingleBodySection(templates.performanceData, .25, 2, 4.655);
85
85
  }
86
86
 
87
87
  function printSingleBodySection(dataPoints, xLeft, xRight, y) {
@@ -94,15 +94,15 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
94
94
  doc.text(dataPoints.headerLabel, xLeft, y - .22);
95
95
  doc.setFontStyle("normal");
96
96
  for (let key in dataPoints) {
97
- if (key == "headerLabel") continue;
97
+ if (key == "headerLabel") continue;
98
98
  dataPoint = dataPoints[key];
99
99
  val = reportData.values[key];
100
100
  units = Array.isArray(dataPoint.units) ? `${dataPoint.units[0]} / ${dataPoint.units[1]}` : dataPoint.units;
101
101
  text = dataPoint.hasOwnProperty("secondaryValue") ? `${val} / ${reportData.values[dataPoint.secondaryValue]}` : val;
102
102
  doc.text(`${dataPoint.label} (${units}):`, xLeft, y);
103
- doc.text(val, alignRight(val, xRight, 8), y);
104
- doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight + .05, y - .15, .16, .16);
105
- doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight+.2, y - .15, .16, .16);
103
+ doc.text(text, alignRight(text, xRight, 8), y);
104
+ doc.addImage(graphics[reportData.rangeIcons[key]], "JPEG", xRight + .05, y - .1, .16, .16);
105
+ doc.addImage(graphics[reportData.toolIcons[key]], "JPEG", xRight+.3, y - .1, .16, .16);
106
106
  y += s;
107
107
  }
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {