Simplify default export
This removes unnecessary variable declarations where the default object is an object.
This commit is contained in:
@@ -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