@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.
@@ -8416,7 +8416,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8416
8416
  }
8417
8417
  }
8418
8418
  this.notify(Browser.touchEndEvent, e);
8419
- if (e.cancelable) {
8419
+ if (e.cancelable && !this.isTouch) {
8420
8420
  e.preventDefault();
8421
8421
  }
8422
8422
  return false;
@@ -14241,7 +14241,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14241
14241
  }
14242
14242
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Hide') {
14243
14243
  if (scale > 1) {
14244
- text = (this.zoomshapewidth['width'] >= zoomtextSize['width']) ? zoomtext : '';
14244
+ text = ((this.maps.dataLabelShape[l] * scale) >= zoomtextSize['width']) ? zoomtext : '';
14245
14245
  element.innerHTML = text;
14246
14246
  }
14247
14247
  else {
@@ -14251,7 +14251,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14251
14251
  }
14252
14252
  if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Trim') {
14253
14253
  if (scale > 1) {
14254
- zoomtrimLabel = textTrim(this.zoomshapewidth['width'], zoomtext, style);
14254
+ zoomtrimLabel = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
14255
14255
  text = zoomtrimLabel;
14256
14256
  element.innerHTML = text;
14257
14257
  }
@@ -14289,7 +14289,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14289
14289
  || textLocations['heightTop'] > this.intersect[j]['heightBottom']) {
14290
14290
  trimmedLable = !isNullOrUndefined(text) ? text : zoomtext;
14291
14291
  if (scale > 1) {
14292
- trimmedLable = textTrim(this.zoomshapewidth['width'], trimmedLable, style);
14292
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), trimmedLable, style);
14293
14293
  }
14294
14294
  element.innerHTML = trimmedLable;
14295
14295
  }
@@ -14315,11 +14315,11 @@ var Zoom = /** @__PURE__ @class */ (function () {
14315
14315
  }
14316
14316
  this.intersect.push(textLocations);
14317
14317
  if (isNullOrUndefined(trimmedLable)) {
14318
- trimmedLable = textTrim(this.zoomshapewidth['width'], zoomtext, style);
14318
+ trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
14319
14319
  element.innerHTML = trimmedLable;
14320
14320
  }
14321
14321
  }
14322
- else {
14322
+ if (animate$$1 || duration > 0) {
14323
14323
  smoothTranslate(element, 0, duration, new MapLocation(labelX, labelY));
14324
14324
  }
14325
14325
  }