Merge pull request #8169 from fredj/short_module_path
Shorter module paths for default exports
This commit is contained in:
@@ -49,7 +49,7 @@ const ImageSourceEventType = {
|
||||
* @constructor
|
||||
* @extends {module:ol/events/Event}
|
||||
* @param {string} type Type.
|
||||
* @param {module:ol/Image~Image} image The image.
|
||||
* @param {module:ol/Image} image The image.
|
||||
*/
|
||||
const ImageSourceEvent = function(type, image) {
|
||||
|
||||
@@ -57,7 +57,7 @@ const ImageSourceEvent = function(type, image) {
|
||||
|
||||
/**
|
||||
* The image related to the event.
|
||||
* @type {module:ol/Image~Image}
|
||||
* @type {module:ol/Image}
|
||||
* @api
|
||||
*/
|
||||
this.image = image;
|
||||
@@ -72,7 +72,7 @@ inherits(ImageSourceEvent, Event);
|
||||
* @property {module:ol/extent~Extent} [extent]
|
||||
* @property {module:ol/proj~ProjectionLike} projection
|
||||
* @property {Array.<number>} [resolutions]
|
||||
* @property {module:ol/source/State~State} [state]
|
||||
* @property {module:ol/source/State} [state]
|
||||
*/
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ ImageSource.prototype.getImageInternal = function(extent, resolution, pixelRatio
|
||||
* @protected
|
||||
*/
|
||||
ImageSource.prototype.handleImageChange = function(event) {
|
||||
const image = /** @type {module:ol/Image~Image} */ (event.target);
|
||||
const image = /** @type {module:ol/Image} */ (event.target);
|
||||
switch (image.getState()) {
|
||||
case ImageState.LOADING:
|
||||
this.dispatchEvent(
|
||||
@@ -231,7 +231,7 @@ ImageSource.prototype.handleImageChange = function(event) {
|
||||
/**
|
||||
* Default image load function for image sources that use module:ol/Image~Image image
|
||||
* instances.
|
||||
* @param {module:ol/Image~Image} image Image.
|
||||
* @param {module:ol/Image} image Image.
|
||||
* @param {string} src Source.
|
||||
*/
|
||||
export function defaultImageLoadFunction(image, src) {
|
||||
|
||||
@@ -99,7 +99,7 @@ const ImageArcGISRest = function(opt_options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/Image~Image}
|
||||
* @type {module:ol/Image}
|
||||
*/
|
||||
this.image_ = null;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import ImageSource from '../source/Image.js';
|
||||
* width and height of the map viewport, and so on. Must be `1` or higher.
|
||||
* @property {Array.<number>} [resolutions] Resolutions.
|
||||
* If specified, new canvases will be created for these resolutions
|
||||
* @property {module:ol/source/State~State} [state] Source state.
|
||||
* @property {module:ol/source/State} [state] Source state.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ const ImageMapGuide = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/Image~Image}
|
||||
* @type {module:ol/Image}
|
||||
*/
|
||||
this.image_ = null;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ const Static = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/Image~Image}
|
||||
* @type {module:ol/Image}
|
||||
*/
|
||||
this.image_ = new ImageWrapper(imageExtent, undefined, 1, options.url, crossOrigin, imageLoadFunction);
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ const ImageWMS = function(opt_options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/Image~Image}
|
||||
* @type {module:ol/Image}
|
||||
*/
|
||||
this.image_ = null;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import SourceState from '../source/State.js';
|
||||
* @typedef {Object} Options
|
||||
* @property {module:ol/source/Source~AttributionLike} [attributions]
|
||||
* @property {module:ol/proj~ProjectionLike} projection
|
||||
* @property {module:ol/source/State~State} [state]
|
||||
* @property {module:ol/source/State} [state]
|
||||
* @property {boolean} [wrapX]
|
||||
*/
|
||||
|
||||
@@ -69,7 +69,7 @@ const Source = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/source/State~State}
|
||||
* @type {module:ol/source/State}
|
||||
*/
|
||||
this.state_ = options.state !== undefined ?
|
||||
options.state : SourceState.READY;
|
||||
@@ -149,7 +149,7 @@ Source.prototype.getResolutions = function() {};
|
||||
|
||||
/**
|
||||
* Get the state of the source, see {@link module:ol/source/State~State} for possible states.
|
||||
* @return {module:ol/source/State~State} State.
|
||||
* @return {module:ol/source/State} State.
|
||||
* @api
|
||||
*/
|
||||
Source.prototype.getState = function() {
|
||||
@@ -189,7 +189,7 @@ Source.prototype.setAttributions = function(attributions) {
|
||||
|
||||
/**
|
||||
* Set the state of the source.
|
||||
* @param {module:ol/source/State~State} state State.
|
||||
* @param {module:ol/source/State} state State.
|
||||
* @protected
|
||||
*/
|
||||
Source.prototype.setState = function(state) {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {wrapX, getForProjection as getTileGridForProjection} from '../tilegrid.j
|
||||
* @property {boolean} [opaque]
|
||||
* @property {number} [tilePixelRatio]
|
||||
* @property {module:ol/proj~ProjectionLike} [projection]
|
||||
* @property {module:ol/source/State~State} [state]
|
||||
* @property {module:ol/source/State} [state]
|
||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
||||
* @property {boolean} [wrapX=true]
|
||||
* @property {number} [transition]
|
||||
|
||||
@@ -26,7 +26,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js';
|
||||
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
||||
* @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
||||
* Higher values can increase reprojection performance, but decrease precision.
|
||||
* @property {module:ol/source/State~State} [state] Source state.
|
||||
* @property {module:ol/source/State} [state] Source state.
|
||||
* @property {module:ol/ImageTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
||||
* Default is {@link module:ol/ImageTile~ImageTile}.
|
||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
||||
|
||||
@@ -15,7 +15,7 @@ import {getKeyZXY} from '../tilecoord.js';
|
||||
* @property {module:ol/extent~Extent} [extent]
|
||||
* @property {boolean} [opaque]
|
||||
* @property {module:ol/proj~ProjectionLike} [projection]
|
||||
* @property {module:ol/source/State~State} [state]
|
||||
* @property {module:ol/source/State} [state]
|
||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
||||
* @property {module:ol/Tile~LoadFunction} tileLoadFunction
|
||||
* @property {number} [tilePixelRatio]
|
||||
|
||||
@@ -20,7 +20,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid.
|
||||
* boundaries or TopoJSON sources) allows the renderer to optimise fill and
|
||||
* stroke operations.
|
||||
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
||||
* @property {module:ol/source/State~State} [state] Source state.
|
||||
* @property {module:ol/source/State} [state] Source state.
|
||||
* @property {module:ol/VectorTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
||||
* Default is {@link module:ol/VectorTile}.
|
||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
||||
|
||||
Reference in New Issue
Block a user