Do not document object literals as interfaces
Instead, object literals with properties that should not be renamed can go in externs/olx.js.
This commit is contained in:
@@ -45,7 +45,7 @@ goog.inherits(ol.renderer.Layer, goog.Disposable);
|
||||
|
||||
/**
|
||||
* @param {ol.Coordinate} coordinate Coordinate.
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
* @param {function(this: S, ol.Feature, ol.layer.Layer): T} callback Feature
|
||||
* callback.
|
||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
||||
@@ -96,7 +96,7 @@ ol.renderer.Layer.prototype.handleImageChange = function(event) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
* @param {ol.layer.LayerState} layerState Layer state.
|
||||
*/
|
||||
ol.renderer.Layer.prototype.prepareFrame = goog.abstractMethod;
|
||||
@@ -114,7 +114,7 @@ ol.renderer.Layer.prototype.renderIfReadyAndVisible = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
* @param {ol.source.Tile} tileSource Tile source.
|
||||
* @protected
|
||||
*/
|
||||
@@ -126,7 +126,7 @@ ol.renderer.Layer.prototype.scheduleExpireCache =
|
||||
/**
|
||||
* @param {ol.source.Tile} tileSource Tile source.
|
||||
* @param {ol.Map} map Map.
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
*/
|
||||
function(tileSource, map, frameState) {
|
||||
var tileSourceKey = goog.getUid(tileSource).toString();
|
||||
@@ -155,7 +155,7 @@ ol.renderer.Layer.prototype.updateAttributions =
|
||||
|
||||
|
||||
/**
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
* @param {ol.source.Source} source Source.
|
||||
* @protected
|
||||
*/
|
||||
@@ -241,7 +241,7 @@ ol.renderer.Layer.prototype.snapCenterToPixel =
|
||||
* - registers idle tiles in frameState.wantedTiles so that they are not
|
||||
* discarded by the tile queue
|
||||
* - enqueues missing tiles
|
||||
* @param {oli.FrameState} frameState Frame state.
|
||||
* @param {olx.FrameState} frameState Frame state.
|
||||
* @param {ol.source.Tile} tileSource Tile source.
|
||||
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
|
||||
Reference in New Issue
Block a user