@syncfusion/ej2-treemap 26.2.10 → 27.1.50
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/ej2-treemap.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-treemap.es2015.js +42 -40
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +40 -38
- package/dist/es6/ej2-treemap.es5.js.map +1 -1
- package/dist/global/ej2-treemap.min.js +2 -2
- package/dist/global/ej2-treemap.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/treemap/layout/legend.js +5 -3
- package/src/treemap/model/base.js +1 -1
- package/src/treemap/model/image-export.js +2 -1
- package/src/treemap/model/pdf-export.js +2 -1
- package/src/treemap/model/print.js +2 -1
- package/src/treemap/model/theme.js +25 -27
- package/src/treemap/user-interaction/tooltip.js +3 -4
- package/hotfix/26.1.35_Vol2.txt +0 -1
|
@@ -483,7 +483,7 @@ var TooltipSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
483
483
|
Complex({ width: null, color: null }, Border)
|
|
484
484
|
], TooltipSettings.prototype, "border", void 0);
|
|
485
485
|
__decorate([
|
|
486
|
-
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
486
|
+
Complex({ fontFamily: null, size: null, fontWeight: null, opacity: null }, Font)
|
|
487
487
|
], TooltipSettings.prototype, "textStyle", void 0);
|
|
488
488
|
return TooltipSettings;
|
|
489
489
|
}(ChildProperty));
|
|
@@ -2807,48 +2807,46 @@ function getThemeStyle(theme) {
|
|
|
2807
2807
|
break;
|
|
2808
2808
|
case 'bootstrap5':
|
|
2809
2809
|
style = {
|
|
2810
|
-
backgroundColor: '
|
|
2810
|
+
backgroundColor: 'transparent',
|
|
2811
2811
|
titleFontColor: '#212529',
|
|
2812
|
-
titleFontWeight: '
|
|
2812
|
+
titleFontWeight: '400',
|
|
2813
2813
|
subTitleFontColor: '#212529',
|
|
2814
|
-
tooltipFillColor: '#
|
|
2815
|
-
tooltipFontColor: '#
|
|
2816
|
-
tooltipFontSize: '
|
|
2817
|
-
tooltipFillOpacity:
|
|
2818
|
-
tooltipTextOpacity: 1,
|
|
2814
|
+
tooltipFillColor: '#000000',
|
|
2815
|
+
tooltipFontColor: '#FFFFFF',
|
|
2816
|
+
tooltipFontSize: '12px',
|
|
2817
|
+
tooltipFillOpacity: 0.9,
|
|
2819
2818
|
legendTitleColor: '#212529',
|
|
2820
2819
|
legendTextColor: '#212529',
|
|
2821
|
-
fontFamily: '
|
|
2820
|
+
fontFamily: 'Segoe UI',
|
|
2822
2821
|
fontSize: '14px',
|
|
2823
|
-
fontWeight: '
|
|
2822
|
+
fontWeight: '400',
|
|
2824
2823
|
subtitleFontSize: '12px',
|
|
2825
|
-
legendFontSize: '
|
|
2826
|
-
labelFontFamily: '
|
|
2827
|
-
labelFontSize: '
|
|
2824
|
+
legendFontSize: '10px',
|
|
2825
|
+
labelFontFamily: 'Segoe UI',
|
|
2826
|
+
labelFontSize: '10px',
|
|
2828
2827
|
legendBorderColor: '#000000',
|
|
2829
2828
|
legendBorderWidth: 0
|
|
2830
2829
|
};
|
|
2831
2830
|
break;
|
|
2832
2831
|
case 'bootstrap5dark':
|
|
2833
2832
|
style = {
|
|
2834
|
-
backgroundColor: '
|
|
2835
|
-
titleFontColor: '#
|
|
2836
|
-
titleFontWeight: '
|
|
2837
|
-
subTitleFontColor: '#
|
|
2838
|
-
tooltipFillColor: '#
|
|
2833
|
+
backgroundColor: 'transparent',
|
|
2834
|
+
titleFontColor: '#DEE2E6',
|
|
2835
|
+
titleFontWeight: '400',
|
|
2836
|
+
subTitleFontColor: '#DEE2E6',
|
|
2837
|
+
tooltipFillColor: '#FFFFFF',
|
|
2839
2838
|
tooltipFontColor: '#212529',
|
|
2840
|
-
tooltipFontSize: '
|
|
2841
|
-
tooltipFillOpacity:
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
fontFamily: 'Helvetica Neue',
|
|
2839
|
+
tooltipFontSize: '12px',
|
|
2840
|
+
tooltipFillOpacity: 0.9,
|
|
2841
|
+
legendTitleColor: '#DEE2E6',
|
|
2842
|
+
legendTextColor: '#DEE2E6',
|
|
2843
|
+
fontFamily: 'Segoe UI',
|
|
2846
2844
|
fontSize: '14px',
|
|
2847
|
-
fontWeight: '
|
|
2845
|
+
fontWeight: '400',
|
|
2848
2846
|
subtitleFontSize: '12px',
|
|
2849
|
-
legendFontSize: '
|
|
2850
|
-
labelFontFamily: '
|
|
2851
|
-
labelFontSize: '
|
|
2847
|
+
legendFontSize: '10px',
|
|
2848
|
+
labelFontFamily: 'Segoe UI',
|
|
2849
|
+
labelFontSize: '10px',
|
|
2852
2850
|
legendBorderColor: '#000000',
|
|
2853
2851
|
legendBorderWidth: 0
|
|
2854
2852
|
};
|
|
@@ -3114,7 +3112,8 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
3114
3112
|
backgroundElement = backgroundElement.childNodes[0];
|
|
3115
3113
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
3116
3114
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
3117
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3115
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3116
|
+
treeMap.theme === 'Fluent2')
|
|
3118
3117
|
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
3119
3118
|
backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
3120
3119
|
}
|
|
@@ -3187,7 +3186,8 @@ var ImageExport = /** @__PURE__ @class */ (function () {
|
|
|
3187
3186
|
var backgroundElement = exportElement.childNodes[0];
|
|
3188
3187
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
3189
3188
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
3190
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3189
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3190
|
+
treeMap.theme === 'Fluent2')
|
|
3191
3191
|
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
3192
3192
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
3193
3193
|
}
|
|
@@ -3289,7 +3289,8 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
3289
3289
|
var backgroundElement = exportElement.childNodes[0];
|
|
3290
3290
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
3291
3291
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
3292
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3292
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
|
|
3293
|
+
treeMap.theme === 'Fluent2')
|
|
3293
3294
|
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
3294
3295
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
3295
3296
|
}
|
|
@@ -4813,7 +4814,7 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
4813
4814
|
(treemap.availableSize.height / 100) * parseFloat(legend.height) : parseFloat(legend.height) : null;
|
|
4814
4815
|
titleTextStyle.fontFamily = titleTextStyle.fontFamily || treemap.themeStyle.fontFamily;
|
|
4815
4816
|
titleTextStyle.fontWeight = titleTextStyle.fontWeight || treemap.themeStyle.titleFontWeight;
|
|
4816
|
-
titleTextStyle.size = titleTextStyle.size || treemap.themeStyle.
|
|
4817
|
+
titleTextStyle.size = titleTextStyle.size || treemap.themeStyle.subtitleFontSize;
|
|
4817
4818
|
var legendTitleSize = measureText(legendTitle, titleTextStyle);
|
|
4818
4819
|
var startX_1 = 0;
|
|
4819
4820
|
var startY_1 = 0;
|
|
@@ -5209,7 +5210,9 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5209
5210
|
outfill = ((Object.prototype.toString.call(colorMap.color) === '[object Array]'))
|
|
5210
5211
|
? colorMap.color[0] : colorMap.color;
|
|
5211
5212
|
labelLegend = !isNullOrUndefined(colorMap.label) ? colorMap.label : 'Others';
|
|
5212
|
-
|
|
5213
|
+
isDuplicate = this.treemap.legendSettings.removeDuplicateLegend ?
|
|
5214
|
+
this.removeDuplicates(this.legendCollections, labelLegend) : false;
|
|
5215
|
+
if (isNullOrUndefined(this.outOfRangeLegend) && !isDuplicate) {
|
|
5213
5216
|
this.legendCollections.push({
|
|
5214
5217
|
actualValue: labelLegend, legendData: [],
|
|
5215
5218
|
legendName: labelLegend, legendFill: outfill
|
|
@@ -5219,7 +5222,7 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5219
5222
|
legendIndex++;
|
|
5220
5223
|
}
|
|
5221
5224
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5222
|
-
this.legendCollections[
|
|
5225
|
+
this.legendCollections[this.legendCollections.length - 1]['legendData'].push(data[i]);
|
|
5223
5226
|
}
|
|
5224
5227
|
}
|
|
5225
5228
|
}
|
|
@@ -6371,10 +6374,9 @@ var TreeMapTooltip = /** @__PURE__ @class */ (function () {
|
|
|
6371
6374
|
this.tooltipSettings.textStyle.fontFamily = this.tooltipSettings.textStyle.fontFamily || this.treemap.themeStyle.fontFamily;
|
|
6372
6375
|
this.tooltipSettings.textStyle.fontStyle = !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal';
|
|
6373
6376
|
this.tooltipSettings.textStyle.fontWeight = this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
|
|
6374
|
-
this.tooltipSettings.textStyle.color = this.treemap.themeStyle.tooltipFontColor
|
|
6375
|
-
|
|
6376
|
-
this.tooltipSettings.textStyle.opacity = this.treemap.themeStyle.tooltipTextOpacity
|
|
6377
|
-
|| this.tooltipSettings.textStyle.opacity;
|
|
6377
|
+
this.tooltipSettings.textStyle.color = this.tooltipSettings.textStyle.color || this.treemap.themeStyle.tooltipFontColor;
|
|
6378
|
+
// eslint-disable-next-line max-len
|
|
6379
|
+
this.tooltipSettings.textStyle.opacity = this.tooltipSettings.textStyle.opacity || this.treemap.themeStyle.tooltipTextOpacity;
|
|
6378
6380
|
var border = {
|
|
6379
6381
|
width: this.tooltipSettings.border.width || this.treemap.themeStyle.tooltipBorderWidth || 0,
|
|
6380
6382
|
color: this.tooltipSettings.border.color || this.treemap.themeStyle.tooltipBorderColor || 'transparent'
|