Simplify default export
This removes unnecessary variable declarations where the default object is an object.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* @module ol/GeolocationProperty
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_GeolocationProperty_ = {
|
||||
export default {
|
||||
ACCURACY: 'accuracy',
|
||||
ACCURACY_GEOMETRY: 'accuracyGeometry',
|
||||
ALTITUDE: 'altitude',
|
||||
@@ -16,5 +17,3 @@ var _ol_GeolocationProperty_ = {
|
||||
TRACKING: 'tracking',
|
||||
TRACKING_OPTIONS: 'trackingOptions'
|
||||
};
|
||||
|
||||
export default _ol_GeolocationProperty_;
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
/**
|
||||
* @module ol/ImageState
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
var _ol_ImageState_ = {
|
||||
export default {
|
||||
IDLE: 0,
|
||||
LOADING: 1,
|
||||
LOADED: 2,
|
||||
ERROR: 3
|
||||
};
|
||||
|
||||
export default _ol_ImageState_;
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
/**
|
||||
* @module ol/MapProperty
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_MapProperty_ = {
|
||||
export default {
|
||||
LAYERGROUP: 'layergroup',
|
||||
SIZE: 'size',
|
||||
TARGET: 'target',
|
||||
VIEW: 'view'
|
||||
};
|
||||
|
||||
export default _ol_MapProperty_;
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
/**
|
||||
* @module ol/OverlayPositioning
|
||||
*/
|
||||
|
||||
/**
|
||||
* Overlay position: `'bottom-left'`, `'bottom-center'`, `'bottom-right'`,
|
||||
* `'center-left'`, `'center-center'`, `'center-right'`, `'top-left'`,
|
||||
* `'top-center'`, `'top-right'`
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_OverlayPositioning_ = {
|
||||
export default {
|
||||
BOTTOM_LEFT: 'bottom-left',
|
||||
BOTTOM_CENTER: 'bottom-center',
|
||||
BOTTOM_RIGHT: 'bottom-right',
|
||||
@@ -18,5 +19,3 @@ var _ol_OverlayPositioning_ = {
|
||||
TOP_CENTER: 'top-center',
|
||||
TOP_RIGHT: 'top-right'
|
||||
};
|
||||
|
||||
export default _ol_OverlayPositioning_;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* @module ol/TileState
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
var _ol_TileState_ = {
|
||||
export default {
|
||||
IDLE: 0,
|
||||
LOADING: 1,
|
||||
LOADED: 2,
|
||||
@@ -12,5 +13,3 @@ var _ol_TileState_ = {
|
||||
EMPTY: 4,
|
||||
ABORT: 5
|
||||
};
|
||||
|
||||
export default _ol_TileState_;
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
/**
|
||||
* @module ol/ViewHint
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
var _ol_ViewHint_ = {
|
||||
export default {
|
||||
ANIMATING: 0,
|
||||
INTERACTING: 1
|
||||
};
|
||||
|
||||
export default _ol_ViewHint_;
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
/**
|
||||
* @module ol/ViewProperty
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_ViewProperty_ = {
|
||||
export default {
|
||||
CENTER: 'center',
|
||||
RESOLUTION: 'resolution',
|
||||
ROTATION: 'rotation'
|
||||
};
|
||||
|
||||
export default _ol_ViewProperty_;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @module ol/events/KeyCode
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
* @const
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @module ol/extent/Corner
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extent corner.
|
||||
* @enum {string}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @module ol/extent/Relationship
|
||||
*/
|
||||
|
||||
/**
|
||||
* Relationship to an extent.
|
||||
* @enum {number}
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
/**
|
||||
* @module ol/format/IGCZ
|
||||
*/
|
||||
|
||||
/**
|
||||
* IGC altitude/z. One of 'barometric', 'gps', 'none'.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_format_IGCZ_ = {
|
||||
export default {
|
||||
BAROMETRIC: 'barometric',
|
||||
GPS: 'gps',
|
||||
NONE: 'none'
|
||||
};
|
||||
|
||||
export default _ol_format_IGCZ_;
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
/**
|
||||
* @module ol/geom/GeometryLayout
|
||||
*/
|
||||
|
||||
/**
|
||||
* The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z')
|
||||
* or measure ('M') coordinate is available. Supported values are `'XY'`,
|
||||
* `'XYZ'`, `'XYM'`, `'XYZM'`.
|
||||
* @enum {string}
|
||||
*/
|
||||
var GeometryLayout = {
|
||||
export default {
|
||||
XY: 'XY',
|
||||
XYZ: 'XYZ',
|
||||
XYM: 'XYM',
|
||||
XYZM: 'XYZM'
|
||||
};
|
||||
|
||||
export default GeometryLayout;
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
/**
|
||||
* @module ol/interaction/Property
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_interaction_Property_ = {
|
||||
export default {
|
||||
ACTIVE: 'active'
|
||||
};
|
||||
|
||||
export default _ol_interaction_Property_;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* @module ol/layer/Property
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_layer_Property_ = {
|
||||
export default {
|
||||
OPACITY: 'opacity',
|
||||
VISIBLE: 'visible',
|
||||
EXTENT: 'extent',
|
||||
@@ -13,5 +14,3 @@ var _ol_layer_Property_ = {
|
||||
MIN_RESOLUTION: 'minResolution',
|
||||
SOURCE: 'source'
|
||||
};
|
||||
|
||||
export default _ol_layer_Property_;
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
/**
|
||||
* @module ol/layer/TileProperty
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_layer_TileProperty_ = {
|
||||
export default {
|
||||
PRELOAD: 'preload',
|
||||
USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError'
|
||||
};
|
||||
|
||||
export default _ol_layer_TileProperty_;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* @module ol/render/canvas/Instruction
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
var _ol_render_canvas_Instruction_ = {
|
||||
export default {
|
||||
BEGIN_GEOMETRY: 0,
|
||||
BEGIN_PATH: 1,
|
||||
CIRCLE: 2,
|
||||
@@ -19,5 +20,3 @@ var _ol_render_canvas_Instruction_ = {
|
||||
SET_STROKE_STYLE: 11,
|
||||
STROKE: 12
|
||||
};
|
||||
|
||||
export default _ol_render_canvas_Instruction_;
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
/**
|
||||
* @module ol/source/State
|
||||
*/
|
||||
|
||||
/**
|
||||
* State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_source_State_ = {
|
||||
export default {
|
||||
UNDEFINED: 'undefined',
|
||||
LOADING: 'loading',
|
||||
READY: 'ready',
|
||||
ERROR: 'error'
|
||||
};
|
||||
|
||||
export default _ol_source_State_;
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
/**
|
||||
* @module ol/source/WMTSRequestEncoding
|
||||
*/
|
||||
|
||||
/**
|
||||
* Request encoding. One of 'KVP', 'REST'.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_source_WMTSRequestEncoding_ = {
|
||||
export default {
|
||||
KVP: 'KVP', // see spec §8
|
||||
REST: 'REST' // see spec §10
|
||||
};
|
||||
|
||||
export default _ol_source_WMTSRequestEncoding_;
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
/**
|
||||
* @module ol/style/IconAnchorUnits
|
||||
*/
|
||||
|
||||
/**
|
||||
* Icon anchor units. One of 'fraction', 'pixels'.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_style_IconAnchorUnits_ = {
|
||||
export default {
|
||||
FRACTION: 'fraction',
|
||||
PIXELS: 'pixels'
|
||||
};
|
||||
|
||||
export default _ol_style_IconAnchorUnits_;
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
/**
|
||||
* @module ol/style/IconOrigin
|
||||
*/
|
||||
|
||||
/**
|
||||
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_style_IconOrigin_ = {
|
||||
export default {
|
||||
BOTTOM_LEFT: 'bottom-left',
|
||||
BOTTOM_RIGHT: 'bottom-right',
|
||||
TOP_LEFT: 'top-left',
|
||||
TOP_RIGHT: 'top-right'
|
||||
};
|
||||
|
||||
export default _ol_style_IconOrigin_;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @module ol/style/TextPlacement
|
||||
*/
|
||||
|
||||
/**
|
||||
* Text placement. One of `'point'`, `'line'`. Default is `'point'`. Note that
|
||||
* `'line'` requires the underlying geometry to be a {@link ol.geom.LineString},
|
||||
@@ -8,9 +9,7 @@
|
||||
* {@link ol.geom.MultiPolygon}.
|
||||
* @enum {string}
|
||||
*/
|
||||
var _ol_style_TextPlacement_ = {
|
||||
export default {
|
||||
POINT: 'point',
|
||||
LINE: 'line'
|
||||
};
|
||||
|
||||
export default _ol_style_TextPlacement_;
|
||||
|
||||
Reference in New Issue
Block a user