@syncfusion/ej2-treemap 28.1.33 → 28.1.39

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 : 28.1.33
3
+ * version : 28.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@16.31.24",
3
+ "_id": "@syncfusion/ej2-treemap@28.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-9aUvRASvPQAfbKJeO1ZkYVeN7XPOC9S1yJNmWctqKH+n3QGRHv0haMfQEzXuQM4yTL2OKocXe1LxLZRGwEvQKw==",
5
+ "_integrity": "sha512-El1k0YtGfUvHSLUWCCf99WYUOuUw90LIVZMDnC8iRwBFGPoZRktjx5h6hnZjs6XmrzVtBLksINCO4Os85tloSw==",
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.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-treemap/-/ej2-treemap-16.31.24.tgz",
27
- "_shasum": "93114e20ce6ed82f824744baeaa149c7a1bd0f9c",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-28.1.33.tgz",
27
+ "_shasum": "1fac964b894760375cc3c4b74d2542bbae61ea85",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -39,8 +39,8 @@
39
39
  "@syncfusion/ej2-compression": "~28.1.33",
40
40
  "@syncfusion/ej2-data": "~28.1.33",
41
41
  "@syncfusion/ej2-file-utils": "~28.1.33",
42
- "@syncfusion/ej2-pdf-export": "~28.1.33",
43
- "@syncfusion/ej2-svg-base": "~28.1.33"
42
+ "@syncfusion/ej2-pdf-export": "~28.1.38",
43
+ "@syncfusion/ej2-svg-base": "~28.1.37"
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": "28.1.33",
84
+ "version": "28.1.39",
85
85
  "sideEffects": false
86
86
  }
@@ -585,10 +585,12 @@ export function colorMap(colorMapping, equalValue, value) {
585
585
  for (var i = 0; i < colorMapping.length; i++) {
586
586
  var isEqualColor = false;
587
587
  var dataValue = value;
588
+ var colorMappingValue = colorMapping[i].value ? colorMapping[i].value.toString() :
589
+ colorMapping[i].value;
588
590
  if (!isNullOrUndefined(colorMapping[i].from) && !isNullOrUndefined(colorMapping[i].to)
589
591
  && !isNullOrUndefined(colorMapping[i].value)) {
590
592
  if ((value >= colorMapping[i].from && colorMapping[i].to >= value) &&
591
- (colorMapping[i].value === equalValue)) {
593
+ (colorMappingValue === equalValue)) {
592
594
  isEqualColor = true;
593
595
  if (Object.prototype.toString.call(colorMapping[i].color) === '[object Array]') {
594
596
  fill = !isEqualColor ? colorCollections(colorMapping[i], dataValue) : colorMapping[i].color[0];
@@ -601,8 +603,8 @@ export function colorMap(colorMapping, equalValue, value) {
601
603
  else if ((!isNullOrUndefined(colorMapping[i].from) && !isNullOrUndefined(colorMapping[i].to))
602
604
  || !isNullOrUndefined((colorMapping[i].value))) {
603
605
  if ((value >= colorMapping[i].from && colorMapping[i].to >= value)
604
- || (colorMapping[i].value === equalValue)) {
605
- if (colorMapping[i].value === equalValue) {
606
+ || (colorMappingValue === equalValue)) {
607
+ if (colorMappingValue === equalValue) {
606
608
  isEqualColor = true;
607
609
  }
608
610
  if (Object.prototype.toString.call(colorMapping[i].color) === '[object Array]') {
@@ -614,7 +616,7 @@ export function colorMap(colorMapping, equalValue, value) {
614
616
  }
615
617
  }
616
618
  if (((value >= colorMapping[i].from && value <= colorMapping[i].to)
617
- || (colorMapping[i].value === equalValue))
619
+ || (colorMappingValue === equalValue))
618
620
  && !isNullOrUndefined(colorMapping[i].minOpacity) && !isNullOrUndefined(colorMapping[i].maxOpacity)
619
621
  && fill) {
620
622
  opacity = deSaturationColor(colorMapping[i], value);