ol 10.4.1-dev.1741027879681 → 10.4.1-dev.1741028431407
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/Map.d.ts +5 -5
- package/Map.d.ts.map +1 -1
- package/Map.js +2 -4
- package/MapBrowserEvent.d.ts +2 -2
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/events/condition.d.ts +19 -19
- package/events/condition.d.ts.map +1 -1
- package/events/condition.js +26 -53
- package/interaction/DblClickDragZoom.d.ts +21 -7
- package/interaction/DblClickDragZoom.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.js +12 -6
- package/interaction/DragBox.d.ts +6 -6
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/Draw.d.ts +23 -1
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +4 -4
- package/interaction/Interaction.d.ts +2 -2
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Modify.d.ts +2 -2
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Pointer.d.ts +9 -9
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Select.d.ts +2 -2
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Translate.d.ts +2 -2
- package/interaction/Translate.d.ts.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
package/events/condition.d.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* @return {Condition} Condition function.
|
|
11
11
|
*/
|
|
12
12
|
export function all(...args: Condition[]): Condition;
|
|
13
|
-
export function altKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
14
|
-
export function altShiftKeysOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
15
|
-
export function focus(event: import("../MapBrowserEvent.js").default
|
|
16
|
-
export function focusWithTabindex(event: import("../MapBrowserEvent.js").default
|
|
13
|
+
export function altKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
14
|
+
export function altShiftKeysOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
15
|
+
export function focus(event: import("../MapBrowserEvent.js").default): boolean;
|
|
16
|
+
export function focusWithTabindex(event: import("../MapBrowserEvent.js").default): boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Return always true.
|
|
19
19
|
*
|
|
@@ -22,8 +22,8 @@ export function focusWithTabindex(event: import("../MapBrowserEvent.js").default
|
|
|
22
22
|
* @api
|
|
23
23
|
*/
|
|
24
24
|
export const always: typeof TRUE;
|
|
25
|
-
export function click(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
26
|
-
export function mouseActionButton(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
25
|
+
export function click(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
26
|
+
export function mouseActionButton(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Return always false.
|
|
29
29
|
*
|
|
@@ -32,23 +32,23 @@ export function mouseActionButton(mapBrowserEvent: import("../MapBrowserEvent.js
|
|
|
32
32
|
* @api
|
|
33
33
|
*/
|
|
34
34
|
export const never: typeof FALSE;
|
|
35
|
-
export function pointerMove(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
36
|
-
export function singleClick(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
37
|
-
export function doubleClick(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
38
|
-
export function noModifierKeys(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
39
|
-
export function platformModifierKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
40
|
-
export function platformModifierKey(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
41
|
-
export function shiftKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
42
|
-
export function targetNotEditable(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
43
|
-
export function mouseOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
44
|
-
export function touchOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
45
|
-
export function penOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
46
|
-
export function primaryAction(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
35
|
+
export function pointerMove(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
36
|
+
export function singleClick(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
37
|
+
export function doubleClick(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
38
|
+
export function noModifierKeys(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
39
|
+
export function platformModifierKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
40
|
+
export function platformModifierKey(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
41
|
+
export function shiftKeyOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
42
|
+
export function targetNotEditable(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
43
|
+
export function mouseOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
44
|
+
export function touchOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
45
|
+
export function penOnly(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
46
|
+
export function primaryAction(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
47
47
|
/**
|
|
48
48
|
* A function that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
49
49
|
* `{boolean}`. If the condition is met, true should be returned.
|
|
50
50
|
*/
|
|
51
|
-
export type Condition = (this: unknown, arg1: import("../MapBrowserEvent.js").default
|
|
51
|
+
export type Condition = (this: unknown, arg1: import("../MapBrowserEvent.js").default) => boolean;
|
|
52
52
|
import { TRUE } from '../functions.js';
|
|
53
53
|
import { FALSE } from '../functions.js';
|
|
54
54
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["condition.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["condition.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;GAIG;AACH,2CAFY,SAAS,CAkBpB;AAUM,4CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAUlB;AAUM,kDAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAUlB;AAUM,6BAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAWlB;AAQM,yCAHI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CASlB;AAED;;;;;;GAMG;AACH,iCAA2B;AASpB,uCAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAKlB;AAWM,mDAHI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CASlB;AAED;;;;;;GAMG;AACH,iCAA2B;AAUpB,6CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAKlB;AASM,6CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAKlB;AASM,6CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAKlB;AAUM,gDAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAYlB;AAWM,yDAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAUlB;AAUM,qDAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAMlB;AAUM,8CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAUlB;AAWM,mDAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAelB;AASM,2CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CASlB;AASM,2CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CASlB;AASM,yCAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAOlB;AAWM,+CAJI,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAUlB;;;;;wBAnUY,CAAS,IAAO,EAAD,OAAC,EAAE,IAAuC,EAAvC,OAAO,uBAAuB,EAAE,OAAO,KAAG,OAAO;qBAPtD,iBAAiB;sBAAjB,iBAAiB"}
|
package/events/condition.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @module ol/events/condition
|
|
3
3
|
*/
|
|
4
4
|
import MapBrowserEventType from '../MapBrowserEventType.js';
|
|
5
|
-
import {assert} from '../asserts.js';
|
|
6
5
|
import {FALSE, TRUE} from '../functions.js';
|
|
7
6
|
import {MAC, WEBKIT} from '../has.js';
|
|
8
7
|
|
|
@@ -45,9 +44,7 @@ export function all(var_args) {
|
|
|
45
44
|
* @api
|
|
46
45
|
*/
|
|
47
46
|
export const altKeyOnly = function (mapBrowserEvent) {
|
|
48
|
-
const originalEvent =
|
|
49
|
-
mapBrowserEvent.originalEvent
|
|
50
|
-
);
|
|
47
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
51
48
|
return (
|
|
52
49
|
originalEvent.altKey &&
|
|
53
50
|
!(originalEvent.metaKey || originalEvent.ctrlKey) &&
|
|
@@ -64,9 +61,7 @@ export const altKeyOnly = function (mapBrowserEvent) {
|
|
|
64
61
|
* @api
|
|
65
62
|
*/
|
|
66
63
|
export const altShiftKeysOnly = function (mapBrowserEvent) {
|
|
67
|
-
const originalEvent =
|
|
68
|
-
mapBrowserEvent.originalEvent
|
|
69
|
-
);
|
|
64
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
70
65
|
return (
|
|
71
66
|
originalEvent.altKey &&
|
|
72
67
|
!(originalEvent.metaKey || originalEvent.ctrlKey) &&
|
|
@@ -137,10 +132,12 @@ export const click = function (mapBrowserEvent) {
|
|
|
137
132
|
* @return {boolean} The result.
|
|
138
133
|
*/
|
|
139
134
|
export const mouseActionButton = function (mapBrowserEvent) {
|
|
140
|
-
const originalEvent =
|
|
141
|
-
|
|
135
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
136
|
+
return (
|
|
137
|
+
originalEvent instanceof PointerEvent &&
|
|
138
|
+
originalEvent.button == 0 &&
|
|
139
|
+
!(WEBKIT && MAC && originalEvent.ctrlKey)
|
|
142
140
|
);
|
|
143
|
-
return originalEvent.button == 0 && !(WEBKIT && MAC && originalEvent.ctrlKey);
|
|
144
141
|
};
|
|
145
142
|
|
|
146
143
|
/**
|
|
@@ -215,9 +212,7 @@ export const noModifierKeys = function (mapBrowserEvent) {
|
|
|
215
212
|
* @api
|
|
216
213
|
*/
|
|
217
214
|
export const platformModifierKeyOnly = function (mapBrowserEvent) {
|
|
218
|
-
const originalEvent =
|
|
219
|
-
mapBrowserEvent.originalEvent
|
|
220
|
-
);
|
|
215
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
221
216
|
return (
|
|
222
217
|
!originalEvent.altKey &&
|
|
223
218
|
(MAC ? originalEvent.metaKey : originalEvent.ctrlKey) &&
|
|
@@ -234,9 +229,7 @@ export const platformModifierKeyOnly = function (mapBrowserEvent) {
|
|
|
234
229
|
* @api
|
|
235
230
|
*/
|
|
236
231
|
export const platformModifierKey = function (mapBrowserEvent) {
|
|
237
|
-
const originalEvent =
|
|
238
|
-
mapBrowserEvent.originalEvent
|
|
239
|
-
);
|
|
232
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
240
233
|
return MAC ? originalEvent.metaKey : originalEvent.ctrlKey;
|
|
241
234
|
};
|
|
242
235
|
|
|
@@ -249,9 +242,7 @@ export const platformModifierKey = function (mapBrowserEvent) {
|
|
|
249
242
|
* @api
|
|
250
243
|
*/
|
|
251
244
|
export const shiftKeyOnly = function (mapBrowserEvent) {
|
|
252
|
-
const originalEvent =
|
|
253
|
-
mapBrowserEvent.originalEvent
|
|
254
|
-
);
|
|
245
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
255
246
|
return (
|
|
256
247
|
!originalEvent.altKey &&
|
|
257
248
|
!(originalEvent.metaKey || originalEvent.ctrlKey) &&
|
|
@@ -269,9 +260,7 @@ export const shiftKeyOnly = function (mapBrowserEvent) {
|
|
|
269
260
|
* @api
|
|
270
261
|
*/
|
|
271
262
|
export const targetNotEditable = function (mapBrowserEvent) {
|
|
272
|
-
const originalEvent =
|
|
273
|
-
mapBrowserEvent.originalEvent
|
|
274
|
-
);
|
|
263
|
+
const originalEvent = mapBrowserEvent.originalEvent;
|
|
275
264
|
const tagName = /** @type {Element} */ (originalEvent.target).tagName;
|
|
276
265
|
return (
|
|
277
266
|
tagName !== 'INPUT' &&
|
|
@@ -292,15 +281,11 @@ export const targetNotEditable = function (mapBrowserEvent) {
|
|
|
292
281
|
* @api
|
|
293
282
|
*/
|
|
294
283
|
export const mouseOnly = function (mapBrowserEvent) {
|
|
295
|
-
const pointerEvent =
|
|
296
|
-
mapBrowserEvent
|
|
297
|
-
).originalEvent;
|
|
298
|
-
assert(
|
|
299
|
-
pointerEvent !== undefined,
|
|
300
|
-
'mapBrowserEvent must originate from a pointer event',
|
|
301
|
-
);
|
|
284
|
+
const pointerEvent = mapBrowserEvent.originalEvent;
|
|
302
285
|
// see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType
|
|
303
|
-
return
|
|
286
|
+
return (
|
|
287
|
+
pointerEvent instanceof PointerEvent && pointerEvent.pointerType == 'mouse'
|
|
288
|
+
);
|
|
304
289
|
};
|
|
305
290
|
|
|
306
291
|
/**
|
|
@@ -311,15 +296,11 @@ export const mouseOnly = function (mapBrowserEvent) {
|
|
|
311
296
|
* @api
|
|
312
297
|
*/
|
|
313
298
|
export const touchOnly = function (mapBrowserEvent) {
|
|
314
|
-
const pointerEvt =
|
|
315
|
-
mapBrowserEvent
|
|
316
|
-
).originalEvent;
|
|
317
|
-
assert(
|
|
318
|
-
pointerEvt !== undefined,
|
|
319
|
-
'mapBrowserEvent must originate from a pointer event',
|
|
320
|
-
);
|
|
299
|
+
const pointerEvt = mapBrowserEvent.originalEvent;
|
|
321
300
|
// see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType
|
|
322
|
-
return
|
|
301
|
+
return (
|
|
302
|
+
pointerEvt instanceof PointerEvent && pointerEvt.pointerType === 'touch'
|
|
303
|
+
);
|
|
323
304
|
};
|
|
324
305
|
|
|
325
306
|
/**
|
|
@@ -330,15 +311,9 @@ export const touchOnly = function (mapBrowserEvent) {
|
|
|
330
311
|
* @api
|
|
331
312
|
*/
|
|
332
313
|
export const penOnly = function (mapBrowserEvent) {
|
|
333
|
-
const pointerEvt =
|
|
334
|
-
mapBrowserEvent
|
|
335
|
-
).originalEvent;
|
|
336
|
-
assert(
|
|
337
|
-
pointerEvt !== undefined,
|
|
338
|
-
'mapBrowserEvent must originate from a pointer event',
|
|
339
|
-
);
|
|
314
|
+
const pointerEvt = mapBrowserEvent.originalEvent;
|
|
340
315
|
// see https://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType
|
|
341
|
-
return pointerEvt.pointerType === 'pen';
|
|
316
|
+
return pointerEvt instanceof PointerEvent && pointerEvt.pointerType === 'pen';
|
|
342
317
|
};
|
|
343
318
|
|
|
344
319
|
/**
|
|
@@ -351,12 +326,10 @@ export const penOnly = function (mapBrowserEvent) {
|
|
|
351
326
|
* @api
|
|
352
327
|
*/
|
|
353
328
|
export const primaryAction = function (mapBrowserEvent) {
|
|
354
|
-
const pointerEvent =
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
pointerEvent
|
|
359
|
-
'mapBrowserEvent must originate from a pointer event',
|
|
329
|
+
const pointerEvent = mapBrowserEvent.originalEvent;
|
|
330
|
+
return (
|
|
331
|
+
pointerEvent instanceof PointerEvent &&
|
|
332
|
+
pointerEvent.isPrimary &&
|
|
333
|
+
pointerEvent.button === 0
|
|
360
334
|
);
|
|
361
|
-
return pointerEvent.isPrimary && pointerEvent.button === 0;
|
|
362
335
|
};
|
|
@@ -70,34 +70,48 @@ declare class DblClickDragZoom extends Interaction {
|
|
|
70
70
|
* @private
|
|
71
71
|
*/
|
|
72
72
|
private trackedPointers_;
|
|
73
|
+
/**
|
|
74
|
+
* @type {PointerEvent|null}
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
private down_;
|
|
73
78
|
/**
|
|
74
79
|
* @type {Array<PointerEvent>}
|
|
75
80
|
* @protected
|
|
76
81
|
*/
|
|
77
82
|
protected targetPointers: Array<PointerEvent>;
|
|
83
|
+
/**
|
|
84
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may call into
|
|
85
|
+
* other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are
|
|
86
|
+
* detected.
|
|
87
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Map browser event.
|
|
88
|
+
* @return {boolean} `false` to stop event propagation.
|
|
89
|
+
* @api
|
|
90
|
+
* @override
|
|
91
|
+
*/
|
|
92
|
+
override handleEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default<PointerEvent>): boolean;
|
|
78
93
|
/**
|
|
79
94
|
* Handle pointer drag events.
|
|
80
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
95
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
81
96
|
*/
|
|
82
|
-
handleDragEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default<
|
|
97
|
+
handleDragEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default<PointerEvent>): void;
|
|
83
98
|
lastDistance_: number | undefined;
|
|
84
99
|
lastScaleDelta_: number | undefined;
|
|
85
100
|
/**
|
|
86
101
|
* Handle pointer down events.
|
|
87
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
102
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
88
103
|
* @return {boolean} If the event was consumed.
|
|
89
104
|
*/
|
|
90
|
-
handleDownEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default<
|
|
105
|
+
handleDownEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default<PointerEvent>): boolean;
|
|
91
106
|
anchor_: any;
|
|
92
|
-
down_: import("../MapBrowserEvent.js").default<any> | undefined;
|
|
93
107
|
/**
|
|
94
108
|
* Handle pointer up events zooming out.
|
|
95
109
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
96
110
|
* @return {boolean} If the event was consumed.
|
|
97
111
|
*/
|
|
98
|
-
handleUpEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
112
|
+
handleUpEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
99
113
|
/**
|
|
100
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
114
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
101
115
|
* @private
|
|
102
116
|
*/
|
|
103
117
|
private updateTrackedPointers_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DblClickDragZoom.d.ts","sourceRoot":"","sources":["DblClickDragZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;uBAUuB,OAAO,KAAE,OAAO;;AAJvC;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,0BAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"DblClickDragZoom.d.ts","sourceRoot":"","sources":["DblClickDragZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;uBAUuB,OAAO,KAAE,OAAO;;AAJvC;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,0BAFW,OAAO,EA4DjB;IA6GD;;;;;OAKG;IACH,kBAHW,OAAO,GACN,OAAO,CAIlB;IApKC;;;OAGG;IACH,2BAA8D;IAE9D;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,gCAAoC;IAEpC;;;OAGG;IACH,oCAAwC;IAExC;;;OAGG;IACH,4BAAoC;IAEpC;;;OAGG;IACH,yBAA0B;IAE1B;;;OAGG;IACH,cAAiB;IAEjB;;;OAGG;IACH,0BAHU,KAAK,CAAC,YAAY,CAAC,CAGL;IAG1B;;;;;;;;OAQG;IACH,sCALW,OAAO,uBAAuB,EAAE,OAAO,CAAC,YAAY,CAAC,GACpD,OAAO,CAkClB;IAED;;;OAGG;IACH,iCAFW,OAAO,uBAAuB,EAAE,OAAO,CAAC,YAAY,CAAC,QAwB/D;IAXC,kCAA6B;IAG3B,oCAAiC;IAUrC;;;;OAIG;IACH,iCAHW,OAAO,uBAAuB,EAAE,OAAO,CAAC,YAAY,CAAC,GACpD,OAAO,CAelB;IAVG,aAAmB;IAYvB;;;;OAIG;IACH,+BAHW,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAalB;IAYD;;;OAGG;IACH,+BAeC;IAED;;;OAGG;IACH,uBAYC;IAED;;OAEG;IACH,wBAGC;CACF;wBApPuB,kBAAkB"}
|
|
@@ -70,6 +70,12 @@ class DblClickDragZoom extends Interaction {
|
|
|
70
70
|
*/
|
|
71
71
|
this.trackedPointers_ = {};
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @type {PointerEvent|null}
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
this.down_ = null;
|
|
78
|
+
|
|
73
79
|
/**
|
|
74
80
|
* @type {Array<PointerEvent>}
|
|
75
81
|
* @protected
|
|
@@ -81,7 +87,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
81
87
|
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may call into
|
|
82
88
|
* other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are
|
|
83
89
|
* detected.
|
|
84
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
90
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Map browser event.
|
|
85
91
|
* @return {boolean} `false` to stop event propagation.
|
|
86
92
|
* @api
|
|
87
93
|
* @override
|
|
@@ -120,13 +126,13 @@ class DblClickDragZoom extends Interaction {
|
|
|
120
126
|
|
|
121
127
|
/**
|
|
122
128
|
* Handle pointer drag events.
|
|
123
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
129
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
124
130
|
*/
|
|
125
131
|
handleDragEvent(mapBrowserEvent) {
|
|
126
132
|
let scaleDelta = 1.0;
|
|
127
133
|
|
|
128
134
|
const touch0 = this.targetPointers[0];
|
|
129
|
-
const touch1 = this.down_
|
|
135
|
+
const touch1 = this.down_;
|
|
130
136
|
const distance = touch0.clientY - touch1.clientY;
|
|
131
137
|
|
|
132
138
|
if (this.lastDistance_ !== undefined) {
|
|
@@ -148,7 +154,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
148
154
|
|
|
149
155
|
/**
|
|
150
156
|
* Handle pointer down events.
|
|
151
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
157
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
152
158
|
* @return {boolean} If the event was consumed.
|
|
153
159
|
*/
|
|
154
160
|
handleDownEvent(mapBrowserEvent) {
|
|
@@ -157,7 +163,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
157
163
|
this.anchor_ = null;
|
|
158
164
|
this.lastDistance_ = undefined;
|
|
159
165
|
this.lastScaleDelta_ = 1;
|
|
160
|
-
this.down_ = mapBrowserEvent;
|
|
166
|
+
this.down_ = mapBrowserEvent.originalEvent;
|
|
161
167
|
if (!this.handlingDownUpSequence_) {
|
|
162
168
|
map.getView().beginInteraction();
|
|
163
169
|
}
|
|
@@ -195,7 +201,7 @@ class DblClickDragZoom extends Interaction {
|
|
|
195
201
|
}
|
|
196
202
|
|
|
197
203
|
/**
|
|
198
|
-
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
204
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} mapBrowserEvent Event.
|
|
199
205
|
* @private
|
|
200
206
|
*/
|
|
201
207
|
updateTrackedPointers_(mapBrowserEvent) {
|
package/interaction/DragBox.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export class DragBoxEvent extends Event {
|
|
|
9
9
|
* @param {import("../coordinate.js").Coordinate} coordinate The event coordinate.
|
|
10
10
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Originating event.
|
|
11
11
|
*/
|
|
12
|
-
constructor(type: string, coordinate: import("../coordinate.js").Coordinate, mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
12
|
+
constructor(type: string, coordinate: import("../coordinate.js").Coordinate, mapBrowserEvent: import("../MapBrowserEvent.js").default);
|
|
13
13
|
/**
|
|
14
14
|
* The coordinate of the drag event.
|
|
15
15
|
* @const
|
|
@@ -22,7 +22,7 @@ export class DragBoxEvent extends Event {
|
|
|
22
22
|
* @type {import("../MapBrowserEvent.js").default}
|
|
23
23
|
* @api
|
|
24
24
|
*/
|
|
25
|
-
mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
25
|
+
mapBrowserEvent: import("../MapBrowserEvent.js").default;
|
|
26
26
|
}
|
|
27
27
|
export default DragBox;
|
|
28
28
|
/**
|
|
@@ -30,7 +30,7 @@ export default DragBox;
|
|
|
30
30
|
* {@link module :ol/pixel~Pixel}s and returns a `{boolean}`. If the condition is met,
|
|
31
31
|
* true should be returned.
|
|
32
32
|
*/
|
|
33
|
-
export type EndCondition = (this: unknown, arg1: import("../MapBrowserEvent.js").default
|
|
33
|
+
export type EndCondition = (this: unknown, arg1: import("../MapBrowserEvent.js").default, arg2: import("../pixel.js").Pixel, arg3: import("../pixel.js").Pixel) => boolean;
|
|
34
34
|
export type Options = {
|
|
35
35
|
/**
|
|
36
36
|
* CSS class name for styling the box.
|
|
@@ -57,7 +57,7 @@ export type Options = {
|
|
|
57
57
|
* Code to execute just
|
|
58
58
|
* before `boxend` is fired.
|
|
59
59
|
*/
|
|
60
|
-
onBoxEnd?: ((this: DragBox, arg1: import("../MapBrowserEvent.js").default
|
|
60
|
+
onBoxEnd?: ((this: DragBox, arg1: import("../MapBrowserEvent.js").default) => void) | undefined;
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* *
|
|
@@ -116,7 +116,7 @@ declare class DragBox extends PointerInteraction {
|
|
|
116
116
|
* Function to execute just before `onboxend` is fired
|
|
117
117
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
118
118
|
*/
|
|
119
|
-
onBoxEnd(event: import("../MapBrowserEvent.js").default
|
|
119
|
+
onBoxEnd(event: import("../MapBrowserEvent.js").default): void;
|
|
120
120
|
/**
|
|
121
121
|
* @type {import("../pixel.js").Pixel}
|
|
122
122
|
* @private
|
|
@@ -141,7 +141,7 @@ declare class DragBox extends PointerInteraction {
|
|
|
141
141
|
* @param {import("../pixel.js").Pixel} endPixel The end pixel of the box.
|
|
142
142
|
* @return {boolean} Whether or not the boxend condition should be fired.
|
|
143
143
|
*/
|
|
144
|
-
defaultBoxEndCondition(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
144
|
+
defaultBoxEndCondition(mapBrowserEvent: import("../MapBrowserEvent.js").default, startPixel: import("../pixel.js").Pixel, endPixel: import("../pixel.js").Pixel): boolean;
|
|
145
145
|
/**
|
|
146
146
|
* Returns geometry of last drawn box.
|
|
147
147
|
* @return {import("../geom/Polygon.js").default} Geometry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragBox.d.ts","sourceRoot":"","sources":["DragBox.js"],"names":[],"mappings":"AAgEA;;;;GAIG;AACH;IACE;;;;OAIG;IACH,kBAJW,MAAM,cACN,OAAO,kBAAkB,EAAE,UAAU,
|
|
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,EAwDjB;IAnDC;;OAEG;IACH,IAFU,kBAAkB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEpD;IAEP;;OAEG;IACH,MAFU,kBAAkB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAElD;IAET;;OAEG;IACH,IAFU,kBAAkB,CAAC,IAAI,CAAC,CAE3B;IAIP;;;OAGG;IACH,aAA4D;IAE5D;;;OAGG;IACH,iBAAqC;IA+HvC;;;OAGG;IACH,gBAFW,OAAO,uBAAuB,EAAE,OAAO,QAEhC;IA7HhB;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,mBAAwD;IAExD;;;OAGG;IACH,yBACwD;IAG1D;;;;;;;;OAQG;IACH,wCANW,OAAO,uBAAuB,EAAE,OAAO,cAEvC,OAAO,aAAa,EAAE,KAAK,YAC3B,OAAO,aAAa,EAAE,KAAK,GAC1B,OAAO,CAMlB;IAED;;;;OAIG;IACH,eAHY,OAAO,oBAAoB,EAAE,OAAO,CAK/C;CA8HF;+BA9T8B,cAAc"}
|
package/interaction/Draw.d.ts
CHANGED
|
@@ -499,6 +499,21 @@ declare class Draw extends PointerInteraction {
|
|
|
499
499
|
* @api
|
|
500
500
|
*/
|
|
501
501
|
getOverlay(): VectorLayer;
|
|
502
|
+
/**
|
|
503
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
504
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Map browser event.
|
|
505
|
+
* @return {boolean} `false` to stop event propagation.
|
|
506
|
+
* @api
|
|
507
|
+
* @override
|
|
508
|
+
*/
|
|
509
|
+
override handleEvent(event: import("../MapBrowserEvent.js").default<PointerEvent>): boolean;
|
|
510
|
+
/**
|
|
511
|
+
* Handle pointer down events.
|
|
512
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
513
|
+
* @return {boolean} If the event was consumed.
|
|
514
|
+
* @override
|
|
515
|
+
*/
|
|
516
|
+
override handleDownEvent(event: import("../MapBrowserEvent.js").default<PointerEvent>): boolean;
|
|
502
517
|
/**
|
|
503
518
|
* @private
|
|
504
519
|
*/
|
|
@@ -534,9 +549,16 @@ declare class Draw extends PointerInteraction {
|
|
|
534
549
|
* @private
|
|
535
550
|
*/
|
|
536
551
|
private updateTrace_;
|
|
552
|
+
/**
|
|
553
|
+
* Handle pointer up events.
|
|
554
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
555
|
+
* @return {boolean} If the event was consumed.
|
|
556
|
+
* @override
|
|
557
|
+
*/
|
|
558
|
+
override handleUpEvent(event: import("../MapBrowserEvent.js").default<PointerEvent>): boolean;
|
|
537
559
|
/**
|
|
538
560
|
* Handle move events.
|
|
539
|
-
* @param {import("../MapBrowserEvent.js").default} event A move event.
|
|
561
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event A move event.
|
|
540
562
|
* @private
|
|
541
563
|
*/
|
|
542
564
|
private handlePointerMove_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Draw.d.ts","sourceRoot":"","sources":["Draw.js"],"names":[],"mappings":"AA20DA;;;;;;;;;;;;GAYG;AACH,6CATW,MAAM,UAEN,MAAM,GAIL,gBAAgB,CAmC3B;AAED;;;;;;GAMG;AACH,6BAHY,gBAAgB,CAiC3B;AAluDD;;;;GAIG;AACH;IACE;;;OAGG;IACH,kBAHW,aAAa,WACb,OAAO,EAWjB;IANC;;;;OAIG;IACH,SAHU,OAAO,CAGK;CAEzB;;;;;;;UApKa,OAAO,qBAAqB,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAoEnC,OAAO,kBAAkB,EAAE,UAAU;;;;4BAKrC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAA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;;;OAIG;IACH,sBAgCC;IAED;;;;OAIG;IACH,uBAwCC;IAED;;;;;OAKG;IACH,sBAuCC;IAED;;OAEG;IACH,qBAFW,MAAM,QA8ChB;IAED;;;;OAIG;IACH,wBAEC;IAED;;;;;;OAMG;IACH,iBAHY,OAAO,CAAC,OAAO,2BAA2B,EAAE,OAAO,CAAC,GAAC,IAAI,CAgDpE;IAED;;;;OAIG;IACH,sBASC;IAED;;;OAGG;IACH,qBAKC;IAED;;;;;;;;OAQG;IACH,+BAJY,aAAa,QAuCxB;IAED;;;;;;;;;;;OAWG;IACH,gBAHY,OAAO,CAAC,UAAU,CAAC,QAgB9B;IAED;;;OAGG;IACH,8BAcC;IAED;;OAEG;IACH,qBAOC;CACF;yBAzxDwB,qBAAqB;+BAEf,cAAc;wBALrB,oBAAoB;uBAPrB,uBAAuB"}
|
package/interaction/Draw.js
CHANGED
|
@@ -983,7 +983,7 @@ class Draw extends PointerInteraction {
|
|
|
983
983
|
|
|
984
984
|
/**
|
|
985
985
|
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
986
|
-
* @param {import("../MapBrowserEvent.js").default} event Map browser event.
|
|
986
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Map browser event.
|
|
987
987
|
* @return {boolean} `false` to stop event propagation.
|
|
988
988
|
* @api
|
|
989
989
|
* @override
|
|
@@ -1050,7 +1050,7 @@ class Draw extends PointerInteraction {
|
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Handle pointer down events.
|
|
1053
|
-
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
1053
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
1054
1054
|
* @return {boolean} If the event was consumed.
|
|
1055
1055
|
* @override
|
|
1056
1056
|
*/
|
|
@@ -1301,7 +1301,7 @@ class Draw extends PointerInteraction {
|
|
|
1301
1301
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Handle pointer up events.
|
|
1304
|
-
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
1304
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
1305
1305
|
* @return {boolean} If the event was consumed.
|
|
1306
1306
|
* @override
|
|
1307
1307
|
*/
|
|
@@ -1351,7 +1351,7 @@ class Draw extends PointerInteraction {
|
|
|
1351
1351
|
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Handle move events.
|
|
1354
|
-
* @param {import("../MapBrowserEvent.js").default} event A move event.
|
|
1354
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event A move event.
|
|
1355
1355
|
* @private
|
|
1356
1356
|
*/
|
|
1357
1357
|
handlePointerMove_(event) {
|
|
@@ -27,7 +27,7 @@ export type InteractionOptions = {
|
|
|
27
27
|
* prevented (this includes functions with no explicit return). The interactions
|
|
28
28
|
* are traversed in reverse order of the interactions collection of the map.
|
|
29
29
|
*/
|
|
30
|
-
handleEvent?: ((arg0: import("../MapBrowserEvent.js").default
|
|
30
|
+
handleEvent?: ((arg0: import("../MapBrowserEvent.js").default) => boolean) | undefined;
|
|
31
31
|
};
|
|
32
32
|
/***
|
|
33
33
|
* @template Return
|
|
@@ -83,7 +83,7 @@ declare class Interaction extends BaseObject {
|
|
|
83
83
|
* @return {boolean} `false` to stop event propagation.
|
|
84
84
|
* @api
|
|
85
85
|
*/
|
|
86
|
-
handleEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
86
|
+
handleEvent(mapBrowserEvent: import("../MapBrowserEvent.js").default): boolean;
|
|
87
87
|
/**
|
|
88
88
|
* @private
|
|
89
89
|
* @type {import("../Map.js").default|null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interaction.d.ts","sourceRoot":"","sources":["Interaction.js"],"names":[],"mappings":"AA6HA;;;;GAIG;AACH,0BAJW,OAAO,YAAY,EAAE,OAAO,SAC5B,OAAO,kBAAkB,EAAE,UAAU,aACrC,M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uB,EAAE,OAAO,KAAE,OAAO;;AAZvE;;;;;;;GAOG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,sBAFW,kBAAkB,EA+B5B;IA1BC;;OAEG;IACH,IAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAEP;;OAEG;IACH,MAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEtD;IAET;;OAEG;IACH,IAFU,sBAAsB,CAAC,IAAI,CAAC,CAE/B;IAkCT;;;;;OAKG;IACH,6BAJW,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,CAKlB;IApCC;;;OAGG;IACH,aAAgB;IAKlB;;;;;OAKG;IACH,aAJY,OAAO,CAMlB;IAED;;;;OAIG;IACH,UAHY,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,CAK3C;IAYD;;;;;OAKG;IACH,kBAJW,OAAO,QAMjB;IAED;;;;;OAKG;IACH,YAFW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAI1C;CACF;uBAxHsB,cAAc"}
|
package/interaction/Modify.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class ModifyEvent extends Event {
|
|
|
66
66
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent
|
|
67
67
|
* Associated {@link module:ol/MapBrowserEvent~MapBrowserEvent}.
|
|
68
68
|
*/
|
|
69
|
-
constructor(type: ModifyEventType, features: Collection<Feature>, mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
69
|
+
constructor(type: ModifyEventType, features: Collection<Feature>, mapBrowserEvent: import("../MapBrowserEvent.js").default);
|
|
70
70
|
/**
|
|
71
71
|
* The features being modified.
|
|
72
72
|
* @type {Collection<Feature>}
|
|
@@ -78,7 +78,7 @@ export class ModifyEvent extends Event {
|
|
|
78
78
|
* @type {import("../MapBrowserEvent.js").default}
|
|
79
79
|
* @api
|
|
80
80
|
*/
|
|
81
|
-
mapBrowserEvent: import("../MapBrowserEvent.js").default
|
|
81
|
+
mapBrowserEvent: import("../MapBrowserEvent.js").default;
|
|
82
82
|
}
|
|
83
83
|
export default Modify;
|
|
84
84
|
export type SegmentData = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modify.d.ts","sourceRoot":"","sources":["Modify.js"],"names":[],"mappings":"AAgFA;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,UAAU,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"Modify.d.ts","sourceRoot":"","sources":["Modify.js"],"names":[],"mappings":"AAgFA;;;;;;;;GAQG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,UAAU,CAAC,OAAO,CAAC,mBAEnB,OAAO,uBAAuB,EAAE,OAAO,EAmBjD;IAbC;;;;OAIG;IACH,UAHU,UAAU,CAAC,OAAO,CAAC,CAGL;IAExB;;;;OAIG;IACH,iBAHU,OAAO,uBAAuB,EAAE,OAAO,CAGX;CAEzC;;;;;;;;;;aArFa,OAAO;;;;cACP,OAAO,2BAA2B,EAAE,OAAO;;;;;;;;aAE3C,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;;;;;0BAKrB,CAAC,WAAW,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAgFrB,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,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