@syncfusion/ej2-maps 31.2.2 → 31.2.12
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/README.md +11 -2
- 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 +84 -53
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +87 -56
- 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 +18 -53
- package/src/maps/layers/layer-panel.js +86 -55
- package/dist/ts/index.d.ts +0 -4
- package/dist/ts/index.ts +0 -4
- package/dist/ts/maps/index.d.ts +0 -28
- package/dist/ts/maps/index.ts +0 -28
- package/dist/ts/maps/layers/bing-map.d.ts +0 -21
- package/dist/ts/maps/layers/bing-map.ts +0 -51
- package/dist/ts/maps/layers/bubble.d.ts +0 -77
- package/dist/ts/maps/layers/bubble.ts +0 -304
- package/dist/ts/maps/layers/color-mapping.d.ts +0 -36
- package/dist/ts/maps/layers/color-mapping.ts +0 -230
- package/dist/ts/maps/layers/data-label.d.ts +0 -45
- package/dist/ts/maps/layers/data-label.ts +0 -457
- package/dist/ts/maps/layers/layer-panel.d.ts +0 -144
- package/dist/ts/maps/layers/layer-panel.ts +0 -1455
- package/dist/ts/maps/layers/legend.d.ts +0 -173
- package/dist/ts/maps/layers/legend.ts +0 -2465
- package/dist/ts/maps/layers/marker.d.ts +0 -105
- package/dist/ts/maps/layers/marker.ts +0 -632
- package/dist/ts/maps/layers/navigation-selected-line.d.ts +0 -33
- package/dist/ts/maps/layers/navigation-selected-line.ts +0 -171
- package/dist/ts/maps/layers/polygon.d.ts +0 -30
- package/dist/ts/maps/layers/polygon.ts +0 -68
- package/dist/ts/maps/maps-model.d.ts +0 -409
- package/dist/ts/maps/maps.d.ts +0 -1247
- package/dist/ts/maps/maps.ts +0 -3416
- package/dist/ts/maps/model/base-model.d.ts +0 -2107
- package/dist/ts/maps/model/base.d.ts +0 -1840
- package/dist/ts/maps/model/base.ts +0 -2257
- package/dist/ts/maps/model/constants.d.ts +0 -225
- package/dist/ts/maps/model/constants.ts +0 -226
- package/dist/ts/maps/model/export-image.d.ts +0 -39
- package/dist/ts/maps/model/export-image.ts +0 -194
- package/dist/ts/maps/model/export-pdf.d.ts +0 -40
- package/dist/ts/maps/model/export-pdf.ts +0 -183
- package/dist/ts/maps/model/interface.d.ts +0 -892
- package/dist/ts/maps/model/interface.ts +0 -929
- package/dist/ts/maps/model/print.d.ts +0 -45
- package/dist/ts/maps/model/print.ts +0 -125
- package/dist/ts/maps/model/theme.d.ts +0 -98
- package/dist/ts/maps/model/theme.ts +0 -919
- package/dist/ts/maps/user-interaction/annotation.d.ts +0 -27
- package/dist/ts/maps/user-interaction/annotation.ts +0 -133
- package/dist/ts/maps/user-interaction/highlight.d.ts +0 -63
- package/dist/ts/maps/user-interaction/highlight.ts +0 -272
- package/dist/ts/maps/user-interaction/selection.d.ts +0 -85
- package/dist/ts/maps/user-interaction/selection.ts +0 -342
- package/dist/ts/maps/user-interaction/tooltip.d.ts +0 -78
- package/dist/ts/maps/user-interaction/tooltip.ts +0 -500
- package/dist/ts/maps/user-interaction/zoom.d.ts +0 -334
- package/dist/ts/maps/user-interaction/zoom.ts +0 -2523
- package/dist/ts/maps/utils/enum.d.ts +0 -328
- package/dist/ts/maps/utils/enum.ts +0 -343
- package/dist/ts/maps/utils/helper.d.ts +0 -1318
- package/dist/ts/maps/utils/helper.ts +0 -3811
|
@@ -1,334 +0,0 @@
|
|
|
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
|
-
}
|