@syncfusion/ej2-maps 20.2.36 → 20.2.38
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 +6 -6
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +6 -6
- 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/maps.js +1 -1
- package/src/maps/user-interaction/zoom.js +5 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.38
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@20.2.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-F4oto9pbVy/GFRpkaVBJI84ztssNnG/CIPGCqp2qylutLhMLFpnCqpK/JMXE6EqB1ztaknptya9q6K2UdHh4yQ==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.2.36.tgz",
|
|
27
|
+
"_shasum": "25af786664388cca9544bff736c4aa464a150dee",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
40
|
-
"@syncfusion/ej2-compression": "~20.2.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.2.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~20.2.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~20.2.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~20.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.2.38",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.2.38",
|
|
40
|
+
"@syncfusion/ej2-compression": "~20.2.38",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.2.38",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~20.2.38",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~20.2.38",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~20.2.38"
|
|
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",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
81
|
},
|
|
82
82
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "20.2.
|
|
83
|
+
"version": "20.2.38",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
package/src/maps/maps.js
CHANGED
|
@@ -746,7 +746,7 @@ var Zoom = /** @class */ (function () {
|
|
|
746
746
|
}
|
|
747
747
|
if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Hide') {
|
|
748
748
|
if (scale > 1) {
|
|
749
|
-
text = (this.
|
|
749
|
+
text = ((this.maps.dataLabelShape[l] * scale) >= zoomtextSize['width']) ? zoomtext : '';
|
|
750
750
|
element.innerHTML = text;
|
|
751
751
|
}
|
|
752
752
|
else {
|
|
@@ -756,7 +756,7 @@ var Zoom = /** @class */ (function () {
|
|
|
756
756
|
}
|
|
757
757
|
if (this.maps.layers[this.index].dataLabelSettings.smartLabelMode === 'Trim') {
|
|
758
758
|
if (scale > 1) {
|
|
759
|
-
zoomtrimLabel = textTrim(this.
|
|
759
|
+
zoomtrimLabel = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
|
|
760
760
|
text = zoomtrimLabel;
|
|
761
761
|
element.innerHTML = text;
|
|
762
762
|
}
|
|
@@ -794,7 +794,7 @@ var Zoom = /** @class */ (function () {
|
|
|
794
794
|
|| textLocations['heightTop'] > this.intersect[j]['heightBottom']) {
|
|
795
795
|
trimmedLable = !isNullOrUndefined(text) ? text : zoomtext;
|
|
796
796
|
if (scale > 1) {
|
|
797
|
-
trimmedLable = textTrim(this.
|
|
797
|
+
trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), trimmedLable, style);
|
|
798
798
|
}
|
|
799
799
|
element.innerHTML = trimmedLable;
|
|
800
800
|
}
|
|
@@ -820,11 +820,11 @@ var Zoom = /** @class */ (function () {
|
|
|
820
820
|
}
|
|
821
821
|
this.intersect.push(textLocations);
|
|
822
822
|
if (isNullOrUndefined(trimmedLable)) {
|
|
823
|
-
trimmedLable = textTrim(this.
|
|
823
|
+
trimmedLable = textTrim((this.maps.dataLabelShape[l] * scale), zoomtext, style);
|
|
824
824
|
element.innerHTML = trimmedLable;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
if (animate || duration > 0) {
|
|
828
828
|
smoothTranslate(element, 0, duration, new MapLocation(labelX, labelY));
|
|
829
829
|
}
|
|
830
830
|
}
|