Add zDirection memeber to the baes class, for type checking

This commit is contained in:
ahocevar
2019-03-21 18:50:03 +01:00
parent 085c60af49
commit 681c3169c1
2 changed files with 9 additions and 1 deletions

View File

@@ -105,6 +105,14 @@ class TileSource extends Source {
*/
this.tileOptions = {transition: options.transition};
/**
* zDirection hint, read by the renderer. Indicates which resolution should be used
* by a renderer if the views resolution does not match any resolution of the tile source.
* If 0, the nearest resolution will be used. If 1, the nearest lower resolution
* will be used. If -1, the nearest higher resolution will be used.
* @type {number=}
*/
this.zDirection;
}
/**

View File

@@ -258,7 +258,7 @@ class Zoomify extends TileImage {
});
/**
* @type {number|undefined}
* @inheritDoc
*/
this.zDirection = options.zDirection;