View / removed the constrainRotation method

This commit is contained in:
jahow
2019-01-12 15:41:20 +01:00
committed by Olivier Guyot
parent e6c4b2ffd1
commit c2c1aa01d3
5 changed files with 7 additions and 31 deletions

View File

@@ -681,7 +681,7 @@ class View extends BaseObject {
* @param {number=} opt_delta Delta. Default is `0`.
* @param {number=} opt_direction Direction. Default is `0`.
* @return {number|undefined} Constrained resolution.
* @api
* @private
*/
constrainResolution(resolution, opt_delta, opt_direction) {
const delta = opt_delta || 0;
@@ -689,18 +689,6 @@ class View extends BaseObject {
return this.constraints_.resolution(resolution, delta, direction);
}
/**
* Get the constrained rotation of this view.
* @param {number|undefined} rotation Rotation.
* @param {number=} opt_delta Delta. Default is `0`.
* @return {number|undefined} Constrained rotation.
* @api
*/
constrainRotation(rotation, opt_delta) {
const delta = opt_delta || 0;
return this.constraints_.rotation(rotation, delta);
}
/**
* Get the view center.
* @return {import("./coordinate.js").Coordinate|undefined} The center of the view.