@syncfusion/ej2-maps 19.4.47 → 19.4.48

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.
@@ -103,7 +103,10 @@ export declare class Zoom {
103
103
  private dataLabelTranslate;
104
104
  private markerTranslate;
105
105
  private markerLineAnimation;
106
- panning(direction: PanDirection, xDifference: number, yDifference: number, mouseLocation?: PointerEvent | TouchEvent): void;
106
+ /**
107
+ * @private
108
+ */
109
+ panning(direction: PanDirection, xDifference: number, yDifference: number, mouseLocation?: PointerEvent | TouchEvent | KeyboardEvent): void;
107
110
  private toAlignSublayer;
108
111
  toolBarZooming(zoomFactor: number, type: string): void;
109
112
  createZoomingToolbars(): void;
@@ -847,6 +847,9 @@ var Zoom = /** @class */ (function () {
847
847
  }
848
848
  }
849
849
  };
850
+ /**
851
+ * @private
852
+ */
850
853
  Zoom.prototype.panning = function (direction, xDifference, yDifference, mouseLocation) {
851
854
  var map = this.maps;
852
855
  var panArgs;
@@ -865,6 +868,8 @@ var Zoom = /** @class */ (function () {
865
868
  yDifference = !isNullOrUndefined(yDifference) ? yDifference : (down.y - move.y);
866
869
  this.maps.mergeCluster();
867
870
  if (!map.isTileMap) {
871
+ var legendElement = document.getElementById(map.element.id + '_Legend_Group');
872
+ var legendHeight = !isNullOrUndefined(legendElement) ? legendElement.getClientRects()[0].height : 0;
868
873
  x = translatePoint.x - xDifference / scale;
869
874
  y = translatePoint.y - yDifference / scale;
870
875
  var layerRect = getElementByID(map.element.id + '_Layer_Collections').getBoundingClientRect();
@@ -872,7 +877,7 @@ var Zoom = /** @class */ (function () {
872
877
  var panningXDirection = ((xDifference < 0 ? layerRect.left <= (elementRect.left + map.mapAreaRect.x) :
873
878
  ((layerRect.left + layerRect.width) >= (elementRect.left + elementRect.width) + map.mapAreaRect.x + map.margin.left)));
874
879
  var panningYDirection = ((yDifference < 0 ? layerRect.top <= (elementRect.top + map.mapAreaRect.y) :
875
- ((layerRect.top + layerRect.height + map.margin.top) >= (elementRect.top + elementRect.height))));
880
+ ((layerRect.top + layerRect.height + legendHeight + map.margin.top) >= (elementRect.top + elementRect.height))));
876
881
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
877
882
  var location_3 = this.maps.getGeoLocation(this.maps.layersCollection.length - 1, mouseLocation['layerX'], mouseLocation['layerY']);
878
883
  panArgs = {