@measurequick/measurequick-report-generator 1.0.31 → 1.0.32

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -114,8 +114,9 @@ function printSingleBodySection(dataPoints, xLeft, xRight, y) {
114
114
  dataPoint = dataPoints[key];
115
115
  val = reportData.values[key];
116
116
  units = "";
117
- if (dataPoint.hasOwnProperty("units"))
117
+ if (dataPoint.hasOwnProperty("units")) {
118
118
  units = Array.isArray(dataPoint.units) ? ` (${dataPoint.units[0]} / ${dataPoint.units[1]})` : ` (${dataPoint.units})`;
119
+ }
119
120
  text = dataPoint.hasOwnProperty("secondaryValue") ? `${val} / ${reportData.values[dataPoint.secondaryValue]}` : val;
120
121
  doc.text(`${dataPoint.label}${units}:`, xLeft, y);
121
122
  doc.text(text, alignRight(text, xRight, 8), y);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {