Remove lint
This commit is contained in:
@@ -151,9 +151,9 @@ class GeometryCollection extends Geometry {
|
||||
for (let i = 0, ii = geometries.length; i < ii; ++i) {
|
||||
if (geometries[i].getType() === this.getType()) {
|
||||
geometriesArray = geometriesArray.concat(
|
||||
/** @type {GeometryCollection} */ (geometries[
|
||||
i
|
||||
]).getGeometriesArrayRecursive()
|
||||
/** @type {GeometryCollection} */ (
|
||||
geometries[i]
|
||||
).getGeometriesArrayRecursive()
|
||||
);
|
||||
} else {
|
||||
geometriesArray.push(geometries[i]);
|
||||
@@ -185,9 +185,8 @@ class GeometryCollection extends Geometry {
|
||||
let simplified = false;
|
||||
for (let i = 0, ii = geometries.length; i < ii; ++i) {
|
||||
const geometry = geometries[i];
|
||||
const simplifiedGeometry = geometry.getSimplifiedGeometry(
|
||||
squaredTolerance
|
||||
);
|
||||
const simplifiedGeometry =
|
||||
geometry.getSimplifiedGeometry(squaredTolerance);
|
||||
simplifiedGeometries.push(simplifiedGeometry);
|
||||
if (simplifiedGeometry !== geometry) {
|
||||
simplified = true;
|
||||
|
||||
@@ -61,7 +61,9 @@ class LineString extends SimpleGeometry {
|
||||
);
|
||||
} else {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (coordinates),
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,9 @@ class LinearRing extends SimpleGeometry {
|
||||
);
|
||||
} else {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (coordinates),
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,9 @@ class MultiLineString extends SimpleGeometry {
|
||||
|
||||
if (Array.isArray(coordinates[0])) {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<Array<import("../coordinate.js").Coordinate>>} */ (coordinates),
|
||||
/** @type {Array<Array<import("../coordinate.js").Coordinate>>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
} else if (opt_layout !== undefined && opt_ends) {
|
||||
|
||||
@@ -31,7 +31,9 @@ class MultiPoint extends SimpleGeometry {
|
||||
);
|
||||
} else {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (coordinates),
|
||||
/** @type {Array<import("../coordinate.js").Coordinate>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,9 @@ class MultiPolygon extends SimpleGeometry {
|
||||
this.endss_ = opt_endss;
|
||||
} else {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<Array<Array<import("../coordinate.js").Coordinate>>>} */ (coordinates),
|
||||
/** @type {Array<Array<Array<import("../coordinate.js").Coordinate>>>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
}
|
||||
|
||||
@@ -91,7 +91,9 @@ class Polygon extends SimpleGeometry {
|
||||
this.ends_ = opt_ends;
|
||||
} else {
|
||||
this.setCoordinates(
|
||||
/** @type {Array<Array<import("../coordinate.js").Coordinate>>} */ (coordinates),
|
||||
/** @type {Array<Array<import("../coordinate.js").Coordinate>>} */ (
|
||||
coordinates
|
||||
),
|
||||
opt_layout
|
||||
);
|
||||
}
|
||||
|
||||
@@ -117,9 +117,8 @@ class SimpleGeometry extends Geometry {
|
||||
return this;
|
||||
}
|
||||
|
||||
const simplifiedGeometry = this.getSimplifiedGeometryInternal(
|
||||
squaredTolerance
|
||||
);
|
||||
const simplifiedGeometry =
|
||||
this.getSimplifiedGeometryInternal(squaredTolerance);
|
||||
const simplifiedFlatCoordinates = simplifiedGeometry.getFlatCoordinates();
|
||||
if (simplifiedFlatCoordinates.length < this.flatCoordinates.length) {
|
||||
return simplifiedGeometry;
|
||||
|
||||
Reference in New Issue
Block a user