@antv/l7-map 2.18.0 → 2.18.2
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/package.json +3 -3
- package/es/camera.d.ts +0 -85
- package/es/camera.js +0 -718
- package/es/css/l7.css +0 -98
- package/es/earthmap.d.ts +0 -66
- package/es/earthmap.js +0 -369
- package/es/geo/edge_insets.d.ts +0 -54
- package/es/geo/edge_insets.js +0 -108
- package/es/geo/lng_lat.d.ts +0 -18
- package/es/geo/lng_lat.js +0 -73
- package/es/geo/lng_lat_bounds.d.ts +0 -24
- package/es/geo/lng_lat_bounds.js +0 -154
- package/es/geo/mercator.d.ts +0 -29
- package/es/geo/mercator.js +0 -84
- package/es/geo/point.d.ts +0 -40
- package/es/geo/point.js +0 -224
- package/es/geo/simple.d.ts +0 -29
- package/es/geo/simple.js +0 -87
- package/es/geo/transform.d.ts +0 -198
- package/es/geo/transform.js +0 -961
- package/es/handler/IHandler.d.ts +0 -34
- package/es/handler/IHandler.js +0 -1
- package/es/handler/blockable_map_event.d.ts +0 -17
- package/es/handler/blockable_map_event.js +0 -78
- package/es/handler/box_zoom.d.ts +0 -59
- package/es/handler/box_zoom.js +0 -180
- package/es/handler/click_zoom.d.ts +0 -16
- package/es/handler/click_zoom.js +0 -54
- package/es/handler/events/event.d.ts +0 -4
- package/es/handler/events/event.js +0 -11
- package/es/handler/events/index.d.ts +0 -4
- package/es/handler/events/index.js +0 -4
- package/es/handler/events/map_mouse_event.d.ts +0 -34
- package/es/handler/events/map_mouse_event.js +0 -64
- package/es/handler/events/map_touch_event.d.ts +0 -57
- package/es/handler/events/map_touch_event.js +0 -95
- package/es/handler/events/map_wheel_event.d.ts +0 -33
- package/es/handler/events/map_wheel_event.js +0 -50
- package/es/handler/events/render_event.d.ts +0 -5
- package/es/handler/events/render_event.js +0 -26
- package/es/handler/handler_inertia.d.ts +0 -23
- package/es/handler/handler_inertia.js +0 -157
- package/es/handler/handler_manager.d.ts +0 -61
- package/es/handler/handler_manager.js +0 -577
- package/es/handler/handler_util.d.ts +0 -4
- package/es/handler/handler_util.js +0 -9
- package/es/handler/keyboard.d.ts +0 -36
- package/es/handler/keyboard.js +0 -143
- package/es/handler/map_event.d.ts +0 -29
- package/es/handler/map_event.js +0 -125
- package/es/handler/mouse/index.d.ts +0 -4
- package/es/handler/mouse/index.js +0 -4
- package/es/handler/mouse/mouse_handler.d.ts +0 -22
- package/es/handler/mouse/mouse_handler.js +0 -118
- package/es/handler/mouse/mousepan_handler.d.ts +0 -10
- package/es/handler/mouse/mousepan_handler.js +0 -44
- package/es/handler/mouse/mousepitch_hander.d.ts +0 -9
- package/es/handler/mouse/mousepitch_hander.js +0 -46
- package/es/handler/mouse/mouserotate_hander.d.ts +0 -9
- package/es/handler/mouse/mouserotate_hander.js +0 -46
- package/es/handler/mouse/util.d.ts +0 -6
- package/es/handler/mouse/util.js +0 -11
- package/es/handler/scroll_zoom.d.ts +0 -93
- package/es/handler/scroll_zoom.js +0 -325
- package/es/handler/shim/dblclick_zoom.d.ts +0 -40
- package/es/handler/shim/dblclick_zoom.js +0 -67
- package/es/handler/shim/drag_pan.d.ts +0 -61
- package/es/handler/shim/drag_pan.js +0 -84
- package/es/handler/shim/drag_rotate.d.ts +0 -46
- package/es/handler/shim/drag_rotate.js +0 -74
- package/es/handler/shim/touch_zoom_rotate.d.ts +0 -70
- package/es/handler/shim/touch_zoom_rotate.js +0 -115
- package/es/handler/tap/single_tap_recognizer.d.ts +0 -20
- package/es/handler/tap/single_tap_recognizer.js +0 -97
- package/es/handler/tap/tap_drag_zoom.d.ts +0 -22
- package/es/handler/tap/tap_drag_zoom.js +0 -106
- package/es/handler/tap/tap_recognizer.d.ts +0 -17
- package/es/handler/tap/tap_recognizer.js +0 -54
- package/es/handler/tap/tap_zoom.d.ts +0 -22
- package/es/handler/tap/tap_zoom.js +0 -109
- package/es/handler/touch/index.d.ts +0 -5
- package/es/handler/touch/index.js +0 -5
- package/es/handler/touch/touch_pan.d.ts +0 -30
- package/es/handler/touch/touch_pan.js +0 -110
- package/es/handler/touch/touch_pitch.d.ts +0 -13
- package/es/handler/touch/touch_pitch.js +0 -93
- package/es/handler/touch/touch_rotate.d.ts +0 -12
- package/es/handler/touch/touch_rotate.js +0 -77
- package/es/handler/touch/touch_zoom.d.ts +0 -12
- package/es/handler/touch/touch_zoom.js +0 -54
- package/es/handler/touch/two_touch.d.ts +0 -23
- package/es/handler/touch/two_touch.js +0 -125
- package/es/hash.d.ts +0 -14
- package/es/hash.js +0 -134
- package/es/index.d.ts +0 -4
- package/es/index.js +0 -4
- package/es/interface.d.ts +0 -34
- package/es/interface.js +0 -1
- package/es/map.d.ts +0 -70
- package/es/map.js +0 -387
- package/es/util.d.ts +0 -25
- package/es/util.js +0 -88
- package/es/utils/Aabb.d.ts +0 -12
- package/es/utils/Aabb.js +0 -112
- package/es/utils/dom.d.ts +0 -4
- package/es/utils/dom.js +0 -140
- package/es/utils/performance.d.ts +0 -17
- package/es/utils/performance.js +0 -62
- package/es/utils/primitives.d.ts +0 -6
- package/es/utils/primitives.js +0 -47
- package/es/utils/task_queue.d.ts +0 -13
- package/es/utils/task_queue.js +0 -89
- package/lib/camera.js +0 -724
- package/lib/css/l7.css +0 -98
- package/lib/earthmap.js +0 -376
- package/lib/geo/edge_insets.js +0 -114
- package/lib/geo/lng_lat.js +0 -81
- package/lib/geo/lng_lat_bounds.js +0 -161
- package/lib/geo/mercator.js +0 -100
- package/lib/geo/point.js +0 -231
- package/lib/geo/simple.js +0 -104
- package/lib/geo/transform.js +0 -971
- package/lib/handler/IHandler.js +0 -5
- package/lib/handler/blockable_map_event.js +0 -84
- package/lib/handler/box_zoom.js +0 -186
- package/lib/handler/click_zoom.js +0 -61
- package/lib/handler/events/event.js +0 -20
- package/lib/handler/events/index.js +0 -27
- package/lib/handler/events/map_mouse_event.js +0 -70
- package/lib/handler/events/map_touch_event.js +0 -100
- package/lib/handler/events/map_wheel_event.js +0 -57
- package/lib/handler/events/render_event.js +0 -33
- package/lib/handler/handler_inertia.js +0 -162
- package/lib/handler/handler_manager.js +0 -584
- package/lib/handler/handler_util.js +0 -15
- package/lib/handler/keyboard.js +0 -151
- package/lib/handler/map_event.js +0 -131
- package/lib/handler/mouse/index.js +0 -27
- package/lib/handler/mouse/mouse_handler.js +0 -124
- package/lib/handler/mouse/mousepan_handler.js +0 -49
- package/lib/handler/mouse/mousepitch_hander.js +0 -51
- package/lib/handler/mouse/mouserotate_hander.js +0 -51
- package/lib/handler/mouse/util.js +0 -22
- package/lib/handler/scroll_zoom.js +0 -333
- package/lib/handler/shim/dblclick_zoom.js +0 -74
- package/lib/handler/shim/drag_pan.js +0 -91
- package/lib/handler/shim/drag_rotate.js +0 -81
- package/lib/handler/shim/touch_zoom_rotate.js +0 -122
- package/lib/handler/tap/single_tap_recognizer.js +0 -106
- package/lib/handler/tap/tap_drag_zoom.js +0 -112
- package/lib/handler/tap/tap_recognizer.js +0 -63
- package/lib/handler/tap/tap_zoom.js +0 -115
- package/lib/handler/touch/index.js +0 -34
- package/lib/handler/touch/touch_pan.js +0 -117
- package/lib/handler/touch/touch_pitch.js +0 -98
- package/lib/handler/touch/touch_rotate.js +0 -82
- package/lib/handler/touch/touch_zoom.js +0 -59
- package/lib/handler/touch/two_touch.js +0 -131
- package/lib/hash.js +0 -143
- package/lib/index.js +0 -49
- package/lib/interface.js +0 -5
- package/lib/map.js +0 -394
- package/lib/util.js +0 -108
- package/lib/utils/Aabb.js +0 -119
- package/lib/utils/dom.js +0 -147
- package/lib/utils/performance.js +0 -70
- package/lib/utils/primitives.js +0 -54
- package/lib/utils/task_queue.js +0 -97
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-map",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.2",
|
|
4
4
|
"description": "l7 map",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "thinkinggis <lzx199065@gmail.com>",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/antvis/L7#readme",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@antv/l7-utils": "2.18.
|
|
43
|
+
"@antv/l7-utils": "^2.18.2",
|
|
44
44
|
"@babel/runtime": "^7.7.7",
|
|
45
45
|
"@mapbox/point-geometry": "^0.1.0",
|
|
46
46
|
"@mapbox/unitbezier": "^0.0.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"gl-matrix": "^3.1.0",
|
|
49
49
|
"lodash-es": "^4.17.21"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "89de0cd3f4d2e6e71132577a2ae4e571e2acf0b8"
|
|
52
52
|
}
|
package/es/camera.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
import { IPaddingOptions } from './geo/edge_insets';
|
|
3
|
-
import LngLat, { LngLatLike } from './geo/lng_lat';
|
|
4
|
-
import { LngLatBoundsLike } from './geo/lng_lat_bounds';
|
|
5
|
-
import { PointLike } from './geo/point';
|
|
6
|
-
import Transform from './geo/transform';
|
|
7
|
-
import { IMapOptions } from './interface';
|
|
8
|
-
type CallBack = (_: number) => void;
|
|
9
|
-
export interface ICameraOptions {
|
|
10
|
-
center?: LngLatLike;
|
|
11
|
-
zoom?: number;
|
|
12
|
-
bearing?: number;
|
|
13
|
-
pitch?: number;
|
|
14
|
-
around?: LngLatLike;
|
|
15
|
-
padding?: IPaddingOptions;
|
|
16
|
-
}
|
|
17
|
-
export interface IAnimationOptions {
|
|
18
|
-
duration?: number;
|
|
19
|
-
easing?: (_: number) => number;
|
|
20
|
-
offset?: PointLike;
|
|
21
|
-
animate?: boolean;
|
|
22
|
-
essential?: boolean;
|
|
23
|
-
linear?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export default class Camera extends EventEmitter {
|
|
26
|
-
transform: Transform;
|
|
27
|
-
protected options: IMapOptions;
|
|
28
|
-
protected moving: boolean;
|
|
29
|
-
protected zooming: boolean;
|
|
30
|
-
protected rotating: boolean;
|
|
31
|
-
protected pitching: boolean;
|
|
32
|
-
protected padding: boolean;
|
|
33
|
-
private bearingSnap;
|
|
34
|
-
private easeEndTimeoutID;
|
|
35
|
-
private easeStart;
|
|
36
|
-
private easeOptions;
|
|
37
|
-
private easeId;
|
|
38
|
-
private onEaseFrame;
|
|
39
|
-
private onEaseEnd;
|
|
40
|
-
private easeFrameId;
|
|
41
|
-
private pitchEnabled;
|
|
42
|
-
private rotateEnabled;
|
|
43
|
-
constructor(options: IMapOptions);
|
|
44
|
-
requestRenderFrame(cb: CallBack): number;
|
|
45
|
-
cancelRenderFrame(_: number): void;
|
|
46
|
-
getCenter(): LngLat;
|
|
47
|
-
getZoom(): number;
|
|
48
|
-
getPitch(): number;
|
|
49
|
-
setCenter(center: LngLatLike, eventData?: any): boolean;
|
|
50
|
-
setPitch(pitch: number, eventData?: any): this;
|
|
51
|
-
getBearing(): number;
|
|
52
|
-
panTo(lnglat: LngLatLike, options?: IAnimationOptions, eventData?: any): this;
|
|
53
|
-
panBy(offset: PointLike, options?: IAnimationOptions, eventData?: any): this;
|
|
54
|
-
zoomOut(options?: IAnimationOptions, eventData?: any): this;
|
|
55
|
-
setBearing(bearing: number, eventData?: any): this;
|
|
56
|
-
setZoom(zoom: number, eventData?: any): this;
|
|
57
|
-
zoomIn(options?: IAnimationOptions, eventData?: any): this;
|
|
58
|
-
zoomTo(zoom: number, options?: IAnimationOptions, eventData?: any): this;
|
|
59
|
-
getPadding(): IPaddingOptions;
|
|
60
|
-
setPadding(padding: IPaddingOptions, eventData?: any): this;
|
|
61
|
-
rotateTo(bearing: number, options?: IAnimationOptions, eventData?: any): this;
|
|
62
|
-
resetNorth(options?: IAnimationOptions, eventData?: any): this;
|
|
63
|
-
resetNorthPitch(options?: IAnimationOptions, eventData?: any): this;
|
|
64
|
-
fitBounds(bounds: LngLatBoundsLike, options?: IAnimationOptions & ICameraOptions, eventData?: any): boolean | this;
|
|
65
|
-
cameraForBounds(bounds: LngLatBoundsLike, options?: ICameraOptions): void | (ICameraOptions & IAnimationOptions);
|
|
66
|
-
snapToNorth(options?: IAnimationOptions, eventData?: any): this;
|
|
67
|
-
jumpTo(options?: ICameraOptions, eventData?: any): boolean;
|
|
68
|
-
easeTo(options?: ICameraOptions & IAnimationOptions & {
|
|
69
|
-
easeId?: string;
|
|
70
|
-
noMoveStart?: boolean;
|
|
71
|
-
}, eventData?: any): this;
|
|
72
|
-
flyTo(options?: any, eventData?: any): boolean | this;
|
|
73
|
-
fitScreenCoordinates(p0: PointLike, p1: PointLike, bearing: number, options?: IAnimationOptions & ICameraOptions, eventData?: any): boolean | this;
|
|
74
|
-
stop(allowGestures?: boolean, easeId?: string): this;
|
|
75
|
-
renderFrameCallback: () => void;
|
|
76
|
-
private normalizeBearing;
|
|
77
|
-
private normalizeCenter;
|
|
78
|
-
private fireMoveEvents;
|
|
79
|
-
private prepareEase;
|
|
80
|
-
private afterEase;
|
|
81
|
-
private ease;
|
|
82
|
-
private cameraForBoxAndBearing;
|
|
83
|
-
private fitInternal;
|
|
84
|
-
}
|
|
85
|
-
export {};
|