@syncfusion/ej2-maps 26.1.41 → 26.2.5
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/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +40 -33
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +40 -33
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/user-interaction/tooltip.js +28 -21
- package/src/maps/utils/helper.js +12 -12
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.
|
|
3
|
+
* version : 26.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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-maps@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-maps@26.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@26.1.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-1JjuLQf69AF1o9LhpUhITJ4N6Dd8rH1CvwYZZ56MzlGWikL+OvyegbMwKO8HB8pOdMTInMABd1EbwyRAJjA3uQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-maps",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-maps",
|
|
24
24
|
"/@syncfusion/ej2-vue-maps"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-26.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-26.1.41.tgz",
|
|
27
|
+
"_shasum": "09c875f3afac463d41304248edbafb4a08479321",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~26.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~26.
|
|
40
|
-
"@syncfusion/ej2-compression": "~26.
|
|
41
|
-
"@syncfusion/ej2-data": "~26.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~26.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~26.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~26.
|
|
38
|
+
"@syncfusion/ej2-base": "~26.2.5",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~26.2.5",
|
|
40
|
+
"@syncfusion/ej2-compression": "~26.2.5",
|
|
41
|
+
"@syncfusion/ej2-data": "~26.2.5",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~26.2.5",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~26.2.5",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~26.2.5"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
47
47
|
"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",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
94
94
|
},
|
|
95
95
|
"typings": "index.d.ts",
|
|
96
|
-
"version": "26.
|
|
96
|
+
"version": "26.2.5",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -92,34 +92,41 @@ var MapsTooltip = /** @class */ (function () {
|
|
|
92
92
|
layer.shapePropertyPath : [layer.shapePropertyPath]);
|
|
93
93
|
if (!isNullOrUndefined(properties)) {
|
|
94
94
|
for (var k = 0; k < properties.length; k++) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
95
|
+
if (!isNullOrUndefined(layer.dataSource)) {
|
|
96
|
+
for (var i = 0; i < layer['dataSource']['length']; i++) {
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
|
+
var data = layer.dataSource[i];
|
|
99
|
+
var dataPath = (layer.shapeDataPath.indexOf('.') > -1) ?
|
|
100
|
+
(getValueFromObject(data, layer.shapeDataPath)) : data[layer.shapeDataPath];
|
|
101
|
+
var dataPathValue = !isNullOrUndefined(dataPath) && isNaN(data[layer.shapeDataPath])
|
|
102
|
+
? dataPath.toLowerCase() : dataPath;
|
|
103
|
+
var propertyValue = !isNullOrUndefined(value[properties[k]])
|
|
104
|
+
&& isNaN(value[properties[k]]) ? value[properties[k]].toLowerCase() :
|
|
105
|
+
value[properties[k]];
|
|
106
|
+
if (dataPathValue === propertyValue) {
|
|
107
|
+
isShape = true;
|
|
108
|
+
index = i;
|
|
109
|
+
k = properties.length;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
index = isShape ? index : null;
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
templateData
|
|
116
|
+
if (layer['dataSource'] && layer['dataSource']['length'] > 0) {
|
|
117
|
+
if (!isNullOrUndefined(layer.dataSource[index])) {
|
|
118
|
+
templateData = JSON.parse(JSON.stringify(layer.dataSource[index]));
|
|
119
|
+
for (keyString in value) {
|
|
120
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
121
|
+
if (!templateData.hasOwnProperty(keyString)) {
|
|
122
|
+
templateData[keyString] = value[keyString];
|
|
123
|
+
}
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
}
|
|
127
|
+
else {
|
|
128
|
+
templateData = value;
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
if (option.visible && ((!isNullOrUndefined(index) && !isNaN(index)) || (!isNullOrUndefined(value)))) {
|
|
125
132
|
if (layer.tooltipSettings.format) {
|
package/src/maps/utils/helper.js
CHANGED
|
@@ -1627,10 +1627,10 @@ export function calculateShapes(maps, shape, options, size, location, markerEle)
|
|
|
1627
1627
|
+ ' ' + location.y + ' Z';
|
|
1628
1628
|
break;
|
|
1629
1629
|
case 'Star':
|
|
1630
|
-
options.d = 'M ' + (location.x + size.width / 3) + ' ' + (location.y
|
|
1631
|
-
+ ' ' + (location.y
|
|
1632
|
-
+ ' L ' + (location.x - size.width / 3) + ' ' + (location.y
|
|
1633
|
-
(location.y
|
|
1630
|
+
options.d = 'M ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + (location.x - size.width / 2)
|
|
1631
|
+
+ ' ' + (location.y - size.height / 6) + ' L ' + (location.x + size.width / 2) + ' ' + (location.y - size.height / 6)
|
|
1632
|
+
+ ' L ' + (location.x - size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + location.x + ' ' +
|
|
1633
|
+
(location.y - size.height / 2) + ' L ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' Z';
|
|
1634
1634
|
break;
|
|
1635
1635
|
case 'Triangle':
|
|
1636
1636
|
options.d = 'M ' + location.x + ' ' + (location.y - size.height / 2) + ' L ' + (location.x + size.width / 2) + ' ' +
|
|
@@ -1756,10 +1756,10 @@ export function drawVerticalLine(maps, options, size, location, element) {
|
|
|
1756
1756
|
* @private
|
|
1757
1757
|
*/
|
|
1758
1758
|
export function drawStar(maps, options, size, location, element) {
|
|
1759
|
-
options.d = 'M ' + (location.x + size.width / 3) + ' ' + (location.y
|
|
1760
|
-
+ ' ' + (location.y
|
|
1761
|
-
+ (location.x - size.width / 3) + ' ' + (location.y
|
|
1762
|
-
+ ' L ' + (location.x + size.width / 3) + ' ' + (location.y
|
|
1759
|
+
options.d = 'M ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + (location.x - size.width / 2)
|
|
1760
|
+
+ ' ' + (location.y - size.height / 6) + ' L ' + (location.x + size.width / 2) + ' ' + (location.y - size.height / 6) + ' L '
|
|
1761
|
+
+ (location.x - size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + location.x + ' ' + (location.y - size.height / 2)
|
|
1762
|
+
+ ' L ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' Z';
|
|
1763
1763
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1764
1764
|
}
|
|
1765
1765
|
/**
|
|
@@ -3120,10 +3120,10 @@ export function renderLegendShape(location, size, shape, options, url) {
|
|
|
3120
3120
|
merge(options, { 'd': renderPath });
|
|
3121
3121
|
break;
|
|
3122
3122
|
case 'Star':
|
|
3123
|
-
renderPath = 'M ' + (location.x + size.width / 3) + ' ' + (location.y
|
|
3124
|
-
+ ' ' + (location.y
|
|
3125
|
-
+ ' L ' + (location.x - size.width / 3) + ' ' + (location.y
|
|
3126
|
-
(location.y
|
|
3123
|
+
renderPath = 'M ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + (location.x - size.width / 2)
|
|
3124
|
+
+ ' ' + (location.y - size.height / 6) + ' L ' + (location.x + size.width / 2) + ' ' + (location.y - size.height / 6)
|
|
3125
|
+
+ ' L ' + (location.x - size.width / 3) + ' ' + (location.y + size.height / 2) + ' L ' + location.x + ' ' +
|
|
3126
|
+
(location.y - size.height / 2) + ' L ' + (location.x + size.width / 3) + ' ' + (location.y + size.height / 2) + ' Z';
|
|
3127
3127
|
merge(options, { 'd': renderPath });
|
|
3128
3128
|
break;
|
|
3129
3129
|
case 'Cross':
|