@syncfusion/ej2-treemap 20.3.56 → 20.3.59

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 : 20.3.56
3
+ * version : 20.3.59
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@20.3.47",
3
+ "_id": "@syncfusion/ej2-treemap@20.3.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-VXZ9GMzOfevTzhitfOAxW3uX1sy3A+NNIOEMZd3fRO9S3W6U90usl9ukZfF9wBn2NCbkkVZChOU7kwakRAM2lg==",
5
+ "_integrity": "sha512-xH6m8oF4jRwdzcQCylKPoBWXCJr3ERSHzTyMBbM/ccxBmUQfwohLJOYTmT1Dj164OAS8+co1YZ5vIxQSDjkh7Q==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-20.3.47.tgz",
27
- "_shasum": "0ad1a317dbf526bb77309166228575a21aa5d829",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-20.3.56.tgz",
27
+ "_shasum": "24a095f720f1e3ee0514b7c74a8d8fbc3202211a",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -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.3.56",
76
+ "version": "20.3.59",
77
77
  "sideEffects": false
78
78
  }
@@ -65,6 +65,9 @@ var TreeMapLegend = /** @class */ (function () {
65
65
  this.findPaletteLegendItems(LevelsData.levelsData[0], 'Parent');
66
66
  }
67
67
  if (this.legendCollections.length > 0) {
68
+ this.legendCollections.sort(function (firstItem, nextItem) { return (firstItem.levelIndex > nextItem.levelIndex) ? 1 : (firstItem.levelIndex < nextItem.levelIndex) ? -1 : 0; });
69
+ this.legendCollections.sort(function (firstItem, nextItem) { return (firstItem.groupIndex > nextItem.groupIndex) ? 1 : (firstItem.groupIndex < nextItem.groupIndex) ? -1 : 0; });
70
+ this.legendCollections.sort(function (firstItem, nextItem) { return (firstItem.leafIndex > nextItem.leafIndex) ? 1 : (firstItem.leafIndex < nextItem.leafIndex) ? -1 : 0; });
68
71
  var defaultSize = 25;
69
72
  var textPadding = 10;
70
73
  var position = legend.position;
@@ -403,8 +406,8 @@ var TreeMapLegend = /** @class */ (function () {
403
406
  groupIndex = data[i]['groupIndex'];
404
407
  isLeafItem = (this.treemap.levels.length === 0 || groupIndex === this.treemap.levels.length);
405
408
  colorMapping = isLeafItem ? leaf.colorMapping : levels[groupIndex].colorMapping;
406
- for (var _i = 0, colorMapping_1 = colorMapping; _i < colorMapping_1.length; _i++) {
407
- var colorMap = colorMapping_1[_i];
409
+ for (var j = 0; j < colorMapping.length; j++) {
410
+ var colorMap = colorMapping[j];
408
411
  gradientElement = null;
409
412
  rangeValue = Number(currentData[this.treemap.rangeColorValuePath]);
410
413
  equalValue = currentData[this.treemap.equalColorValuePath];
@@ -465,8 +468,8 @@ var TreeMapLegend = /** @class */ (function () {
465
468
  fill = ((Object.prototype.toString.call(colorMap.color) === '[object Array]')) && isNullOrUndefined(gradientElement)
466
469
  && isNullOrUndefined(colorMap.value) ? this.legendGradientColor(colorMap, legendIndex) : fill;
467
470
  this.legendCollections.push({
468
- actualValue: actualValue,
469
- legendName: legendText, legendFill: fill, legendData: [],
471
+ actualValue: actualValue, levelIndex: !isLeafItem ? j : -1, leafIndex: isLeafItem ? j : -1,
472
+ legendName: legendText, legendFill: fill, legendData: [], groupIndex: !isLeafItem ? groupIndex : -1,
470
473
  gradientElement: !isNullOrUndefined(gradientElement) ? gradientElement : isNullOrUndefined(colorMap.value)
471
474
  ? this.legendLinearGradient : null, name: data[i]['name'],
472
475
  opacity: this.treemap.legendSettings.opacity, borderColor: this.treemap.legendSettings.border.color,