@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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treemap@*",
3
- "_id": "@syncfusion/ej2-treemap@20.1.55",
3
+ "_id": "@syncfusion/ej2-treemap@20.2.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-nbQ59xsTxBxL8H/y1zL1gAY5Oype2tOXo17ja3raAjJTxhKgQ8my4Qay0j+2VOOc0nsnVw5pLTTzafTG8Qis6w==",
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-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-20.1.55.tgz",
27
- "_shasum": "caa408c2bf1ad4b9a9dd9f75bfe0f62def65f82a",
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.1.57",
39
- "@syncfusion/ej2-compression": "~20.1.55",
40
- "@syncfusion/ej2-data": "~20.1.55",
41
- "@syncfusion/ej2-file-utils": "~20.1.55",
42
- "@syncfusion/ej2-pdf-export": "~20.1.55",
43
- "@syncfusion/ej2-svg-base": "~20.1.55"
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.1.59",
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
- templateGroup.appendChild(templateEle);
560
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
561
- _this.treemap.renderReactTemplates();
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
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
704
- var templateFn = getTemplateFunction(template);
705
- var templateElement = templateFn(item['data'], this.treemap, template, this.treemap.element.id + baseTemplateId, false);
706
- var labelEle = convertElement(templateElement, templateId, item['data']);
707
- var templateSize = measureElement(labelEle, secondaryEle);
708
- var templateLocation = findLabelLocation(rect, position, templateSize, 'Template', this.treemap);
709
- labelEle.style.left = templateLocation.x + 'px';
710
- labelEle.style.top = templateLocation.y + 'px';
711
- return labelEle;
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;
@@ -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
  };