@hpcc-js/html 2.42.13 → 2.42.15
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 +10 -7
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +10 -7
- 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 +4 -4
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/html",
|
|
3
|
-
"version": "2.42.
|
|
3
|
+
"version": "2.42.15",
|
|
4
4
|
"description": "hpcc-js - Viz HTML",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"update": "npx --yes npm-check-updates -u -t minor"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/common": "^2.71.
|
|
42
|
-
"@hpcc-js/preact-shim": "^2.16.
|
|
41
|
+
"@hpcc-js/common": "^2.71.14",
|
|
42
|
+
"@hpcc-js/preact-shim": "^2.16.8",
|
|
43
43
|
"@hpcc-js/util": "^2.50.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -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": "
|
|
62
|
+
"gitHead": "afae5cc2bcc06ab57b23af729d18b8b4db0b70db"
|
|
63
63
|
}
|
package/src/BreakdownTable.ts
CHANGED
|
@@ -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],
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
).join("")
|
|
75
75
|
}</div>`;
|
|
76
76
|
})
|
|
77
77
|
;
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/html";
|
|
2
|
-
export const PKG_VERSION = "2.42.
|
|
3
|
-
export const BUILD_VERSION = "2.104.
|
|
2
|
+
export const PKG_VERSION = "2.42.15";
|
|
3
|
+
export const BUILD_VERSION = "2.104.35";
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/html";
|
|
2
|
-
export declare const PKG_VERSION = "2.42.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.42.15";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.35";
|
|
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.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.42.15";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.35";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|