@syncfusion/ej2-maps 31.2.12 → 32.1.21

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 : 31.2.12
3
+ * version : 32.1.21
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,17 +1,17 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-maps",
3
- "version": "31.2.12",
3
+ "version": "32.1.21",
4
4
  "description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
7
7
  "dependencies": {
8
- "@syncfusion/ej2-base": "~31.2.12",
9
- "@syncfusion/ej2-buttons": "~31.2.12",
10
- "@syncfusion/ej2-compression": "~31.2.12",
11
- "@syncfusion/ej2-data": "~31.2.12",
12
- "@syncfusion/ej2-file-utils": "~31.2.12",
13
- "@syncfusion/ej2-pdf-export": "~31.2.12",
14
- "@syncfusion/ej2-svg-base": "~31.2.12"
8
+ "@syncfusion/ej2-base": "~32.1.19",
9
+ "@syncfusion/ej2-buttons": "~32.1.21",
10
+ "@syncfusion/ej2-compression": "~32.1.19",
11
+ "@syncfusion/ej2-data": "~32.1.19",
12
+ "@syncfusion/ej2-file-utils": "~32.1.19",
13
+ "@syncfusion/ej2-pdf-export": "~32.1.19",
14
+ "@syncfusion/ej2-svg-base": "~32.1.19"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -323,14 +323,19 @@ var LayerPanel = /** @class */ (function () {
323
323
  this.rectBounds = null;
324
324
  var shapeSettings = this.currentLayer.shapeSettings;
325
325
  for (var r = 0; r < renderData.length; r++) {
326
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
326
327
  var geometryData = renderData[r];
328
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
327
329
  var geom = geometryData['geometry'];
328
330
  var hasGeom = !isNullOrUndefined(geom);
329
331
  var hasCoords = !isNullOrUndefined(geometryData['coordinates']);
330
332
  if (hasGeom || hasCoords) {
331
333
  var type = hasGeom ? geom['type'] : geometryData['type'];
334
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
332
335
  var coords = hasGeom ? geom['coordinates'] : geometryData['coordinates'];
336
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
333
337
  var data = geom;
338
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
334
339
  var properties = geometryData['properties'];
335
340
  this.generatePoints(type, coords, data, properties);
336
341
  }
@@ -395,6 +400,7 @@ var LayerPanel = /** @class */ (function () {
395
400
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
396
401
  this_1.currentLayer.dataSource, currentShapeData['property'], this_1.currentLayer.shapeDataPath, this_1.currentLayer.shapePropertyPath, this_1.currentLayer);
397
402
  if (k !== null) {
403
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
398
404
  var currentDataSource = this_1.currentLayer.dataSource[k];
399
405
  if (currentDataSource[shapeSettings.borderColorValuePath]) {
400
406
  borderValue.color = currentDataSource[shapeSettings.borderColorValuePath];
@@ -1664,15 +1664,23 @@ var Legend = /** @class */ (function () {
1664
1664
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1665
1665
  Array.prototype.forEach.call(dataSource, function (data, dataIndex) {
1666
1666
  range_1 = false;
1667
- var rangeValue = data[colorValuePath];
1667
+ var colorValue = data[colorValuePath];
1668
+ var isEmpty = colorValue === '' || isNullOrUndefined(colorValue);
1669
+ var rangeValue = !isEmpty ? Number(colorValue) : NaN;
1670
+ var hasNumeric = !isEmpty && Number.isFinite(rangeValue);
1671
+ var equalValue = !isEmpty ? colorValue : null;
1668
1672
  for (var z = 0; z < colorMapping.length; z++) {
1669
- if (!isNullOrUndefined(rangeValue) && !isNaN(rangeValue)) {
1670
- if (rangeValue >= colorMapping[z].from && rangeValue <= colorMapping[z].to) {
1673
+ var colorMap_1 = colorMapping[z];
1674
+ if (hasNumeric && !isNaN(rangeValue) && colorMap_1.from != null && colorMap_1.to != null) {
1675
+ if (rangeValue >= colorMap_1.from && rangeValue <= colorMap_1.to) {
1671
1676
  range_1 = true;
1677
+ break;
1672
1678
  }
1673
1679
  }
1674
- else if (!range_1) {
1675
- range_1 = false;
1680
+ else if (!hasNumeric && equalValue !== null && !isNullOrUndefined(colorMap_1.value)
1681
+ && equalValue === colorMap_1.value) {
1682
+ range_1 = true;
1683
+ break;
1676
1684
  }
1677
1685
  }
1678
1686
  if (!range_1) {