From 9ca2e4d01f08dfca6503a07a8c5812dbad86a883 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 7 Mar 2018 13:52:57 +0100 Subject: [PATCH] New typedef syntax for ProjectionLike --- src/ol/typedefs.js | 8 -------- src/ol/types.js | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index df0dc6d0ab..aded1fed4e 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -387,14 +387,6 @@ ol.ModifySegmentDataType; ol.PreRenderFunction; -/** - * A projection as {@link ol.proj.Projection}, SRS identifier string or - * undefined. - * @typedef {ol.proj.Projection|string|undefined} - */ -ol.ProjectionLike; - - /** * A function that takes an array of input data, performs some operation, and * returns an array of ouput data. diff --git a/src/ol/types.js b/src/ol/types.js index 895be0128f..4c52ed22a9 100644 --- a/src/ol/types.js +++ b/src/ol/types.js @@ -38,6 +38,13 @@ * @typedef {function(module:ol/PluggableMap~PluggableMap, ?olx.FrameState): boolean} PostRenderFunction */ +/** + * A projection as {@link module:ol/proj/Projection~Projection}, SRS identifier + * string or undefined. + * @typedef {module:ol/proj/Projection~Projection|string|undefined} ProjectionLike + * @api + */ + /** * An array representing an affine 2d transformation for use with * {@link module:ol/transform} functions. The array has 6 elements.