@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.
@@ -8135,7 +8135,7 @@ let Maps = class Maps extends Component {
8135
8135
  }
8136
8136
  }
8137
8137
  this.notify(Browser.touchEndEvent, e);
8138
- if (e.cancelable) {
8138
+ if (e.cancelable && !this.isTouch) {
8139
8139
  e.preventDefault();
8140
8140
  }
8141
8141
  return false;
@@ -13907,7 +13907,7 @@ class Zoom {
13907
13907
  }
13908
13908
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Hide') {
13909
13909
  if (scale > 1) {
13910
- text = (this.zoomshapewidth['width'] >= zoomtextSize['width']) ? zoomtext : '';
13910
+ text = ((this.maps.dataLabelShape[l] * scale) >= zoomtextSize['width']) ? zoomtext : '';
13911
13911
  element.innerHTML = text;
13912
13912
  }
13913
13913
  else {
@@ -13917,7 +13917,7 @@ class Zoom {
13917
13917
  }
13918
13918
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Trim') {
13919
13919
  if (scale > 1) {
13920
- zoomtrimLabel = textTrim(this.zoomshapewidth['width'], zoomtext, style);
13920
+ zoomtrimLabel = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
13921
13921
  text = zoomtrimLabel;
13922
13922
  element.innerHTML = text;
13923
13923
  }
@@ -13955,7 +13955,7 @@ class Zoom {
13955
13955
  || textLocations['heightTop'] > this.intersect[j]['heightBottom']) {
13956
13956
  trimmedLable = !isNullOrUndefined(text) ? text : zoomtext;
13957
13957
  if (scale > 1) {
13958
- trimmedLable = textTrim(this.zoomshapewidth['width'], trimmedLable, style);
13958
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), trimmedLable, style);
13959
13959
  }
13960
13960
  element.innerHTML = trimmedLable;
13961
13961
  }
@@ -13981,11 +13981,11 @@ class Zoom {
13981
13981
  }
13982
13982
  this.intersect.push(textLocations);
13983
13983
  if (isNullOrUndefined(trimmedLable)) {
13984
- trimmedLable = textTrim(this.zoomshapewidth['width'], zoomtext, style);
13984
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
13985
13985
  element.innerHTML = trimmedLable;
13986
13986
  }
13987
13987
  }
13988
- else {
13988
+ if (animate$$1 || duration > 0) {
13989
13989
  smoothTranslate(element, 0, duration, new MapLocation(labelX, labelY));
13990
13990
  }
13991
13991
  }