Add DragAndDropInteraction.

This commit is contained in:
Simon Seyock
2021-06-25 17:18:07 +02:00
committed by Andreas Hocevar
parent e9e664f3c9
commit 0641bd47ce
+25
View File
@@ -74,6 +74,16 @@ export class DragAndDropEvent extends Event {
} }
} }
/***
* @template Return
* @typedef {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> &
* import("../Observable").OnSignature<import("../ObjectEventType").Types|
* 'change:active', import("../Object").ObjectEvent, Return> &
* import("../Observable").OnSignature<'addfeatures', DragAndDropEvent, Return> &
* import("../Observable").CombinedOnSignature<import("../Observable").EventTypes|import("../ObjectEventType").Types|
* 'change:active'|'addfeatures', Return>} DragAndDropOnSignature
*/
/** /**
* @classdesc * @classdesc
* Handles input of vector data by drag and drop. * Handles input of vector data by drag and drop.
@@ -97,6 +107,21 @@ class DragAndDrop extends Interaction {
handleEvent: TRUE, handleEvent: TRUE,
}); });
/***
* @type {DragAndDropOnSignature<import("../Observable").OnReturn>}
*/
this.on;
/***
* @type {DragAndDropOnSignature<import("../Observable").OnReturn>}
*/
this.once;
/***
* @type {DragAndDropOnSignature<void>}
*/
this.un;
/** /**
* @private * @private
* @type {boolean} * @type {boolean}