@syncfusion/ej2-maps 25.2.3 → 25.2.5

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 (52) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/ej2-maps.min.js +2 -2
  3. package/dist/ej2-maps.umd.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-maps.es2015.js +322 -202
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +331 -205
  8. package/dist/es6/ej2-maps.es5.js.map +1 -1
  9. package/dist/global/ej2-maps.min.js +2 -2
  10. package/dist/global/ej2-maps.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +8 -8
  13. package/src/maps/layers/bubble.d.ts +3 -4
  14. package/src/maps/layers/bubble.js +3 -4
  15. package/src/maps/layers/color-mapping.d.ts +2 -2
  16. package/src/maps/layers/color-mapping.js +2 -2
  17. package/src/maps/layers/data-label.d.ts +1 -1
  18. package/src/maps/layers/data-label.js +1 -1
  19. package/src/maps/layers/layer-panel.d.ts +7 -7
  20. package/src/maps/layers/layer-panel.js +11 -20
  21. package/src/maps/layers/legend.d.ts +9 -0
  22. package/src/maps/layers/legend.js +96 -19
  23. package/src/maps/layers/marker.d.ts +8 -8
  24. package/src/maps/layers/marker.js +8 -8
  25. package/src/maps/layers/navigation-selected-line.d.ts +1 -1
  26. package/src/maps/layers/navigation-selected-line.js +1 -1
  27. package/src/maps/layers/polygon.d.ts +1 -1
  28. package/src/maps/layers/polygon.js +1 -1
  29. package/src/maps/maps.d.ts +24 -26
  30. package/src/maps/maps.js +32 -30
  31. package/src/maps/model/base-model.d.ts +18 -2
  32. package/src/maps/model/base.d.ts +16 -2
  33. package/src/maps/model/base.js +7 -1
  34. package/src/maps/model/constants.d.ts +0 -4
  35. package/src/maps/model/constants.js +0 -4
  36. package/src/maps/model/interface.d.ts +2 -1
  37. package/src/maps/model/print.d.ts +3 -3
  38. package/src/maps/model/print.js +3 -3
  39. package/src/maps/model/theme.d.ts +1 -1
  40. package/src/maps/model/theme.js +1 -1
  41. package/src/maps/user-interaction/annotation.d.ts +1 -2
  42. package/src/maps/user-interaction/annotation.js +1 -2
  43. package/src/maps/user-interaction/highlight.d.ts +4 -4
  44. package/src/maps/user-interaction/highlight.js +4 -4
  45. package/src/maps/user-interaction/selection.d.ts +5 -5
  46. package/src/maps/user-interaction/selection.js +5 -5
  47. package/src/maps/user-interaction/tooltip.d.ts +6 -6
  48. package/src/maps/user-interaction/tooltip.js +18 -11
  49. package/src/maps/user-interaction/zoom.d.ts +6 -4
  50. package/src/maps/user-interaction/zoom.js +23 -10
  51. package/src/maps/utils/helper.d.ts +87 -72
  52. package/src/maps/utils/helper.js +114 -78
@@ -17,7 +17,7 @@ export declare class Size {
17
17
  constructor(width: number, height: number);
18
18
  }
19
19
  /**
20
- * To find number from string
20
+ * To find number from string.
21
21
  *
22
22
  * @param {string} value Specifies the value
23
23
  * @param {number} containerSize Specifies the container size
@@ -26,7 +26,7 @@ export declare class Size {
26
26
  */
27
27
  export declare function stringToNumber(value: string, containerSize: number): number;
28
28
  /**
29
- * Method to calculate the width and height of the maps
29
+ * Method to calculate the width and height of the maps.
30
30
  *
31
31
  * @param {Maps} maps Specifies the maps instance
32
32
  * @returns {void}
@@ -42,7 +42,7 @@ export declare function calculateSize(maps: Maps): Size;
42
42
  */
43
43
  export declare function createSvg(maps: Maps): void;
44
44
  /**
45
- * Method to get the mouse position
45
+ * Method to get the mouse position.
46
46
  *
47
47
  * @param {number} pageX - Specifies the pageX.
48
48
  * @param {number} pageY - Specifies the pageY.
@@ -52,7 +52,7 @@ export declare function createSvg(maps: Maps): void;
52
52
  */
53
53
  export declare function getMousePosition(pageX: number, pageY: number, element: Element): MapLocation;
54
54
  /**
55
- * Method to convert degrees to radians
55
+ * Method to convert degrees to radians.
56
56
  *
57
57
  * @param {number} deg Specifies the degree value
58
58
  * @returns {number} Returns the number
@@ -60,7 +60,7 @@ export declare function getMousePosition(pageX: number, pageY: number, element:
60
60
  */
61
61
  export declare function degreesToRadians(deg: number): number;
62
62
  /**
63
- * Convert radians to degrees method
63
+ * Convert radians to degrees method.
64
64
  *
65
65
  * @param {number} radian Specifies the radian value
66
66
  * @returns {number} Returns the number
@@ -68,7 +68,7 @@ export declare function degreesToRadians(deg: number): number;
68
68
  */
69
69
  export declare function radiansToDegrees(radian: number): number;
70
70
  /**
71
- * Method for converting from latitude and longitude values to points
71
+ * Method for converting from latitude and longitude values to points.
72
72
  *
73
73
  * @param {number} latitude - Specifies the latitude.
74
74
  * @param {number} longitude - Specifies the longitude.
@@ -89,7 +89,7 @@ export declare function convertGeoToPoint(latitude: number, longitude: number, f
89
89
  */
90
90
  export declare function calculatePolygonPath(maps: Maps, factor: number, currentLayer: LayerSettings, markerData: Coordinate[]): string;
91
91
  /**
92
- * Converting tile latitude and longitude to point
92
+ * Converting tile latitude and longitude to point.
93
93
  *
94
94
  * @param {MapLocation} center Specifies the map center location
95
95
  * @param {number} zoomLevel Specifies the zoom level
@@ -100,7 +100,7 @@ export declare function calculatePolygonPath(maps: Maps, factor: number, current
100
100
  */
101
101
  export declare function convertTileLatLongToPoint(center: MapLocation, zoomLevel: number, tileTranslatePoint: MapLocation, isMapCoordinates: boolean): MapLocation;
102
102
  /**
103
- * Method for calculate x point
103
+ * Method for calculate x point.
104
104
  *
105
105
  * @param {Maps} mapObject - Specifies the maps.
106
106
  * @param {number} val - Specifies the value.
@@ -109,7 +109,7 @@ export declare function convertTileLatLongToPoint(center: MapLocation, zoomLevel
109
109
  */
110
110
  export declare function xToCoordinate(mapObject: Maps, val: number): number;
111
111
  /**
112
- * Method for calculate y point
112
+ * Method for calculate y point.
113
113
  *
114
114
  * @param {Maps} mapObject - Specifies the maps.
115
115
  * @param {number} val - Specifies the value.
@@ -118,7 +118,7 @@ export declare function xToCoordinate(mapObject: Maps, val: number): number;
118
118
  */
119
119
  export declare function yToCoordinate(mapObject: Maps, val: number): number;
120
120
  /**
121
- * Method for calculate aitoff projection
121
+ * Method for calculate aitoff projection.
122
122
  *
123
123
  * @param {number} x - Specifies the x value.
124
124
  * @param {number} y - Specifies the y value.
@@ -127,7 +127,7 @@ export declare function yToCoordinate(mapObject: Maps, val: number): number;
127
127
  */
128
128
  export declare function aitoff(x: number, y: number): Point;
129
129
  /**
130
- * Method to round the number
130
+ * Method to round the number.
131
131
  *
132
132
  * @param {number} a - Specifies the a value
133
133
  * @param {number} b - Specifies the b value
@@ -150,7 +150,7 @@ export declare function sinci(x: number): number;
150
150
  */
151
151
  export declare function acos(a: number): number;
152
152
  /**
153
- * Method to calculate bound
153
+ * Method to calculate bound.
154
154
  *
155
155
  * @param {number} value Specifies the value
156
156
  * @param {number} min Specifies the minimum value
@@ -160,7 +160,7 @@ export declare function acos(a: number): number;
160
160
  */
161
161
  export declare function calculateBound(value: number, min: number, max: number): number;
162
162
  /**
163
- * To trigger the download element
163
+ * To trigger the download element.
164
164
  *
165
165
  * @param {string} fileName Specifies the file name
166
166
  * @param {ExportType} type Specifies the type
@@ -228,10 +228,11 @@ export declare function measureText(text: string, font: FontModel): Size;
228
228
  * @param {string} text - Specifies the text.
229
229
  * @param {FontModel} font - Specifies the font.
230
230
  * @returns {Size} - Returns the size of text.
231
- * @private */
231
+ * @private
232
+ */
232
233
  export declare function measureTextElement(text: string, font: FontModel): Size;
233
234
  /**
234
- * Internal use of text options
235
+ * Internal use of text options.
235
236
  *
236
237
  * @private
237
238
  */
@@ -246,7 +247,7 @@ export declare class TextOption {
246
247
  constructor(id?: string, x?: number, y?: number, anchor?: string, text?: string | string[], transform?: string, baseLine?: string);
247
248
  }
248
249
  /**
249
- * Internal use of path options
250
+ * Internal use of path options.
250
251
  *
251
252
  * @private
252
253
  */
@@ -269,7 +270,7 @@ export declare class ColorValue {
269
270
  constructor(r?: number, g?: number, b?: number);
270
271
  }
271
272
  /**
272
- * Internal use of rectangle options
273
+ * Internal use of rectangle options.
273
274
  *
274
275
  * @private
275
276
  */
@@ -285,7 +286,7 @@ export declare class RectOption extends PathOption {
285
286
  constructor(id: string, fill: string, border: BorderModel, fillOpacity: number, rect: Rect, rx?: number, ry?: number, transform?: string, dashArray?: string);
286
287
  }
287
288
  /**
288
- * Internal use of circle options
289
+ * Internal use of circle options.
289
290
  *
290
291
  * @private
291
292
  */
@@ -297,7 +298,7 @@ export declare class CircleOption extends PathOption {
297
298
  constructor(id: string, fill: string, border: BorderModel, fillOpacity: number, cx: number, cy: number, r: number, dashArray: string);
298
299
  }
299
300
  /**
300
- * Internal use of polygon options
301
+ * Internal use of polygon options.
301
302
  *
302
303
  * @private
303
304
  */
@@ -306,7 +307,7 @@ export declare class PolygonOption extends PathOption {
306
307
  constructor(id: string, points: string, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
307
308
  }
308
309
  /**
309
- * Internal use of polyline options
310
+ * Internal use of polyline options.
310
311
  *
311
312
  * @private
312
313
  */
@@ -314,7 +315,7 @@ export declare class PolylineOption extends PolygonOption {
314
315
  constructor(id: string, points: string, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
315
316
  }
316
317
  /**
317
- * Internal use of line options
318
+ * Internal use of line options.
318
319
  *
319
320
  * @private
320
321
  */
@@ -326,7 +327,7 @@ export declare class LineOption extends PathOption {
326
327
  constructor(id: string, line: Line, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
327
328
  }
328
329
  /**
329
- * Internal use of line
330
+ * Internal use of line.
330
331
  *
331
332
  * @property {number} Line - Specifies the line class
332
333
  * @private
@@ -339,7 +340,7 @@ export declare class Line {
339
340
  constructor(x1: number, y1: number, x2: number, y2: number);
340
341
  }
341
342
  /**
342
- * Internal use of map location type
343
+ * Internal use of map location type.
343
344
  *
344
345
  * @private
345
346
  */
@@ -355,7 +356,7 @@ export declare class MapLocation {
355
356
  constructor(x: number, y: number);
356
357
  }
357
358
  /**
358
- * Internal use of type rect
359
+ * Internal use of type rect.
359
360
  *
360
361
  * @private
361
362
  */
@@ -395,7 +396,7 @@ export declare class PatternOptions {
395
396
  constructor(id: string, x: number, y: number, width: number, height: number, patternUnits?: patternUnits, patternContentUnits?: patternUnits, patternTransform?: string, href?: string);
396
397
  }
397
398
  /**
398
- * Internal rendering of text
399
+ * Internal rendering of text.
399
400
  *
400
401
  * @param {TextOption} option Specifies the text option
401
402
  * @param {FontModel} style Specifies the style
@@ -502,7 +503,8 @@ export declare function clusterTemplate(currentLayer: LayerSettings, markerTempl
502
503
  * @param {number} index - Specifies the index.
503
504
  * @param {number} indexCollection - Specifies the index Collection.
504
505
  * @returns {void}
505
- * @private */
506
+ * @private
507
+ */
506
508
  export declare function markerClusterListHandler(maps: Maps, currentZoomFactor: number, layerIndex: number, index: number, indexCollection: number[]): void;
507
509
  /**
508
510
  * @param {Element} tempElement - Specifies the temp element.
@@ -511,7 +513,8 @@ export declare function markerClusterListHandler(maps: Maps, currentZoomFactor:
511
513
  * @param {number[]} indexCollection - Specifies the index collection.
512
514
  * @param {number} p - Specifies the p.
513
515
  * @returns {void}
514
- * @private */
516
+ * @private
517
+ */
515
518
  export declare function markerBoundsComparer(tempElement: Element, markerBounds: ClientRect, colloideBounds: ClientRect[], indexCollection: number[], p: number): void;
516
519
  /**
517
520
  *
@@ -566,7 +569,7 @@ export declare function marker(eventArgs: IMarkerRenderingEventArgs, markerSetti
566
569
  */
567
570
  export declare function markerTemplate(eventArgs: IMarkerRenderingEventArgs, templateFn: any, markerID: string, data: any, markerIndex: number, markerTemplate: HTMLElement, location: Point, transPoint: Point, scale: number, offset: Point, maps: Maps): HTMLElement;
568
571
  /**
569
- * To maintain selection during page resize
572
+ * To maintain selection during page resize.
570
573
  *
571
574
  * @param {string[]} elementId - Specifies the element id
572
575
  * @param {Element} elementClass - Specifies the element class
@@ -577,7 +580,17 @@ export declare function markerTemplate(eventArgs: IMarkerRenderingEventArgs, tem
577
580
  */
578
581
  export declare function maintainSelection(elementId: string[], elementClass: Element, element: Element, className: string): void;
579
582
  /**
580
- * To maintain selection style class
583
+ * To maintain toggle state during page resize.
584
+ *
585
+ * @param {string[]} toggledElements - Specifies the list of toggled elements
586
+ * @param {Element} element - Specifies the element id
587
+ * @param {any} styleProperty - Specifies the style properties
588
+ * @returns {void}
589
+ * @private
590
+ */
591
+ export declare function maintainToggleSelection(toggledElements: string[], element: Element, styleProperty: any): void;
592
+ /**
593
+ * To maintain selection style class.
581
594
  *
582
595
  * @param {string} id - Specifies the id
583
596
  * @param {string} idClass - Specifies the class id
@@ -591,7 +604,7 @@ export declare function maintainSelection(elementId: string[], elementClass: Ele
591
604
  */
592
605
  export declare function maintainStyleClass(id: string, idClass: string, fill: string, opacity: string, borderColor: string, borderWidth: string, maps: Maps): void;
593
606
  /**
594
- * Internal use of append shape element
607
+ * Internal use of append shape element.
595
608
  *
596
609
  * @param {Element} shape - Specifies the shape
597
610
  * @param {Element} element - Specifies the element
@@ -600,7 +613,7 @@ export declare function maintainStyleClass(id: string, idClass: string, fill: st
600
613
  */
601
614
  export declare function appendShape(shape: Element, element: Element): Element;
602
615
  /**
603
- * Internal rendering of Circle
616
+ * Internal rendering of Circle.
604
617
  *
605
618
  * @param {Maps} maps - Specifies the instance of the maps
606
619
  * @param {CircleOption} options - Specifies the circle options
@@ -610,7 +623,7 @@ export declare function appendShape(shape: Element, element: Element): Element;
610
623
  */
611
624
  export declare function drawCircle(maps: Maps, options: CircleOption, element?: Element): Element;
612
625
  /**
613
- * Internal rendering of Rectangle
626
+ * Internal rendering of Rectangle.
614
627
  *
615
628
  * @param {Maps} maps - Specifies the instance of the maps
616
629
  * @param {RectOption} options - Specifies the rect options
@@ -620,7 +633,7 @@ export declare function drawCircle(maps: Maps, options: CircleOption, element?:
620
633
  */
621
634
  export declare function drawRectangle(maps: Maps, options: RectOption, element?: Element): Element;
622
635
  /**
623
- * Internal rendering of Path
636
+ * Internal rendering of Path.
624
637
  *
625
638
  * @param {Maps} maps - Specifies the instance of the maps
626
639
  * @param {PathOption} options - Specifies the polygon options
@@ -630,7 +643,7 @@ export declare function drawRectangle(maps: Maps, options: RectOption, element?:
630
643
  */
631
644
  export declare function drawPath(maps: Maps, options: PathOption, element?: Element): Element;
632
645
  /**
633
- * Internal rendering of Polygon
646
+ * Internal rendering of Polygon.
634
647
  *
635
648
  * @param {Maps} maps - Specifies the instance of the maps
636
649
  * @param {PolygonOption} options - Specifies the polygon options
@@ -640,7 +653,7 @@ export declare function drawPath(maps: Maps, options: PathOption, element?: Elem
640
653
  */
641
654
  export declare function drawPolygon(maps: Maps, options: PolygonOption, element?: Element): Element;
642
655
  /**
643
- * Internal rendering of Polyline
656
+ * Internal rendering of Polyline.
644
657
  *
645
658
  * @param {Maps} maps - Specifies the instance of the maps
646
659
  * @param {PolylineOption} options - Specifies the poly line options
@@ -650,7 +663,7 @@ export declare function drawPolygon(maps: Maps, options: PolygonOption, element?
650
663
  */
651
664
  export declare function drawPolyline(maps: Maps, options: PolylineOption, element?: Element): Element;
652
665
  /**
653
- * Internal rendering of Line
666
+ * Internal rendering of Line.
654
667
  *
655
668
  * @param {Maps} maps - Specifies the instance of the maps
656
669
  * @param {LineOption} options - Specifies the line options
@@ -660,7 +673,7 @@ export declare function drawPolyline(maps: Maps, options: PolylineOption, elemen
660
673
  */
661
674
  export declare function drawLine(maps: Maps, options: LineOption, element?: Element): Element;
662
675
  /**
663
- * Calculate marker shapes
676
+ * Calculate marker shapes.
664
677
  *
665
678
  * @param {Maps} maps - Specifies the instance of the maps
666
679
  * @param {MarkerType} shape - Specifies the marker type
@@ -673,7 +686,7 @@ export declare function drawLine(maps: Maps, options: LineOption, element?: Elem
673
686
  */
674
687
  export declare function calculateShapes(maps: Maps, shape: MarkerType, options: PathOption, size: Size, location: MapLocation, markerEle: Element): Element;
675
688
  /**
676
- * Internal rendering of Diamond
689
+ * Internal rendering of Diamond.
677
690
  *
678
691
  * @param {Maps} maps - Specifies the instance of the maps
679
692
  * @param {PathOption} options - Specifies the path options
@@ -685,7 +698,7 @@ export declare function calculateShapes(maps: Maps, shape: MarkerType, options:
685
698
  */
686
699
  export declare function drawDiamond(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
687
700
  /**
688
- * Internal rendering of Triangle
701
+ * Internal rendering of Triangle.
689
702
  *
690
703
  * @param {Maps} maps - Specifies the instance of the maps
691
704
  * @param {PathOption} options - Specifies the path options
@@ -697,7 +710,7 @@ export declare function drawDiamond(maps: Maps, options: PathOption, size: Size,
697
710
  */
698
711
  export declare function drawTriangle(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
699
712
  /**
700
- * Internal rendering of Cross
713
+ * Internal rendering of Cross.
701
714
  *
702
715
  * @param {Maps} maps - Specifies the instance of the maps
703
716
  * @param {PathOption} options - Specifies the path options
@@ -709,7 +722,7 @@ export declare function drawTriangle(maps: Maps, options: PathOption, size: Size
709
722
  */
710
723
  export declare function drawCross(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
711
724
  /**
712
- * Internal rendering of HorizontalLine
725
+ * Internal rendering of HorizontalLine.
713
726
  *
714
727
  * @param {Maps} maps - Specifies the instance of the maps
715
728
  * @param {PathOption} options - Specifies the path options
@@ -721,7 +734,7 @@ export declare function drawCross(maps: Maps, options: PathOption, size: Size, l
721
734
  */
722
735
  export declare function drawHorizontalLine(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
723
736
  /**
724
- * Internal rendering of VerticalLine
737
+ * Internal rendering of VerticalLine.
725
738
  *
726
739
  * @param {Maps} maps - Specifies the instance of the maps
727
740
  * @param {PathOption} options - Specifies the path options
@@ -733,7 +746,7 @@ export declare function drawHorizontalLine(maps: Maps, options: PathOption, size
733
746
  */
734
747
  export declare function drawVerticalLine(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
735
748
  /**
736
- * Internal rendering of Star
749
+ * Internal rendering of Star.
737
750
  *
738
751
  * @param {Maps} maps - Specifies the instance of the maps
739
752
  * @param {PathOption} options - Specifies the path options
@@ -745,7 +758,7 @@ export declare function drawVerticalLine(maps: Maps, options: PathOption, size:
745
758
  */
746
759
  export declare function drawStar(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
747
760
  /**
748
- * Internal rendering of Balloon
761
+ * Internal rendering of Balloon.
749
762
  *
750
763
  * @param {Maps} maps - Specifies the instance of the maps
751
764
  * @param {PathOption} options - Specifies the path options
@@ -758,7 +771,7 @@ export declare function drawStar(maps: Maps, options: PathOption, size: Size, lo
758
771
  */
759
772
  export declare function drawBalloon(maps: Maps, options: PathOption, size: Size, location: MapLocation, type: string, element?: Element): Element;
760
773
  /**
761
- * Internal rendering of Pattern
774
+ * Internal rendering of Pattern.
762
775
  *
763
776
  * @param {Maps} maps - Specifies the instance of the maps
764
777
  * @param {PatternOptions} options - Specifies the pattern options
@@ -778,7 +791,7 @@ export declare function drawPattern(maps: Maps, options: PatternOptions, element
778
791
  */
779
792
  export declare function getFieldData(dataSource: any[], fields: string[]): any[];
780
793
  /**
781
- * To find the index of dataSource from shape properties
794
+ * To find the index of dataSource from shape properties.
782
795
  *
783
796
  * @param {any[]} dataSource - Specifies the data source
784
797
  * @param {any} properties - Specifies the properties
@@ -818,7 +831,7 @@ export declare function filter(points: MapLocation[], start: number, end: number
818
831
  */
819
832
  export declare function getRatioOfBubble(min: number, max: number, value: number, minValue: number, maxValue: number): number;
820
833
  /**
821
- * To find the midpoint of the polygon from points
834
+ * To find the midpoint of the polygon from points.
822
835
  *
823
836
  * @param {MapLocation[]} points - Specifies the points
824
837
  * @param {string} type - Specifies the type
@@ -828,7 +841,7 @@ export declare function getRatioOfBubble(min: number, max: number, value: number
828
841
  */
829
842
  export declare function findMidPointOfPolygon(points: MapLocation[], type: string, geometryType?: string): any;
830
843
  /**
831
- * Check custom path
844
+ * Check custom path.
832
845
  *
833
846
  * @param {any[]} layerData - Specifies the layer data
834
847
  * @returns {boolean} - Returns the boolean vlue
@@ -836,7 +849,7 @@ export declare function findMidPointOfPolygon(points: MapLocation[], type: strin
836
849
  */
837
850
  export declare function isCustomPath(layerData: any[]): boolean;
838
851
  /**
839
- * Trim the title text
852
+ * Trim the title text.
840
853
  *
841
854
  * @param {number} maxWidth - Specifies the maximum width
842
855
  * @param {string} text - Specifies the text
@@ -849,7 +862,7 @@ export declare function isCustomPath(layerData: any[]): boolean;
849
862
  */
850
863
  export declare function textTrim(maxWidth: number, text: string, font: FontModel, width?: number, isCanvasMeasure?: boolean, widthList?: number[]): string;
851
864
  /**
852
- * Method to calculate x position of title
865
+ * Method to calculate x position of title.
853
866
  *
854
867
  * @param {Rect} location - Specifies the location
855
868
  * @param {Alignment} alignment - Specifies the alignment
@@ -860,7 +873,7 @@ export declare function textTrim(maxWidth: number, text: string, font: FontModel
860
873
  */
861
874
  export declare function findPosition(location: Rect, alignment: Alignment, textSize: Size, type: string): Point;
862
875
  /**
863
- * To remove element by id
876
+ * To remove element by id.
864
877
  *
865
878
  * @param {string} id - Specifies the id
866
879
  * @returns {void}
@@ -868,7 +881,7 @@ export declare function findPosition(location: Rect, alignment: Alignment, textS
868
881
  */
869
882
  export declare function removeElement(id: string): void;
870
883
  /**
871
- * To calculate map center position from pixel values
884
+ * To calculate map center position from pixel values.
872
885
  *
873
886
  * @param {Maps} mapObject - Specifies the map object
874
887
  * @param {LayerSettings} layer - Specifies the layer settings
@@ -893,7 +906,7 @@ export declare function getTranslate(mapObject: Maps, layer: LayerSettings, anim
893
906
  */
894
907
  export declare function getZoomTranslate(mapObject: Maps, layer: LayerSettings, animate?: boolean): any;
895
908
  /**
896
- * To get the html element by specified id
909
+ * To get the html element by specified id.
897
910
  *
898
911
  * @param {Maps} map - Specifies the instance of the maps
899
912
  * @returns {void}
@@ -901,7 +914,7 @@ export declare function getZoomTranslate(mapObject: Maps, layer: LayerSettings,
901
914
  */
902
915
  export declare function fixInitialScaleForTile(map: Maps): void;
903
916
  /**
904
- * To get the html element by specified id
917
+ * To get the html element by specified id.
905
918
  *
906
919
  * @param {string} id - Specifies the id
907
920
  * @returns {Element} - Returns the element
@@ -917,7 +930,7 @@ export declare function getElementByID(id: string): Element;
917
930
  */
918
931
  export declare function getClientElement(id: string): ClientRect;
919
932
  /**
920
- * To apply internalization
933
+ * To apply internalization.
921
934
  *
922
935
  * @param {Maps} maps - Specifies the instance of the maps
923
936
  * @param {number} value - Specifies the value
@@ -943,7 +956,7 @@ export declare function getTemplateFunction(template: string | Function, maps: M
943
956
  */
944
957
  export declare function getElement(id: string): Element;
945
958
  /**
946
- * Function to get shape data using target id
959
+ * Function to get shape data using target id.
947
960
  *
948
961
  * @param {string} targetId - Specifies the target id
949
962
  * @param {Maps} map - Specifies the instance of the maps
@@ -955,7 +968,7 @@ export declare function getShapeData(targetId: string, map: Maps): {
955
968
  data: any;
956
969
  };
957
970
  /**
958
- * Function to trigger shapeSelected event
971
+ * Function to trigger shapeSelected event.
959
972
  *
960
973
  * @param {string} targetId - Specifies the target id
961
974
  * @param {SelectionSettingsModel} selection - Specifies the selection
@@ -966,7 +979,7 @@ export declare function getShapeData(targetId: string, map: Maps): {
966
979
  */
967
980
  export declare function triggerShapeEvent(targetId: string, selection: SelectionSettingsModel, maps: Maps, eventName: string): IShapeSelectedEventArgs;
968
981
  /**
969
- * Function to get elements using class name
982
+ * Function to get elements using class name.
970
983
  *
971
984
  * @param {string} className - Specifies the class name
972
985
  * @returns {HTMLCollectionOf<Element>} - Returns the collection
@@ -977,7 +990,7 @@ export declare function getElementsByClassName(className: string): HTMLCollectio
977
990
  * Function to get elements using querySelectorAll
978
991
  */
979
992
  /**
980
- * Function to get elements using querySelector
993
+ * Function to get elements using querySelector.
981
994
  *
982
995
  * @param {string} args - Specifies the args
983
996
  * @param {string} elementSelector - Specifies the element selector
@@ -986,7 +999,7 @@ export declare function getElementsByClassName(className: string): HTMLCollectio
986
999
  */
987
1000
  export declare function querySelector(args: string, elementSelector: string): Element;
988
1001
  /**
989
- * Function to get the element for selection and highlight using public method
1002
+ * Function to get the element for selection and highlight using public method.
990
1003
  *
991
1004
  * @param {number} layerIndex - Specifies the layer index
992
1005
  * @param {string} name - Specifies the layer name
@@ -997,7 +1010,7 @@ export declare function querySelector(args: string, elementSelector: string): El
997
1010
  */
998
1011
  export declare function getTargetElement(layerIndex: number, name: string, enable: boolean, map: Maps): Element;
999
1012
  /**
1000
- * Function to create style element for highlight and selection
1013
+ * Function to create style element for highlight and selection.
1001
1014
  *
1002
1015
  * @param {string} id - Specifies the id
1003
1016
  * @param {string} className - Specifies the class name
@@ -1007,7 +1020,7 @@ export declare function getTargetElement(layerIndex: number, name: string, enabl
1007
1020
  */
1008
1021
  export declare function createStyle(id: string, className: string, eventArgs: IShapeSelectedEventArgs | any): Element;
1009
1022
  /**
1010
- * Function to customize the style for highlight and selection
1023
+ * Function to customize the style for highlight and selection.
1011
1024
  *
1012
1025
  * @param {string} id - Specifies the id
1013
1026
  * @param {string} className - Specifies the class name
@@ -1017,7 +1030,7 @@ export declare function createStyle(id: string, className: string, eventArgs: IS
1017
1030
  */
1018
1031
  export declare function customizeStyle(id: string, className: string, eventArgs: IShapeSelectedEventArgs | any): void;
1019
1032
  /**
1020
- * Function to trigger itemSelection event for legend selection and public method
1033
+ * Function to trigger itemSelection event for legend selection and public method.
1021
1034
  *
1022
1035
  * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
1023
1036
  * @param {Maps} map - Specifies the instance of the maps
@@ -1029,7 +1042,7 @@ export declare function customizeStyle(id: string, className: string, eventArgs:
1029
1042
  */
1030
1043
  export declare function triggerItemSelectionEvent(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, shapeData: object, data: object): void;
1031
1044
  /**
1032
- * Function to remove class from element
1045
+ * Function to remove class from element.
1033
1046
  *
1034
1047
  * @param {Element} element - Specifies the element
1035
1048
  * @returns {void}
@@ -1152,7 +1165,8 @@ export declare function changeNavaigationLineWidth(element: Element, index: numb
1152
1165
  /**
1153
1166
  * @param {PointerEvent | TouchEvent} event - Specifies the pointer or touch event
1154
1167
  * @returns {ITouches[]} - Returns the target
1155
- * @private */
1168
+ * @private
1169
+ */
1156
1170
  export declare function targetTouches(event: PointerEvent | TouchEvent): ITouches[];
1157
1171
  /**
1158
1172
  * @param {ITouches[]} startTouches - Specifies the start touches
@@ -1165,7 +1179,8 @@ export declare function calculateScale(startTouches: ITouches[], endTouches: ITo
1165
1179
  * @param {ITouches} a - Specifies the a value
1166
1180
  * @param {ITouches} b - Specifies the b value
1167
1181
  * @returns {number} - Returns the number
1168
- * @private */
1182
+ * @private
1183
+ */
1169
1184
  export declare function getDistance(a: ITouches, b: ITouches): number;
1170
1185
  /**
1171
1186
  * @param {ITouches[]} touches - Specifies the touches
@@ -1188,7 +1203,7 @@ export declare function getTouchCenter(touches: any[]): Point;
1188
1203
  */
1189
1204
  export declare function sum(a: number, b: number): number;
1190
1205
  /**
1191
- * Animation Effect Calculation End
1206
+ * Animation Effect Calculation End.
1192
1207
  *
1193
1208
  * @param {Element} element - Specifies the element.
1194
1209
  * @param {number} delay - Specifies the delay.
@@ -1202,7 +1217,7 @@ export declare function sum(a: number, b: number): number;
1202
1217
  */
1203
1218
  export declare function zoomAnimate(element: Element, delay: number, duration: number, point: MapLocation, scale: number, size: Size, maps: Maps): void;
1204
1219
  /**
1205
- * To process custom animation
1220
+ * To process custom animation.
1206
1221
  *
1207
1222
  * @param {Element} element - Specifies the element
1208
1223
  * @param {number} delay - Specifies the delay
@@ -1240,7 +1255,7 @@ export declare class MapAjax {
1240
1255
  constructor(options: string | any, type?: string, async?: boolean, contentType?: string, sendData?: string | any);
1241
1256
  }
1242
1257
  /**
1243
- * Animation Translate
1258
+ * Animation Translate.
1244
1259
  *
1245
1260
  * @param {Element} element - Specifies the element
1246
1261
  * @param {number} delay - Specifies the delay
@@ -1251,7 +1266,7 @@ export declare class MapAjax {
1251
1266
  */
1252
1267
  export declare function smoothTranslate(element: Element, delay: number, duration: number, point: MapLocation): void;
1253
1268
  /**
1254
- * To find compare should zoom factor with previous factor and current factor
1269
+ * To find compare should zoom factor with previous factor and current factor.
1255
1270
  *
1256
1271
  * @param {number} scaleFactor - Specifies the scale factor
1257
1272
  * @param {Maps} maps - Specifies the instance of the maps
@@ -1260,7 +1275,7 @@ export declare function smoothTranslate(element: Element, delay: number, duratio
1260
1275
  */
1261
1276
  export declare function compareZoomFactor(scaleFactor: number, maps: Maps): void;
1262
1277
  /**
1263
- * To find zoom level for the min and max latitude values
1278
+ * To find zoom level for the min and max latitude values.
1264
1279
  *
1265
1280
  * @param {number} minLat - Specifies the minimum latitude
1266
1281
  * @param {number} maxLat - Specifies the maximum latitude
@@ -1275,7 +1290,7 @@ export declare function compareZoomFactor(scaleFactor: number, maps: Maps): void
1275
1290
  */
1276
1291
  export declare function calculateZoomLevel(minLat: number, maxLat: number, minLong: number, maxLong: number, mapWidth: number, mapHeight: number, maps: Maps, isZoomToCoordinates: boolean): number;
1277
1292
  /**
1278
- * Method to get the result
1293
+ * Method to get the result.
1279
1294
  *
1280
1295
  * @param {any} e - Specifies the any type value
1281
1296
  * @returns {any} - Returns the data value