Get rid of olx.js and typedef.js typedefs for ol
This commit is contained in:
@@ -5,14 +5,19 @@ import {clamp} from './math.js';
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Extent} extent Extent.
|
||||
* @return {ol.CenterConstraintType} The constraint.
|
||||
* @typedef {function((module:ol/coordinate~Coordinate|undefined)): (module:ol/coordinate~Coordinate|undefined)} Type
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/extent~Extent} extent Extent.
|
||||
* @return {module:ol/centerconstraint~Type} The constraint.
|
||||
*/
|
||||
export function createExtent(extent) {
|
||||
return (
|
||||
/**
|
||||
* @param {ol.Coordinate|undefined} center Center.
|
||||
* @return {ol.Coordinate|undefined} Center.
|
||||
* @param {module:ol/coordinate~Coordinate=} center Center.
|
||||
* @return {module:ol/coordinate~Coordinate|undefined} Center.
|
||||
*/
|
||||
function(center) {
|
||||
if (center) {
|
||||
@@ -29,8 +34,8 @@ export function createExtent(extent) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Coordinate|undefined} center Center.
|
||||
* @return {ol.Coordinate|undefined} Center.
|
||||
* @param {module:ol/coordinate~Coordinate=} center Center.
|
||||
* @return {module:ol/coordinate~Coordinate|undefined} Center.
|
||||
*/
|
||||
export function none(center) {
|
||||
return center;
|
||||
|
||||
Reference in New Issue
Block a user