Export all the Event sub class
Actually only some are exported This is useful to type the received events
This commit is contained in:
@@ -39,7 +39,7 @@ const DragAndDropEventType = {
|
|||||||
* Events emitted by {@link module:ol/interaction/DragAndDrop~DragAndDrop} instances are instances
|
* Events emitted by {@link module:ol/interaction/DragAndDrop~DragAndDrop} instances are instances
|
||||||
* of this type.
|
* of this type.
|
||||||
*/
|
*/
|
||||||
class DragAndDropEvent extends Event {
|
export class DragAndDropEvent extends Event {
|
||||||
/**
|
/**
|
||||||
* @param {DragAndDropEventType} type Type.
|
* @param {DragAndDropEventType} type Type.
|
||||||
* @param {File} file File.
|
* @param {File} file File.
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const DragBoxEventType = {
|
|||||||
* Events emitted by {@link module:ol/interaction/DragBox~DragBox} instances are instances of
|
* Events emitted by {@link module:ol/interaction/DragBox~DragBox} instances are instances of
|
||||||
* this type.
|
* this type.
|
||||||
*/
|
*/
|
||||||
class DragBoxEvent extends Event {
|
export class DragBoxEvent extends Event {
|
||||||
/**
|
/**
|
||||||
* @param {string} type The event type.
|
* @param {string} type The event type.
|
||||||
* @param {import("../coordinate.js").Coordinate} coordinate The event coordinate.
|
* @param {import("../coordinate.js").Coordinate} coordinate The event coordinate.
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ const DrawEventType = {
|
|||||||
* Events emitted by {@link module:ol/interaction/Draw~Draw} instances are
|
* Events emitted by {@link module:ol/interaction/Draw~Draw} instances are
|
||||||
* instances of this type.
|
* instances of this type.
|
||||||
*/
|
*/
|
||||||
class DrawEvent extends Event {
|
export class DrawEvent extends Event {
|
||||||
/**
|
/**
|
||||||
* @param {DrawEventType} type Type.
|
* @param {DrawEventType} type Type.
|
||||||
* @param {Feature} feature The feature drawn.
|
* @param {Feature} feature The feature drawn.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const ExtentEventType = {
|
|||||||
* Events emitted by {@link module:ol/interaction/Extent~Extent} instances are
|
* Events emitted by {@link module:ol/interaction/Extent~Extent} instances are
|
||||||
* instances of this type.
|
* instances of this type.
|
||||||
*/
|
*/
|
||||||
class ExtentEvent extends Event {
|
export class ExtentEvent extends Event {
|
||||||
/**
|
/**
|
||||||
* @param {import("../extent.js").Extent} extent the new extent
|
* @param {import("../extent.js").Extent} extent the new extent
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const SelectEventType = {
|
|||||||
* Events emitted by {@link module:ol/interaction/Select~Select} instances are instances of
|
* Events emitted by {@link module:ol/interaction/Select~Select} instances are instances of
|
||||||
* this type.
|
* this type.
|
||||||
*/
|
*/
|
||||||
class SelectEvent extends Event {
|
export class SelectEvent extends Event {
|
||||||
/**
|
/**
|
||||||
* @param {SelectEventType} type The event type.
|
* @param {SelectEventType} type The event type.
|
||||||
* @param {Array<import("../Feature.js").default>} selected Selected features.
|
* @param {Array<import("../Feature.js").default>} selected Selected features.
|
||||||
|
|||||||
Reference in New Issue
Block a user