@syncfusion/ej2-treemap 20.1.59 → 20.2.36
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/CHANGELOG.md +0 -14
- 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 +19 -13
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +19 -13
- 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/dist/ts/treemap/layout/legend.ts +991 -0
- package/dist/ts/treemap/layout/render-panel.ts +722 -0
- package/dist/ts/treemap/model/base.ts +800 -0
- package/dist/ts/treemap/model/constants.ts +118 -0
- package/dist/ts/treemap/model/image-export.ts +109 -0
- package/dist/ts/treemap/model/interface.ts +554 -0
- package/dist/ts/treemap/model/pdf-export.ts +103 -0
- package/dist/ts/treemap/model/print.ts +93 -0
- package/dist/ts/treemap/model/theme.ts +202 -0
- package/dist/ts/treemap/treemap.ts +1575 -0
- package/dist/ts/treemap/user-interaction/highlight-selection.ts +530 -0
- package/dist/ts/treemap/user-interaction/tooltip.ts +203 -0
- package/dist/ts/treemap/utils/enum.ts +222 -0
- package/dist/ts/treemap/utils/helper.ts +1181 -0
- package/package.json +11 -11
- package/src/treemap/layout/render-panel.js +17 -12
- package/src/treemap/treemap.js +2 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-treemap@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-treemap@20.1
|
|
3
|
+
"_id": "@syncfusion/ej2-treemap@20.2.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-VaK3OPiDWyDNhmu7lrLxxtowfFS8UVQSB8RNO9hqJ201zTB94Eu2V03N403INiI3TE+a59pMmqqlEGBVzaWyew==",
|
|
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-release/@syncfusion/ej2-treemap/-/ej2-treemap-20.2.1.tgz",
|
|
27
|
+
"_shasum": "92dc4c48bee9caebf1ea24a8564971eb225fef0a",
|
|
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": "~20.
|
|
39
|
-
"@syncfusion/ej2-compression": "~20.
|
|
40
|
-
"@syncfusion/ej2-data": "~20.
|
|
41
|
-
"@syncfusion/ej2-file-utils": "~20.
|
|
42
|
-
"@syncfusion/ej2-pdf-export": "~20.
|
|
43
|
-
"@syncfusion/ej2-svg-base": "~20.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.2.36",
|
|
39
|
+
"@syncfusion/ej2-compression": "~20.2.36",
|
|
40
|
+
"@syncfusion/ej2-data": "~20.2.36",
|
|
41
|
+
"@syncfusion/ej2-file-utils": "~20.2.36",
|
|
42
|
+
"@syncfusion/ej2-pdf-export": "~20.2.36",
|
|
43
|
+
"@syncfusion/ej2-svg-base": "~20.2.36"
|
|
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": "20.
|
|
76
|
+
"version": "20.2.36",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -556,9 +556,11 @@ var LayoutPanel = /** @class */ (function () {
|
|
|
556
556
|
}
|
|
557
557
|
if (template) {
|
|
558
558
|
templateEle = _this.renderTemplate(secondaryEle, groupId, rect, templatePosition, template, item, isLeafItem);
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
559
|
+
if (!isNullOrUndefined(templateEle)) {
|
|
560
|
+
templateGroup.appendChild(templateEle);
|
|
561
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
562
|
+
_this.treemap.renderReactTemplates();
|
|
563
|
+
}
|
|
562
564
|
}
|
|
563
565
|
itemGroup.setAttribute('aria-label', item['name']);
|
|
564
566
|
itemGroup.setAttribute('tabindex', (_this.treemap.tabIndex + i + 2).toString());
|
|
@@ -700,15 +702,18 @@ var LayoutPanel = /** @class */ (function () {
|
|
|
700
702
|
template = template.replace(new RegExp('{{:' + keys[i] + '}}', 'g'), item['data'][keys[i].toString()]);
|
|
701
703
|
}
|
|
702
704
|
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
705
|
+
var labelElement;
|
|
706
|
+
if (!isNullOrUndefined(document.getElementById(this.treemap.element.id + '_Secondary_Element'))) {
|
|
707
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
708
|
+
var templateFn = getTemplateFunction(template);
|
|
709
|
+
var templateElement = templateFn(item['data'], this.treemap, template, this.treemap.element.id + baseTemplateId, false);
|
|
710
|
+
labelElement = convertElement(templateElement, templateId, item['data']);
|
|
711
|
+
var templateSize = measureElement(labelElement, secondaryEle);
|
|
712
|
+
var templateLocation = findLabelLocation(rect, position, templateSize, 'Template', this.treemap);
|
|
713
|
+
labelElement.style.left = templateLocation.x + 'px';
|
|
714
|
+
labelElement.style.top = templateLocation.y + 'px';
|
|
715
|
+
}
|
|
716
|
+
return labelElement;
|
|
712
717
|
};
|
|
713
718
|
LayoutPanel.prototype.labelInterSectAction = function (rect, text, textStyle, alignment) {
|
|
714
719
|
var textValue;
|
package/src/treemap/treemap.js
CHANGED
|
@@ -193,7 +193,8 @@ var TreeMap = /** @class */ (function (_super) {
|
|
|
193
193
|
};
|
|
194
194
|
TreeMap.prototype.elementChange = function () {
|
|
195
195
|
if (this.treeMapLegendModule && this.legendSettings.visible && this.treeMapLegendModule.legendGroup && this.layout.layoutGroup
|
|
196
|
-
&& !isNullOrUndefined(this.svgObject))
|
|
196
|
+
&& !isNullOrUndefined(this.svgObject) && !isNullOrUndefined(document.getElementById(this.layout.layoutGroup.id))
|
|
197
|
+
&& !isNullOrUndefined(document.getElementById(this.treeMapLegendModule.legendGroup.id))) {
|
|
197
198
|
this.svgObject.insertBefore(this.layout.layoutGroup, this.treeMapLegendModule.legendGroup);
|
|
198
199
|
}
|
|
199
200
|
};
|