Add typedefs for functions returning tiles/images
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
goog.provide('ol.reproj.Image');
|
goog.provide('ol.reproj.Image');
|
||||||
|
goog.provide('ol.reproj.ImageFunctionType');
|
||||||
|
|
||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
@@ -11,6 +12,12 @@ goog.require('ol.reproj');
|
|||||||
goog.require('ol.reproj.Triangulation');
|
goog.require('ol.reproj.Triangulation');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {function(ol.Extent, number, number) : ol.ImageBase}
|
||||||
|
*/
|
||||||
|
ol.reproj.ImageFunctionType;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
@@ -24,7 +31,7 @@ goog.require('ol.reproj.Triangulation');
|
|||||||
* @param {ol.Extent} targetExtent Target extent.
|
* @param {ol.Extent} targetExtent Target extent.
|
||||||
* @param {number} targetResolution Target resolution.
|
* @param {number} targetResolution Target resolution.
|
||||||
* @param {number} pixelRatio Pixel ratio.
|
* @param {number} pixelRatio Pixel ratio.
|
||||||
* @param {function(ol.Extent, number, number):ol.ImageBase} getImageFunction
|
* @param {ol.reproj.ImageFunctionType} getImageFunction
|
||||||
* Function returning source images (extent, resolution, pixelRatio).
|
* Function returning source images (extent, resolution, pixelRatio).
|
||||||
*/
|
*/
|
||||||
ol.reproj.Image = function(sourceProj, targetProj,
|
ol.reproj.Image = function(sourceProj, targetProj,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
goog.provide('ol.reproj.Tile');
|
goog.provide('ol.reproj.Tile');
|
||||||
|
goog.provide('ol.reproj.TileFunctionType');
|
||||||
|
|
||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
@@ -14,6 +15,12 @@ goog.require('ol.reproj');
|
|||||||
goog.require('ol.reproj.Triangulation');
|
goog.require('ol.reproj.Triangulation');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {function(number, number, number, number) : ol.Tile}
|
||||||
|
*/
|
||||||
|
ol.reproj.TileFunctionType;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
@@ -30,7 +37,7 @@ goog.require('ol.reproj.Triangulation');
|
|||||||
* @param {number} x X.
|
* @param {number} x X.
|
||||||
* @param {number} y Y.
|
* @param {number} y Y.
|
||||||
* @param {number} pixelRatio Pixel ratio.
|
* @param {number} pixelRatio Pixel ratio.
|
||||||
* @param {function(number, number, number, number) : ol.Tile} getTileFunction
|
* @param {ol.reproj.TileFunctionType} getTileFunction
|
||||||
* Function returning source tiles (z, x, y, pixelRatio).
|
* Function returning source tiles (z, x, y, pixelRatio).
|
||||||
* @param {number=} opt_errorThreshold Acceptable reprojection error (in px).
|
* @param {number=} opt_errorThreshold Acceptable reprojection error (in px).
|
||||||
* @param {boolean=} opt_renderEdges Render reprojection edges.
|
* @param {boolean=} opt_renderEdges Render reprojection edges.
|
||||||
|
|||||||
Reference in New Issue
Block a user