Add NearestDirectionFunction to zDirection typedef

This commit is contained in:
mike-000
2021-07-08 15:10:04 +01:00
parent ddf7ac6e42
commit 13ec72bcf4
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ import {scale as scaleSize, toSize} from '../size.js';
* @property {boolean} [wrapX=true] WrapX. * @property {boolean} [wrapX=true] WrapX.
* @property {number} [transition] Transition. * @property {number} [transition] Transition.
* @property {string} [key] Key. * @property {string} [key] Key.
* @property {number} [zDirection=0] ZDirection. * @property {number|import("../array.js").NearestDirectionFunction} [zDirection=0] ZDirection.
*/ */
/** /**
@@ -108,7 +108,7 @@ class TileSource extends Source {
* by a renderer if the views resolution does not match any resolution of the tile source. * 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 * 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. * will be used. If -1, the nearest higher resolution will be used.
* @type {number} * @type {number|import("../array.js").NearestDirectionFunction}
*/ */
this.zDirection = options.zDirection ? options.zDirection : 0; this.zDirection = options.zDirection ? options.zDirection : 0;
} }

View File

@@ -25,7 +25,7 @@ import {getUid} from '../util.js';
* @property {boolean} [wrapX=true] WrapX. * @property {boolean} [wrapX=true] WrapX.
* @property {number} [transition] Transition. * @property {number} [transition] Transition.
* @property {string} [key] Key. * @property {string} [key] Key.
* @property {number} [zDirection=0] ZDirection. * @property {number|import("../array.js").NearestDirectionFunction} [zDirection=0] ZDirection.
*/ */
/** /**