Move AnimationOptions to ol/View
This commit is contained in:
@@ -5,81 +5,6 @@
|
||||
let olx;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* center: (ol.Coordinate|undefined),
|
||||
* zoom: (number|undefined),
|
||||
* resolution: (number|undefined),
|
||||
* rotation: (number|undefined),
|
||||
* anchor: (ol.Coordinate|undefined),
|
||||
* duration: (number|undefined),
|
||||
* easing: (undefined|function(number):number)
|
||||
* }}
|
||||
*/
|
||||
olx.AnimationOptions;
|
||||
|
||||
|
||||
/**
|
||||
* The center of the view at the end of the animation.
|
||||
* @type {ol.Coordinate|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.center;
|
||||
|
||||
|
||||
/**
|
||||
* The zoom level of the view at the end of the animation. This takes
|
||||
* precedence over `resolution`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.zoom;
|
||||
|
||||
|
||||
/**
|
||||
* The resolution of the view at the end of the animation. If `zoom` is also
|
||||
* provided, this option will be ignored.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.resolution;
|
||||
|
||||
|
||||
/**
|
||||
* The rotation of the view at the end of the animation.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.rotation;
|
||||
|
||||
|
||||
/**
|
||||
* Optional anchor to remained fixed during a rotation or resolution animation.
|
||||
* @type {ol.Coordinate|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.anchor;
|
||||
|
||||
|
||||
/**
|
||||
* The duration of the animation in milliseconds (defaults to `1000`).
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.duration;
|
||||
|
||||
|
||||
/**
|
||||
* The easing function used during the animation (defaults to {@link ol.easing.inAndOut}).
|
||||
* The function will be called for each frame with a number representing a
|
||||
* fraction of the animation's duration. The function should return a number
|
||||
* between 0 and 1 representing the progress toward the destination state.
|
||||
* @type {undefined|function(number):number}
|
||||
* @api
|
||||
*/
|
||||
olx.AnimationOptions.prototype.easing;
|
||||
|
||||
|
||||
/**
|
||||
* Namespace.
|
||||
* @type {Object}
|
||||
|
||||
@@ -1,21 +1,4 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} AnimationOptions
|
||||
* @property {ol.Coordinate|undefined} center The center of the view at the end of the animation.
|
||||
* @property {number|undefined} zoom The zoom level of the view at the end of the animation. This takes
|
||||
* precedence over `resolution`.
|
||||
* @property {number|undefined} resolution The resolution of the view at the end of the animation. If `zoom` is also
|
||||
* provided, this option will be ignored.
|
||||
* @property {number|undefined} rotation The rotation of the view at the end of the animation.
|
||||
* @property {ol.Coordinate|undefined} anchor Optional anchor to remained fixed during a rotation or resolution animation.
|
||||
* @property {number|undefined} duration The duration of the animation in milliseconds (defaults to `1000`).
|
||||
* @property {undefined|function(number):number} easing The easing function used during the animation (defaults to {@link ol.easing.inAndOut}).
|
||||
* The function will be called for each frame with a number representing a
|
||||
* fraction of the animation's duration. The function should return a number
|
||||
* between 0 and 1 representing the progress toward the destination state.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Object} control_AttributionOptions
|
||||
* @property {string|undefined} className CSS class name. Default is `ol-attribution`.
|
||||
|
||||
Reference in New Issue
Block a user