Get rid of olx.js and typedef.js typedefs for ol

This commit is contained in:
Andreas Hocevar
2018-03-08 18:42:57 +01:00
parent 8f0ffe2043
commit 95d6251dbb
198 changed files with 2262 additions and 2698 deletions

View File

@@ -61,7 +61,7 @@ const Control = function(options) {
/**
* @protected
* @type {!Array.<ol.EventsKey>}
* @type {!Array.<module:ol/events~EventsKey>}
*/
this.listenerKeys = [];

View File

@@ -78,13 +78,13 @@ const MousePosition = function(opt_options) {
/**
* @private
* @type {?ol.TransformFunction}
* @type {?module:ol/proj~TransformFunction}
*/
this.transform_ = null;
/**
* @private
* @type {ol.Pixel}
* @type {module:ol~Pixel}
*/
this.lastMouseMovePixel_ = null;
@@ -124,13 +124,13 @@ MousePosition.prototype.handleProjectionChanged_ = function() {
/**
* Return the coordinate format type used to render the current position or
* undefined.
* @return {ol.CoordinateFormatType|undefined} The format to render the current
* @return {module:ol/coordinate~CoordinateFormat|undefined} The format to render the current
* position in.
* @observable
* @api
*/
MousePosition.prototype.getCoordinateFormat = function() {
return /** @type {ol.CoordinateFormatType|undefined} */ (this.get(COORDINATE_FORMAT));
return /** @type {module:ol/coordinate~CoordinateFormat|undefined} */ (this.get(COORDINATE_FORMAT));
};
@@ -187,7 +187,7 @@ MousePosition.prototype.setMap = function(map) {
/**
* Set the coordinate format type used to render the current position.
* @param {ol.CoordinateFormatType} format The format to render the current
* @param {module:ol/coordinate~CoordinateFormat} format The format to render the current
* position in.
* @observable
* @api
@@ -199,7 +199,7 @@ MousePosition.prototype.setCoordinateFormat = function(format) {
/**
* Set the projection that is used to report the mouse position.
* @param {ol.ProjectionLike} projection The projection to report mouse
* @param {module:ol/proj~ProjectionLike} projection The projection to report mouse
* position in.
* @observable
* @api
@@ -210,7 +210,7 @@ MousePosition.prototype.setProjection = function(projection) {
/**
* @param {?ol.Pixel} pixel Pixel.
* @param {?module:ol~Pixel} pixel Pixel.
* @private
*/
MousePosition.prototype.updateHTML_ = function(pixel) {

View File

@@ -329,12 +329,12 @@ OverviewMap.prototype.validateExtent_ = function() {
return;
}
const mapSize = /** @type {ol.Size} */ (map.getSize());
const mapSize = /** @type {module:ol/size~Size} */ (map.getSize());
const view = map.getView();
const extent = view.calculateExtent(mapSize);
const ovmapSize = /** @type {ol.Size} */ (ovmap.getSize());
const ovmapSize = /** @type {module:ol/size~Size} */ (ovmap.getSize());
const ovview = ovmap.getView();
const ovextent = ovview.calculateExtent(ovmapSize);
@@ -374,7 +374,7 @@ OverviewMap.prototype.resetExtent_ = function() {
const map = this.getMap();
const ovmap = this.ovmap_;
const mapSize = /** @type {ol.Size} */ (map.getSize());
const mapSize = /** @type {module:ol/size~Size} */ (map.getSize());
const view = map.getView();
const extent = view.calculateExtent(mapSize);
@@ -421,7 +421,7 @@ OverviewMap.prototype.updateBox_ = function() {
return;
}
const mapSize = /** @type {ol.Size} */ (map.getSize());
const mapSize = /** @type {module:ol/size~Size} */ (map.getSize());
const view = map.getView();
@@ -450,8 +450,8 @@ OverviewMap.prototype.updateBox_ = function() {
/**
* @param {number} rotation Target rotation.
* @param {ol.Coordinate} coordinate Coordinate.
* @return {ol.Coordinate|undefined} Coordinate for rotation and center anchor.
* @param {module:ol/coordinate~Coordinate} coordinate Coordinate.
* @return {module:ol/coordinate~Coordinate|undefined} Coordinate for rotation and center anchor.
* @private
*/
OverviewMap.prototype.calculateCoordinateRotate_ = function(

View File

@@ -92,7 +92,7 @@ const ZoomSlider = function(opt_options) {
/**
* The calculated thumb size (border box plus margins). Set when initSlider_
* is called.
* @type {ol.Size}
* @type {module:ol/size~Size}
* @private
*/
this.thumbSize_ = null;

View File

@@ -21,7 +21,7 @@ const ZoomToExtent = function(opt_options) {
const options = opt_options ? opt_options : {};
/**
* @type {ol.Extent}
* @type {module:ol/extent~Extent}
* @protected
*/
this.extent = options.extent ? options.extent : null;