Use imports for enum types
This commit is contained in:
@@ -21,7 +21,7 @@ class SimpleGeometry extends Geometry {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {GeometryLayout}
|
||||
* @type {import("./GeometryLayout.js").default}
|
||||
*/
|
||||
this.layout = GeometryLayout.XY;
|
||||
|
||||
@@ -90,7 +90,7 @@ class SimpleGeometry extends Geometry {
|
||||
|
||||
/**
|
||||
* Return the {@link module:ol/geom/GeometryLayout layout} of the geometry.
|
||||
* @return {GeometryLayout} Layout.
|
||||
* @return {import("./GeometryLayout.js").default} Layout.
|
||||
* @api
|
||||
*/
|
||||
getLayout() {
|
||||
@@ -152,7 +152,7 @@ class SimpleGeometry extends Geometry {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GeometryLayout} layout Layout.
|
||||
* @param {import("./GeometryLayout.js").default} layout Layout.
|
||||
* @param {Array<number>} flatCoordinates Flat coordinates.
|
||||
*/
|
||||
setFlatCoordinates(layout, flatCoordinates) {
|
||||
@@ -164,14 +164,14 @@ class SimpleGeometry extends Geometry {
|
||||
/**
|
||||
* @abstract
|
||||
* @param {!Array<*>} coordinates Coordinates.
|
||||
* @param {GeometryLayout=} opt_layout Layout.
|
||||
* @param {import("./GeometryLayout.js").default=} opt_layout Layout.
|
||||
*/
|
||||
setCoordinates(coordinates, opt_layout) {
|
||||
abstract();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GeometryLayout|undefined} layout Layout.
|
||||
* @param {import("./GeometryLayout.js").default|undefined} layout Layout.
|
||||
* @param {Array<*>} coordinates Coordinates.
|
||||
* @param {number} nesting Nesting.
|
||||
* @protected
|
||||
@@ -300,7 +300,7 @@ class SimpleGeometry extends Geometry {
|
||||
|
||||
/**
|
||||
* @param {number} stride Stride.
|
||||
* @return {GeometryLayout} layout Layout.
|
||||
* @return {import("./GeometryLayout.js").default} layout Layout.
|
||||
*/
|
||||
function getLayoutForStride(stride) {
|
||||
let layout;
|
||||
@@ -311,11 +311,11 @@ function getLayoutForStride(stride) {
|
||||
} else if (stride == 4) {
|
||||
layout = GeometryLayout.XYZM;
|
||||
}
|
||||
return /** @type {GeometryLayout} */ (layout);
|
||||
return /** @type {import("./GeometryLayout.js").default} */ (layout);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GeometryLayout} layout Layout.
|
||||
* @param {import("./GeometryLayout.js").default} layout Layout.
|
||||
* @return {number} Stride.
|
||||
*/
|
||||
export function getStrideForLayout(layout) {
|
||||
|
||||
Reference in New Issue
Block a user