@syncfusion/ej2-maps 27.1.50 → 27.2.2

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.
@@ -12670,13 +12670,13 @@ var Legend = /** @__PURE__ @class */ (function () {
12670
12670
  && idIndex_1 === i) {
12671
12671
  var layer = this.maps.layers[collection[i]['data'][0]['layerIndex']];
12672
12672
  var enable = void 0;
12673
- var module = void 0;
12673
+ var legendModule = void 0;
12674
12674
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12675
12675
  var data = void 0;
12676
12676
  if (!isNullOrUndefined(layer)) {
12677
12677
  enable = (value === 'selection') ? layer.selectionSettings.enable : layer.highlightSettings.enable;
12678
- module = void 0;
12679
- module = (value === 'selection') ? layer.selectionSettings : layer.highlightSettings;
12678
+ legendModule = void 0;
12679
+ legendModule = (value === 'selection') ? layer.selectionSettings : layer.highlightSettings;
12680
12680
  data = collection[i]['data'];
12681
12681
  }
12682
12682
  if (enable) {
@@ -12720,12 +12720,12 @@ var Legend = /** @__PURE__ @class */ (function () {
12720
12720
  var shapeOldColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'][shapeItemCount];
12721
12721
  var shapeOldFillOpacity = this.legendHighlightCollection[length - 1]['shapeOldOpacity'];
12722
12722
  this.shapePreviousColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'];
12723
- this.setColor(shapeElement, !isNullOrUndefined(module.fill) ? module.fill : shapeOldColor, isNullOrUndefined(module.opacity) ? shapeOldFillOpacity : module.opacity.toString(), module.border.color, module.border.width.toString(), 'highlight');
12724
- this.setColor(targetElement, !isNullOrUndefined(module.fill) ? module.fill : legendHighlightColor, isNullOrUndefined(module.opacity) ? shapeOldFillOpacity : module.opacity.toString(), module.border.color, module.border.width.toString(), 'highlight');
12723
+ this.setColor(shapeElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : shapeOldColor, isNullOrUndefined(legendModule.opacity) ? shapeOldFillOpacity : legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
12724
+ this.setColor(targetElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendHighlightColor, isNullOrUndefined(legendModule.opacity) ? shapeOldFillOpacity : legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
12725
12725
  }
12726
12726
  else if (value === 'selection') {
12727
12727
  this.legendHighlightCollection = [];
12728
- this.maps.legendSelectionClass = module;
12728
+ this.maps.legendSelectionClass = legendModule;
12729
12729
  if (j === 0) {
12730
12730
  this.pushCollection(targetElement, this.maps.legendSelectionCollection, collection[i], layer.shapeSettings);
12731
12731
  if (multiSelectEnable) {
@@ -12745,8 +12745,8 @@ var Legend = /** @__PURE__ @class */ (function () {
12745
12745
  var legendSelectionColor = this.maps.legendSelectionCollection[selectLength - 1]['legendOldFill'];
12746
12746
  this.maps.legendSelectionCollection[selectLength - 1]['MapShapeCollection']['Elements'].push(shapeElement);
12747
12747
  this.maps.legendSelectionCollection[selectLength - 1]['shapeOldFillColor'] = this.shapePreviousColor;
12748
- this.setColor(targetElement, !isNullOrUndefined(module.fill) ? module.fill : legendSelectionColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'selection');
12749
- this.setColor(shapeElement, !isNullOrUndefined(module.fill) ? module.fill : legendSelectionColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'selection');
12748
+ this.setColor(targetElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendSelectionColor, legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'selection');
12749
+ this.setColor(shapeElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendSelectionColor, legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'selection');
12750
12750
  if (this.maps.selectedElementId.indexOf(shapeElement.getAttribute('id')) === -1) {
12751
12751
  this.maps.selectedElementId.push(shapeElement.getAttribute('id'));
12752
12752
  }
@@ -12844,7 +12844,7 @@ var Legend = /** @__PURE__ @class */ (function () {
12844
12844
  }
12845
12845
  }
12846
12846
  };
12847
- Legend.prototype.shapeHighLightAndSelection = function (targetElement, data, module, getValue, layerIndex) {
12847
+ Legend.prototype.shapeHighLightAndSelection = function (targetElement, data, legendModule, getValue, layerIndex) {
12848
12848
  if (data !== undefined) {
12849
12849
  this.updateLegendElement();
12850
12850
  this.shapeToggled = true;
@@ -12890,7 +12890,7 @@ var Legend = /** @__PURE__ @class */ (function () {
12890
12890
  var selectionIndex = this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']);
12891
12891
  if (selectionIndex === -1) {
12892
12892
  this.maps.selectedLegendElementId.push(indexes['actualIndex']);
12893
- this.maps.legendSelectionClass = module;
12893
+ this.maps.legendSelectionClass = legendModule;
12894
12894
  }
12895
12895
  else {
12896
12896
  if ((checkSelection <= 1) && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
@@ -12956,13 +12956,13 @@ var Legend = /** @__PURE__ @class */ (function () {
12956
12956
  }
12957
12957
  else if (j === length_1 - 1) {
12958
12958
  this.removeShapeHighlightCollection();
12959
- this.setColor(legendShape, !isNullOrUndefined(module.fill) ? module.fill : legendShape.getAttribute('fill'), module.opacity.toString(), module.border.color, module.border.width.toString(), 'highlight');
12959
+ this.setColor(legendShape, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendShape.getAttribute('fill'), legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
12960
12960
  }
12961
12961
  }
12962
12962
  }
12963
12963
  else {
12964
12964
  this.removeShapeHighlightCollection();
12965
- this.setColor(legendShape, !isNullOrUndefined(module.fill) ? module.fill : legendShape.getAttribute('fill'), !isNullOrUndefined(module.opacity) ? module.opacity.toString() : '1', module.border.color, module.border.width.toString(), 'highlight');
12965
+ this.setColor(legendShape, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendShape.getAttribute('fill'), !isNullOrUndefined(legendModule.opacity) ? legendModule.opacity.toString() : '1', legendModule.border.color, legendModule.border.width.toString(), 'highlight');
12966
12966
  }
12967
12967
  }
12968
12968
  else if (getValue === 'selection') {
@@ -12972,7 +12972,7 @@ var Legend = /** @__PURE__ @class */ (function () {
12972
12972
  var j = 0;
12973
12973
  while (j < this.maps.legendSelectionCollection.length) {
12974
12974
  if (shapeElement['LegendEle'] !== this.maps.legendSelectionCollection[j]['legendElement'] &&
12975
- !module.enableMultiSelect) {
12975
+ !legendModule.enableMultiSelect) {
12976
12976
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12977
12977
  var element = this.maps.legendSelectionCollection[j];
12978
12978
  var selectedLegendIndex = this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']);
@@ -12990,14 +12990,14 @@ var Legend = /** @__PURE__ @class */ (function () {
12990
12990
  if (selectionEle && (selectionEle['IsSelected'] && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
12991
12991
  || targetElement.getAttribute('class') === 'LineselectionMapStyle'))) {
12992
12992
  var multiSelection = 0;
12993
- if (module.enableMultiSelect) {
12993
+ if (legendModule.enableMultiSelect) {
12994
12994
  for (var i = 0; i < shapeElement['Elements'].length; i++) {
12995
12995
  if (targetElement.getAttribute('class') === shapeElement['Elements'][i].getAttribute('class')) {
12996
12996
  multiSelection++;
12997
12997
  }
12998
12998
  }
12999
12999
  }
13000
- if (multiSelection <= 1 && (!module.enableMultiSelect ?
13000
+ if (multiSelection <= 1 && (!legendModule.enableMultiSelect ?
13001
13001
  this.maps.legendSelection : true)) {
13002
13002
  this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']), 1);
13003
13003
  if (!isNullOrUndefined(shapeElement['LegendEle'])) {
@@ -13024,10 +13024,10 @@ var Legend = /** @__PURE__ @class */ (function () {
13024
13024
  if (addId) {
13025
13025
  this.maps.selectedLegendElementId.push(indexes['actualIndex']);
13026
13026
  }
13027
- this.maps.legendSelectionClass = module;
13027
+ this.maps.legendSelectionClass = legendModule;
13028
13028
  this.removeLegend(this.shapeHighlightCollection);
13029
13029
  if (!isNullOrUndefined(legendShape)) {
13030
- this.setColor(legendShape, !isNullOrUndefined(module.fill) ? module.fill : legendShape.getAttribute('fill'), !isNullOrUndefined(module.opacity) ? module.opacity.toString() : '1', module.border.color, module.border.width.toString(), 'selection');
13030
+ this.setColor(legendShape, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendShape.getAttribute('fill'), !isNullOrUndefined(legendModule.opacity) ? legendModule.opacity.toString() : '1', legendModule.border.color, legendModule.border.width.toString(), 'selection');
13031
13031
  var legendSelectionIndex = this.getIndexofLegend(this.maps.legendSelectionCollection, legendShape);
13032
13032
  this.maps.legendSelectionCollection[legendSelectionIndex]['MapShapeCollection']['Elements'].push(targetElement);
13033
13033
  }
@@ -17493,7 +17493,8 @@ var Zoom = /** @__PURE__ @class */ (function () {
17493
17493
  this.lastScale = 1;
17494
17494
  this.maps.element.style.cursor = 'auto';
17495
17495
  if (this.isPanModeEnabled && this.maps.zoomSettings.enablePanning && !isNullOrUndefined(this.maps.previousPoint) &&
17496
- (this.maps.translatePoint.x !== this.maps.previousPoint.x && this.maps.translatePoint.y !== this.maps.previousPoint.y)) {
17496
+ (!this.maps.isTileMap ? (this.maps.translatePoint.x !== this.maps.previousPoint.x && this.maps.translatePoint.y !== this.maps.previousPoint.y)
17497
+ : this.isPanningInProgress)) {
17497
17498
  var pageX = void 0;
17498
17499
  var pageY = void 0;
17499
17500
  var layerX = 0;
@@ -17545,6 +17546,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
17545
17546
  this.maps.trigger('panComplete', panCompleteEventArgs);
17546
17547
  }
17547
17548
  this.isPanModeEnabled = false;
17549
+ this.isPanningInProgress = false;
17548
17550
  var zoomRectElement = getElementByID(this.maps.element.id + '_Selection_Rect_Zooming');
17549
17551
  if (zoomRectElement && this.maps.zoomSettings.enable && this.maps.zoomSettings.enableSelectionZooming) {
17550
17552
  remove(zoomRectElement);