diff --git a/src/ol/View.js b/src/ol/View.js index 2a168cf7fb..d470b80c5d 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -146,8 +146,8 @@ import Units from './proj/Units.js'; * the animation. * @property {ol.Coordinate|undefined} anchor Optional anchor to remained fixed * during a rotation or resolution animation. - * @property {number|undefined} [duration=1000] The duration of the animation in milliseconds. - * @property {undefined|function(number):number} [easing] The easing function used + * @property {number} [duration=1000] The duration of the animation in milliseconds. + * @property {function(number):number} [easing] The easing function used * during the animation (defaults to {@link ol.easing.inAndOut}). * The function will be called for each frame with a number representing a * fraction of the animation's duration. The function should return a number diff --git a/src/ol/control/Rotate.js b/src/ol/control/Rotate.js index 76a725c7e5..0ff894b973 100644 --- a/src/ol/control/Rotate.js +++ b/src/ol/control/Rotate.js @@ -12,17 +12,17 @@ import {inherits} from '../index.js'; /** * @typedef {Object} Options - * @property {string|undefined} [className='ol-rotate'] CSS class name. - * @property {string|Element|undefined} [label='⇧'] Text label to use for the rotate button. + * @property {string} [className='ol-rotate'] CSS class name. + * @property {string|Element} [label='⇧'] Text label to use for the rotate button. * Instead of text, also an element (e.g. a `span` element) can be used. - * @property {string|undefined} [tipLabel='Reset rotation'] Text label to use for the rotate tip. - * @property {number|undefined} [duration=250] Animation duration in milliseconds. - * @property {boolean|undefined} [autoHide=true] Hide the control when rotation is 0. + * @property {string} [tipLabel='Reset rotation'] Text label to use for the rotate tip. + * @property {number} [duration=250] Animation duration in milliseconds. + * @property {boolean} [autoHide=true] Hide the control when rotation is 0. * @property {function(ol.MapEvent)|undefined} render Function called when the control should * be re-rendered. This is called in a `requestAnimationFrame` callback. - * @property {function()|undefined} [resetNorth] Function called when the control is clicked. + * @property {function()} [resetNorth] Function called when the control is clicked. * This will override the default `resetNorth`. - * @property {Element|string|undefined} [target] Specify a target if you want the control to be + * @property {Element|string} [target] Specify a target if you want the control to be * rendered outside of the map's viewport. */ diff --git a/src/ol/control/Zoom.js b/src/ol/control/Zoom.js index 6d27698ab9..2f5dac07fe 100644 --- a/src/ol/control/Zoom.js +++ b/src/ol/control/Zoom.js @@ -11,16 +11,16 @@ import {easeOut} from '../easing.js'; /** * @typedef {Object} Options - * @property {number|undefined} [duration=250] Animation duration in milliseconds. - * @property {string|undefined} [className='ol-zoom'] CSS class name. - * @property {string|Element|undefined} [zoomInLabel='+'] Text label to use for the zoom-in + * @property {number} [duration=250] Animation duration in milliseconds. + * @property {string} [className='ol-zoom'] CSS class name. + * @property {string|Element} [zoomInLabel='+'] Text label to use for the zoom-in * button. Instead of text, also an element (e.g. a `span` element) can be used. - * @property {string|Element|undefined} [zoomOutLabel='-'] Text label to use for the zoom-out button. + * @property {string|Element} [zoomOutLabel='-'] Text label to use for the zoom-out button. * Instead of text, also an element (e.g. a `span` element) can be used. - * @property {string|undefined} [zoomInTipLabel='Zoom in'] Text label to use for the button tip. - * @property {string|undefined} [zoomOutTipLabel='Zoom out'] Text label to use for the button tip. - * @property {number|undefined} [delta=1] The zoom delta applied on each click. - * @property {Element|string|undefined} [target] Specify a target if you want the control to be + * @property {string} [zoomInTipLabel='Zoom in'] Text label to use for the button tip. + * @property {string} [zoomOutTipLabel='Zoom out'] Text label to use for the button tip. + * @property {number} [delta=1] The zoom delta applied on each click. + * @property {Element|string} [target] Specify a target if you want the control to be * rendered outside of the map's viewport. */ diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 3360cbd8d8..23a1cdbace 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -27,8 +27,8 @@ const Direction = { /** * @typedef {Object} Options - * @property {string|undefined} className CSS class name. - * @property {number|undefined} [duration=200] Animation duration in milliseconds. + * @property {string} [className='ol-zoomslider'] CSS class name. + * @property {number} [duration=200] Animation duration in milliseconds. * @property {number|undefined} maxResolution Maximum resolution. * @property {number|undefined} minResolution Minimum resolution. * @property {function(ol.MapEvent)|undefined} render Function called when the control