@hpcc-js/html 2.42.12 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/html",
3
- "version": "2.42.12",
3
+ "version": "2.42.14",
4
4
  "description": "hpcc-js - Viz HTML",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -38,15 +38,15 @@
38
38
  "update": "npx --yes npm-check-updates -u -t minor"
39
39
  },
40
40
  "dependencies": {
41
- "@hpcc-js/common": "^2.71.11",
42
- "@hpcc-js/preact-shim": "^2.16.6",
43
- "@hpcc-js/util": "^2.50.5"
41
+ "@hpcc-js/common": "^2.71.13",
42
+ "@hpcc-js/preact-shim": "^2.16.7",
43
+ "@hpcc-js/util": "^2.50.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@hpcc-js/bundle": "^2.11.5",
47
47
  "d3-format": "^1",
48
48
  "d3-selection": "^1",
49
- "tslib": "2.4.1"
49
+ "tslib": "2.6.2"
50
50
  },
51
51
  "repository": {
52
52
  "type": "git",
@@ -59,5 +59,5 @@
59
59
  "url": "https://github.com/hpcc-systems/Visualization/issues"
60
60
  },
61
61
  "homepage": "https://github.com/hpcc-systems/Visualization",
62
- "gitHead": "69e26ec0934dcedd4a35f4639b248851d53d4bb5"
62
+ "gitHead": "3b949c1e18901191ffd0138e84f1713f30621f43"
63
63
  }
@@ -53,8 +53,8 @@ export class BreakdownTable extends StyledTable {
53
53
  this._tooltip
54
54
  .tooltipHTML(data => {
55
55
  const rowCount = this.useCalculatedRowCount() ? this.calculateRowCount() : this.rowCount();
56
- const rowHeight = this.fontSize();
57
- const widestLabel = Math.max(...data.map(row => this.textSize(row[0], "Verdana", this.fontSize()).width));
56
+ const rowHeight = Math.max(...data.map(row => this.textSize(row[0], this.fontFamily(), this.fontSize()).height)) ?? this.fontSize();
57
+ const widestLabel = Math.max(...data.map(row => this.textSize(row[0], this.fontFamily(), this.fontSize()).width));
58
58
  const widestPerc = 30;
59
59
  const colCount = 2;
60
60
  const w = colCount * (widestLabel + widestPerc) + (this._tooltip.padding() * 2);
@@ -65,13 +65,13 @@ export class BreakdownTable extends StyledTable {
65
65
  return `<div style="
66
66
  width: 100%;
67
67
  height: 100%;
68
- font-size: ${this.fontSize()}px
69
- ">${
70
- otherData.map(row => `<div style="
68
+ font-size: ${this.fontSize()}px;
69
+ ">${otherData.map(row =>
70
+ `<div style="
71
71
  float:left;
72
72
  width:${Math.floor(99 / colCount)}%;
73
73
  ">${row[0]}: ${row[1]}</div>`
74
- ).join("")
74
+ ).join("")
75
75
  }</div>`;
76
76
  })
77
77
  ;
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/html";
2
- export const PKG_VERSION = "2.42.12";
3
- export const BUILD_VERSION = "2.104.28";
2
+ export const PKG_VERSION = "2.42.14";
3
+ export const BUILD_VERSION = "2.104.32";
@@ -1,4 +1,4 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/html";
2
- export declare const PKG_VERSION = "2.42.12";
3
- export declare const BUILD_VERSION = "2.104.28";
2
+ export declare const PKG_VERSION = "2.42.14";
3
+ export declare const BUILD_VERSION = "2.104.32";
4
4
  //# sourceMappingURL=__package__.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/html";
2
- export declare const PKG_VERSION = "2.42.12";
3
- export declare const BUILD_VERSION = "2.104.28";
2
+ export declare const PKG_VERSION = "2.42.14";
3
+ export declare const BUILD_VERSION = "2.104.32";
4
4
  //# sourceMappingURL=__package__.d.ts.map