@syncfusion/ej2-maps 20.2.36 → 20.2.38

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 : 20.2.36
3
+ * version : 20.2.38
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@16.39.0",
3
+ "_id": "@syncfusion/ej2-maps@20.2.36",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-udFrFSHobgtPOukgW1CI/Q+jLYQhCmy/ccsCgNQaR4HwvUt/elKftvpnWVDYPg8zoYR57rQWeqacwgrYNHVfhA==",
5
+ "_integrity": "sha512-F4oto9pbVy/GFRpkaVBJI84ztssNnG/CIPGCqp2qylutLhMLFpnCqpK/JMXE6EqB1ztaknptya9q6K2UdHh4yQ==",
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": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-16.39.0.tgz",
27
- "_shasum": "734582b258450188397b1405beccd43aaede5a5a",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.2.36.tgz",
27
+ "_shasum": "25af786664388cca9544bff736c4aa464a150dee",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,13 +35,13 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.2.36",
39
- "@syncfusion/ej2-buttons": "~20.2.36",
40
- "@syncfusion/ej2-compression": "~20.2.36",
41
- "@syncfusion/ej2-data": "~20.2.36",
42
- "@syncfusion/ej2-file-utils": "~20.2.36",
43
- "@syncfusion/ej2-pdf-export": "~20.2.36",
44
- "@syncfusion/ej2-svg-base": "~20.2.36"
38
+ "@syncfusion/ej2-base": "~20.2.38",
39
+ "@syncfusion/ej2-buttons": "~20.2.38",
40
+ "@syncfusion/ej2-compression": "~20.2.38",
41
+ "@syncfusion/ej2-data": "~20.2.38",
42
+ "@syncfusion/ej2-file-utils": "~20.2.38",
43
+ "@syncfusion/ej2-pdf-export": "~20.2.38",
44
+ "@syncfusion/ej2-svg-base": "~20.2.38"
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",
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "20.2.36",
83
+ "version": "20.2.38",
84
84
  "sideEffects": false
85
85
  }
package/src/maps/maps.js CHANGED
@@ -1173,7 +1173,7 @@ var Maps = /** @class */ (function (_super) {
1173
1173
  }
1174
1174
  }
1175
1175
  this.notify(Browser.touchEndEvent, e);
1176
- if (e.cancelable) {
1176
+ if (e.cancelable && !this.isTouch) {
1177
1177
  e.preventDefault();
1178
1178
  }
1179
1179
  return false;
@@ -746,7 +746,7 @@ var Zoom = /** @class */ (function () {
746
746
  }
747
747
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Hide') {
748
748
  if (scale > 1) {
749
- text = (this.zoomshapewidth['width'] >= zoomtextSize['width']) ? zoomtext : '';
749
+ text = ((this.maps.dataLabelShape[l] * scale) >= zoomtextSize['width']) ? zoomtext : '';
750
750
  element.innerHTML = text;
751
751
  }
752
752
  else {
@@ -756,7 +756,7 @@ var Zoom = /** @class */ (function () {
756
756
  }
757
757
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Trim') {
758
758
  if (scale > 1) {
759
- zoomtrimLabel = textTrim(this.zoomshapewidth['width'], zoomtext, style);
759
+ zoomtrimLabel = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
760
760
  text = zoomtrimLabel;
761
761
  element.innerHTML = text;
762
762
  }
@@ -794,7 +794,7 @@ var Zoom = /** @class */ (function () {
794
794
  || textLocations['heightTop'] > this.intersect[j]['heightBottom']) {
795
795
  trimmedLable = !isNullOrUndefined(text) ? text : zoomtext;
796
796
  if (scale > 1) {
797
- trimmedLable = textTrim(this.zoomshapewidth['width'], trimmedLable, style);
797
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), trimmedLable, style);
798
798
  }
799
799
  element.innerHTML = trimmedLable;
800
800
  }
@@ -820,11 +820,11 @@ var Zoom = /** @class */ (function () {
820
820
  }
821
821
  this.intersect.push(textLocations);
822
822
  if (isNullOrUndefined(trimmedLable)) {
823
- trimmedLable = textTrim(this.zoomshapewidth['width'], zoomtext, style);
823
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
824
824
  element.innerHTML = trimmedLable;
825
825
  }
826
826
  }
827
- else {
827
+ if (animate || duration > 0) {
828
828
  smoothTranslate(element, 0, duration, new MapLocation(labelX, labelY));
829
829
  }
830
830
  }