Get rid of olx.js and typedef.js typedefs for ol

This commit is contained in:
Andreas Hocevar
2018-03-08 18:42:57 +01:00
parent 8f0ffe2043
commit 95d6251dbb
198 changed files with 2262 additions and 2698 deletions

View File

@@ -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;