Merge pull request #3549 from fredj/keyboard_pan_duration

Move ol.*_DURATION const to a constructor option
This commit is contained in:
Frédéric Junod
2015-04-20 09:03:53 +02:00
8 changed files with 99 additions and 54 deletions

View File

@@ -1435,6 +1435,7 @@ olx.control.ZoomOptions.prototype.target;
/**
* @typedef {{className: (string|undefined),
* duration: (number|undefined),
* maxResolution: (number|undefined),
* minResolution: (number|undefined),
* render: (function(ol.MapEvent)|undefined)}}
@@ -1451,6 +1452,14 @@ olx.control.ZoomSliderOptions;
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}
@@ -2257,7 +2266,8 @@ olx.interaction.DragPanOptions.prototype.kinetic;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined)}}
* @typedef {{condition: (ol.events.ConditionType|undefined),
* duration: (number|undefined)}}
* @api
*/
olx.interaction.DragRotateAndZoomOptions;
@@ -2274,7 +2284,16 @@ olx.interaction.DragRotateAndZoomOptions.prototype.condition;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined)}}
* Animation duration in milliseconds. Default is `400`.
* @type {number|undefined}
* @api
*/
olx.interaction.DragRotateAndZoomOptions.prototype.duration;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* duration: (number|undefined)}}
* @api
*/
olx.interaction.DragRotateOptions;
@@ -2290,8 +2309,17 @@ olx.interaction.DragRotateOptions;
olx.interaction.DragRotateOptions.prototype.condition;
/**
* Animation duration in milliseconds. Default is `250`.
* @type {number|undefined}
* @api
*/
olx.interaction.DragRotateOptions.prototype.duration;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* duration: (number|undefined),
* style: ol.style.Style}}
* @api
*/
@@ -2308,6 +2336,14 @@ olx.interaction.DragZoomOptions;
olx.interaction.DragZoomOptions.prototype.condition;
/**
* Animation duration in milliseconds. Default is `200`.
* @type {number|undefined}
* @api
*/
olx.interaction.DragZoomOptions.prototype.duration;
/**
* Style for the box.
* @type {ol.style.Style}
@@ -2400,6 +2436,7 @@ olx.interaction.DrawOptions.prototype.condition;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* duration: (number|undefined),
* pixelDelta: (number|undefined)}}
* @api
*/
@@ -2417,6 +2454,14 @@ olx.interaction.KeyboardPanOptions;
olx.interaction.KeyboardPanOptions.prototype.condition;
/**
* Animation duration in milliseconds. Default is `100`.
* @type {number|undefined}
* @api
*/
olx.interaction.KeyboardPanOptions.prototype.duration;
/**
* Pixel The amount to pan on each key press. Default is `128` pixels.
* @type {number|undefined}
@@ -2522,12 +2567,21 @@ olx.interaction.MouseWheelZoomOptions.prototype.duration;
/**
* @typedef {{threshold: (number|undefined)}}
* @typedef {{threshold: (number|undefined),
* duration: (number|undefined)}}
* @api
*/
olx.interaction.PinchRotateOptions;
/**
* The duration of the animation in milliseconds. Default is `250`.
* @type {number|undefined}
* @api
*/
olx.interaction.PinchRotateOptions.prototype.duration;
/**
* Minimal angle in radians to start a rotation. Default is `0.3`.
* @type {number|undefined}