@syncfusion/ej2-maps 30.2.4 → 31.1.17

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 (61) hide show
  1. package/.eslintrc.json +263 -0
  2. package/dist/ej2-maps.min.js +1 -1
  3. package/dist/ej2-maps.umd.min.js +1 -1
  4. package/dist/global/ej2-maps.min.js +1 -1
  5. package/dist/global/index.d.ts +1 -1
  6. package/dist/ts/index.d.ts +4 -0
  7. package/dist/ts/index.ts +4 -0
  8. package/dist/ts/maps/index.d.ts +28 -0
  9. package/dist/ts/maps/index.ts +28 -0
  10. package/dist/ts/maps/layers/bing-map.d.ts +21 -0
  11. package/dist/ts/maps/layers/bing-map.ts +51 -0
  12. package/dist/ts/maps/layers/bubble.d.ts +77 -0
  13. package/dist/ts/maps/layers/bubble.ts +304 -0
  14. package/dist/ts/maps/layers/color-mapping.d.ts +36 -0
  15. package/dist/ts/maps/layers/color-mapping.ts +230 -0
  16. package/dist/ts/maps/layers/data-label.d.ts +45 -0
  17. package/dist/ts/maps/layers/data-label.ts +457 -0
  18. package/dist/ts/maps/layers/layer-panel.d.ts +144 -0
  19. package/dist/ts/maps/layers/layer-panel.ts +1455 -0
  20. package/dist/ts/maps/layers/legend.d.ts +173 -0
  21. package/dist/ts/maps/layers/legend.ts +2465 -0
  22. package/dist/ts/maps/layers/marker.d.ts +105 -0
  23. package/dist/ts/maps/layers/marker.ts +632 -0
  24. package/dist/ts/maps/layers/navigation-selected-line.d.ts +33 -0
  25. package/dist/ts/maps/layers/navigation-selected-line.ts +171 -0
  26. package/dist/ts/maps/layers/polygon.d.ts +30 -0
  27. package/dist/ts/maps/layers/polygon.ts +68 -0
  28. package/dist/ts/maps/maps-model.d.ts +409 -0
  29. package/dist/ts/maps/maps.d.ts +1247 -0
  30. package/dist/ts/maps/maps.ts +3416 -0
  31. package/dist/ts/maps/model/base-model.d.ts +2107 -0
  32. package/dist/ts/maps/model/base.d.ts +1840 -0
  33. package/dist/ts/maps/model/base.ts +2257 -0
  34. package/dist/ts/maps/model/constants.d.ts +225 -0
  35. package/dist/ts/maps/model/constants.ts +226 -0
  36. package/dist/ts/maps/model/export-image.d.ts +39 -0
  37. package/dist/ts/maps/model/export-image.ts +194 -0
  38. package/dist/ts/maps/model/export-pdf.d.ts +40 -0
  39. package/dist/ts/maps/model/export-pdf.ts +183 -0
  40. package/dist/ts/maps/model/interface.d.ts +892 -0
  41. package/dist/ts/maps/model/interface.ts +929 -0
  42. package/dist/ts/maps/model/print.d.ts +45 -0
  43. package/dist/ts/maps/model/print.ts +125 -0
  44. package/dist/ts/maps/model/theme.d.ts +98 -0
  45. package/dist/ts/maps/model/theme.ts +919 -0
  46. package/dist/ts/maps/user-interaction/annotation.d.ts +27 -0
  47. package/dist/ts/maps/user-interaction/annotation.ts +133 -0
  48. package/dist/ts/maps/user-interaction/highlight.d.ts +63 -0
  49. package/dist/ts/maps/user-interaction/highlight.ts +272 -0
  50. package/dist/ts/maps/user-interaction/selection.d.ts +85 -0
  51. package/dist/ts/maps/user-interaction/selection.ts +342 -0
  52. package/dist/ts/maps/user-interaction/tooltip.d.ts +78 -0
  53. package/dist/ts/maps/user-interaction/tooltip.ts +500 -0
  54. package/dist/ts/maps/user-interaction/zoom.d.ts +334 -0
  55. package/dist/ts/maps/user-interaction/zoom.ts +2523 -0
  56. package/dist/ts/maps/utils/enum.d.ts +328 -0
  57. package/dist/ts/maps/utils/enum.ts +343 -0
  58. package/dist/ts/maps/utils/helper.d.ts +1318 -0
  59. package/dist/ts/maps/utils/helper.ts +3811 -0
  60. package/package.json +53 -18
  61. package/tslint.json +111 -0
@@ -0,0 +1,334 @@
1
+ import { Maps, ITouches } from '../../index';
2
+ import { Point, Rect } from '../utils/helper';
3
+ import { LayerSettings } from '../index';
4
+ import { PanDirection } from '../utils/enum';
5
+ /**
6
+ * Zoom module used to process the zoom for maps
7
+ */
8
+ export declare class Zoom {
9
+ private maps;
10
+ /** @private */
11
+ toolBarGroup: Element;
12
+ private currentToolbarEle;
13
+ /** @private */
14
+ zoomingRect: Rect;
15
+ /** @private */
16
+ selectionColor: string;
17
+ private fillColor;
18
+ private zoomElements;
19
+ private panElements;
20
+ /** @private */
21
+ isPanModeEnabled: boolean;
22
+ /** @private */
23
+ mouseEnter: boolean;
24
+ /** @private */
25
+ baseTranslatePoint: Point;
26
+ private wheelEvent;
27
+ private cancelEvent;
28
+ /** @private */
29
+ currentScale: number;
30
+ /** @private */
31
+ isTouch: boolean;
32
+ /** @private */
33
+ rectZoomingStart: boolean;
34
+ /** @private */
35
+ touchStartList: ITouches[] | TouchList;
36
+ /** @private */
37
+ touchMoveList: ITouches[] | TouchList;
38
+ /** @private */
39
+ previousTouchMoveList: ITouches[] | TouchList;
40
+ /** @private */
41
+ mouseDownPoints: Point;
42
+ /** @private */
43
+ mouseMovePoints: Point;
44
+ /** @private */
45
+ isDragZoom: boolean;
46
+ /** @private */
47
+ currentLayer: LayerSettings;
48
+ private panColor;
49
+ private clearTimeout;
50
+ /** @private */
51
+ zoomColor: string;
52
+ /** @private */
53
+ browserName: string;
54
+ /** @private */
55
+ isPointer: boolean;
56
+ private handled;
57
+ private fingers;
58
+ /** @private */
59
+ firstMove: boolean;
60
+ /** @private */
61
+ isPanningInProgress: boolean;
62
+ private isPan;
63
+ private isZoomFinal;
64
+ private isZoomSelection;
65
+ private interaction;
66
+ private lastScale;
67
+ private pinchFactor;
68
+ private startTouches;
69
+ private index;
70
+ private templateCount;
71
+ private pinchDistance;
72
+ /** @private */
73
+ startDistance: number;
74
+ /** @private */
75
+ touchCenter: Point;
76
+ /** @private */
77
+ pinchStartLatLong: object;
78
+ /** @private */
79
+ isCancellation: boolean;
80
+ private pinchTileZoomScale;
81
+ private tileZoomLevel;
82
+ private pinchZoomScale;
83
+ private isPinchZooming;
84
+ /** @private */
85
+ mouseDownLatLong: object;
86
+ /** @private */
87
+ mouseMoveLatLong: object;
88
+ /** @private */
89
+ isSingleClick: boolean;
90
+ /** @private */
91
+ layerCollectionEle: Element;
92
+ constructor(maps: Maps);
93
+ /**
94
+ * To perform zooming for maps.
95
+ *
96
+ * @param {Point} position - Specifies the position.
97
+ * @param {number} newZoomFactor - Specifies the zoom factor.
98
+ * @param {string} type - Specifies the type.
99
+ * @param {boolean} isMouseWheel - Indicates whether the zoom operation was triggered by the mouse wheel.
100
+ * @returns {void}
101
+ * @private
102
+ */
103
+ performZooming(position: Point, newZoomFactor: number, type: string, isMouseWheel?: boolean): void;
104
+ private calculateInitalZoomTranslatePoint;
105
+ private triggerZoomEvent;
106
+ private getTileTranslatePosition;
107
+ private getTileTranslate;
108
+ /**
109
+ * @returns {void}
110
+ * @private
111
+ */
112
+ performRectZooming(): void;
113
+ private setInteraction;
114
+ private updateInteraction;
115
+ private tilePinchingProcess;
116
+ /**
117
+ * @param {PointerEvent} e - Specifies the vent in the map
118
+ * @returns {void}
119
+ * @private
120
+ */
121
+ performPinchZooming(e: PointerEvent | TouchEvent): void;
122
+ private copyStyles;
123
+ private getTouchCenterPoint;
124
+ private triggerZoomComplete;
125
+ /**
126
+ * @returns {void}
127
+ * @private
128
+ */
129
+ drawZoomRectangle(): void;
130
+ /**
131
+ * To animate the zooming process.
132
+ *
133
+ * @param {Element} element - Specifies the element
134
+ * @param {boolean} animate - Specifies the boolean value
135
+ * @param {number} x - Specifies the x value
136
+ * @param {number} y - Specifies the y value
137
+ * @param {number} scale - Specifies the scale value
138
+ * @returns {void}
139
+ */
140
+ private animateTransform;
141
+ /**
142
+ * @param {Maps} maps - Specifies the Map control
143
+ * @param {boolean} isMouseWheel - Indicates whether the zoom operation was triggered by the mouse wheel.
144
+ * @param {boolean} animate - Specifies the animation is available or not
145
+ * @param {boolean} isPanning - Specifies that it is panning or not
146
+ * @returns {void}
147
+ * @private
148
+ */
149
+ applyTransform(maps: Maps, isMouseWheel?: boolean, animate?: boolean, isPanning?: boolean): void;
150
+ private markerTranslates;
151
+ /**
152
+ * To translate the layer template elements.
153
+ *
154
+ * @param {number} x - Specifies the x value
155
+ * @param {number} y - Specifies the y value
156
+ * @param {number} scale - Specifies the scale value
157
+ * @param {Maps} maps - Specifies the maps value
158
+ * @returns {void}
159
+ * @private
160
+ */
161
+ processTemplate(x: number, y: number, scale: number, maps: Maps): void;
162
+ private dataLabelTranslate;
163
+ /**
164
+ *
165
+ * @param {Element | HTMLElement} element - Specifies the marker element.
166
+ * @param {number} factor - Specifies scale factor.
167
+ * @param {number} x - Specifies the x location of the marker element.
168
+ * @param {number} y - Specifies the y location of the marker element.
169
+ * @param {number} scale - Specifies scale factor.
170
+ * @param {number} type - Specifies the type of the marker processing.
171
+ * @param {number} animate - Specifies whether the animation is enabled or not.
172
+ * @returns {void}
173
+ * @private
174
+ */
175
+ markerTranslate(element: Element | HTMLElement, factor: number, x: number, y: number, scale: number, type: string, animate?: boolean): void;
176
+ private markerLineAnimation;
177
+ /**
178
+ * @param {PanDirection} direction - Specifies the direction of the panning.
179
+ * @param {number} xDifference - Specifies the distance moved in the horizontal direction.
180
+ * @param {number} yDifference - Specifies the distance moved in the vertical direction.
181
+ * @param {PointerEvent | TouchEvent | KeyboardEvent} event - Specifies the pointer event argument.
182
+ * @returns {void}
183
+ * @private
184
+ */
185
+ panning(direction: PanDirection, xDifference: number, yDifference: number, event?: PointerEvent | TouchEvent | KeyboardEvent): void;
186
+ /**
187
+ * @param {number} zoomFactor - Specifies the factor for zooming
188
+ * @param {string} type - Specifies the type
189
+ * @returns {void}
190
+ * @private
191
+ */
192
+ toolBarZooming(zoomFactor: number, type: string): void;
193
+ /**
194
+ * @returns {void}
195
+ * @private
196
+ */
197
+ createZoomingToolbars(): void;
198
+ /**
199
+ * @param {PointerEvent} e - Specifies the event in the map
200
+ * @returns {void}
201
+ * @private
202
+ */
203
+ performToolBarAction(e: PointerEvent): void;
204
+ /**
205
+ * @param {string} type - Specifies the type.
206
+ * @returns {void}
207
+ * @private
208
+ */
209
+ performZoomingByToolBar(type: string): void;
210
+ private panningStyle;
211
+ private applySelection;
212
+ /**
213
+ * @param {PointerEvent} e - Specifies the event in the map
214
+ * @returns {void}
215
+ * @private
216
+ */
217
+ showTooltip(e: PointerEvent): void;
218
+ /**
219
+ * @returns {void}
220
+ * @private
221
+ */
222
+ removeTooltip(): void;
223
+ /**
224
+ * @returns {void}
225
+ * @private
226
+ */
227
+ alignToolBar(): void;
228
+ /**
229
+ * @param {number} factor - Specifies the factor for toolbar
230
+ * @param {string} id - Specifies the id
231
+ * @returns {void}
232
+ * @private
233
+ */
234
+ removeToolbarOpacity(factor: number, id: string): void;
235
+ private setOpacity;
236
+ private removeZoomOpacity;
237
+ /**
238
+ * @param {string} zoomClassStyle - Specifies the style for zoom class.
239
+ * @param {string} zoomInClassStyle - Specifies the style for zoom in.
240
+ * @param {string} zoomOutClassStyle - Specifies the style for zoom out.
241
+ * @param {string} panClassStyle - Specifies the style for pan.
242
+ * @param {string} resetClassStyle - Specifies the style for reset.
243
+ * @returns {void}
244
+ * @private
245
+ */
246
+ removeToolbarClass(zoomClassStyle: string, zoomInClassStyle: string, zoomOutClassStyle: string, panClassStyle: string, resetClassStyle: string): void;
247
+ private removePanColor;
248
+ private removeZoomColor;
249
+ /**
250
+ * To bind events.
251
+ *
252
+ * @param {Element} element - Specifies the element.
253
+ * @param {Function} process - Specifies the process.
254
+ * @returns {void}
255
+ * @private
256
+ */
257
+ wireEvents(element: Element, process: Function): void;
258
+ /**
259
+ * @param {WheelEvent} e - Specifies the wheel event in the map for zooming
260
+ * @returns {void}
261
+ * @private
262
+ */
263
+ mapMouseWheel(e: WheelEvent): void;
264
+ /**
265
+ * @param {PointerEvent} e - Specifies the event in the map
266
+ * @returns {void}
267
+ * @private
268
+ */
269
+ doubleClick(e: PointerEvent): void;
270
+ /**
271
+ * @param {PointerEvent} e - Specifies the event in the map
272
+ * @returns {void}
273
+ * @private
274
+ */
275
+ mouseDownHandler(e: PointerEvent | TouchEvent): void;
276
+ /**
277
+ * @param {PointerEvent} e - Specifies the event in the map
278
+ * @returns {void}
279
+ * @private
280
+ */
281
+ mouseMoveHandler(e: PointerEvent | TouchEvent): void;
282
+ /**
283
+ * @param {PointerEvent} e - Specifies the event in the map
284
+ * @returns {void}
285
+ * @private
286
+ */
287
+ mouseUpHandler(e: PointerEvent | TouchEvent): void;
288
+ /**
289
+ * @param {PointerEvent} e - Specifies the event in the map
290
+ * @returns {void}
291
+ * @private
292
+ */
293
+ mouseCancelHandler(e: PointerEvent): void;
294
+ /**
295
+ * To handle the click event for maps.
296
+ *
297
+ * @param {PointerEvent} e - Specifies the pointer event.
298
+ * @returns {void}
299
+ * @private
300
+ */
301
+ click(e: PointerEvent): void;
302
+ /**
303
+ * Gets the Mouse Position.
304
+ *
305
+ * @param {number} pageX - Specifies the Page x in map
306
+ * @param {number} pageY - Specifies the Page y in map
307
+ * @returns {Point} - returns the mouse point position
308
+ * @private
309
+ */
310
+ getMousePosition(pageX: number, pageY: number): Point;
311
+ /**
312
+ * @returns {void}
313
+ * @private
314
+ */
315
+ addEventListener(): void;
316
+ /**
317
+ * @returns {void}
318
+ * @private
319
+ */
320
+ removeEventListener(): void;
321
+ /**
322
+ * Get module name.
323
+ *
324
+ * @returns {string} - Returns the module name.
325
+ */
326
+ protected getModuleName(): string;
327
+ /**
328
+ * To destroy the zoom.
329
+ *
330
+ * @returns {void}
331
+ * @private
332
+ */
333
+ destroy(): void;
334
+ }