Module type for ol.events.Event
This commit is contained in:
@@ -44,7 +44,7 @@ const DragAndDropEventType = {
|
|||||||
* of this type.
|
* of this type.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.interaction.DragAndDropEvent}
|
* @implements {oli.interaction.DragAndDropEvent}
|
||||||
* @param {module:ol/interaction/DragAndDrop~DragAndDropEventType} type Type.
|
* @param {module:ol/interaction/DragAndDrop~DragAndDropEventType} type Type.
|
||||||
* @param {File} file File.
|
* @param {File} file File.
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ LayerGroup.prototype.handleLayerChange_ = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
LayerGroup.prototype.handleLayersChanged_ = function(event) {
|
LayerGroup.prototype.handleLayersChanged_ = function(event) {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ import Event from '../events/Event.js';
|
|||||||
* touch events and even native pointer events.
|
* touch events and even native pointer events.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @param {string} type The type of the event to create.
|
* @param {string} type The type of the event to create.
|
||||||
* @param {Event} originalEvent The event.
|
* @param {Event} originalEvent The event.
|
||||||
* @param {Object.<string, ?>=} opt_eventDict An optional dictionary of
|
* @param {Object.<string, ?>=} opt_eventDict An optional dictionary of
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import Event from '../events/Event.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.render.Event}
|
* @implements {oli.render.Event}
|
||||||
* @param {ol.render.EventType} type Type.
|
* @param {ol.render.EventType} type Type.
|
||||||
* @param {ol.render.VectorContext=} opt_vectorContext Vector context.
|
* @param {ol.render.VectorContext=} opt_vectorContext Vector context.
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ LayerRenderer.prototype.getLayer = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle changes in image state.
|
* Handle changes in image state.
|
||||||
* @param {ol.events.Event} event Image change event.
|
* @param {module:ol/events/Event~Event} event Image change event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
LayerRenderer.prototype.handleImageChange_ = function(event) {
|
LayerRenderer.prototype.handleImageChange_ = function(event) {
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ CanvasVectorLayerRenderer.prototype.forEachFeatureAtCoordinate = function(coordi
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
*/
|
*/
|
||||||
CanvasVectorLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
CanvasVectorLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
||||||
const layer = this.getLayer();
|
const layer = this.getLayer();
|
||||||
@@ -285,7 +285,7 @@ CanvasVectorLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle changes in image style state.
|
* Handle changes in image style state.
|
||||||
* @param {ol.events.Event} event Image style change event.
|
* @param {module:ol/events/Event~Event} event Image style change event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
CanvasVectorLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
CanvasVectorLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ CanvasVectorTileLayerRenderer.prototype.getReplayTransform_ = function(tile, fra
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
*/
|
*/
|
||||||
CanvasVectorTileLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
CanvasVectorTileLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
||||||
const layer = this.getLayer();
|
const layer = this.getLayer();
|
||||||
@@ -351,7 +351,7 @@ CanvasVectorTileLayerRenderer.prototype.handleFontsChanged_ = function(event) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle changes in image style state.
|
* Handle changes in image style state.
|
||||||
* @param {ol.events.Event} event Image style change event.
|
* @param {module:ol/events/Event~Event} event Image style change event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
CanvasVectorTileLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
CanvasVectorTileLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ function renderCircleGeometry(replayGroup, geometry, style, feature) {
|
|||||||
* @param {module:ol/Feature~Feature|ol.render.Feature} feature Feature.
|
* @param {module:ol/Feature~Feature|ol.render.Feature} feature Feature.
|
||||||
* @param {ol.style.Style} style Style.
|
* @param {ol.style.Style} style Style.
|
||||||
* @param {number} squaredTolerance Squared tolerance.
|
* @param {number} squaredTolerance Squared tolerance.
|
||||||
* @param {function(this: T, ol.events.Event)} listener Listener function.
|
* @param {function(this: T, module:ol/events/Event~Event)} listener Listener function.
|
||||||
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
||||||
* @return {boolean} `true` if style is loading.
|
* @return {boolean} `true` if style is loading.
|
||||||
* @template T
|
* @template T
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ WebGLMapRenderer.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
WebGLMapRenderer.prototype.handleWebGLContextLost = function(event) {
|
WebGLMapRenderer.prototype.handleWebGLContextLost = function(event) {
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ WebGLVectorLayerRenderer.prototype.forEachLayerAtPixel = function(pixel, frameSt
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle changes in image style state.
|
* Handle changes in image style state.
|
||||||
* @param {ol.events.Event} event Image style change event.
|
* @param {module:ol/events/Event~Event} event Image style change event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
WebGLVectorLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
WebGLVectorLayerRenderer.prototype.handleStyleImageChange_ = function(event) {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const ImageSourceEventType = {
|
|||||||
* type.
|
* type.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.source.ImageEvent}
|
* @implements {oli.source.ImageEvent}
|
||||||
* @param {string} type Type.
|
* @param {string} type Type.
|
||||||
* @param {ol.Image} image The image.
|
* @param {ol.Image} image The image.
|
||||||
@@ -192,7 +192,7 @@ ImageSource.prototype.getImageInternal = function(extent, resolution, pixelRatio
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle image change events.
|
* Handle image change events.
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
ImageSource.prototype.handleImageChange = function(event) {
|
ImageSource.prototype.handleImageChange = function(event) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const RasterEventType = {
|
|||||||
* type.
|
* type.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.source.RasterEvent}
|
* @implements {oli.source.RasterEvent}
|
||||||
* @param {string} type Type.
|
* @param {string} type Type.
|
||||||
* @param {module:ol/PluggableMap~FrameState} frameState The frame state.
|
* @param {module:ol/PluggableMap~FrameState} frameState The frame state.
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ TileSource.prototype.useTile = UNDEFINED;
|
|||||||
* type.
|
* type.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.source.Tile.Event}
|
* @implements {oli.source.Tile.Event}
|
||||||
* @param {string} type Type.
|
* @param {string} type Type.
|
||||||
* @param {module:ol/Tile~Tile} tile The tile.
|
* @param {module:ol/Tile~Tile} tile The tile.
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ UrlTile.prototype.getUrls = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle tile change events.
|
* Handle tile change events.
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
UrlTile.prototype.handleTileChange = function(event) {
|
UrlTile.prototype.handleTileChange = function(event) {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import RBush from '../structs/RBush.js';
|
|||||||
* type.
|
* type.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.events.Event}
|
* @extends {module:ol/events/Event~Event}
|
||||||
* @implements {oli.source.Vector.Event}
|
* @implements {oli.source.Vector.Event}
|
||||||
* @param {string} type Type.
|
* @param {string} type Type.
|
||||||
* @param {module:ol/Feature~Feature=} opt_feature Feature.
|
* @param {module:ol/Feature~Feature=} opt_feature Feature.
|
||||||
@@ -690,7 +690,7 @@ VectorSource.prototype.getUrl = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.events.Event} event Event.
|
* @param {module:ol/events/Event~Event} event Event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
VectorSource.prototype.handleFeatureChange_ = function(event) {
|
VectorSource.prototype.handleFeatureChange_ = function(event) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import EventType from '../events/EventType.js';
|
|||||||
* items from the cache is the responsibility of the user.
|
* items from the cache is the responsibility of the user.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/events/EventTarget~EventTarget}
|
* @extends {module:ol/events/EventTarget~EventTarget}
|
||||||
* @fires ol.events.Event
|
* @fires module:ol/events/Event~Event
|
||||||
* @struct
|
* @struct
|
||||||
* @template T
|
* @template T
|
||||||
* @param {number=} opt_highWaterMark High water mark.
|
* @param {number=} opt_highWaterMark High water mark.
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ ImageStyle.prototype.setSnapToPixel = function(snapToPixel) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param {function(this: T, ol.events.Event)} listener Listener function.
|
* @param {function(this: T, module:ol/events/Event~Event)} listener Listener function.
|
||||||
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
||||||
* @return {module:ol/events~EventsKey|undefined} Listener key.
|
* @return {module:ol/events~EventsKey|undefined} Listener key.
|
||||||
* @template T
|
* @template T
|
||||||
@@ -232,7 +232,7 @@ ImageStyle.prototype.load = function() {};
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param {function(this: T, ol.events.Event)} listener Listener function.
|
* @param {function(this: T, module:ol/events/Event~Event)} listener Listener function.
|
||||||
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
* @param {T} thisArg Value to use as `this` when executing `listener`.
|
||||||
* @template T
|
* @template T
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user