Get rid of olx.js and typedef.js typedefs for ol
This commit is contained in:
@@ -6,7 +6,7 @@ import {isEmpty} from '../obj.js';
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!Object.<string, !Object.<string, ol.TransformFunction>>}
|
||||
* @type {!Object.<string, Object.<string, module:ol/proj~TransformFunction>>}
|
||||
*/
|
||||
let transforms = {};
|
||||
|
||||
@@ -25,7 +25,7 @@ export function clear() {
|
||||
*
|
||||
* @param {ol.proj.Projection} source Source.
|
||||
* @param {ol.proj.Projection} destination Destination.
|
||||
* @param {ol.TransformFunction} transformFn Transform.
|
||||
* @param {module:ol/proj~TransformFunction} transformFn Transform.
|
||||
*/
|
||||
export function add(source, destination, transformFn) {
|
||||
const sourceCode = source.getCode();
|
||||
@@ -44,7 +44,7 @@ export function add(source, destination, transformFn) {
|
||||
*
|
||||
* @param {ol.proj.Projection} source Source projection.
|
||||
* @param {ol.proj.Projection} destination Destination projection.
|
||||
* @return {ol.TransformFunction} transformFn The unregistered transform.
|
||||
* @return {module:ol/proj~TransformFunction} transformFn The unregistered transform.
|
||||
*/
|
||||
export function remove(source, destination) {
|
||||
const sourceCode = source.getCode();
|
||||
@@ -62,7 +62,7 @@ export function remove(source, destination) {
|
||||
* Get a transform given a source code and a destination code.
|
||||
* @param {string} sourceCode The code for the source projection.
|
||||
* @param {string} destinationCode The code for the destination projection.
|
||||
* @return {ol.TransformFunction|undefined} The transform function (if found).
|
||||
* @return {module:ol/proj~TransformFunction|undefined} The transform function (if found).
|
||||
*/
|
||||
export function get(sourceCode, destinationCode) {
|
||||
let transform;
|
||||
|
||||
Reference in New Issue
Block a user