No olx and ol types for ol/interaction/DragZoom

This commit is contained in:
ahocevar
2018-03-15 17:18:52 +01:00
parent 47d49a802e
commit 2c6afdd5bb
3 changed files with 18 additions and 58 deletions

View File

@@ -5,49 +5,6 @@
let olx;
/**
* @typedef {{className: (string|undefined),
* condition: (ol.EventsConditionType|undefined),
* duration: (number|undefined),
* out: (boolean|undefined)}}
*/
olx.interaction.DragZoomOptions;
/**
* CSS class name for styling the box. The default is `ol-dragzoom`.
* @type {string|undefined}
* @api
*/
olx.interaction.DragZoomOptions.prototype.className;
/**
* A function that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean
* to indicate whether that event should be handled.
* Default is {@link ol.events.condition.shiftKeyOnly}.
* @type {ol.EventsConditionType|undefined}
* @api
*/
olx.interaction.DragZoomOptions.prototype.condition;
/**
* Animation duration in milliseconds. Default is `200`.
* @type {number|undefined}
* @api
*/
olx.interaction.DragZoomOptions.prototype.duration;
/**
* Use interaction for zooming out. Default is `false`.
* @type {boolean|undefined}
* @api
*/
olx.interaction.DragZoomOptions.prototype.out;
/**
* @typedef {{clickTolerance: (number|undefined),
* features: (ol.Collection.<module:ol/Feature~Feature>|undefined),

View File

@@ -1,15 +1,4 @@
/**
* @typedef {Object} interaction_DragZoomOptions
* @property {string|undefined} className CSS class name for styling the box. The default is `ol-dragzoom`.
* @property {ol.EventsConditionType|undefined} condition A function that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean
* to indicate whether that event should be handled.
* Default is {@link ol.events.condition.shiftKeyOnly}.
* @property {number|undefined} duration Animation duration in milliseconds. Default is `200`.
* @property {boolean|undefined} out Use interaction for zooming out. Default is `false`.
*/
/**
* @typedef {Object} interaction_DrawOptions
* @property {number|undefined} clickTolerance The maximum distance in pixels between "down" and "up" for a "up" event