@syncfusion/ej2-maps 20.4.42 → 20.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 +9 -1
- 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 +25 -19
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +25 -19
- 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.js +3 -3
- package/src/maps/maps.d.ts +1 -0
- package/src/maps/maps.js +6 -2
- package/src/maps/user-interaction/tooltip.js +16 -14
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.48
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@20.4.44",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kIbapKUjj1tBztWAd7E/g7fomL2FOTSnoXV7duLRSUCVfZp7gwIQjIhc5eXch8+uElXzdAv4Fl7s56Yxym24mA==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.4.44.tgz",
|
|
27
|
+
"_shasum": "b341ba1e5a519f4842ef787647fd632a6fb3035b",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
40
|
-
"@syncfusion/ej2-compression": "~20.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~20.4.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~20.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.4.48",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.4.48",
|
|
40
|
+
"@syncfusion/ej2-compression": "~20.4.48",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.48",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~20.4.48",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~20.4.48",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~20.4.48"
|
|
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": "20.4.
|
|
96
|
+
"version": "20.4.48",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -538,14 +538,14 @@ var Legend = /** @class */ (function () {
|
|
|
538
538
|
' L ' + (rightPageX - width) + ' ' + (locY + height) + ' z ';
|
|
539
539
|
var leftPath = ' M ' + leftPageX + ' ' + locY + ' L ' + (leftPageX + width) + ' ' + (locY - height) +
|
|
540
540
|
' L ' + (leftPageX + width) + ' ' + (locY + height) + ' z ';
|
|
541
|
-
var leftPageOptions = new PathOption(map.element.id + '_Left_Page',
|
|
541
|
+
var leftPageOptions = new PathOption(map.element.id + '_Left_Page', this.maps.themeStyle.legendTextColor, 0, this.maps.themeStyle.legendTextColor, ((page + 1) === 1 ? 0.5 : 1), 1, '', leftPath);
|
|
542
542
|
leftPageElement.appendChild(render.drawPath(leftPageOptions));
|
|
543
543
|
var leftRectPageOptions = new RectOption(map.element.id + '_Left_Page_Rect', 'transparent', {}, 1, new Rect(leftPageX - (width / 2), (locY - (height * 2)), width * 2, spacing * 2), null, null, '', '');
|
|
544
544
|
var pathEle = render.drawRectangle(leftRectPageOptions);
|
|
545
545
|
pathEle.tabIndex = (page + 1) === 1 ? -1 : (map.tabIndex + 1);
|
|
546
546
|
leftPageElement.appendChild(pathEle);
|
|
547
547
|
this.wireEvents(leftPageElement);
|
|
548
|
-
var rightPageOptions = new PathOption(map.element.id + '_Right_Page',
|
|
548
|
+
var rightPageOptions = new PathOption(map.element.id + '_Right_Page', this.maps.themeStyle.legendTextColor, 0, this.maps.themeStyle.legendTextColor, ((page + 1) === this.totalPages.length ? 0.5 : 1), 1, '', rightPath);
|
|
549
549
|
rightPageElement.appendChild(render.drawPath(rightPageOptions));
|
|
550
550
|
var rightRectPageOptions = new RectOption(map.element.id + '_Right_Page_Rect', 'transparent', {}, 1, new Rect(rightPageX - spacing - (width / 2), (locY - (height * 2)), width * 2, spacing * 2), null, null, '', '');
|
|
551
551
|
pathEle = render.drawRectangle(rightRectPageOptions);
|
|
@@ -559,7 +559,7 @@ var Legend = /** @class */ (function () {
|
|
|
559
559
|
'id': map.element.id + '_Paging_Text',
|
|
560
560
|
'x': pageTextX,
|
|
561
561
|
'y': locY + (pagingTextSize.height / 4),
|
|
562
|
-
'fill':
|
|
562
|
+
'fill': this.maps.themeStyle.legendTextColor,
|
|
563
563
|
'font-size': '14px',
|
|
564
564
|
'font-style': pagingFont.fontStyle,
|
|
565
565
|
'font-family': pagingFont.fontFamily,
|
package/src/maps/maps.d.ts
CHANGED
package/src/maps/maps.js
CHANGED
|
@@ -889,7 +889,8 @@ var Maps = /** @class */ (function (_super) {
|
|
|
889
889
|
EventHandler.add(this.element, 'keydown', this.keyDownHandler, this);
|
|
890
890
|
EventHandler.add(this.element, 'keyup', this.keyUpHandler, this);
|
|
891
891
|
// EventHandler.add(this.element, cancelEvent, this.mouseLeaveOnMap, this);
|
|
892
|
-
|
|
892
|
+
this.resizeEvent = this.mapsOnResize.bind(this);
|
|
893
|
+
window.addEventListener((Browser.isTouch && ('orientation' in window && 'onorientationchange' in window)) ? 'orientationchange' : 'resize', this.resizeEvent);
|
|
893
894
|
};
|
|
894
895
|
/**
|
|
895
896
|
* To unbind event handlers from maps.
|
|
@@ -908,7 +909,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
908
909
|
EventHandler.remove(this.element, 'keydown', this.keyDownHandler);
|
|
909
910
|
EventHandler.remove(this.element, 'keyup', this.keyUpHandler);
|
|
910
911
|
//EventHandler.remove(this.element, cancelEvent, this.mouseLeaveOnMap);
|
|
911
|
-
window.removeEventListener((Browser.isTouch && ('orientation' in window && 'onorientationchange' in window)) ? 'orientationchange' : 'resize', this.
|
|
912
|
+
window.removeEventListener((Browser.isTouch && ('orientation' in window && 'onorientationchange' in window)) ? 'orientationchange' : 'resize', this.resizeEvent);
|
|
912
913
|
};
|
|
913
914
|
/**
|
|
914
915
|
* This method is used to perform operations when mouse pointer leave from maps.
|
|
@@ -1766,6 +1767,9 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1766
1767
|
*/
|
|
1767
1768
|
Maps.prototype.destroy = function () {
|
|
1768
1769
|
this.unWireEVents();
|
|
1770
|
+
if (!isNullOrUndefined(this.mapsTooltipModule)) {
|
|
1771
|
+
this.mapsTooltipModule.removeEventListener();
|
|
1772
|
+
}
|
|
1769
1773
|
_super.prototype.destroy.call(this);
|
|
1770
1774
|
this.shapeSelectionItem = [];
|
|
1771
1775
|
this.toggledShapeElementId = [];
|
|
@@ -347,23 +347,26 @@ var MapsTooltip = /** @class */ (function () {
|
|
|
347
347
|
else {
|
|
348
348
|
this.maps.on(Browser.touchMoveEvent, this.renderTooltip, this);
|
|
349
349
|
}
|
|
350
|
-
this.maps.element.addEventListener('contextmenu', this.removeTooltip);
|
|
351
350
|
this.maps.on(Browser.touchCancelEvent, this.removeTooltip, this);
|
|
351
|
+
this.maps.element.addEventListener('contextmenu', this.removeTooltip);
|
|
352
352
|
};
|
|
353
353
|
MapsTooltip.prototype.removeEventListener = function () {
|
|
354
|
-
if (this.maps
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.maps.
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
this.maps.
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
354
|
+
if (this.maps) {
|
|
355
|
+
if (this.maps.isDestroyed) {
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
if (this.maps.tooltipDisplayMode === 'DoubleClick') {
|
|
359
|
+
this.maps.off('dblclick', this.removeTooltip);
|
|
360
|
+
}
|
|
361
|
+
else if (this.maps.tooltipDisplayMode === 'Click') {
|
|
362
|
+
this.maps.off(Browser.touchEndEvent, this.mouseUpHandler);
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
this.maps.off(Browser.touchMoveEvent, this.renderTooltip);
|
|
366
|
+
}
|
|
367
|
+
this.maps.off(Browser.touchCancelEvent, this.removeTooltip);
|
|
368
|
+
this.maps.element.removeEventListener('contextmenu', this.removeTooltip);
|
|
365
369
|
}
|
|
366
|
-
this.maps.off(Browser.touchCancelEvent, this.removeTooltip);
|
|
367
370
|
};
|
|
368
371
|
/**
|
|
369
372
|
* Get module name.
|
|
@@ -384,7 +387,6 @@ var MapsTooltip = /** @class */ (function () {
|
|
|
384
387
|
this.svgTooltip.destroy();
|
|
385
388
|
}
|
|
386
389
|
this.svgTooltip = null;
|
|
387
|
-
this.removeEventListener();
|
|
388
390
|
//TODO: Calling the below code throws spec issue.
|
|
389
391
|
//this.maps = null;
|
|
390
392
|
};
|