Shorter module paths for default exports

This commit is contained in:
Frederic Junod
2018-04-30 11:22:17 +02:00
parent 7ed10b9579
commit 8684d4f7c6
2 changed files with 14 additions and 14 deletions

View File

@@ -36,10 +36,10 @@ import {createElementNS, getAllTextContent, isDocument, isNode, makeArrayExtende
/** /**
* @typedef {Object} Vec2 * @typedef {Object} Vec2
* @property {number} x * @property {number} x
* @property {module:ol/style/IconAnchorUnits~IconAnchorUnits} xunits * @property {module:ol/style/IconAnchorUnits} xunits
* @property {number} y * @property {number} y
* @property {module:ol/style/IconAnchorUnits~IconAnchorUnits} yunits * @property {module:ol/style/IconAnchorUnits} yunits
* @property {module:ol/style/IconOrigin~IconOrigin} origin * @property {module:ol/style/IconOrigin} origin
*/ */
/** /**
@@ -72,12 +72,12 @@ export function getDefaultFillStyle() {
let DEFAULT_IMAGE_STYLE_ANCHOR; let DEFAULT_IMAGE_STYLE_ANCHOR;
/** /**
* @type {module:ol/style/IconAnchorUnits~IconAnchorUnits} * @type {module:ol/style/IconAnchorUnits}
*/ */
let DEFAULT_IMAGE_STYLE_ANCHOR_X_UNITS; let DEFAULT_IMAGE_STYLE_ANCHOR_X_UNITS;
/** /**
* @type {module:ol/style/IconAnchorUnits~IconAnchorUnits} * @type {module:ol/style/IconAnchorUnits}
*/ */
let DEFAULT_IMAGE_STYLE_ANCHOR_Y_UNITS; let DEFAULT_IMAGE_STYLE_ANCHOR_Y_UNITS;
@@ -349,7 +349,7 @@ const SCHEMA_LOCATION = 'http://www.opengis.net/kml/2.2 ' +
/** /**
* @type {Object.<string, module:ol/style/IconAnchorUnits~IconAnchorUnits>} * @type {Object.<string, module:ol/style/IconAnchorUnits>}
*/ */
const ICON_ANCHOR_UNITS_MAP = { const ICON_ANCHOR_UNITS_MAP = {
'fraction': IconAnchorUnits.FRACTION, 'fraction': IconAnchorUnits.FRACTION,

View File

@@ -16,12 +16,12 @@ import ImageStyle from '../style/Image.js';
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {Array.<number>} [anchor=[0.5, 0.5]] Anchor. Default value is the icon center. * @property {Array.<number>} [anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
* @property {module:ol/style/IconOrigin~IconOrigin} [anchorOrigin] Origin of the anchor: `bottom-left`, `bottom-right`, * @property {module:ol/style/IconOrigin} [anchorOrigin] Origin of the anchor: `bottom-left`, `bottom-right`,
* `top-left` or `top-right`. Default is `top-left`. * `top-left` or `top-right`. Default is `top-left`.
* @property {module:ol/style/IconAnchorUnits~IconAnchorUnits} [anchorXUnits] Units in which the anchor x value is * @property {module:ol/style/IconAnchorUnits} [anchorXUnits] Units in which the anchor x value is
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates * specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
* the x value in pixels. Default is `'fraction'`. * the x value in pixels. Default is `'fraction'`.
* @property {module:ol/style/IconAnchorUnits~IconAnchorUnits} [anchorYUnits] Units in which the anchor y value is * @property {module:ol/style/IconAnchorUnits} [anchorYUnits] Units in which the anchor y value is
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates * specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
* the y value in pixels. Default is `'fraction'`. * the y value in pixels. Default is `'fraction'`.
* @property {module:ol/color~Color|string} [color] Color to tint the icon. If not specified, * @property {module:ol/color~Color|string} [color] Color to tint the icon. If not specified,
@@ -34,7 +34,7 @@ import ImageStyle from '../style/Image.js';
* to provide the size of the image, with the `imgSize` option. * to provide the size of the image, with the `imgSize` option.
* @property {Array.<number>} [offset=[0, 0]] Offset, which, together with the size and the offset origin, define the * @property {Array.<number>} [offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
* sub-rectangle to use from the original icon image. * sub-rectangle to use from the original icon image.
* @property {module:ol/style/IconOrigin~IconOrigin} [offsetOrigin] Origin of the offset: `bottom-left`, `bottom-right`, * @property {module:ol/style/IconOrigin} [offsetOrigin] Origin of the offset: `bottom-left`, `bottom-right`,
* `top-left` or `top-right`. Default is `top-left`. * `top-left` or `top-right`. Default is `top-left`.
* @property {number} [opacity=1] Opacity of the icon. * @property {number} [opacity=1] Opacity of the icon.
* @property {number} [scale=1] Scale. * @property {number} [scale=1] Scale.
@@ -79,21 +79,21 @@ const Icon = function(opt_options) {
/** /**
* @private * @private
* @type {module:ol/style/IconOrigin~IconOrigin} * @type {module:ol/style/IconOrigin}
*/ */
this.anchorOrigin_ = options.anchorOrigin !== undefined ? this.anchorOrigin_ = options.anchorOrigin !== undefined ?
options.anchorOrigin : IconOrigin.TOP_LEFT; options.anchorOrigin : IconOrigin.TOP_LEFT;
/** /**
* @private * @private
* @type {module:ol/style/IconAnchorUnits~IconAnchorUnits} * @type {module:ol/style/IconAnchorUnits}
*/ */
this.anchorXUnits_ = options.anchorXUnits !== undefined ? this.anchorXUnits_ = options.anchorXUnits !== undefined ?
options.anchorXUnits : IconAnchorUnits.FRACTION; options.anchorXUnits : IconAnchorUnits.FRACTION;
/** /**
* @private * @private
* @type {module:ol/style/IconAnchorUnits~IconAnchorUnits} * @type {module:ol/style/IconAnchorUnits}
*/ */
this.anchorYUnits_ = options.anchorYUnits !== undefined ? this.anchorYUnits_ = options.anchorYUnits !== undefined ?
options.anchorYUnits : IconAnchorUnits.FRACTION; options.anchorYUnits : IconAnchorUnits.FRACTION;
@@ -158,7 +158,7 @@ const Icon = function(opt_options) {
/** /**
* @private * @private
* @type {module:ol/style/IconOrigin~IconOrigin} * @type {module:ol/style/IconOrigin}
*/ */
this.offsetOrigin_ = options.offsetOrigin !== undefined ? this.offsetOrigin_ = options.offsetOrigin !== undefined ?
options.offsetOrigin : IconOrigin.TOP_LEFT; options.offsetOrigin : IconOrigin.TOP_LEFT;