@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +191 -42
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +191 -42
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/layers/layer-panel.js +3 -2
- package/src/maps/layers/legend.d.ts +41 -2
- package/src/maps/layers/legend.js +43 -11
- package/src/maps/maps-model.d.ts +1 -1
- package/src/maps/maps.d.ts +3 -0
- package/src/maps/maps.js +106 -9
- package/src/maps/user-interaction/highlight.d.ts +9 -1
- package/src/maps/user-interaction/highlight.js +18 -11
- package/src/maps/user-interaction/selection.d.ts +9 -1
- package/src/maps/user-interaction/selection.js +17 -10
- package/src/maps/user-interaction/zoom.d.ts +4 -1
- package/src/maps/user-interaction/zoom.js +6 -1
|
@@ -103,7 +103,10 @@ export declare class Zoom {
|
|
|
103
103
|
private dataLabelTranslate;
|
|
104
104
|
private markerTranslate;
|
|
105
105
|
private markerLineAnimation;
|
|
106
|
-
|
|
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 = {
|