Shorter module paths for default exports
This commit is contained in:
@@ -25,7 +25,7 @@ const SimpleGeometry = function() {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {module:ol/geom/GeometryLayout~GeometryLayout}
|
||||
* @type {module:ol/geom/GeometryLayout}
|
||||
*/
|
||||
this.layout = GeometryLayout.XY;
|
||||
|
||||
@@ -48,7 +48,7 @@ inherits(SimpleGeometry, Geometry);
|
||||
|
||||
/**
|
||||
* @param {number} stride Stride.
|
||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
||||
* @return {module:ol/geom/GeometryLayout} layout Layout.
|
||||
*/
|
||||
function getLayoutForStride(stride) {
|
||||
let layout;
|
||||
@@ -60,13 +60,13 @@ function getLayoutForStride(stride) {
|
||||
layout = GeometryLayout.XYZM;
|
||||
}
|
||||
return (
|
||||
/** @type {module:ol/geom/GeometryLayout~GeometryLayout} */ (layout)
|
||||
/** @type {module:ol/geom/GeometryLayout} */ (layout)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
||||
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||
* @return {number} Stride.
|
||||
*/
|
||||
export function getStrideForLayout(layout) {
|
||||
@@ -134,7 +134,7 @@ SimpleGeometry.prototype.getLastCoordinate = function() {
|
||||
|
||||
/**
|
||||
* Return the {@link module:ol/geom/GeometryLayout~GeometryLayout layout} of the geometry.
|
||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} Layout.
|
||||
* @return {module:ol/geom/GeometryLayout} Layout.
|
||||
* @api
|
||||
*/
|
||||
SimpleGeometry.prototype.getLayout = function() {
|
||||
@@ -201,7 +201,7 @@ SimpleGeometry.prototype.getStride = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
||||
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||
* @protected
|
||||
*/
|
||||
@@ -215,13 +215,13 @@ SimpleGeometry.prototype.setFlatCoordinatesInternal = function(layout, flatCoord
|
||||
/**
|
||||
* @abstract
|
||||
* @param {Array} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||
*/
|
||||
SimpleGeometry.prototype.setCoordinates = function(coordinates, opt_layout) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout|undefined} layout Layout.
|
||||
* @param {module:ol/geom/GeometryLayout|undefined} layout Layout.
|
||||
* @param {Array} coordinates Coordinates.
|
||||
* @param {number} nesting Nesting.
|
||||
* @protected
|
||||
|
||||
Reference in New Issue
Block a user