@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-treemap@27.1.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
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-
|
|
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": "~
|
|
39
|
-
"@syncfusion/ej2-compression": "~
|
|
40
|
-
"@syncfusion/ej2-data": "~
|
|
41
|
-
"@syncfusion/ej2-file-utils": "~
|
|
42
|
-
"@syncfusion/ej2-pdf-export": "~
|
|
43
|
-
"@syncfusion/ej2-svg-base": "~
|
|
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": "
|
|
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.
|
|
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
|
-
|
|
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[
|
|
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' ||
|
|
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' ||
|
|
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' ||
|
|
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: '
|
|
158
|
+
backgroundColor: 'transparent',
|
|
159
159
|
titleFontColor: '#212529',
|
|
160
|
-
titleFontWeight: '
|
|
160
|
+
titleFontWeight: '400',
|
|
161
161
|
subTitleFontColor: '#212529',
|
|
162
|
-
tooltipFillColor: '#
|
|
163
|
-
tooltipFontColor: '#
|
|
164
|
-
tooltipFontSize: '
|
|
165
|
-
tooltipFillOpacity:
|
|
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: '
|
|
168
|
+
fontFamily: 'Segoe UI',
|
|
170
169
|
fontSize: '14px',
|
|
171
|
-
fontWeight: '
|
|
170
|
+
fontWeight: '400',
|
|
172
171
|
subtitleFontSize: '12px',
|
|
173
|
-
legendFontSize: '
|
|
174
|
-
labelFontFamily: '
|
|
175
|
-
labelFontSize: '
|
|
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: '
|
|
183
|
-
titleFontColor: '#
|
|
184
|
-
titleFontWeight: '
|
|
185
|
-
subTitleFontColor: '#
|
|
186
|
-
tooltipFillColor: '#
|
|
181
|
+
backgroundColor: 'transparent',
|
|
182
|
+
titleFontColor: '#DEE2E6',
|
|
183
|
+
titleFontWeight: '400',
|
|
184
|
+
subTitleFontColor: '#DEE2E6',
|
|
185
|
+
tooltipFillColor: '#FFFFFF',
|
|
187
186
|
tooltipFontColor: '#212529',
|
|
188
|
-
tooltipFontSize: '
|
|
189
|
-
tooltipFillOpacity:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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: '
|
|
193
|
+
fontWeight: '400',
|
|
196
194
|
subtitleFontSize: '12px',
|
|
197
|
-
legendFontSize: '
|
|
198
|
-
labelFontFamily: '
|
|
199
|
-
labelFontSize: '
|
|
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
|
-
|
|
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'
|
package/hotfix/26.1.35_Vol2.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hotfix/26.1.35_Vol2
|