Move ol.KEYBOARD_PAN_DURATION const to a constructor option
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user