@syncfusion/ej2-maps 32.1.19 → 32.1.24
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/README.md +1 -1
- package/dist/ej2-maps.min.js +10 -1
- package/dist/ej2-maps.umd.min.js +10 -1
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +13 -5
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +13 -5
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +10 -1
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +8 -8
- package/src/maps/layers/legend.js +13 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 32.1.24
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _maps from '@syncfusion/ej2-maps';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-maps",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.24",
|
|
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": "~32.1.
|
|
9
|
-
"@syncfusion/ej2-buttons": "~32.1.
|
|
10
|
-
"@syncfusion/ej2-compression": "~32.1.
|
|
11
|
-
"@syncfusion/ej2-data": "~32.1.
|
|
12
|
-
"@syncfusion/ej2-file-utils": "~32.1.
|
|
13
|
-
"@syncfusion/ej2-pdf-export": "~32.1.
|
|
14
|
-
"@syncfusion/ej2-svg-base": "~32.1.
|
|
8
|
+
"@syncfusion/ej2-base": "~32.1.24",
|
|
9
|
+
"@syncfusion/ej2-buttons": "~32.1.24",
|
|
10
|
+
"@syncfusion/ej2-compression": "~32.1.24",
|
|
11
|
+
"@syncfusion/ej2-data": "~32.1.24",
|
|
12
|
+
"@syncfusion/ej2-file-utils": "~32.1.24",
|
|
13
|
+
"@syncfusion/ej2-pdf-export": "~32.1.24",
|
|
14
|
+
"@syncfusion/ej2-svg-base": "~32.1.24"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
|
@@ -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
|
|
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
|
-
|
|
1670
|
-
|
|
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 (!
|
|
1675
|
-
|
|
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) {
|