diff --git a/externs/olx.js b/externs/olx.js index 5dcc2c040b..90bd5f5313 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,29 +5,6 @@ let olx; -/** - * @typedef {{duration: (number|undefined), - * delta: (number|undefined)}} - */ -olx.interaction.DoubleClickZoomOptions; - - -/** - * Animation duration in milliseconds. Default is `250`. - * @type {number|undefined} - * @api - */ -olx.interaction.DoubleClickZoomOptions.prototype.duration; - - -/** - * The zoom delta applied on each double click, default is `1`. - * @type {number|undefined} - * @api - */ -olx.interaction.DoubleClickZoomOptions.prototype.delta; - - /** * @typedef {{formatConstructors: (Array.|undefined), * source: (ol.source.Vector|undefined), diff --git a/externs/xol.js b/externs/xol.js index 9193164f13..e92673df2d 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,11 +1,4 @@ -/** - * @typedef {Object} interaction_DoubleClickZoomOptions - * @property {number|undefined} duration Animation duration in milliseconds. Default is `250`. - * @property {number|undefined} delta The zoom delta applied on each double click, default is `1`. - */ - - /** * @typedef {Object} interaction_DragAndDropOptions * @property {Array.|undefined} formatConstructors Format constructors. diff --git a/src/ol/interaction/DoubleClickZoom.js b/src/ol/interaction/DoubleClickZoom.js index 2dadd72287..9058896ebf 100644 --- a/src/ol/interaction/DoubleClickZoom.js +++ b/src/ol/interaction/DoubleClickZoom.js @@ -5,13 +5,21 @@ import {inherits} from '../index.js'; import MapBrowserEventType from '../MapBrowserEventType.js'; import Interaction, {zoomByDelta} from '../interaction/Interaction.js'; + +/** + * @typedef {Object} Options + * @property {number} [duration] Animation duration in milliseconds. Default is `250`. + * @property {number} [delta] The zoom delta applied on each double click, default is `1`. + */ + + /** * @classdesc * Allows the user to zoom by double-clicking on the map. * * @constructor - * @extends {ol.interaction.Interaction} - * @param {olx.interaction.DoubleClickZoomOptions=} opt_options Options. + * @extends {module:ol/interaction/Interaction~Interaction} + * @param {module:ol/interaction/DoubleClickZoom~Options=} opt_options Options. * @api */ const DoubleClickZoom = function(opt_options) { @@ -44,7 +52,7 @@ inherits(DoubleClickZoom, Interaction); * doubleclick) and eventually zooms the map. * @param {module:ol/MapBrowserEvent~MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} `false` to stop event propagation. - * @this {ol.interaction.DoubleClickZoom} + * @this {module:ol/interaction/DoubleClickZoom~DoubleClickZoom} */ function handleEvent(mapBrowserEvent) { let stopEvent = false;