@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.1.41
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.35",
3
+ "_id": "@syncfusion/ej2-maps@26.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-htJ3uDy7RsWCbLiAszuzXs1QUbFy5I3cZR1Nb/rCqImvXf3LWWbDamZYfvc+pQdWUEKwYBGOklWh6seVIE+dEg==",
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.35.tgz",
27
- "_shasum": "5217ebc749b42700d49ec500b54655aedd20370f",
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.1.37",
39
- "@syncfusion/ej2-buttons": "~26.1.40",
40
- "@syncfusion/ej2-compression": "~26.1.35",
41
- "@syncfusion/ej2-data": "~26.1.41",
42
- "@syncfusion/ej2-file-utils": "~26.1.35",
43
- "@syncfusion/ej2-pdf-export": "~26.1.35",
44
- "@syncfusion/ej2-svg-base": "~26.1.39"
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.1.41",
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
- for (var i = 0; i < layer['dataSource']['length']; i++) {
96
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
- var data = layer.dataSource[i];
98
- var dataPath = (layer.shapeDataPath.indexOf('.') > -1) ?
99
- (getValueFromObject(data, layer.shapeDataPath)) : data[layer.shapeDataPath];
100
- var dataPathValue = !isNullOrUndefined(dataPath) && isNaN(data[layer.shapeDataPath])
101
- ? dataPath.toLowerCase() : dataPath;
102
- var propertyValue = !isNullOrUndefined(value[properties[k]])
103
- && isNaN(value[properties[k]]) ? value[properties[k]].toLowerCase() :
104
- value[properties[k]];
105
- if (dataPathValue === propertyValue) {
106
- isShape = true;
107
- index = i;
108
- k = properties.length;
109
- break;
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 (!isNullOrUndefined(layer.dataSource[index])) {
115
- templateData = JSON.parse(JSON.stringify(layer.dataSource[index]));
116
- for (keyString in value) {
117
- // eslint-disable-next-line no-prototype-builtins
118
- if (!templateData.hasOwnProperty(keyString)) {
119
- templateData[keyString] = value[keyString];
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) {
@@ -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 - 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';
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 - 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';
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 - 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';
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':