-
Notifications
You must be signed in to change notification settings - Fork 88
/
ol.interaction.Select.js
46 lines (40 loc) · 1.36 KB
/
ol.interaction.Select.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Missing exported class from OpenLayers
/**
* @module
*/
import Event from 'ol/events/Event.js';
/**
* @classdesc
* Events emitted by {@link module:ol/interaction/Select~Select} instances are instances of
* this type.
*/
export class SelectEvent extends Event {
/**
* @param {import('ol/interaction/Select.js').SelectEventType} type The event type.
* @param {Array<import("ol/Feature.js").default<import('ol/geom/Geometry.js').default>>} selected Selected features.
* @param {Array<import("ol/Feature.js").default<import('ol/geom/Geometry.js').default>>} deselected Deselected features.
* @param {import("ol/MapBrowserEvent.js").default<unknown>} mapBrowserEvent Associated
* {@link module:ol/MapBrowserEvent}.
*/
constructor(type, selected, deselected, mapBrowserEvent) {
super(type);
/**
* Selected features array.
* @type {Array<import("ol/Feature.js").default<import('ol/geom/Geometry.js').default>>}
* @api
*/
this.selected = selected;
/**
* Deselected features array.
* @type {Array<import("ol/Feature.js").default<import('ol/geom/Geometry.js').default>>}
* @api
*/
this.deselected = deselected;
/**
* Associated {@link module:ol/MapBrowserEvent}.
* @type {import("ol/MapBrowserEvent.js").default<unknown>}
* @api
*/
this.mapBrowserEvent = mapBrowserEvent;
}
}