diff --git a/src/ol/source/Raster.js b/src/ol/source/Raster.js index 3d36395da2..713985c6fa 100644 --- a/src/ol/source/Raster.js +++ b/src/ol/source/Raster.js @@ -411,6 +411,10 @@ const RasterOperationType = { IMAGE: 'image', }; +/** + * @typedef {import("./Image.js").ImageSourceEventTypes|'beforeoperations'|'afteroperations'} RasterSourceEventTypes + */ + /** * @classdesc * Events emitted by {@link module:ol/source/Raster} instances are instances of this @@ -469,6 +473,16 @@ export class RasterSourceEvent extends Event { * be called with an array of ImageData objects from input sources. */ +/*** + * @template Return + * @typedef {import("../Observable").OnSignature & + * import("../Observable").OnSignature & + * import("../Observable").OnSignature & + * import("../Observable").OnSignature & + * import("../Observable").CombinedOnSignature} RasterSourceOnSignature + */ + /** * @classdesc * A source that transforms data from any number of input sources using an @@ -487,6 +501,21 @@ class RasterSource extends ImageSource { projection: null, }); + /*** + * @type {RasterSourceOnSignature} + */ + this.on; + + /*** + * @type {RasterSourceOnSignature} + */ + this.once; + + /*** + * @type {RasterSourceOnSignature} + */ + this.un; + /** * @private * @type {Processor}