diff --git a/externs/olx.js b/externs/olx.js index 6ea0e80913..78122dae45 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,57 +5,6 @@ let olx; -/** - * @typedef {{className: (string|undefined), - * duration: (number|undefined), - * maxResolution: (number|undefined), - * minResolution: (number|undefined), - * render: (function(ol.MapEvent)|undefined)}} - */ -olx.control.ZoomSliderOptions; - - -/** - * CSS class name. - * @type {string|undefined} - * @api - */ -olx.control.ZoomSliderOptions.prototype.className; - - -/** - * Animation duration in milliseconds. Default is `200`. - * @type {number|undefined} - * @api - */ -olx.control.ZoomSliderOptions.prototype.duration; - - -/** - * Maximum resolution. - * @type {number|undefined} - * @api - */ -olx.control.ZoomSliderOptions.prototype.maxResolution; - - -/** - * Minimum resolution. - * @type {number|undefined} - * @api - */ -olx.control.ZoomSliderOptions.prototype.minResolution; - - -/** - * Function called when the control should be re-rendered. This is called - * in a requestAnimationFrame callback. - * @type {function(ol.MapEvent)|undefined} - * @api - */ -olx.control.ZoomSliderOptions.prototype.render; - - /** * @typedef {{className: (string|undefined), * target: (Element|string|undefined), diff --git a/externs/xol.js b/externs/xol.js index 7f887bf640..c173c6a3bc 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,15 +1,4 @@ -/** - * @typedef {Object} control_ZoomSliderOptions - * @property {string|undefined} className CSS class name. - * @property {number|undefined} duration Animation duration in milliseconds. Default is `200`. - * @property {number|undefined} maxResolution Maximum resolution. - * @property {number|undefined} minResolution Minimum resolution. - * @property {function(ol.MapEvent)|undefined} render Function called when the control should be re-rendered. This is called - * in a requestAnimationFrame callback. - */ - - /** * @typedef {Object} control_ZoomToExtentOptions * @property {string|undefined} className Class name. Default is `ol-zoom-extent`. diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 2685b7abf1..0663b9c90a 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -25,6 +25,17 @@ const Direction = { }; +/** + * @typedef {Object} Options + * @property {string|undefined} className CSS class name. + * @property {number|undefined} duration Animation duration in milliseconds. Default is `200`. + * @property {number|undefined} maxResolution Maximum resolution. + * @property {number|undefined} minResolution Minimum resolution. + * @property {function(ol.MapEvent)|undefined} render Function called when the control + * should be re-rendered. This is called in a `requestAnimationFrame` callback. + */ + + /** * @classdesc * A slider type of control for zooming. @@ -35,7 +46,7 @@ const Direction = { * * @constructor * @extends {ol.control.Control} - * @param {olx.control.ZoomSliderOptions=} opt_options Zoom slider options. + * @param {module:ol/control/ZoomSlider~Options=} opt_options Zoom slider options. * @api */ const ZoomSlider = function(opt_options) {