From 23e5c7ced817846c6501a87b0d4807e1a63923cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 25 Sep 2020 11:04:23 +0200 Subject: [PATCH] Export all the Event sub class Actually only some are exported This is useful to type the received events --- src/ol/interaction/DragAndDrop.js | 2 +- src/ol/interaction/DragBox.js | 2 +- src/ol/interaction/Draw.js | 2 +- src/ol/interaction/Extent.js | 2 +- src/ol/interaction/Select.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index e1e839c308..a2a5690d19 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -39,7 +39,7 @@ const DragAndDropEventType = { * Events emitted by {@link module:ol/interaction/DragAndDrop~DragAndDrop} instances are instances * of this type. */ -class DragAndDropEvent extends Event { +export class DragAndDropEvent extends Event { /** * @param {DragAndDropEventType} type Type. * @param {File} file File. diff --git a/src/ol/interaction/DragBox.js b/src/ol/interaction/DragBox.js index 8619c74872..f6b0351b5a 100644 --- a/src/ol/interaction/DragBox.js +++ b/src/ol/interaction/DragBox.js @@ -60,7 +60,7 @@ const DragBoxEventType = { * Events emitted by {@link module:ol/interaction/DragBox~DragBox} instances are instances of * this type. */ -class DragBoxEvent extends Event { +export class DragBoxEvent extends Event { /** * @param {string} type The event type. * @param {import("../coordinate.js").Coordinate} coordinate The event coordinate. diff --git a/src/ol/interaction/Draw.js b/src/ol/interaction/Draw.js index dc861c4131..0d8c9c2118 100644 --- a/src/ol/interaction/Draw.js +++ b/src/ol/interaction/Draw.js @@ -155,7 +155,7 @@ const DrawEventType = { * Events emitted by {@link module:ol/interaction/Draw~Draw} instances are * instances of this type. */ -class DrawEvent extends Event { +export class DrawEvent extends Event { /** * @param {DrawEventType} type Type. * @param {Feature} feature The feature drawn. diff --git a/src/ol/interaction/Extent.js b/src/ol/interaction/Extent.js index d547f567cb..2a71e07ecd 100644 --- a/src/ol/interaction/Extent.js +++ b/src/ol/interaction/Extent.js @@ -58,7 +58,7 @@ const ExtentEventType = { * Events emitted by {@link module:ol/interaction/Extent~Extent} instances are * instances of this type. */ -class ExtentEvent extends Event { +export class ExtentEvent extends Event { /** * @param {import("../extent.js").Extent} extent the new extent */ diff --git a/src/ol/interaction/Select.js b/src/ol/interaction/Select.js index 4d35046606..5dff1e5c33 100644 --- a/src/ol/interaction/Select.js +++ b/src/ol/interaction/Select.js @@ -94,7 +94,7 @@ const SelectEventType = { * Events emitted by {@link module:ol/interaction/Select~Select} instances are instances of * this type. */ -class SelectEvent extends Event { +export class SelectEvent extends Event { /** * @param {SelectEventType} type The event type. * @param {Array} selected Selected features.