Rename _ol_CenterConstraint_ to CenterConstraint

This commit is contained in:
Tim Schaub
2018-01-08 09:48:51 -07:00
parent f1292cc46b
commit c2a75c9040
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -2,14 +2,14 @@
* @module ol/CenterConstraint
*/
import {clamp} from './math.js';
var _ol_CenterConstraint_ = {};
var CenterConstraint = {};
/**
* @param {ol.Extent} extent Extent.
* @return {ol.CenterConstraintType} The constraint.
*/
_ol_CenterConstraint_.createExtent = function(extent) {
CenterConstraint.createExtent = function(extent) {
return (
/**
* @param {ol.Coordinate|undefined} center Center.
@@ -33,7 +33,7 @@ _ol_CenterConstraint_.createExtent = function(extent) {
* @param {ol.Coordinate|undefined} center Center.
* @return {ol.Coordinate|undefined} Center.
*/
_ol_CenterConstraint_.none = function(center) {
CenterConstraint.none = function(center) {
return center;
};
export default _ol_CenterConstraint_;
export default CenterConstraint;