Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+11 -8
View File
@@ -1,6 +1,8 @@
goog.provide('ol.RotationConstraint');
goog.require('ol.math');
/**
* @module ol/RotationConstraint
*/
import _ol_math_ from './math.js';
var _ol_RotationConstraint_ = {};
/**
@@ -8,7 +10,7 @@ goog.require('ol.math');
* @param {number} delta Delta.
* @return {number|undefined} Rotation.
*/
ol.RotationConstraint.disable = function(rotation, delta) {
_ol_RotationConstraint_.disable = function(rotation, delta) {
if (rotation !== undefined) {
return 0;
} else {
@@ -22,7 +24,7 @@ ol.RotationConstraint.disable = function(rotation, delta) {
* @param {number} delta Delta.
* @return {number|undefined} Rotation.
*/
ol.RotationConstraint.none = function(rotation, delta) {
_ol_RotationConstraint_.none = function(rotation, delta) {
if (rotation !== undefined) {
return rotation + delta;
} else {
@@ -35,7 +37,7 @@ ol.RotationConstraint.none = function(rotation, delta) {
* @param {number} n N.
* @return {ol.RotationConstraintType} Rotation constraint.
*/
ol.RotationConstraint.createSnapToN = function(n) {
_ol_RotationConstraint_.createSnapToN = function(n) {
var theta = 2 * Math.PI / n;
return (
/**
@@ -58,8 +60,8 @@ ol.RotationConstraint.createSnapToN = function(n) {
* @param {number=} opt_tolerance Tolerance.
* @return {ol.RotationConstraintType} Rotation constraint.
*/
ol.RotationConstraint.createSnapToZero = function(opt_tolerance) {
var tolerance = opt_tolerance || ol.math.toRadians(5);
_ol_RotationConstraint_.createSnapToZero = function(opt_tolerance) {
var tolerance = opt_tolerance || _ol_math_.toRadians(5);
return (
/**
* @param {number|undefined} rotation Rotation.
@@ -78,3 +80,4 @@ ol.RotationConstraint.createSnapToZero = function(opt_tolerance) {
}
});
};
export default _ol_RotationConstraint_;