@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.
@@ -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: 'rgba(255,255,255, 0.0)',
2810
+ backgroundColor: 'transparent',
2811
2811
  titleFontColor: '#212529',
2812
- titleFontWeight: 'Normal',
2812
+ titleFontWeight: '400',
2813
2813
  subTitleFontColor: '#212529',
2814
- tooltipFillColor: '#212529',
2815
- tooltipFontColor: '#F9FAFB',
2816
- tooltipFontSize: '13px',
2817
- tooltipFillOpacity: 1,
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: 'Helvetica Neue',
2820
+ fontFamily: 'Segoe UI',
2822
2821
  fontSize: '14px',
2823
- fontWeight: 'Normal',
2822
+ fontWeight: '400',
2824
2823
  subtitleFontSize: '12px',
2825
- legendFontSize: '12px',
2826
- labelFontFamily: 'Helvetica Neue',
2827
- labelFontSize: '12px',
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: 'rgba(255,255,255, 0.0)',
2835
- titleFontColor: '#FFFFFF',
2836
- titleFontWeight: 'Normal',
2837
- subTitleFontColor: '#FFFFFF',
2838
- tooltipFillColor: '#E9ECEF',
2833
+ backgroundColor: 'transparent',
2834
+ titleFontColor: '#DEE2E6',
2835
+ titleFontWeight: '400',
2836
+ subTitleFontColor: '#DEE2E6',
2837
+ tooltipFillColor: '#FFFFFF',
2839
2838
  tooltipFontColor: '#212529',
2840
- tooltipFontSize: '13px',
2841
- tooltipFillOpacity: 1,
2842
- tooltipTextOpacity: 1,
2843
- legendTitleColor: '#FFFFFF',
2844
- legendTextColor: '#FFFFFF',
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: 'Normal',
2845
+ fontWeight: '400',
2848
2846
  subtitleFontSize: '12px',
2849
- legendFontSize: '12px',
2850
- labelFontFamily: 'Helvetica Neue',
2851
- labelFontSize: '12px',
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' || treeMap.theme === 'Fluent2')
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' || treeMap.theme === 'Fluent2')
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' || treeMap.theme === 'Fluent2')
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.legendFontSize;
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
- if (isNullOrUndefined(this.outOfRangeLegend)) {
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[otherIndex - 1]['legendData'].push(data[i]);
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
- || this.tooltipSettings.textStyle.color;
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'