@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.es6.js +8 -5
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/BreakdownTable.ts +6 -6
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -2,8 +2,8 @@ import { select, HTMLWidget, format } from '@hpcc-js/common';
|
|
|
2
2
|
import { scopedLogger } from '@hpcc-js/util';
|
|
3
3
|
|
|
4
4
|
var PKG_NAME = "@hpcc-js/html";
|
|
5
|
-
var PKG_VERSION = "2.42.
|
|
6
|
-
var BUILD_VERSION = "2.104.
|
|
5
|
+
var PKG_VERSION = "2.42.14";
|
|
6
|
+
var BUILD_VERSION = "2.104.32";
|
|
7
7
|
|
|
8
8
|
/******************************************************************************
|
|
9
9
|
Copyright (c) Microsoft Corporation.
|
|
@@ -497,9 +497,10 @@ var BreakdownTable = /** @class */ (function (_super) {
|
|
|
497
497
|
.target(domNode);
|
|
498
498
|
this._tooltip
|
|
499
499
|
.tooltipHTML(function (data) {
|
|
500
|
+
var _a;
|
|
500
501
|
var rowCount = _this.useCalculatedRowCount() ? _this.calculateRowCount() : _this.rowCount();
|
|
501
|
-
var rowHeight = _this.fontSize();
|
|
502
|
-
var widestLabel = Math.max.apply(Math, data.map(function (row) { return _this.textSize(row[0],
|
|
502
|
+
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();
|
|
503
|
+
var widestLabel = Math.max.apply(Math, data.map(function (row) { return _this.textSize(row[0], _this.fontFamily(), _this.fontSize()).width; }));
|
|
503
504
|
var widestPerc = 30;
|
|
504
505
|
var colCount = 2;
|
|
505
506
|
var w = colCount * (widestLabel + widestPerc) + (_this._tooltip.padding() * 2);
|
|
@@ -507,7 +508,9 @@ var BreakdownTable = /** @class */ (function (_super) {
|
|
|
507
508
|
_this._tooltip.tooltipWidth(w);
|
|
508
509
|
_this._tooltip.tooltipHeight(h);
|
|
509
510
|
var otherData = _this.breakdownData(_this.data().length).slice(rowCount - 1);
|
|
510
|
-
return "<div style=\"\n width: 100%;\n height: 100%;\n font-size: ".concat(_this.fontSize(), "px
|
|
511
|
+
return "<div style=\"\n width: 100%;\n height: 100%;\n font-size: ".concat(_this.fontSize(), "px;\n \">").concat(otherData.map(function (row) {
|
|
512
|
+
return "<div style=\"\n float:left;\n width:".concat(Math.floor(99 / colCount), "%;\n \">").concat(row[0], ": ").concat(row[1], "</div>");
|
|
513
|
+
}).join(""), "</div>");
|
|
511
514
|
});
|
|
512
515
|
};
|
|
513
516
|
BreakdownTable.prototype.update = function (domNode, element) {
|