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
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/EsriJSON
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {assert} from '../asserts.js';
import {containsExtent} from '../extent.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/GML2
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {createOrUpdate} from '../extent.js';
import {transformWithOptions} from '../format/Feature.js';
import GMLBase, {GMLNS} from '../format/GMLBase.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/GML3
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {extend} from '../array.js';
import {createOrUpdate} from '../extent.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -4,7 +4,7 @@
// FIXME Envelopes should not be treated as geometries! readEnvelope_ is part
// of GEOMETRY_PARSERS_ and methods using GEOMETRY_PARSERS_ do not expect
// envelopes/extents, only geometries!
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {extend} from '../array.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/GPX
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {includes} from '../array.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -4,7 +4,7 @@
// TODO: serialize dataProjection as crs member when writing
// see https://github.com/openlayers/openlayers/issues/2078
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/IGC
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import TextFeature from '../format/TextFeature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/JSONFeature
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import FeatureFormat from '../format/Feature.js';
import FormatType from '../format/FormatType.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/KML
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {extend, includes} from '../array.js';
import {assert} from '../asserts.js';
+1 -1
View File
@@ -3,7 +3,7 @@
*/
//FIXME Implement projection handling
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import PBF from 'pbf';
import FeatureFormat, {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -2,7 +2,7 @@
* @module ol/format/OSMXML
*/
// FIXME add typedef for stack state objects
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {extend} from '../array.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/OWS
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {readHref} from '../format/XLink.js';
import XML from '../format/XML.js';
import {readString} from '../format/xsd.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/Polyline
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/TextFeature
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import FeatureFormat from '../format/Feature.js';
import FormatType from '../format/FormatType.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/TopoJSON
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import JSONFeature from '../format/JSONFeature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/WFS
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import GML2 from '../format/GML2.js';
import GML3 from '../format/GML3.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/WKT
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import Feature from '../Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import TextFeature from '../format/TextFeature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/WMSCapabilities
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {readHref} from '../format/XLink.js';
import XML from '../format/XML.js';
import {readDecimalString, readString, readNonNegativeInteger, readDecimal, readBooleanString, readNonNegativeIntegerString} from '../format/xsd.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/WMSGetFeatureInfo
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {extend, includes} from '../array.js';
import GML2 from '../format/GML2.js';
import XMLFeature from '../format/XMLFeature.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/WMTSCapabilities
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {boundingExtent} from '../extent.js';
import OWS from '../format/OWS.js';
import {readHref} from '../format/XLink.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/XMLFeature
*/
import {inherits} from '../index.js';
import {inherits} from '../util.js';
import {extend} from '../array.js';
import FeatureFormat from '../format/Feature.js';
import FormatType from '../format/FormatType.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/And
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import LogicalNary from '../filter/LogicalNary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Bbox
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Filter from '../filter/Filter.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Comparison
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Filter from '../filter/Filter.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/ComparisonBinary
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Comparison from '../filter/Comparison.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Contains
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Spatial from '../filter/Spatial.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/During
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Comparison from '../filter/Comparison.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/EqualTo
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/GreaterThan
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/GreaterThanOrEqualTo
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Intersects
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Spatial from '../filter/Spatial.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/IsBetween
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Comparison from '../filter/Comparison.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/IsLike
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Comparison from '../filter/Comparison.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/IsNull
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Comparison from '../filter/Comparison.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/LessThan
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/LessThanOrEqualTo
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/LogicalNary
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import {assert} from '../../asserts.js';
import Filter from '../filter/Filter.js';
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Not
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Filter from '../filter/Filter.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/NotEqualTo
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import ComparisonBinary from '../filter/ComparisonBinary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Or
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import LogicalNary from '../filter/LogicalNary.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Spatial
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Filter from '../filter/Filter.js';
/**
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @module ol/format/filter/Within
*/
import {inherits} from '../../index.js';
import {inherits} from '../../util.js';
import Spatial from '../filter/Spatial.js';
/**