@hpcc-js/html 2.42.13 → 2.42.14

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/dist/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  })(this, (function (exports, common, util) { 'use strict';
6
6
 
7
7
  var PKG_NAME = "@hpcc-js/html";
8
- var PKG_VERSION = "2.42.13";
9
- var BUILD_VERSION = "2.104.30";
8
+ var PKG_VERSION = "2.42.14";
9
+ var BUILD_VERSION = "2.104.32";
10
10
 
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -500,9 +500,10 @@
500
500
  .target(domNode);
501
501
  this._tooltip
502
502
  .tooltipHTML(function (data) {
503
+ var _a;
503
504
  var rowCount = _this.useCalculatedRowCount() ? _this.calculateRowCount() : _this.rowCount();
504
- var rowHeight = _this.fontSize();
505
- var widestLabel = Math.max.apply(Math, data.map(function (row) { return _this.textSize(row[0], "Verdana", _this.fontSize()).width; }));
505
+ var rowHeight = (_a = Math.max.apply(Math, data.map(function (row) { return _this.textSize(row[0], _this.fontFamily(), _this.fontSize()).height; }))) !== null && _a !== void 0 ? _a : _this.fontSize();
506
+ var widestLabel = Math.max.apply(Math, data.map(function (row) { return _this.textSize(row[0], _this.fontFamily(), _this.fontSize()).width; }));
506
507
  var widestPerc = 30;
507
508
  var colCount = 2;
508
509
  var w = colCount * (widestLabel + widestPerc) + (_this._tooltip.padding() * 2);
@@ -510,7 +511,9 @@
510
511
  _this._tooltip.tooltipWidth(w);
511
512
  _this._tooltip.tooltipHeight(h);
512
513
  var otherData = _this.breakdownData(_this.data().length).slice(rowCount - 1);
513
- return "<div style=\"\n width: 100%;\n height: 100%;\n font-size: ".concat(_this.fontSize(), "px\n \">").concat(otherData.map(function (row) { return "<div style=\"\n float:left;\n width:".concat(Math.floor(99 / colCount), "%;\n \">").concat(row[0], ": ").concat(row[1], "</div>"); }).join(""), "</div>");
514
+ return "<div style=\"\n width: 100%;\n height: 100%;\n font-size: ".concat(_this.fontSize(), "px;\n \">").concat(otherData.map(function (row) {
515
+ return "<div style=\"\n float:left;\n width:".concat(Math.floor(99 / colCount), "%;\n \">").concat(row[0], ": ").concat(row[1], "</div>");
516
+ }).join(""), "</div>");
514
517
  });
515
518
  };
516
519
  BreakdownTable.prototype.update = function (domNode, element) {