Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -39,7 +39,7 @@ export function none(rotation, delta) {
|
||||
|
||||
/**
|
||||
* @param {number} n N.
|
||||
* @return {module:ol/rotationconstraint~Type} Rotation constraint.
|
||||
* @return {Type} Rotation constraint.
|
||||
*/
|
||||
export function createSnapToN(n) {
|
||||
const theta = 2 * Math.PI / n;
|
||||
@@ -62,7 +62,7 @@ export function createSnapToN(n) {
|
||||
|
||||
/**
|
||||
* @param {number=} opt_tolerance Tolerance.
|
||||
* @return {module:ol/rotationconstraint~Type} Rotation constraint.
|
||||
* @return {Type} Rotation constraint.
|
||||
*/
|
||||
export function createSnapToZero(opt_tolerance) {
|
||||
const tolerance = opt_tolerance || toRadians(5);
|
||||
|
||||
Reference in New Issue
Block a user