Make classes in ol/ available as named exports from ol

This commit is contained in:
ahocevar
2018-06-21 17:53:45 +02:00
parent 15d116b3c1
commit 28409486a5
218 changed files with 334 additions and 330 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/BingMaps
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {createFromTileUrlFunctions} from '../tileurlfunction.js';
import {applyTransform, intersects} from '../extent.js';
import {jsonp as requestJSONP} from '../net.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/CartoDB
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assign} from '../obj.js';
import SourceState from '../source/State.js';
import XYZ from '../source/XYZ.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Cluster
*/
import {getUid, inherits} from '../index.js';
import {getUid, inherits} from '../util.js';
import {assert} from '../asserts.js';
import Feature from '../Feature.js';
import {scale as scaleCoordinate, add as addCoordinate} from '../coordinate.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Image
*/
import {ENABLE_RASTER_REPROJECTION} from '../reproj/common.js';
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageState from '../ImageState.js';
import {linearFindNearest} from '../array.js';
import Event from '../events/Event.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageArcGISRest
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {assert} from '../asserts.js';
import {listen} from '../events.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageCanvas
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageCanvas from '../ImageCanvas.js';
import {containsExtent, getHeight, getWidth, scaleFromCenter} from '../extent.js';
import ImageSource from '../source/Image.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageMapGuide
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageStatic
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import ImageState from '../ImageState.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -3,7 +3,7 @@
*/
import {DEFAULT_WMS_VERSION} from './common.js';
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {assert} from '../asserts.js';
import {listen} from '../events.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/OSM
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import XYZ from '../source/XYZ.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Raster
*/
import {getUid, inherits} from '../index.js';
import {getUid, inherits} from '../util.js';
import ImageCanvas from '../ImageCanvas.js';
import TileQueue from '../TileQueue.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Source
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {UNDEFINED} from '../functions.js';
import BaseObject from '../Object.js';
import {get as getProjection} from '../proj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Stamen
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {ATTRIBUTION as OSM_ATTRIBUTION} from '../source/OSM.js';
import XYZ from '../source/XYZ.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Tile
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {UNDEFINED} from '../functions.js';
import TileCache from '../TileCache.js';
import TileState from '../TileState.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/TileArcGISRest
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {createEmpty} from '../extent.js';
import {modulo} from '../math.js';
import {assign} from '../obj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/TileDebug
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/TileImage
*/
import {ENABLE_RASTER_REPROJECTION} from '../reproj/common.js';
import {getUid, inherits} from '../index.js';
import {getUid, inherits} from '../util.js';
import ImageTile from '../ImageTile.js';
import TileCache from '../TileCache.js';
import TileState from '../TileState.js';

View File

@@ -7,7 +7,7 @@
* @see http://mapbox.com/developers/api/
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {createFromTemplates} from '../tileurlfunction.js';
import {assert} from '../asserts.js';
import {applyTransform, intersects} from '../extent.js';

View File

@@ -3,7 +3,7 @@
*/
import {DEFAULT_WMS_VERSION} from './common.js';
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import {buffer, createEmpty} from '../extent.js';
import {assign} from '../obj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/UTFGrid
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import {createFromTemplates, nullTileUrlFunction} from '../tileurlfunction.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/UrlTile
*/
import {getUid, inherits} from '../index.js';
import {getUid, inherits} from '../util.js';
import TileState from '../TileState.js';
import {expandUrl, createFromTemplates, nullTileUrlFunction} from '../tileurlfunction.js';
import TileSource, {TileSourceEvent} from '../source/Tile.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Vector
*/
import {getUid, inherits} from '../index.js';
import {getUid, inherits} from '../util.js';
import Collection from '../Collection.js';
import CollectionEventType from '../CollectionEventType.js';
import ObjectEventType from '../ObjectEventType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/VectorTile
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import TileState from '../TileState.js';
import VectorImageTile, {defaultLoadFunction} from '../VectorImageTile.js';
import Tile from '../VectorTile.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/WMTS
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {expandUrl, createFromTileUrlFunctions, nullTileUrlFunction} from '../tileurlfunction.js';
import {find, findIndex, includes} from '../array.js';
import {containsExtent} from '../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/XYZ
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import TileImage from '../source/TileImage.js';
import {createXYZ, extentFromProjection} from '../tilegrid.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Zoomify
*/
import {DEFAULT_TILE_SIZE} from '../tilegrid/common.js';
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import ImageTile from '../ImageTile.js';
import TileState from '../TileState.js';
import {expandUrl, createFromTileUrlFunctions} from '../tileurlfunction.js';