@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.
- package/.gitleaksignore +37 -0
- package/dist/ej2-maps.min.js +2 -2
- 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 +20 -18
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +20 -18
- 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/legend.d.ts +1 -1
- package/src/maps/layers/legend.js +17 -17
- package/src/maps/user-interaction/zoom.js +3 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.
|
|
3
|
+
* version : 27.2.2
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-maps@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-maps@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@27.1.56",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-IAVWYftjlNTABvcqvcz6R6CJR8eUhxcnZcTUpHBn3EXifrZwtk/Mf/tk6Xos2qLPl4vUhiInu2m/Nl/ckZhDbw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-maps",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-maps",
|
|
24
24
|
"/@syncfusion/ej2-vue-maps"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-27.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-27.1.56.tgz",
|
|
27
|
+
"_shasum": "e12db7a9908e35c7f168473c3c6d6e732ea45035",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~27.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~27.
|
|
40
|
-
"@syncfusion/ej2-compression": "~27.
|
|
41
|
-
"@syncfusion/ej2-data": "~27.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~27.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~27.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~27.
|
|
38
|
+
"@syncfusion/ej2-base": "~27.2.2",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~27.2.2",
|
|
40
|
+
"@syncfusion/ej2-compression": "~27.2.2",
|
|
41
|
+
"@syncfusion/ej2-data": "~27.2.2",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~27.2.2",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~27.2.2",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~27.2.2"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
47
47
|
"description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
94
94
|
},
|
|
95
95
|
"typings": "index.d.ts",
|
|
96
|
-
"version": "27.
|
|
96
|
+
"version": "27.2.2",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -126,7 +126,7 @@ export declare class Legend {
|
|
|
126
126
|
removeLegendHighlightCollection(): void;
|
|
127
127
|
removeLegendSelectionCollection(targetElement: Element): void;
|
|
128
128
|
removeShapeHighlightCollection(): void;
|
|
129
|
-
shapeHighLightAndSelection(targetElement: Element, data: object,
|
|
129
|
+
shapeHighLightAndSelection(targetElement: Element, data: object, legendModule: SelectionSettingsModel | HighlightSettingsModel, getValue: string, layerIndex: number): void;
|
|
130
130
|
private isTargetSelected;
|
|
131
131
|
private updateLegendElement;
|
|
132
132
|
private getIndexofLegend;
|
|
@@ -724,13 +724,13 @@ var Legend = /** @class */ (function () {
|
|
|
724
724
|
&& idIndex_1 === i) {
|
|
725
725
|
var layer = this.maps.layers[collection[i]['data'][0]['layerIndex']];
|
|
726
726
|
var enable = void 0;
|
|
727
|
-
var
|
|
727
|
+
var legendModule = void 0;
|
|
728
728
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
729
729
|
var data = void 0;
|
|
730
730
|
if (!isNullOrUndefined(layer)) {
|
|
731
731
|
enable = (value === 'selection') ? layer.selectionSettings.enable : layer.highlightSettings.enable;
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
legendModule = void 0;
|
|
733
|
+
legendModule = (value === 'selection') ? layer.selectionSettings : layer.highlightSettings;
|
|
734
734
|
data = collection[i]['data'];
|
|
735
735
|
}
|
|
736
736
|
if (enable) {
|
|
@@ -774,12 +774,12 @@ var Legend = /** @class */ (function () {
|
|
|
774
774
|
var shapeOldColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'][shapeItemCount];
|
|
775
775
|
var shapeOldFillOpacity = this.legendHighlightCollection[length - 1]['shapeOldOpacity'];
|
|
776
776
|
this.shapePreviousColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'];
|
|
777
|
-
this.setColor(shapeElement, !isNullOrUndefined(
|
|
778
|
-
this.setColor(targetElement, !isNullOrUndefined(
|
|
777
|
+
this.setColor(shapeElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : shapeOldColor, isNullOrUndefined(legendModule.opacity) ? shapeOldFillOpacity : legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
|
|
778
|
+
this.setColor(targetElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendHighlightColor, isNullOrUndefined(legendModule.opacity) ? shapeOldFillOpacity : legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
|
|
779
779
|
}
|
|
780
780
|
else if (value === 'selection') {
|
|
781
781
|
this.legendHighlightCollection = [];
|
|
782
|
-
this.maps.legendSelectionClass =
|
|
782
|
+
this.maps.legendSelectionClass = legendModule;
|
|
783
783
|
if (j === 0) {
|
|
784
784
|
this.pushCollection(targetElement, this.maps.legendSelectionCollection, collection[i], layer.shapeSettings);
|
|
785
785
|
if (multiSelectEnable) {
|
|
@@ -799,8 +799,8 @@ var Legend = /** @class */ (function () {
|
|
|
799
799
|
var legendSelectionColor = this.maps.legendSelectionCollection[selectLength - 1]['legendOldFill'];
|
|
800
800
|
this.maps.legendSelectionCollection[selectLength - 1]['MapShapeCollection']['Elements'].push(shapeElement);
|
|
801
801
|
this.maps.legendSelectionCollection[selectLength - 1]['shapeOldFillColor'] = this.shapePreviousColor;
|
|
802
|
-
this.setColor(targetElement, !isNullOrUndefined(
|
|
803
|
-
this.setColor(shapeElement, !isNullOrUndefined(
|
|
802
|
+
this.setColor(targetElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendSelectionColor, legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'selection');
|
|
803
|
+
this.setColor(shapeElement, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendSelectionColor, legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'selection');
|
|
804
804
|
if (this.maps.selectedElementId.indexOf(shapeElement.getAttribute('id')) === -1) {
|
|
805
805
|
this.maps.selectedElementId.push(shapeElement.getAttribute('id'));
|
|
806
806
|
}
|
|
@@ -898,7 +898,7 @@ var Legend = /** @class */ (function () {
|
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
|
-
Legend.prototype.shapeHighLightAndSelection = function (targetElement, data,
|
|
901
|
+
Legend.prototype.shapeHighLightAndSelection = function (targetElement, data, legendModule, getValue, layerIndex) {
|
|
902
902
|
if (data !== undefined) {
|
|
903
903
|
this.updateLegendElement();
|
|
904
904
|
this.shapeToggled = true;
|
|
@@ -944,7 +944,7 @@ var Legend = /** @class */ (function () {
|
|
|
944
944
|
var selectionIndex = this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']);
|
|
945
945
|
if (selectionIndex === -1) {
|
|
946
946
|
this.maps.selectedLegendElementId.push(indexes['actualIndex']);
|
|
947
|
-
this.maps.legendSelectionClass =
|
|
947
|
+
this.maps.legendSelectionClass = legendModule;
|
|
948
948
|
}
|
|
949
949
|
else {
|
|
950
950
|
if ((checkSelection <= 1) && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
@@ -1010,13 +1010,13 @@ var Legend = /** @class */ (function () {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
else if (j === length_1 - 1) {
|
|
1012
1012
|
this.removeShapeHighlightCollection();
|
|
1013
|
-
this.setColor(legendShape, !isNullOrUndefined(
|
|
1013
|
+
this.setColor(legendShape, !isNullOrUndefined(legendModule.fill) ? legendModule.fill : legendShape.getAttribute('fill'), legendModule.opacity.toString(), legendModule.border.color, legendModule.border.width.toString(), 'highlight');
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
else {
|
|
1018
1018
|
this.removeShapeHighlightCollection();
|
|
1019
|
-
this.setColor(legendShape, !isNullOrUndefined(
|
|
1019
|
+
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');
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
else if (getValue === 'selection') {
|
|
@@ -1026,7 +1026,7 @@ var Legend = /** @class */ (function () {
|
|
|
1026
1026
|
var j = 0;
|
|
1027
1027
|
while (j < this.maps.legendSelectionCollection.length) {
|
|
1028
1028
|
if (shapeElement['LegendEle'] !== this.maps.legendSelectionCollection[j]['legendElement'] &&
|
|
1029
|
-
!
|
|
1029
|
+
!legendModule.enableMultiSelect) {
|
|
1030
1030
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1031
1031
|
var element = this.maps.legendSelectionCollection[j];
|
|
1032
1032
|
var selectedLegendIndex = this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']);
|
|
@@ -1044,14 +1044,14 @@ var Legend = /** @class */ (function () {
|
|
|
1044
1044
|
if (selectionEle && (selectionEle['IsSelected'] && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
1045
1045
|
|| targetElement.getAttribute('class') === 'LineselectionMapStyle'))) {
|
|
1046
1046
|
var multiSelection = 0;
|
|
1047
|
-
if (
|
|
1047
|
+
if (legendModule.enableMultiSelect) {
|
|
1048
1048
|
for (var i = 0; i < shapeElement['Elements'].length; i++) {
|
|
1049
1049
|
if (targetElement.getAttribute('class') === shapeElement['Elements'][i].getAttribute('class')) {
|
|
1050
1050
|
multiSelection++;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
|
-
if (multiSelection <= 1 && (!
|
|
1054
|
+
if (multiSelection <= 1 && (!legendModule.enableMultiSelect ?
|
|
1055
1055
|
this.maps.legendSelection : true)) {
|
|
1056
1056
|
this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(indexes['actualIndex']), 1);
|
|
1057
1057
|
if (!isNullOrUndefined(shapeElement['LegendEle'])) {
|
|
@@ -1078,10 +1078,10 @@ var Legend = /** @class */ (function () {
|
|
|
1078
1078
|
if (addId) {
|
|
1079
1079
|
this.maps.selectedLegendElementId.push(indexes['actualIndex']);
|
|
1080
1080
|
}
|
|
1081
|
-
this.maps.legendSelectionClass =
|
|
1081
|
+
this.maps.legendSelectionClass = legendModule;
|
|
1082
1082
|
this.removeLegend(this.shapeHighlightCollection);
|
|
1083
1083
|
if (!isNullOrUndefined(legendShape)) {
|
|
1084
|
-
this.setColor(legendShape, !isNullOrUndefined(
|
|
1084
|
+
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');
|
|
1085
1085
|
var legendSelectionIndex = this.getIndexofLegend(this.maps.legendSelectionCollection, legendShape);
|
|
1086
1086
|
this.maps.legendSelectionCollection[legendSelectionIndex]['MapShapeCollection']['Elements'].push(targetElement);
|
|
1087
1087
|
}
|
|
@@ -2092,7 +2092,8 @@ var Zoom = /** @class */ (function () {
|
|
|
2092
2092
|
this.lastScale = 1;
|
|
2093
2093
|
this.maps.element.style.cursor = 'auto';
|
|
2094
2094
|
if (this.isPanModeEnabled && this.maps.zoomSettings.enablePanning && !isNullOrUndefined(this.maps.previousPoint) &&
|
|
2095
|
-
(this.maps.translatePoint.x !== this.maps.previousPoint.x && this.maps.translatePoint.y !== this.maps.previousPoint.y)
|
|
2095
|
+
(!this.maps.isTileMap ? (this.maps.translatePoint.x !== this.maps.previousPoint.x && this.maps.translatePoint.y !== this.maps.previousPoint.y)
|
|
2096
|
+
: this.isPanningInProgress)) {
|
|
2096
2097
|
var pageX = void 0;
|
|
2097
2098
|
var pageY = void 0;
|
|
2098
2099
|
var layerX = 0;
|
|
@@ -2144,6 +2145,7 @@ var Zoom = /** @class */ (function () {
|
|
|
2144
2145
|
this.maps.trigger('panComplete', panCompleteEventArgs);
|
|
2145
2146
|
}
|
|
2146
2147
|
this.isPanModeEnabled = false;
|
|
2148
|
+
this.isPanningInProgress = false;
|
|
2147
2149
|
var zoomRectElement = getElementByID(this.maps.element.id + '_Selection_Rect_Zooming');
|
|
2148
2150
|
if (zoomRectElement && this.maps.zoomSettings.enable && this.maps.zoomSettings.enableSelectionZooming) {
|
|
2149
2151
|
remove(zoomRectElement);
|