@syncfusion/ej2-treemap 19.3.43 → 19.4.52
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +72 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +49 -0
- package/README.md +1 -1
- 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 -9
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +42 -9
- 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 +11 -11
- package/src/treemap/layout/render-panel.js +1 -1
- package/src/treemap/model/theme.js +34 -0
- package/src/treemap/treemap.js +2 -1
- package/src/treemap/utils/helper.js +5 -7
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.4.52
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@19.4.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-H+Js+SzGqrSKAV8wVFkQd/E5hRfZn4/HOi0Q1BLJMDgdw+A0WCNzAJCnMNrF2ioHIXGbz31WN945/NubIepg6A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-treemap",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-treemap",
|
|
24
24
|
"/@syncfusion/ej2-vue-treemap"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-19.4.38.tgz",
|
|
27
|
+
"_shasum": "fb15aa7010c14ba2c7e4734fdb7ae8cb64214b95",
|
|
28
28
|
"_spec": "@syncfusion/ej2-treemap@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~19.
|
|
39
|
-
"@syncfusion/ej2-compression": "~19.
|
|
40
|
-
"@syncfusion/ej2-data": "~19.
|
|
41
|
-
"@syncfusion/ej2-file-utils": "~19.
|
|
42
|
-
"@syncfusion/ej2-pdf-export": "~19.
|
|
43
|
-
"@syncfusion/ej2-svg-base": "~19.
|
|
38
|
+
"@syncfusion/ej2-base": "~19.4.52",
|
|
39
|
+
"@syncfusion/ej2-compression": "~19.4.52",
|
|
40
|
+
"@syncfusion/ej2-data": "~19.4.52",
|
|
41
|
+
"@syncfusion/ej2-file-utils": "~19.4.52",
|
|
42
|
+
"@syncfusion/ej2-pdf-export": "~19.4.52",
|
|
43
|
+
"@syncfusion/ej2-svg-base": "~19.4.52"
|
|
44
44
|
},
|
|
45
45
|
"deprecated": false,
|
|
46
46
|
"description": "Essential JS 2 TreeMap Components",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "19.
|
|
76
|
+
"version": "19.4.52",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -571,7 +571,7 @@ var LayoutPanel = /** @class */ (function () {
|
|
|
571
571
|
for (var i = 0; i < this.renderItems.length; i++) {
|
|
572
572
|
_loop_1(i);
|
|
573
573
|
}
|
|
574
|
-
if (templateGroup.childNodes.length > 0
|
|
574
|
+
if (templateGroup.childNodes.length > 0) {
|
|
575
575
|
secondaryEle.appendChild(templateGroup);
|
|
576
576
|
}
|
|
577
577
|
this.treemap.svgObject.appendChild(this.layoutGroup);
|
|
@@ -148,6 +148,40 @@ export function getThemeStyle(theme) {
|
|
|
148
148
|
labelFontFamily: 'Helvetica Neue'
|
|
149
149
|
};
|
|
150
150
|
break;
|
|
151
|
+
case 'fluentui':
|
|
152
|
+
style = {
|
|
153
|
+
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
154
|
+
titleFontColor: '#201F1E',
|
|
155
|
+
subTitleFontColor: '#201F1E',
|
|
156
|
+
tooltipFillColor: '#FFFFFF',
|
|
157
|
+
tooltipFontColor: '#323130',
|
|
158
|
+
tooltipFillOpacity: 1,
|
|
159
|
+
tooltipTextOpacity: 1,
|
|
160
|
+
legendTitleColor: '#201F1E',
|
|
161
|
+
legendTextColor: '#201F1E',
|
|
162
|
+
fontFamily: 'Segoe UI',
|
|
163
|
+
fontSize: '14px',
|
|
164
|
+
legendFontSize: '12px',
|
|
165
|
+
labelFontFamily: 'Segoe UI'
|
|
166
|
+
};
|
|
167
|
+
break;
|
|
168
|
+
case 'fluentuidark':
|
|
169
|
+
style = {
|
|
170
|
+
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
171
|
+
titleFontColor: '#F3F2F1',
|
|
172
|
+
subTitleFontColor: '#F3F2F1',
|
|
173
|
+
tooltipFillColor: '#252423',
|
|
174
|
+
tooltipFontColor: '#F3F2F1',
|
|
175
|
+
tooltipFillOpacity: 1,
|
|
176
|
+
tooltipTextOpacity: 1,
|
|
177
|
+
legendTitleColor: '#F3F2F1',
|
|
178
|
+
legendTextColor: '#F3F2F1',
|
|
179
|
+
fontFamily: 'Segoe UI',
|
|
180
|
+
fontSize: '14px',
|
|
181
|
+
legendFontSize: '12px',
|
|
182
|
+
labelFontFamily: 'Segoe UI'
|
|
183
|
+
};
|
|
184
|
+
break;
|
|
151
185
|
default:
|
|
152
186
|
style = {
|
|
153
187
|
backgroundColor: '#FFFFFF',
|
package/src/treemap/treemap.js
CHANGED
|
@@ -192,7 +192,8 @@ var TreeMap = /** @class */ (function (_super) {
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
TreeMap.prototype.elementChange = function () {
|
|
195
|
-
if (this.treeMapLegendModule && this.legendSettings.visible && this.treeMapLegendModule.legendGroup && this.layout.layoutGroup
|
|
195
|
+
if (this.treeMapLegendModule && this.legendSettings.visible && this.treeMapLegendModule.legendGroup && this.layout.layoutGroup
|
|
196
|
+
&& !isNullOrUndefined(this.svgObject)) {
|
|
196
197
|
this.svgObject.insertBefore(this.layout.layoutGroup, this.treeMapLegendModule.legendGroup);
|
|
197
198
|
}
|
|
198
199
|
};
|
|
@@ -427,13 +427,11 @@ export function findLabelLocation(rect, position, labelSize, type, treemap) {
|
|
|
427
427
|
}
|
|
428
428
|
export function measureElement(element, parentElement) {
|
|
429
429
|
var size = new Size(0, 0);
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
measureElementId.parentNode.removeChild(measureElementId);
|
|
436
|
-
}
|
|
430
|
+
parentElement.appendChild(element);
|
|
431
|
+
size.height = element.offsetHeight;
|
|
432
|
+
size.width = element.offsetWidth;
|
|
433
|
+
var measureElementId = document.getElementById(element.id);
|
|
434
|
+
measureElementId.parentNode.removeChild(measureElementId);
|
|
437
435
|
return size;
|
|
438
436
|
}
|
|
439
437
|
export function getArea(rect) {
|