Module type for ol.Extent

This commit is contained in:
Frederic Junod
2018-04-19 15:41:27 +02:00
parent f0da3c7ef0
commit 32713ff824
4 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ import VectorSource from '../source/Vector.js';
* @typedef {Object} Options * @typedef {Object} Options
* @property {ol.AttributionLike} [attributions] Attributions. * @property {ol.AttributionLike} [attributions] Attributions.
* @property {number} [distance=20] Minimum distance in pixels between clusters. * @property {number} [distance=20] Minimum distance in pixels between clusters.
* @property {ol.Extent} [extent] Extent. * @property {module:ol/extent~Extent} [extent] Extent.
* @property {ol.format.Feature} [format] Format. * @property {ol.format.Feature} [format] Format.
* @property {function(module:ol/Feature~Feature):module:ol/geom/Point~Point} [geometryFunction] * @property {function(module:ol/Feature~Feature):module:ol/geom/Point~Point} [geometryFunction]
* Function that takes an {@link module:ol/Feature~Feature} as argument and returns an * Function that takes an {@link module:ol/Feature~Feature} as argument and returns an

View File

@@ -11,7 +11,7 @@ import ImageSource from '../source/Image.js';
* @property {ol.AttributionLike} [attributions] Attributions. * @property {ol.AttributionLike} [attributions] Attributions.
* @property {ol.CanvasFunctionType} [canvasFunction] Canvas function. * @property {ol.CanvasFunctionType} [canvasFunction] Canvas function.
* The function returning the canvas element used by the source * The function returning the canvas element used by the source
* as an image. The arguments passed to the function are: `{ol.Extent}` the * as an image. The arguments passed to the function are: `{module:ol/extent~Extent}` the
* image extent, `{number}` the image resolution, `{number}` the device pixel * image extent, `{number}` the image resolution, `{number}` the device pixel
* ratio, `{ol.Size}` the image size, and `{module:ol/proj/Projection~Projection}` the image * ratio, `{ol.Size}` the image size, and `{module:ol/proj/Projection~Projection}` the image
* projection. The canvas returned by this function is cached by the source. If * projection. The canvas returned by this function is cached by the source. If

View File

@@ -18,7 +18,7 @@ import ImageSource, {defaultImageLoadFunction} from '../source/Image.js';
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail.
* @property {ol.Extent} [imageExtent] Extent of the image in map coordinates. * @property {module:ol/extent~Extent} [imageExtent] Extent of the image in map coordinates.
* This is the [left, bottom, right, top] map coordinates of your image. * This is the [left, bottom, right, top] map coordinates of your image.
* @property {ol.ImageLoadFunctionType} [imageLoadFunction] Optional function to load an image given a URL. * @property {ol.ImageLoadFunctionType} [imageLoadFunction] Optional function to load an image given a URL.
* @property {module:ol/proj~ProjectionLike} projection Projection. * @property {module:ol/proj~ProjectionLike} projection Projection.

View File

@@ -103,7 +103,7 @@ CustomTile.prototype.getImage = function() {
* used instead of defining each one separately in the `urls` option. * used instead of defining each one separately in the `urls` option.
* @property {string} [tierSizeCalculation] Tier size calculation method: `default` or `truncated`. * @property {string} [tierSizeCalculation] Tier size calculation method: `default` or `truncated`.
* @property {ol.Size} [size] Size of the image. * @property {ol.Size} [size] Size of the image.
* @property {ol.Extent} [extent] Extent for the TileGrid that is created. * @property {module:ol/extent~Extent} [extent] Extent for the TileGrid that is created.
* Default sets the TileGrid in the * Default sets the TileGrid in the
* fourth quadrant, meaning extent is `[0, -height, width, 0]`. To change the * fourth quadrant, meaning extent is `[0, -height, width, 0]`. To change the
* extent to the first quadrant (the default for OpenLayers 2) set the extent * extent to the first quadrant (the default for OpenLayers 2) set the extent