Shorter module paths for default exports
This commit is contained in:
@@ -15,8 +15,8 @@ import {compose as composeTransform, invert as invertTransform, setFromArray as
|
||||
/**
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/Disposable~Disposable}
|
||||
* @param {module:ol/PluggableMap~PluggableMap} map Map.
|
||||
* @extends {module:ol/Disposable}
|
||||
* @param {module:ol/PluggableMap} map Map.
|
||||
* @struct
|
||||
*/
|
||||
const MapRenderer = function(map) {
|
||||
@@ -24,7 +24,7 @@ const MapRenderer = function(map) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/PluggableMap~PluggableMap}
|
||||
* @type {module:ol/PluggableMap}
|
||||
*/
|
||||
this.map_ = map;
|
||||
|
||||
@@ -42,7 +42,7 @@ const MapRenderer = function(map) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array.<module:ol/renderer/Layer~LayerRenderer>}
|
||||
* @type {Array.<module:ol/renderer/Layer>}
|
||||
*/
|
||||
this.layerRendererConstructors_ = [];
|
||||
|
||||
@@ -53,7 +53,7 @@ inherits(MapRenderer, Disposable);
|
||||
|
||||
/**
|
||||
* Register layer renderer constructors.
|
||||
* @param {Array.<module:ol/renderer/Layer~LayerRenderer>} constructors Layer renderers.
|
||||
* @param {Array.<module:ol/renderer/Layer>} constructors Layer renderers.
|
||||
*/
|
||||
MapRenderer.prototype.registerLayerRenderers = function(constructors) {
|
||||
this.layerRendererConstructors_.push.apply(this.layerRendererConstructors_, constructors);
|
||||
@@ -62,7 +62,7 @@ MapRenderer.prototype.registerLayerRenderers = function(constructors) {
|
||||
|
||||
/**
|
||||
* Get the registered layer renderer constructors.
|
||||
* @return {Array.<module:ol/renderer/Layer~LayerRenderer>} Registered layer renderers.
|
||||
* @return {Array.<module:ol/renderer/Layer>} Registered layer renderers.
|
||||
*/
|
||||
MapRenderer.prototype.getLayerRendererConstructors = function() {
|
||||
return this.layerRendererConstructors_;
|
||||
@@ -100,7 +100,7 @@ MapRenderer.prototype.removeLayerRenderers = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/PluggableMap~PluggableMap} map Map.
|
||||
* @param {module:ol/PluggableMap} map Map.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||
*/
|
||||
function expireIconCache(map, frameState) {
|
||||
@@ -112,10 +112,10 @@ function expireIconCache(map, frameState) {
|
||||
* @param {module:ol/coordinate~Coordinate} coordinate Coordinate.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState FrameState.
|
||||
* @param {number} hitTolerance Hit tolerance in pixels.
|
||||
* @param {function(this: S, (module:ol/Feature~Feature|module:ol/render/Feature~RenderFeature),
|
||||
* module:ol/layer/Layer~Layer): T} callback Feature callback.
|
||||
* @param {function(this: S, (module:ol/Feature|module:ol/render/Feature),
|
||||
* module:ol/layer/Layer): T} callback Feature callback.
|
||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
||||
* @param {function(this: U, module:ol/layer/Layer~Layer): boolean} layerFilter Layer filter
|
||||
* @param {function(this: U, module:ol/layer/Layer): boolean} layerFilter Layer filter
|
||||
* function, only layers which are visible and for which this function
|
||||
* returns `true` will be tested for features. By default, all visible
|
||||
* layers will be tested.
|
||||
@@ -130,8 +130,8 @@ MapRenderer.prototype.forEachFeatureAtCoordinate = function(coordinate, frameSta
|
||||
const viewResolution = viewState.resolution;
|
||||
|
||||
/**
|
||||
* @param {module:ol/Feature~Feature|module:ol/render/Feature~RenderFeature} feature Feature.
|
||||
* @param {module:ol/layer/Layer~Layer} layer Layer.
|
||||
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature.
|
||||
* @param {module:ol/layer/Layer} layer Layer.
|
||||
* @return {?} Callback result.
|
||||
*/
|
||||
function forEachFeatureAtCoordinate(feature, layer) {
|
||||
@@ -181,10 +181,10 @@ MapRenderer.prototype.forEachFeatureAtCoordinate = function(coordinate, frameSta
|
||||
* @abstract
|
||||
* @param {module:ol~Pixel} pixel Pixel.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState FrameState.
|
||||
* @param {function(this: S, module:ol/layer/Layer~Layer, (Uint8ClampedArray|Uint8Array)): T} callback Layer
|
||||
* @param {function(this: S, module:ol/layer/Layer, (Uint8ClampedArray|Uint8Array)): T} callback Layer
|
||||
* callback.
|
||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
||||
* @param {function(this: U, module:ol/layer/Layer~Layer): boolean} layerFilter Layer filter
|
||||
* @param {function(this: U, module:ol/layer/Layer): boolean} layerFilter Layer filter
|
||||
* function, only layers which are visible and for which this function
|
||||
* returns `true` will be tested for features. By default, all visible
|
||||
* layers will be tested.
|
||||
@@ -200,7 +200,7 @@ MapRenderer.prototype.forEachLayerAtPixel = function(pixel, frameState, callback
|
||||
* @param {module:ol/coordinate~Coordinate} coordinate Coordinate.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState FrameState.
|
||||
* @param {number} hitTolerance Hit tolerance in pixels.
|
||||
* @param {function(this: U, module:ol/layer/Layer~Layer): boolean} layerFilter Layer filter
|
||||
* @param {function(this: U, module:ol/layer/Layer): boolean} layerFilter Layer filter
|
||||
* function, only layers which are visible and for which this function
|
||||
* returns `true` will be tested for features. By default, all visible
|
||||
* layers will be tested.
|
||||
@@ -217,7 +217,7 @@ MapRenderer.prototype.hasFeatureAtCoordinate = function(coordinate, frameState,
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/layer/Layer~Layer} layer Layer.
|
||||
* @param {module:ol/layer/Layer} layer Layer.
|
||||
* @protected
|
||||
* @return {ol.renderer.Layer} Layer renderer.
|
||||
*/
|
||||
@@ -266,7 +266,7 @@ MapRenderer.prototype.getLayerRenderers = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {module:ol/PluggableMap~PluggableMap} Map.
|
||||
* @return {module:ol/PluggableMap} Map.
|
||||
*/
|
||||
MapRenderer.prototype.getMap = function() {
|
||||
return this.map_;
|
||||
@@ -306,7 +306,7 @@ MapRenderer.prototype.renderFrame = UNDEFINED;
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/PluggableMap~PluggableMap} map Map.
|
||||
* @param {module:ol/PluggableMap} map Map.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||
* @private
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user