@syncfusion/ej2-maps 20.3.56 → 20.4.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.
Files changed (48) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +9 -1
  3. package/README.md +65 -51
  4. package/dist/ej2-maps.min.js +2 -2
  5. package/dist/ej2-maps.umd.min.js +2 -2
  6. package/dist/ej2-maps.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-maps.es2015.js +915 -722
  8. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  9. package/dist/es6/ej2-maps.es5.js +901 -712
  10. package/dist/es6/ej2-maps.es5.js.map +1 -1
  11. package/dist/global/ej2-maps.min.js +2 -2
  12. package/dist/global/ej2-maps.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/package.json +33 -20
  15. package/src/maps/layers/bing-map.d.ts +1 -0
  16. package/src/maps/layers/bing-map.js +1 -0
  17. package/src/maps/layers/bubble.d.ts +4 -0
  18. package/src/maps/layers/bubble.js +7 -3
  19. package/src/maps/layers/color-mapping.d.ts +5 -0
  20. package/src/maps/layers/color-mapping.js +5 -3
  21. package/src/maps/layers/data-label.d.ts +0 -1
  22. package/src/maps/layers/data-label.js +5 -12
  23. package/src/maps/layers/layer-panel.d.ts +7 -7
  24. package/src/maps/layers/layer-panel.js +98 -53
  25. package/src/maps/layers/legend.js +19 -19
  26. package/src/maps/layers/marker.d.ts +13 -0
  27. package/src/maps/layers/marker.js +124 -107
  28. package/src/maps/layers/navigation-selected-line.d.ts +5 -0
  29. package/src/maps/layers/navigation-selected-line.js +111 -104
  30. package/src/maps/maps-model.d.ts +1 -1
  31. package/src/maps/maps.d.ts +17 -0
  32. package/src/maps/maps.js +448 -364
  33. package/src/maps/model/base.js +1 -1
  34. package/src/maps/model/export-image.d.ts +4 -3
  35. package/src/maps/model/export-image.js +7 -6
  36. package/src/maps/model/export-pdf.d.ts +6 -6
  37. package/src/maps/model/export-pdf.js +8 -7
  38. package/src/maps/model/interface.d.ts +2 -2
  39. package/src/maps/model/print.d.ts +4 -2
  40. package/src/maps/model/print.js +6 -3
  41. package/src/maps/user-interaction/annotation.js +0 -2
  42. package/src/maps/user-interaction/highlight.js +4 -3
  43. package/src/maps/user-interaction/selection.js +4 -2
  44. package/src/maps/user-interaction/tooltip.js +5 -5
  45. package/src/maps/user-interaction/zoom.d.ts +5 -0
  46. package/src/maps/user-interaction/zoom.js +7 -7
  47. package/src/maps/utils/helper.d.ts +2 -0
  48. package/src/maps/utils/helper.js +37 -30
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
20
+ /* eslint-disable max-len */
21
21
  /**
22
22
  * Maps base document
23
23
  */
@@ -15,10 +15,11 @@ export declare class ImageExport {
15
15
  /**
16
16
  * To export the file as image/svg format
17
17
  *
18
- * @param {ExportType} type - Specifies the type of the image file
19
- * @param {string} fileName - Specifies the file name of the image file
18
+ * @param {Maps} maps - Specifies the Maps instance.
19
+ * @param {ExportType} type - Specifies the type of the image file for exporting.
20
+ * @param {string} fileName - Specifies the file name of the image file for exporting.
20
21
  * @param {boolean} allowDownload - Specifies whether to download image as a file or not.
21
- * @returns {Promise<string>} - Returns the promise string.
22
+ * @returns {Promise<string>} - Specifies the base64 string of the exported image which is returned when the allowDownload is set to false.
22
23
  * @private
23
24
  */
24
25
  export(maps: Maps, type: ExportType, fileName: string, allowDownload?: boolean): Promise<string>;
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
  import { createElement, Browser, isNullOrUndefined } from '@syncfusion/ej2-base';
3
2
  import { triggerDownload, getElementByID } from '../utils/helper';
4
3
  /**
@@ -12,19 +11,21 @@ var ImageExport = /** @class */ (function () {
12
11
  *
13
12
  * @param {Maps} control - Specifies the instance of the map
14
13
  */
14
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
15
15
  function ImageExport(control) {
16
16
  }
17
17
  /**
18
18
  * To export the file as image/svg format
19
19
  *
20
- * @param {ExportType} type - Specifies the type of the image file
21
- * @param {string} fileName - Specifies the file name of the image file
20
+ * @param {Maps} maps - Specifies the Maps instance.
21
+ * @param {ExportType} type - Specifies the type of the image file for exporting.
22
+ * @param {string} fileName - Specifies the file name of the image file for exporting.
22
23
  * @param {boolean} allowDownload - Specifies whether to download image as a file or not.
23
- * @returns {Promise<string>} - Returns the promise string.
24
+ * @returns {Promise<string>} - Specifies the base64 string of the exported image which is returned when the allowDownload is set to false.
24
25
  * @private
25
26
  */
26
27
  ImageExport.prototype.export = function (maps, type, fileName, allowDownload) {
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
28
29
  var promise = new Promise(function (resolve, reject) {
29
30
  var imageCanvasElement = createElement('canvas', {
30
31
  id: 'ej2-canvas',
@@ -34,7 +35,6 @@ var ImageExport = /** @class */ (function () {
34
35
  }
35
36
  });
36
37
  var isDownload = !(Browser.userAgent.toString().indexOf('HeadlessChrome') > -1);
37
- var toolbarEle = document.getElementById(maps.element.id + '_ToolBar');
38
38
  var svgParent = document.getElementById(maps.element.id + '_Tile_SVG_Parent');
39
39
  var svgDataElement;
40
40
  var tileSvg;
@@ -168,6 +168,7 @@ var ImageExport = /** @class */ (function () {
168
168
  * @returns {void}
169
169
  * @private
170
170
  */
171
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
171
172
  ImageExport.prototype.destroy = function () { };
172
173
  return ImageExport;
173
174
  }());
@@ -10,17 +10,17 @@ export declare class PdfExport {
10
10
  /**
11
11
  * Constructor for Maps
12
12
  *
13
- * @param {Maps} control Specifies the instance of the map
14
13
  */
15
14
  constructor();
16
15
  /**
17
16
  * To export the file as image/svg format
18
17
  *
19
- * @param {ExportType} type - Specifies the type of the document
20
- * @param {string} fileName - Specifies the file name of the document
21
- * @param {boolean} allowDownload - Specifies whether to download the document or not
22
- * @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document to export the component
23
- * @returns {Promise<string>} - Returns the promise string
18
+ * @param {Maps} maps - Specifies the Maps instance.
19
+ * @param {ExportType} type - Specifies the type of the document.
20
+ * @param {string} fileName - Specifies the name of the PDF document.
21
+ * @param {boolean} allowDownload - Specifies whether to download the document or not.
22
+ * @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document to export the component.
23
+ * @returns {Promise<string>} - Returns "null" value when the allowDownload is set to false.
24
24
  * @private
25
25
  */
26
26
  export(maps: Maps, type: ExportType, fileName: string, allowDownload?: boolean, orientation?: PdfPageOrientation): Promise<string>;
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
  import { createElement, isNullOrUndefined } from '@syncfusion/ej2-base';
3
2
  import { PdfPageOrientation, PdfDocument, PdfBitmap } from '@syncfusion/ej2-pdf-export';
4
3
  /**
@@ -10,18 +9,19 @@ var PdfExport = /** @class */ (function () {
10
9
  /**
11
10
  * Constructor for Maps
12
11
  *
13
- * @param {Maps} control Specifies the instance of the map
14
12
  */
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
15
14
  function PdfExport() {
16
15
  }
17
16
  /**
18
17
  * To export the file as image/svg format
19
18
  *
20
- * @param {ExportType} type - Specifies the type of the document
21
- * @param {string} fileName - Specifies the file name of the document
22
- * @param {boolean} allowDownload - Specifies whether to download the document or not
23
- * @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document to export the component
24
- * @returns {Promise<string>} - Returns the promise string
19
+ * @param {Maps} maps - Specifies the Maps instance.
20
+ * @param {ExportType} type - Specifies the type of the document.
21
+ * @param {string} fileName - Specifies the name of the PDF document.
22
+ * @param {boolean} allowDownload - Specifies whether to download the document or not.
23
+ * @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document to export the component.
24
+ * @returns {Promise<string>} - Returns "null" value when the allowDownload is set to false.
25
25
  * @private
26
26
  */
27
27
  PdfExport.prototype.export = function (maps, type, fileName, allowDownload, orientation) {
@@ -157,6 +157,7 @@ var PdfExport = /** @class */ (function () {
157
157
  * @returns {void}
158
158
  * @private
159
159
  */
160
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
160
161
  PdfExport.prototype.destroy = function () { };
161
162
  return PdfExport;
162
163
  }());
@@ -508,8 +508,8 @@ export interface ILabelRenderingEventArgs extends IMapsEventArgs {
508
508
  */
509
509
  offsetX: number;
510
510
  /**
511
- * Defines the top and bottom position of text for the data-label in event argument.
512
- */
511
+ * Defines the top and bottom position of text for the data-label in event argument.
512
+ */
513
513
  offsetY: number;
514
514
  /**
515
515
  * Defines the color and width of the border for the data-label in event argument.
@@ -8,13 +8,14 @@ export declare class Print {
8
8
  /**
9
9
  * Constructor for Maps
10
10
  *
11
- * @param {Maps} control - Specifies the instance of the map
11
+ * @param {Maps} control - Specifies the instance of the Maps
12
12
  */
13
13
  constructor(control: Maps);
14
14
  /**
15
15
  * To print the Maps
16
16
  *
17
- * @param {string[] | string | Element} elements - Specifies the element
17
+ * @param {Maps} maps -Specifies the Maps instance.
18
+ * @param {string[] | string | Element} elements - Specifies the element of the Maps
18
19
  * @returns {void}
19
20
  * @private
20
21
  */
@@ -22,6 +23,7 @@ export declare class Print {
22
23
  /**
23
24
  * To get the html string of the Maps
24
25
  *
26
+ * @param {Maps} maps -Specifies the Maps instance.
25
27
  * @param {string[] | string | Element} elements - Specifies the html element
26
28
  * @returns {Element} - Returns the div element
27
29
  * @private
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
  import { print as printFunction, createElement } from '@syncfusion/ej2-base';
3
2
  import { getElement } from '../utils/helper';
4
3
  import { beforePrint } from '../model/constants';
@@ -11,14 +10,16 @@ var Print = /** @class */ (function () {
11
10
  /**
12
11
  * Constructor for Maps
13
12
  *
14
- * @param {Maps} control - Specifies the instance of the map
13
+ * @param {Maps} control - Specifies the instance of the Maps
15
14
  */
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
16
16
  function Print(control) {
17
17
  }
18
18
  /**
19
19
  * To print the Maps
20
20
  *
21
- * @param {string[] | string | Element} elements - Specifies the element
21
+ * @param {Maps} maps -Specifies the Maps instance.
22
+ * @param {string[] | string | Element} elements - Specifies the element of the Maps
22
23
  * @returns {void}
23
24
  * @private
24
25
  */
@@ -38,6 +39,7 @@ var Print = /** @class */ (function () {
38
39
  /**
39
40
  * To get the html string of the Maps
40
41
  *
42
+ * @param {Maps} maps -Specifies the Maps instance.
41
43
  * @param {string[] | string | Element} elements - Specifies the html element
42
44
  * @returns {Element} - Returns the div element
43
45
  * @private
@@ -97,6 +99,7 @@ var Print = /** @class */ (function () {
97
99
  * @returns {void}
98
100
  * @private
99
101
  */
102
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
100
103
  Print.prototype.destroy = function () { };
101
104
  return Print;
102
105
  }());
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /* eslint-disable jsdoc/require-param */
3
1
  import { annotationRendering } from '../index';
4
2
  import { createElement, isNullOrUndefined } from '@syncfusion/ej2-base';
5
3
  import { getTemplateFunction, getElementOffset, getElementByID } from '../utils/helper';
@@ -160,7 +160,9 @@ var Highlight = /** @class */ (function () {
160
160
  }
161
161
  var borderColor = (targetEle.parentElement.id.indexOf('LineString') === -1) ? this.highlightSettings.border.color : (this.highlightSettings.fill || this.highlightSettings.border.color);
162
162
  var borderWidth = (targetEle.parentElement.id.indexOf('LineString') === -1) ? (this.highlightSettings.border.width / (isMarkerSelect ? 1 : this.maps.scale)) : (this.highlightSettings.border.width / this.maps.scale);
163
- var borderOpacity = isNullOrUndefined(this.highlightSettings.border.opacity) ? this.highlightSettings.opacity : this.highlightSettings.border.opacity;
163
+ var borderOpacity = isNullOrUndefined(this.highlightSettings.border.opacity) ? this.highlightSettings.opacity :
164
+ this.highlightSettings.border.opacity;
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
166
  var eventArgs = {
165
167
  opacity: this.highlightSettings.opacity,
166
168
  fill: (targetEle.parentElement.id.indexOf('LineString') === -1) ? (targetEle.id.indexOf('NavigationIndex') === -1 ? !isNullOrUndefined(this.highlightSettings.fill)
@@ -180,6 +182,7 @@ var Highlight = /** @class */ (function () {
180
182
  maps: this.maps
181
183
  };
182
184
  if (targetEle.id.indexOf('shapeIndex') > -1) {
185
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
183
186
  this.maps.trigger(shapeHighlight, shapeEventArgs, function () { });
184
187
  }
185
188
  var itemEventArgs = {
@@ -204,8 +207,6 @@ var Highlight = /** @class */ (function () {
204
207
  });
205
208
  };
206
209
  Highlight.prototype.highlightMap = function (targetEle, eventArgs) {
207
- var parentElement;
208
- var children;
209
210
  if (targetEle.getAttribute('class') === 'highlightMapStyle' || eventArgs.cancel) {
210
211
  return;
211
212
  }
@@ -138,7 +138,8 @@ var Selection = /** @class */ (function () {
138
138
  var isLineStringShape = targetElement.parentElement.id.indexOf('LineString') > -1;
139
139
  var selectionsettings = this.selectionsettings;
140
140
  var border = {
141
- color: isLineStringShape ? (this.selectionsettings.fill || this.selectionsettings.border.color) : this.selectionsettings.border.color,
141
+ color: isLineStringShape ? (this.selectionsettings.fill || this.selectionsettings.border.color) :
142
+ this.selectionsettings.border.color,
142
143
  width: isLineStringShape ? (this.selectionsettings.border.width / this.maps.scale) :
143
144
  (this.selectionsettings.border.width / (this.selectionType === 'Marker' ? 1 : this.maps.scale)),
144
145
  opacity: this.selectionsettings.border.opacity
@@ -155,7 +156,8 @@ var Selection = /** @class */ (function () {
155
156
  maps: this.maps
156
157
  };
157
158
  this.maps.trigger('itemSelection', eventArgs, function (observedArgs) {
158
- eventArgs.border.opacity = isNullOrUndefined(_this.selectionsettings.border.opacity) ? _this.selectionsettings.opacity : _this.selectionsettings.border.opacity;
159
+ eventArgs.border.opacity = isNullOrUndefined(_this.selectionsettings.border.opacity) ?
160
+ _this.selectionsettings.opacity : _this.selectionsettings.border.opacity;
159
161
  if (!eventArgs.cancel) {
160
162
  if (targetElement.getAttribute('class') === _this.selectionType + 'selectionMapStyle'
161
163
  || targetElement.getAttribute('class') === 'LineselectionMapStyle') {
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
  import { tooltipRender } from '../index';
3
2
  import { Tooltip } from '@syncfusion/ej2-svg-base';
4
3
  import { createElement, Browser, isNullOrUndefined, extend, remove } from '@syncfusion/ej2-base';
@@ -36,9 +35,7 @@ var MapsTooltip = /** @class */ (function () {
36
35
  }
37
36
  var option;
38
37
  var currentData = '';
39
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
38
  var targetId = target.id;
41
- var item = {};
42
39
  var tooltipEle;
43
40
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
41
  var templateData = [];
@@ -186,6 +183,7 @@ var MapsTooltip = /** @class */ (function () {
186
183
  maps: this.maps,
187
184
  element: target, eventArgs: e, content: !isNullOrUndefined(currentData) ? currentData.toString() : ''
188
185
  };
186
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
189
187
  this.maps.trigger(tooltipRender, tooltipArgs, function (args) {
190
188
  if (!tooltipArgs.cancel && option.visible && !isNullOrUndefined(currentData) &&
191
189
  (targetId.indexOf('_cluster_') === -1 && targetId.indexOf('_dataLabel_') === -1)) {
@@ -202,7 +200,8 @@ var MapsTooltip = /** @class */ (function () {
202
200
  header: '',
203
201
  data: option['data'],
204
202
  template: option['template'],
205
- content: tooltipArgs.content.toString() != currentData.toString() ? [tooltipArgs.content.toString()] : [currentData.toString()],
203
+ content: tooltipArgs.content.toString() !== currentData.toString() ? [tooltipArgs.content.toString()] :
204
+ [currentData.toString()],
206
205
  shapes: [],
207
206
  location: option['location'],
208
207
  palette: [markerFill],
@@ -218,7 +217,8 @@ var MapsTooltip = /** @class */ (function () {
218
217
  header: '',
219
218
  data: tooltipArgs.options['data'],
220
219
  template: tooltipArgs.options['template'],
221
- content: tooltipArgs.content.toString() != currentData.toString() ? [tooltipArgs.content.toString()] : [currentData.toString()],
220
+ content: tooltipArgs.content.toString() !== currentData.toString() ? [tooltipArgs.content.toString()] :
221
+ [currentData.toString()],
222
222
  shapes: [],
223
223
  location: tooltipArgs.options['location'],
224
224
  palette: [markerFill],
@@ -100,6 +100,11 @@ export declare class Zoom {
100
100
  private markerTranslate;
101
101
  private markerLineAnimation;
102
102
  /**
103
+ * @param {PanDirection} direction - Specifies the direction of the panning.
104
+ * @param {number} xDifference - Specifies the distance moved in the horizontal direction.
105
+ * @param {number} yDifference - Specifies the distance moved in the vertical direction.
106
+ * @param {PointerEvent | TouchEvent | KeyboardEvent} mouseLocation - Specifies the pointer event argument.
107
+ * @returns {void}
103
108
  * @private
104
109
  */
105
110
  panning(direction: PanDirection, xDifference: number, yDifference: number, mouseLocation?: PointerEvent | TouchEvent | KeyboardEvent): void;
@@ -150,6 +150,7 @@ var Zoom = /** @class */ (function () {
150
150
  }
151
151
  this.maps.zoomNotApplied = false;
152
152
  };
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
153
154
  Zoom.prototype.calculateInitalZoomTranslatePoint = function (newZoomFactor, mapTotalWidth, mapTotalHeight, availSize, minBounds, map) {
154
155
  mapTotalWidth *= newZoomFactor;
155
156
  mapTotalHeight *= newZoomFactor;
@@ -417,7 +418,7 @@ var Zoom = /** @class */ (function () {
417
418
  layerElement.appendChild(maps.navigationLineModule.renderNavigation(this.currentLayer, maps.tileZoomLevel, this.index));
418
419
  }
419
420
  }
420
- else if (currentEle.id.indexOf('Legend') == -1) {
421
+ else if (currentEle.id.indexOf('Legend') === -1) {
421
422
  changeBorderWidth(currentEle, this.index, scale, maps);
422
423
  maps.zoomTranslatePoint = maps.translatePoint;
423
424
  this.animateTransform(currentEle, animate, x, y, scale);
@@ -495,7 +496,6 @@ var Zoom = /** @class */ (function () {
495
496
  var childElement = void 0;
496
497
  for (var k = 0; k < currentEle.childElementCount; k++) {
497
498
  childElement = currentEle.childNodes[k];
498
- var bubbleTransform = childElement.getAttribute('transform');
499
499
  layerIndex = parseFloat(childElement.id.split('_LayerIndex_')[1].split('_')[0]);
500
500
  var bubleIndex = parseFloat(childElement.id.split('_BubbleIndex_')[1].split('_')[0]);
501
501
  var dataIndex = parseFloat(childElement.id.split('_BubbleIndex_')[1].split('_')[2]);
@@ -626,7 +626,6 @@ var Zoom = /** @class */ (function () {
626
626
  var markerID = _this.maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
627
627
  + markerIndex + '_dataIndex_' + dataIndex;
628
628
  var location_1 = (_this.maps.isTileMap) ? convertTileLatLongToPoint(new MapLocation(long, lati), _this.maps.tileZoomLevel, _this.maps.tileTranslatePoint, true) : convertGeoToPoint(lati, long, factor, currentLayers, _this.maps);
629
- var animate_1 = currentLayers.animationDuration !== 0 || isNullOrUndefined(_this.maps.zoomModule);
630
629
  var transPoint = { x: x, y: y };
631
630
  if (eventArgs.template && (!isNaN(location_1.x) && !isNaN(location_1.y))) {
632
631
  markerTemplateCounts++;
@@ -696,15 +695,12 @@ var Zoom = /** @class */ (function () {
696
695
  if (animate === void 0) { animate = false; }
697
696
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
698
697
  var labelCollection = this.maps.dataLabelModule.dataLabelCollections;
699
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
700
- var zoomelement = element.getBoundingClientRect();
701
698
  var text;
702
699
  var trimmedLable;
703
700
  var style = this.maps.layers[this.index].dataLabelSettings.textStyle;
704
701
  var zoomtext;
705
702
  var zoomtextSize;
706
703
  var zoomtrimLabel;
707
- var labelPath = this.maps.layers[this.index].dataLabelSettings.labelPath;
708
704
  var layerIndex = parseFloat(element.id.split('_LayerIndex_')[1].split('_')[0]);
709
705
  var shapeIndex = parseFloat(element.id.split('_shapeIndex_')[1].split('_')[0]);
710
706
  var labelIndex;
@@ -732,7 +728,6 @@ var Zoom = /** @class */ (function () {
732
728
  var layerEle = getElementByID(this.maps.element.id + '_Layer_Collections');
733
729
  labelX = ((Math.abs(this.maps.baseMapRectBounds['min']['x'] - labelX)) * scale);
734
730
  labelY = ((Math.abs(this.maps.baseMapRectBounds['min']['y'] - labelY)) * scale);
735
- var templateOffset = element.getBoundingClientRect();
736
731
  var layerOffset = layerEle.getBoundingClientRect();
737
732
  var elementOffset = element.parentElement.getBoundingClientRect();
738
733
  locationX = ((labelX) + (layerOffset.left - elementOffset.left));
@@ -930,6 +925,11 @@ var Zoom = /** @class */ (function () {
930
925
  }
931
926
  };
932
927
  /**
928
+ * @param {PanDirection} direction - Specifies the direction of the panning.
929
+ * @param {number} xDifference - Specifies the distance moved in the horizontal direction.
930
+ * @param {number} yDifference - Specifies the distance moved in the vertical direction.
931
+ * @param {PointerEvent | TouchEvent | KeyboardEvent} mouseLocation - Specifies the pointer event argument.
932
+ * @returns {void}
933
933
  * @private
934
934
  */
935
935
  Zoom.prototype.panning = function (direction, xDifference, yDifference, mouseLocation) {
@@ -674,6 +674,7 @@ export declare function drawStar(maps: Maps, options: PathOption, size: Size, lo
674
674
  * @param {PathOption} options - Specifies the path options
675
675
  * @param {Size} size - Specifies the size
676
676
  * @param {MapLocation} location - Specifies the map location
677
+ * @param {string} type - Specifies the type.
677
678
  * @param {Element} element - Specifies the element
678
679
  * @returns {Element} - Returns the element
679
680
  * @private
@@ -838,6 +839,7 @@ export declare function Internalize(maps: Maps, value: number): string;
838
839
  * Function to compile the template function for maps.
839
840
  *
840
841
  * @param {string} template - Specifies the template
842
+ * @param {Maps} maps - Specifies the Maps instance.
841
843
  * @returns {Function} - Returns the function
842
844
  * @private
843
845
  */