From 0641bd47ce9f6bf5952da6bd1458bf6e73def345 Mon Sep 17 00:00:00 2001 From: Simon Seyock Date: Fri, 25 Jun 2021 17:18:07 +0200 Subject: [PATCH] Add DragAndDropInteraction. --- src/ol/interaction/DragAndDrop.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index 44bb6aaac4..565145e8f3 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -74,6 +74,16 @@ export class DragAndDropEvent extends Event { } } +/*** + * @template Return + * @typedef {import("../Observable").OnSignature & + * import("../Observable").OnSignature & + * import("../Observable").OnSignature<'addfeatures', DragAndDropEvent, Return> & + * import("../Observable").CombinedOnSignature} DragAndDropOnSignature + */ + /** * @classdesc * Handles input of vector data by drag and drop. @@ -97,6 +107,21 @@ class DragAndDrop extends Interaction { handleEvent: TRUE, }); + /*** + * @type {DragAndDropOnSignature} + */ + this.on; + + /*** + * @type {DragAndDropOnSignature} + */ + this.once; + + /*** + * @type {DragAndDropOnSignature} + */ + this.un; + /** * @private * @type {boolean}