@antv/l7-map 2.21.0 → 2.21.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/es/camera.js +595 -674
- package/es/earthmap.js +313 -276
- package/es/geo/edge_insets.js +57 -72
- package/es/geo/lng_lat.js +50 -64
- package/es/geo/lng_lat_bounds.js +101 -137
- package/es/geo/mercator.js +23 -35
- package/es/geo/point.js +150 -221
- package/es/geo/simple.js +22 -34
- package/es/geo/transform.js +839 -905
- package/es/handler/blockable_map_event.js +46 -66
- package/es/handler/box_zoom.js +125 -143
- package/es/handler/click_zoom.js +37 -51
- package/es/handler/events/event.js +11 -9
- package/es/handler/events/map_mouse_event.js +39 -54
- package/es/handler/events/map_touch_event.js +54 -73
- package/es/handler/events/map_wheel_event.js +22 -38
- package/es/handler/events/render_event.js +6 -23
- package/es/handler/handler_inertia.js +98 -113
- package/es/handler/handler_manager.js +349 -437
- package/es/handler/handler_util.js +2 -2
- package/es/handler/keyboard.js +98 -110
- package/es/handler/map_event.js +81 -117
- package/es/handler/mouse/mouse_handler.js +81 -100
- package/es/handler/mouse/mousepan_handler.js +16 -39
- package/es/handler/mouse/mousepitch_hander.js +18 -40
- package/es/handler/mouse/mouserotate_hander.js +18 -40
- package/es/handler/mouse/util.js +7 -6
- package/es/handler/scroll_zoom.js +221 -231
- package/es/handler/shim/dblclick_zoom.js +36 -47
- package/es/handler/shim/drag_pan.js +41 -50
- package/es/handler/shim/drag_rotate.js +38 -48
- package/es/handler/shim/touch_zoom_rotate.js +68 -79
- package/es/handler/tap/single_tap_recognizer.js +60 -80
- package/es/handler/tap/tap_drag_zoom.js +72 -89
- package/es/handler/tap/tap_recognizer.js +37 -45
- package/es/handler/tap/tap_zoom.js +67 -95
- package/es/handler/touch/touch_pan.js +77 -96
- package/es/handler/touch/touch_pitch.js +61 -79
- package/es/handler/touch/touch_rotate.js +47 -67
- package/es/handler/touch/touch_zoom.js +29 -46
- package/es/handler/touch/two_touch.js +79 -104
- package/es/hash.js +75 -88
- package/es/map.js +318 -284
- package/es/util.js +18 -37
- package/es/utils/Aabb.js +60 -100
- package/es/utils/dom.js +32 -55
- package/es/utils/performance.js +25 -29
- package/es/utils/primitives.js +33 -43
- package/es/utils/task_queue.js +47 -76
- package/lib/camera.d.ts +86 -0
- package/lib/camera.js +597 -672
- package/lib/earthmap.d.ts +69 -0
- package/lib/earthmap.js +314 -276
- package/lib/geo/edge_insets.d.ts +54 -0
- package/lib/geo/edge_insets.js +58 -70
- package/lib/geo/lng_lat.d.ts +18 -0
- package/lib/geo/lng_lat.js +50 -62
- package/lib/geo/lng_lat_bounds.d.ts +25 -0
- package/lib/geo/lng_lat_bounds.js +102 -136
- package/lib/geo/mercator.d.ts +30 -0
- package/lib/geo/mercator.js +26 -37
- package/lib/geo/point.d.ts +40 -0
- package/lib/geo/point.js +151 -220
- package/lib/geo/simple.d.ts +30 -0
- package/lib/geo/simple.js +25 -36
- package/lib/geo/transform.d.ts +198 -0
- package/lib/geo/transform.js +844 -907
- package/lib/handler/IHandler.d.ts +34 -0
- package/lib/handler/blockable_map_event.d.ts +17 -0
- package/lib/handler/blockable_map_event.js +48 -65
- package/lib/handler/box_zoom.d.ts +59 -0
- package/lib/handler/box_zoom.js +126 -143
- package/lib/handler/click_zoom.d.ts +16 -0
- package/lib/handler/click_zoom.js +38 -50
- package/lib/handler/events/event.d.ts +4 -0
- package/lib/handler/events/event.js +12 -9
- package/lib/handler/events/index.d.ts +4 -0
- package/lib/handler/events/index.js +3 -3
- package/lib/handler/events/map_mouse_event.d.ts +34 -0
- package/lib/handler/events/map_mouse_event.js +41 -52
- package/lib/handler/events/map_touch_event.d.ts +57 -0
- package/lib/handler/events/map_touch_event.js +56 -71
- package/lib/handler/events/map_wheel_event.d.ts +33 -0
- package/lib/handler/events/map_wheel_event.js +23 -37
- package/lib/handler/events/render_event.d.ts +5 -0
- package/lib/handler/events/render_event.js +7 -22
- package/lib/handler/handler_inertia.d.ts +23 -0
- package/lib/handler/handler_inertia.js +102 -112
- package/lib/handler/handler_manager.d.ts +61 -0
- package/lib/handler/handler_manager.js +351 -437
- package/lib/handler/handler_util.d.ts +4 -0
- package/lib/handler/handler_util.js +2 -2
- package/lib/handler/keyboard.d.ts +36 -0
- package/lib/handler/keyboard.js +98 -110
- package/lib/handler/map_event.d.ts +29 -0
- package/lib/handler/map_event.js +83 -116
- package/lib/handler/mouse/index.d.ts +4 -0
- package/lib/handler/mouse/index.js +3 -3
- package/lib/handler/mouse/mouse_handler.d.ts +22 -0
- package/lib/handler/mouse/mouse_handler.js +83 -99
- package/lib/handler/mouse/mousepan_handler.d.ts +10 -0
- package/lib/handler/mouse/mousepan_handler.js +19 -38
- package/lib/handler/mouse/mousepitch_hander.d.ts +9 -0
- package/lib/handler/mouse/mousepitch_hander.js +21 -39
- package/lib/handler/mouse/mouserotate_hander.d.ts +9 -0
- package/lib/handler/mouse/mouserotate_hander.js +21 -39
- package/lib/handler/mouse/util.d.ts +6 -0
- package/lib/handler/mouse/util.js +7 -7
- package/lib/handler/scroll_zoom.d.ts +93 -0
- package/lib/handler/scroll_zoom.js +221 -231
- package/lib/handler/shim/dblclick_zoom.d.ts +40 -0
- package/lib/handler/shim/dblclick_zoom.js +37 -46
- package/lib/handler/shim/drag_pan.d.ts +61 -0
- package/lib/handler/shim/drag_pan.js +42 -49
- package/lib/handler/shim/drag_rotate.d.ts +46 -0
- package/lib/handler/shim/drag_rotate.js +39 -47
- package/lib/handler/shim/touch_zoom_rotate.d.ts +70 -0
- package/lib/handler/shim/touch_zoom_rotate.js +69 -78
- package/lib/handler/tap/single_tap_recognizer.d.ts +20 -0
- package/lib/handler/tap/single_tap_recognizer.js +63 -79
- package/lib/handler/tap/tap_drag_zoom.d.ts +22 -0
- package/lib/handler/tap/tap_drag_zoom.js +74 -88
- package/lib/handler/tap/tap_recognizer.d.ts +17 -0
- package/lib/handler/tap/tap_recognizer.js +41 -47
- package/lib/handler/tap/tap_zoom.d.ts +22 -0
- package/lib/handler/tap/tap_zoom.js +69 -94
- package/lib/handler/touch/index.d.ts +5 -0
- package/lib/handler/touch/index.js +4 -4
- package/lib/handler/touch/touch_pan.d.ts +30 -0
- package/lib/handler/touch/touch_pan.js +79 -95
- package/lib/handler/touch/touch_pitch.d.ts +13 -0
- package/lib/handler/touch/touch_pitch.js +64 -78
- package/lib/handler/touch/touch_rotate.d.ts +12 -0
- package/lib/handler/touch/touch_rotate.js +50 -66
- package/lib/handler/touch/touch_zoom.d.ts +12 -0
- package/lib/handler/touch/touch_zoom.js +32 -45
- package/lib/handler/touch/two_touch.d.ts +23 -0
- package/lib/handler/touch/two_touch.js +81 -103
- package/lib/hash.d.ts +14 -0
- package/lib/hash.js +75 -88
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -4
- package/lib/interface.d.ts +34 -0
- package/lib/map.d.ts +70 -0
- package/lib/map.js +319 -284
- package/lib/util.d.ts +25 -0
- package/lib/util.js +20 -36
- package/lib/utils/Aabb.d.ts +12 -0
- package/lib/utils/Aabb.js +61 -99
- package/lib/utils/dom.d.ts +4 -0
- package/lib/utils/dom.js +34 -55
- package/lib/utils/performance.d.ts +17 -0
- package/lib/utils/performance.js +25 -29
- package/lib/utils/primitives.d.ts +6 -0
- package/lib/utils/primitives.js +34 -42
- package/lib/utils/task_queue.d.ts +13 -0
- package/lib/utils/task_queue.js +47 -76
- package/package.json +25 -32
|
@@ -5,142 +5,130 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _point = _interopRequireDefault(require("../geo/point"));
|
|
11
10
|
var _l7Utils = require("@antv/l7-utils");
|
|
12
11
|
var _util = require("../util");
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } // @ts-ignore
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
|
|
16
14
|
// tslint:disable-next-line:no-submodule-imports
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
merge
|
|
18
|
+
} = _l7Utils.lodashUtil;
|
|
19
|
+
const defaultInertiaOptions = {
|
|
19
20
|
linearity: 0.3,
|
|
20
21
|
easing: (0, _util.bezier)(0, 0, 0.3, 1)
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
const defaultPanInertiaOptions = merge({
|
|
23
24
|
deceleration: 2500,
|
|
24
25
|
maxSpeed: 1400
|
|
25
26
|
}, defaultInertiaOptions);
|
|
26
|
-
|
|
27
|
+
const defaultZoomInertiaOptions = merge({
|
|
27
28
|
deceleration: 20,
|
|
28
29
|
maxSpeed: 1400
|
|
29
30
|
}, defaultInertiaOptions);
|
|
30
|
-
|
|
31
|
+
const defaultBearingInertiaOptions = merge({
|
|
31
32
|
deceleration: 1000,
|
|
32
33
|
maxSpeed: 360
|
|
33
34
|
}, defaultInertiaOptions);
|
|
34
|
-
|
|
35
|
+
const defaultPitchInertiaOptions = merge({
|
|
35
36
|
deceleration: 1000,
|
|
36
37
|
maxSpeed: 90
|
|
37
38
|
}, defaultInertiaOptions);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
(0,
|
|
39
|
+
class HandlerInertia {
|
|
40
|
+
constructor(map) {
|
|
41
|
+
(0, _defineProperty2.default)(this, "map", void 0);
|
|
42
|
+
(0, _defineProperty2.default)(this, "inertiaBuffer", void 0);
|
|
41
43
|
this.map = map;
|
|
42
44
|
this.clear();
|
|
43
45
|
}
|
|
44
|
-
(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, {
|
|
59
|
-
key: "drainInertiaBuffer",
|
|
60
|
-
value: function drainInertiaBuffer() {
|
|
61
|
-
var inertia = this.inertiaBuffer;
|
|
62
|
-
var nowTime = (0, _util.now)();
|
|
63
|
-
var cutoff = 160; // msec
|
|
46
|
+
clear() {
|
|
47
|
+
this.inertiaBuffer = [];
|
|
48
|
+
}
|
|
49
|
+
record(settings) {
|
|
50
|
+
this.drainInertiaBuffer();
|
|
51
|
+
this.inertiaBuffer.push({
|
|
52
|
+
time: (0, _util.now)(),
|
|
53
|
+
settings
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
drainInertiaBuffer() {
|
|
57
|
+
const inertia = this.inertiaBuffer;
|
|
58
|
+
const nowTime = (0, _util.now)();
|
|
59
|
+
const cutoff = 160; // msec
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
61
|
+
while (inertia.length > 0 && nowTime - inertia[0].time > cutoff) {
|
|
62
|
+
inertia.shift();
|
|
68
63
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
deltas.pitch += settings.pitchDelta || 0;
|
|
92
|
-
if (settings.panDelta) {
|
|
93
|
-
deltas.pan._add(settings.panDelta);
|
|
94
|
-
}
|
|
95
|
-
if (settings.around) {
|
|
96
|
-
deltas.around = settings.around;
|
|
97
|
-
}
|
|
98
|
-
if (settings.pinchAround) {
|
|
99
|
-
deltas.pinchAround = settings.pinchAround;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
} catch (err) {
|
|
103
|
-
_iterator.e(err);
|
|
104
|
-
} finally {
|
|
105
|
-
_iterator.f();
|
|
106
|
-
}
|
|
107
|
-
var lastEntry = this.inertiaBuffer[this.inertiaBuffer.length - 1];
|
|
108
|
-
var duration = lastEntry.time - this.inertiaBuffer[0].time;
|
|
109
|
-
var easeOptions = {};
|
|
110
|
-
if (deltas.pan.mag()) {
|
|
111
|
-
var result = calculateEasing(deltas.pan.mag(), duration, merge({}, defaultPanInertiaOptions, panInertiaOptions || {}));
|
|
112
|
-
easeOptions.offset = deltas.pan.mult(result.amount / deltas.pan.mag());
|
|
113
|
-
easeOptions.center = this.map.transform.center;
|
|
114
|
-
extendDuration(easeOptions, result);
|
|
115
|
-
}
|
|
116
|
-
if (deltas.zoom) {
|
|
117
|
-
var _result = calculateEasing(deltas.zoom, duration, defaultZoomInertiaOptions);
|
|
118
|
-
easeOptions.zoom = this.map.transform.zoom + _result.amount;
|
|
119
|
-
extendDuration(easeOptions, _result);
|
|
120
|
-
}
|
|
121
|
-
if (deltas.bearing) {
|
|
122
|
-
var _result2 = calculateEasing(deltas.bearing, duration, defaultBearingInertiaOptions);
|
|
123
|
-
easeOptions.bearing = this.map.transform.bearing + (0, _util.clamp)(_result2.amount, -179, 179);
|
|
124
|
-
extendDuration(easeOptions, _result2);
|
|
64
|
+
}
|
|
65
|
+
onMoveEnd(panInertiaOptions) {
|
|
66
|
+
this.drainInertiaBuffer();
|
|
67
|
+
if (this.inertiaBuffer.length < 2) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const deltas = {
|
|
71
|
+
zoom: 0,
|
|
72
|
+
bearing: 0,
|
|
73
|
+
pitch: 0,
|
|
74
|
+
pan: new _point.default(0, 0),
|
|
75
|
+
pinchAround: undefined,
|
|
76
|
+
around: undefined
|
|
77
|
+
};
|
|
78
|
+
for (const {
|
|
79
|
+
settings
|
|
80
|
+
} of this.inertiaBuffer) {
|
|
81
|
+
deltas.zoom += settings.zoomDelta || 0;
|
|
82
|
+
deltas.bearing += settings.bearingDelta || 0;
|
|
83
|
+
deltas.pitch += settings.pitchDelta || 0;
|
|
84
|
+
if (settings.panDelta) {
|
|
85
|
+
deltas.pan._add(settings.panDelta);
|
|
125
86
|
}
|
|
126
|
-
if (
|
|
127
|
-
|
|
128
|
-
easeOptions.pitch = this.map.transform.pitch + _result3.amount;
|
|
129
|
-
extendDuration(easeOptions, _result3);
|
|
87
|
+
if (settings.around) {
|
|
88
|
+
deltas.around = settings.around;
|
|
130
89
|
}
|
|
131
|
-
if (
|
|
132
|
-
|
|
133
|
-
easeOptions.around = last ? this.map.unproject(last) : this.map.getCenter();
|
|
90
|
+
if (settings.pinchAround) {
|
|
91
|
+
deltas.pinchAround = settings.pinchAround;
|
|
134
92
|
}
|
|
135
|
-
this.clear();
|
|
136
|
-
return merge(easeOptions, {
|
|
137
|
-
noMoveStart: true
|
|
138
|
-
});
|
|
139
93
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
94
|
+
const lastEntry = this.inertiaBuffer[this.inertiaBuffer.length - 1];
|
|
95
|
+
const duration = lastEntry.time - this.inertiaBuffer[0].time;
|
|
96
|
+
const easeOptions = {};
|
|
97
|
+
if (deltas.pan.mag()) {
|
|
98
|
+
const result = calculateEasing(deltas.pan.mag(), duration, merge({}, defaultPanInertiaOptions, panInertiaOptions || {}));
|
|
99
|
+
easeOptions.offset = deltas.pan.mult(result.amount / deltas.pan.mag());
|
|
100
|
+
easeOptions.center = this.map.transform.center;
|
|
101
|
+
extendDuration(easeOptions, result);
|
|
102
|
+
}
|
|
103
|
+
if (deltas.zoom) {
|
|
104
|
+
const result = calculateEasing(deltas.zoom, duration, defaultZoomInertiaOptions);
|
|
105
|
+
easeOptions.zoom = this.map.transform.zoom + result.amount;
|
|
106
|
+
extendDuration(easeOptions, result);
|
|
107
|
+
}
|
|
108
|
+
if (deltas.bearing) {
|
|
109
|
+
const result = calculateEasing(deltas.bearing, duration, defaultBearingInertiaOptions);
|
|
110
|
+
easeOptions.bearing = this.map.transform.bearing + (0, _util.clamp)(result.amount, -179, 179);
|
|
111
|
+
extendDuration(easeOptions, result);
|
|
112
|
+
}
|
|
113
|
+
if (deltas.pitch) {
|
|
114
|
+
const result = calculateEasing(deltas.pitch, duration, defaultPitchInertiaOptions);
|
|
115
|
+
easeOptions.pitch = this.map.transform.pitch + result.amount;
|
|
116
|
+
extendDuration(easeOptions, result);
|
|
117
|
+
}
|
|
118
|
+
if (easeOptions.zoom || easeOptions.bearing) {
|
|
119
|
+
const last = deltas.pinchAround === undefined ? deltas.around : deltas.pinchAround;
|
|
120
|
+
easeOptions.around = last ? this.map.unproject(last) : this.map.getCenter();
|
|
121
|
+
}
|
|
122
|
+
this.clear();
|
|
123
|
+
return merge(easeOptions, {
|
|
124
|
+
noMoveStart: true
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Unfortunately zoom, bearing, etc can't have different durations and easings so
|
|
143
130
|
// we need to choose one. We use the longest duration and it's corresponding easing.
|
|
131
|
+
exports.default = HandlerInertia;
|
|
144
132
|
function extendDuration(easeOptions, result) {
|
|
145
133
|
if (!easeOptions.duration || easeOptions.duration < result.duration) {
|
|
146
134
|
easeOptions.duration = result.duration;
|
|
@@ -148,11 +136,13 @@ function extendDuration(easeOptions, result) {
|
|
|
148
136
|
}
|
|
149
137
|
}
|
|
150
138
|
function calculateEasing(amount, inertiaDuration, inertiaOptions) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
139
|
+
const {
|
|
140
|
+
maxSpeed,
|
|
141
|
+
linearity,
|
|
142
|
+
deceleration
|
|
143
|
+
} = inertiaOptions;
|
|
144
|
+
const speed = (0, _util.clamp)(amount * linearity / (inertiaDuration / 1000), -maxSpeed, maxSpeed);
|
|
145
|
+
const duration = Math.abs(speed) / (deceleration * linearity);
|
|
156
146
|
return {
|
|
157
147
|
easing: inertiaOptions.easing,
|
|
158
148
|
duration: duration * 1000,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { EarthMap } from '../earthmap';
|
|
2
|
+
import type { Map } from '../map';
|
|
3
|
+
import type { IHandlerResult } from './IHandler';
|
|
4
|
+
import RenderFrameEvent from './events/render_event';
|
|
5
|
+
export type InputEvent = MouseEvent | TouchEvent | KeyboardEvent | WheelEvent;
|
|
6
|
+
export interface IHandlerOptions {
|
|
7
|
+
interactive: boolean;
|
|
8
|
+
boxZoom: boolean;
|
|
9
|
+
dragRotate: boolean;
|
|
10
|
+
dragPan: boolean;
|
|
11
|
+
keyboard: boolean;
|
|
12
|
+
doubleClickZoom: boolean;
|
|
13
|
+
touchZoomRotate: boolean;
|
|
14
|
+
touchPitch: boolean;
|
|
15
|
+
trackResize: boolean;
|
|
16
|
+
renderWorldCopies: boolean;
|
|
17
|
+
bearingSnap: number;
|
|
18
|
+
clickTolerance: number;
|
|
19
|
+
pitchWithRotate: boolean;
|
|
20
|
+
pitchEnabled: boolean;
|
|
21
|
+
rotateEnabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare class HandlerManager {
|
|
24
|
+
private map;
|
|
25
|
+
private el;
|
|
26
|
+
private handlers;
|
|
27
|
+
private eventsInProgress;
|
|
28
|
+
private frameId;
|
|
29
|
+
private inertia;
|
|
30
|
+
private bearingSnap;
|
|
31
|
+
private handlersById;
|
|
32
|
+
private updatingCamera;
|
|
33
|
+
private changes;
|
|
34
|
+
private previousActiveHandlers;
|
|
35
|
+
private bearingChanged;
|
|
36
|
+
private rotateEnabled;
|
|
37
|
+
private pitchEnabled;
|
|
38
|
+
private listeners;
|
|
39
|
+
constructor(map: Map | EarthMap, options: IHandlerOptions);
|
|
40
|
+
destroy(): void;
|
|
41
|
+
stop(): void;
|
|
42
|
+
isActive(): boolean;
|
|
43
|
+
isZooming(): boolean;
|
|
44
|
+
isRotating(): boolean;
|
|
45
|
+
isMoving(): boolean;
|
|
46
|
+
handleWindowEvent: (e: InputEvent) => void;
|
|
47
|
+
handleEvent: (e: InputEvent | RenderFrameEvent, eventName?: string) => void;
|
|
48
|
+
mergeIHandlerResult(mergedIHandlerResult: IHandlerResult, eventsInProgress: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}, HandlerResult: IHandlerResult, name: string, e?: InputEvent): void;
|
|
51
|
+
triggerRenderFrame(): void;
|
|
52
|
+
private addDefaultHandlers;
|
|
53
|
+
private add;
|
|
54
|
+
private blockedByActive;
|
|
55
|
+
private getMapTouches;
|
|
56
|
+
private applyChanges;
|
|
57
|
+
private updateMapTransform;
|
|
58
|
+
private fireEvents;
|
|
59
|
+
private fireEvent;
|
|
60
|
+
}
|
|
61
|
+
export default HandlerManager;
|