Move ol.KEYBOARD_PAN_DURATION const to a constructor option

This commit is contained in:
Frederic Junod
2015-04-13 14:44:46 +02:00
parent 5dfa9e0a67
commit 3b4bc0be25
3 changed files with 16 additions and 9 deletions
+9
View File
@@ -2385,6 +2385,7 @@ olx.interaction.DrawOptions.prototype.condition;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* duration: (number|undefined),
* pixelDelta: (number|undefined)}}
* @api
*/
@@ -2402,6 +2403,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}