@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.10
3
+ * version : 27.1.50
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treemap@*",
3
- "_id": "@syncfusion/ej2-treemap@26.2.5",
3
+ "_id": "@syncfusion/ej2-treemap@27.1.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-au0xc5jxgMSZ2pkPvaeyD+vrv8dAL7/PXkwTMqZB69IOSi5LZLkWsyRobNz6NOVibLQndbDHotyH/E+sRPqYWw==",
5
+ "_integrity": "sha512-pb2oAzpHiG+szVNwZ5C2r53Ph1C2BUcTGtUnFGl0A/NEBR50yTkMQQrsXuUN6K1tjRBRcxeMiKdWqvIYR2pgCw==",
6
6
  "_location": "/@syncfusion/ej2-treemap",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,10 +23,10 @@
23
23
  "/@syncfusion/ej2-react-treemap",
24
24
  "/@syncfusion/ej2-vue-treemap"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-26.2.5.tgz",
27
- "_shasum": "f4e1950f6ec8483bb315e9ad0e5ffbefdd78b373",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-27.1.48.tgz",
27
+ "_shasum": "51c081f10b22153d71c099385e7da15f57271013",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
- "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
29
+ "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
30
30
  "author": {
31
31
  "name": "Syncfusion Inc."
32
32
  },
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~26.2.10",
39
- "@syncfusion/ej2-compression": "~26.2.10",
40
- "@syncfusion/ej2-data": "~26.2.10",
41
- "@syncfusion/ej2-file-utils": "~26.2.10",
42
- "@syncfusion/ej2-pdf-export": "~26.2.10",
43
- "@syncfusion/ej2-svg-base": "~26.2.10"
38
+ "@syncfusion/ej2-base": "~27.1.50",
39
+ "@syncfusion/ej2-compression": "~27.1.50",
40
+ "@syncfusion/ej2-data": "~27.1.50",
41
+ "@syncfusion/ej2-file-utils": "~27.1.50",
42
+ "@syncfusion/ej2-pdf-export": "~27.1.50",
43
+ "@syncfusion/ej2-svg-base": "~27.1.50"
44
44
  },
45
45
  "deprecated": false,
46
46
  "description": "Essential JS 2 TreeMap Components",
@@ -81,6 +81,6 @@
81
81
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
82
82
  },
83
83
  "typings": "index.d.ts",
84
- "version": "26.2.10",
84
+ "version": "27.1.50",
85
85
  "sideEffects": false
86
86
  }
@@ -100,7 +100,7 @@ var TreeMapLegend = /** @class */ (function () {
100
100
  (treemap.availableSize.height / 100) * parseFloat(legend.height) : parseFloat(legend.height) : null;
101
101
  titleTextStyle.fontFamily = titleTextStyle.fontFamily || treemap.themeStyle.fontFamily;
102
102
  titleTextStyle.fontWeight = titleTextStyle.fontWeight || treemap.themeStyle.titleFontWeight;
103
- titleTextStyle.size = titleTextStyle.size || treemap.themeStyle.legendFontSize;
103
+ titleTextStyle.size = titleTextStyle.size || treemap.themeStyle.subtitleFontSize;
104
104
  var legendTitleSize = measureText(legendTitle, titleTextStyle);
105
105
  var startX_1 = 0;
106
106
  var startY_1 = 0;
@@ -496,7 +496,9 @@ var TreeMapLegend = /** @class */ (function () {
496
496
  outfill = ((Object.prototype.toString.call(colorMap.color) === '[object Array]'))
497
497
  ? colorMap.color[0] : colorMap.color;
498
498
  labelLegend = !isNullOrUndefined(colorMap.label) ? colorMap.label : 'Others';
499
- if (isNullOrUndefined(this.outOfRangeLegend)) {
499
+ isDuplicate = this.treemap.legendSettings.removeDuplicateLegend ?
500
+ this.removeDuplicates(this.legendCollections, labelLegend) : false;
501
+ if (isNullOrUndefined(this.outOfRangeLegend) && !isDuplicate) {
500
502
  this.legendCollections.push({
501
503
  actualValue: labelLegend, legendData: [],
502
504
  legendName: labelLegend, legendFill: outfill
@@ -506,7 +508,7 @@ var TreeMapLegend = /** @class */ (function () {
506
508
  legendIndex++;
507
509
  }
508
510
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
509
- this.legendCollections[otherIndex - 1]['legendData'].push(data[i]);
511
+ this.legendCollections[this.legendCollections.length - 1]['legendData'].push(data[i]);
510
512
  }
511
513
  }
512
514
  }
@@ -375,7 +375,7 @@ var TooltipSettings = /** @class */ (function (_super) {
375
375
  Complex({ width: null, color: null }, Border)
376
376
  ], TooltipSettings.prototype, "border", void 0);
377
377
  __decorate([
378
- Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
378
+ Complex({ fontFamily: null, size: null, fontWeight: null, opacity: null }, Font)
379
379
  ], TooltipSettings.prototype, "textStyle", void 0);
380
380
  return TooltipSettings;
381
381
  }(ChildProperty));
@@ -38,7 +38,8 @@ var ImageExport = /** @class */ (function () {
38
38
  var backgroundElement = exportElement.childNodes[0];
39
39
  if (!isNullOrUndefined(backgroundElement)) {
40
40
  var backgroundColor = backgroundElement.getAttribute('fill');
41
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
41
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
42
+ treeMap.theme === 'Fluent2')
42
43
  && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
43
44
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
44
45
  }
@@ -40,7 +40,8 @@ var PdfExport = /** @class */ (function () {
40
40
  var backgroundElement = exportElement.childNodes[0];
41
41
  if (!isNullOrUndefined(backgroundElement)) {
42
42
  var backgroundColor = backgroundElement.getAttribute('fill');
43
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
43
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
44
+ treeMap.theme === 'Fluent2')
44
45
  && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
45
46
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
46
47
  }
@@ -67,7 +67,8 @@ var Print = /** @class */ (function () {
67
67
  backgroundElement = backgroundElement.childNodes[0];
68
68
  if (!isNullOrUndefined(backgroundElement)) {
69
69
  var backgroundColor = backgroundElement.getAttribute('fill');
70
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
70
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' ||
71
+ treeMap.theme === 'Fluent2')
71
72
  && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
72
73
  backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
73
74
  }
@@ -155,48 +155,46 @@ export function getThemeStyle(theme) {
155
155
  break;
156
156
  case 'bootstrap5':
157
157
  style = {
158
- backgroundColor: 'rgba(255,255,255, 0.0)',
158
+ backgroundColor: 'transparent',
159
159
  titleFontColor: '#212529',
160
- titleFontWeight: 'Normal',
160
+ titleFontWeight: '400',
161
161
  subTitleFontColor: '#212529',
162
- tooltipFillColor: '#212529',
163
- tooltipFontColor: '#F9FAFB',
164
- tooltipFontSize: '13px',
165
- tooltipFillOpacity: 1,
166
- tooltipTextOpacity: 1,
162
+ tooltipFillColor: '#000000',
163
+ tooltipFontColor: '#FFFFFF',
164
+ tooltipFontSize: '12px',
165
+ tooltipFillOpacity: 0.9,
167
166
  legendTitleColor: '#212529',
168
167
  legendTextColor: '#212529',
169
- fontFamily: 'Helvetica Neue',
168
+ fontFamily: 'Segoe UI',
170
169
  fontSize: '14px',
171
- fontWeight: 'Normal',
170
+ fontWeight: '400',
172
171
  subtitleFontSize: '12px',
173
- legendFontSize: '12px',
174
- labelFontFamily: 'Helvetica Neue',
175
- labelFontSize: '12px',
172
+ legendFontSize: '10px',
173
+ labelFontFamily: 'Segoe UI',
174
+ labelFontSize: '10px',
176
175
  legendBorderColor: '#000000',
177
176
  legendBorderWidth: 0
178
177
  };
179
178
  break;
180
179
  case 'bootstrap5dark':
181
180
  style = {
182
- backgroundColor: 'rgba(255,255,255, 0.0)',
183
- titleFontColor: '#FFFFFF',
184
- titleFontWeight: 'Normal',
185
- subTitleFontColor: '#FFFFFF',
186
- tooltipFillColor: '#E9ECEF',
181
+ backgroundColor: 'transparent',
182
+ titleFontColor: '#DEE2E6',
183
+ titleFontWeight: '400',
184
+ subTitleFontColor: '#DEE2E6',
185
+ tooltipFillColor: '#FFFFFF',
187
186
  tooltipFontColor: '#212529',
188
- tooltipFontSize: '13px',
189
- tooltipFillOpacity: 1,
190
- tooltipTextOpacity: 1,
191
- legendTitleColor: '#FFFFFF',
192
- legendTextColor: '#FFFFFF',
193
- fontFamily: 'Helvetica Neue',
187
+ tooltipFontSize: '12px',
188
+ tooltipFillOpacity: 0.9,
189
+ legendTitleColor: '#DEE2E6',
190
+ legendTextColor: '#DEE2E6',
191
+ fontFamily: 'Segoe UI',
194
192
  fontSize: '14px',
195
- fontWeight: 'Normal',
193
+ fontWeight: '400',
196
194
  subtitleFontSize: '12px',
197
- legendFontSize: '12px',
198
- labelFontFamily: 'Helvetica Neue',
199
- labelFontSize: '12px',
195
+ legendFontSize: '10px',
196
+ labelFontFamily: 'Segoe UI',
197
+ labelFontSize: '10px',
200
198
  legendBorderColor: '#000000',
201
199
  legendBorderWidth: 0
202
200
  };
@@ -86,10 +86,9 @@ var TreeMapTooltip = /** @class */ (function () {
86
86
  this.tooltipSettings.textStyle.fontFamily = this.tooltipSettings.textStyle.fontFamily || this.treemap.themeStyle.fontFamily;
87
87
  this.tooltipSettings.textStyle.fontStyle = !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal';
88
88
  this.tooltipSettings.textStyle.fontWeight = this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
89
- this.tooltipSettings.textStyle.color = this.treemap.themeStyle.tooltipFontColor
90
- || this.tooltipSettings.textStyle.color;
91
- this.tooltipSettings.textStyle.opacity = this.treemap.themeStyle.tooltipTextOpacity
92
- || this.tooltipSettings.textStyle.opacity;
89
+ this.tooltipSettings.textStyle.color = this.tooltipSettings.textStyle.color || this.treemap.themeStyle.tooltipFontColor;
90
+ // eslint-disable-next-line max-len
91
+ this.tooltipSettings.textStyle.opacity = this.tooltipSettings.textStyle.opacity || this.treemap.themeStyle.tooltipTextOpacity;
93
92
  var border = {
94
93
  width: this.tooltipSettings.border.width || this.treemap.themeStyle.tooltipBorderWidth || 0,
95
94
  color: this.tooltipSettings.border.color || this.treemap.themeStyle.tooltipBorderColor || 'transparent'
@@ -1 +0,0 @@
1
- hotfix/26.1.35_Vol2