Shorter module paths for default exports
This commit is contained in:
@@ -13,7 +13,7 @@ import {deflateCoordinate} from '../geom/flat/deflate.js';
|
||||
* Circle geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {module:ol/coordinate~Coordinate} center Center.
|
||||
* @param {number=} opt_radius Radius.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
@@ -30,7 +30,7 @@ inherits(Circle, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/Circle~Circle} Clone.
|
||||
* @return {!module:ol/geom/Circle} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -254,7 +254,7 @@ Circle.prototype.setRadius = function(radius) {
|
||||
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
|
||||
* @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a
|
||||
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
|
||||
* @return {module:ol/geom/Circle~Circle} This geometry. Note that original geometry is
|
||||
* @return {module:ol/geom/Circle} This geometry. Note that original geometry is
|
||||
* modified in place.
|
||||
* @function
|
||||
* @api
|
||||
|
||||
@@ -22,7 +22,7 @@ import {create as createTransform, compose as composeTransform} from '../transfo
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/Object~BaseObject}
|
||||
* @extends {module:ol/Object}
|
||||
* @api
|
||||
*/
|
||||
const Geometry = function() {
|
||||
@@ -43,7 +43,7 @@ const Geometry = function() {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {Object.<string, module:ol/geom/Geometry~Geometry>}
|
||||
* @type {Object.<string, module:ol/geom/Geometry>}
|
||||
*/
|
||||
this.simplifiedGeometryCache = {};
|
||||
|
||||
@@ -73,7 +73,7 @@ const tmpTransform = createTransform();
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @abstract
|
||||
* @return {!module:ol/geom/Geometry~Geometry} Clone.
|
||||
* @return {!module:ol/geom/Geometry} Clone.
|
||||
*/
|
||||
Geometry.prototype.clone = function() {};
|
||||
|
||||
@@ -181,7 +181,7 @@ Geometry.prototype.scale = function(sx, opt_sy, opt_anchor) {};
|
||||
* simplification is used to preserve topology.
|
||||
* @function
|
||||
* @param {number} tolerance The tolerance distance for simplification.
|
||||
* @return {module:ol/geom/Geometry~Geometry} A new, simplified version of the original
|
||||
* @return {module:ol/geom/Geometry} A new, simplified version of the original
|
||||
* geometry.
|
||||
* @api
|
||||
*/
|
||||
@@ -196,7 +196,7 @@ Geometry.prototype.simplify = function(tolerance) {
|
||||
* @see https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm
|
||||
* @abstract
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @return {module:ol/geom/Geometry~Geometry} Simplified geometry.
|
||||
* @return {module:ol/geom/Geometry} Simplified geometry.
|
||||
*/
|
||||
Geometry.prototype.getSimplifiedGeometry = function(squaredTolerance) {};
|
||||
|
||||
@@ -250,7 +250,7 @@ Geometry.prototype.translate = function(deltaX, deltaY) {};
|
||||
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
|
||||
* @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a
|
||||
* string identifier or a {@link module:ol/proj/Projection~Projection} object.
|
||||
* @return {module:ol/geom/Geometry~Geometry} This geometry. Note that original geometry is
|
||||
* @return {module:ol/geom/Geometry} This geometry. Note that original geometry is
|
||||
* modified in place.
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -11,11 +11,11 @@ import {clear} from '../obj.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* An array of {@link module:ol/geom/Geometry~Geometry} objects.
|
||||
* An array of {@link module:ol/geom/Geometry} objects.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/Geometry~Geometry}
|
||||
* @param {Array.<module:ol/geom/Geometry~Geometry>=} opt_geometries Geometries.
|
||||
* @extends {module:ol/geom/Geometry}
|
||||
* @param {Array.<module:ol/geom/Geometry>=} opt_geometries Geometries.
|
||||
* @api
|
||||
*/
|
||||
const GeometryCollection = function(opt_geometries) {
|
||||
@@ -24,7 +24,7 @@ const GeometryCollection = function(opt_geometries) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array.<module:ol/geom/Geometry~Geometry>}
|
||||
* @type {Array.<module:ol/geom/Geometry>}
|
||||
*/
|
||||
this.geometries_ = opt_geometries ? opt_geometries : null;
|
||||
|
||||
@@ -35,8 +35,8 @@ inherits(GeometryCollection, Geometry);
|
||||
|
||||
|
||||
/**
|
||||
* @param {Array.<module:ol/geom/Geometry~Geometry>} geometries Geometries.
|
||||
* @return {Array.<module:ol/geom/Geometry~Geometry>} Cloned geometries.
|
||||
* @param {Array.<module:ol/geom/Geometry>} geometries Geometries.
|
||||
* @return {Array.<module:ol/geom/Geometry>} Cloned geometries.
|
||||
*/
|
||||
function cloneGeometries(geometries) {
|
||||
const clonedGeometries = [];
|
||||
@@ -79,7 +79,7 @@ GeometryCollection.prototype.listenGeometriesChange_ = function() {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/GeometryCollection~GeometryCollection} Clone.
|
||||
* @return {!module:ol/geom/GeometryCollection} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -135,7 +135,7 @@ GeometryCollection.prototype.computeExtent = function(extent) {
|
||||
|
||||
/**
|
||||
* Return the geometries that make up this geometry collection.
|
||||
* @return {Array.<module:ol/geom/Geometry~Geometry>} Geometries.
|
||||
* @return {Array.<module:ol/geom/Geometry>} Geometries.
|
||||
* @api
|
||||
*/
|
||||
GeometryCollection.prototype.getGeometries = function() {
|
||||
@@ -144,7 +144,7 @@ GeometryCollection.prototype.getGeometries = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {Array.<module:ol/geom/Geometry~Geometry>} Geometries.
|
||||
* @return {Array.<module:ol/geom/Geometry>} Geometries.
|
||||
*/
|
||||
GeometryCollection.prototype.getGeometriesArray = function() {
|
||||
return this.geometries_;
|
||||
@@ -257,7 +257,7 @@ GeometryCollection.prototype.scale = function(sx, opt_sy, opt_anchor) {
|
||||
|
||||
/**
|
||||
* Set the geometries that make up this geometry collection.
|
||||
* @param {Array.<module:ol/geom/Geometry~Geometry>} geometries Geometries.
|
||||
* @param {Array.<module:ol/geom/Geometry>} geometries Geometries.
|
||||
* @api
|
||||
*/
|
||||
GeometryCollection.prototype.setGeometries = function(geometries) {
|
||||
@@ -266,7 +266,7 @@ GeometryCollection.prototype.setGeometries = function(geometries) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {Array.<module:ol/geom/Geometry~Geometry>} geometries Geometries.
|
||||
* @param {Array.<module:ol/geom/Geometry>} geometries Geometries.
|
||||
*/
|
||||
GeometryCollection.prototype.setGeometriesArray = function(geometries) {
|
||||
this.unlistenGeometriesChange_();
|
||||
|
||||
@@ -21,7 +21,7 @@ import {douglasPeucker} from '../geom/flat/simplify.js';
|
||||
* Linestring geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -78,7 +78,7 @@ LineString.prototype.appendCoordinate = function(coordinate) {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/LineString~LineString} Clone.
|
||||
* @return {!module:ol/geom/LineString} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ import {douglasPeucker} from '../geom/flat/simplify.js';
|
||||
* on its own.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -48,7 +48,7 @@ inherits(LinearRing, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/LinearRing~LinearRing} Clone.
|
||||
* @return {!module:ol/geom/LinearRing} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ import {douglasPeuckerArray} from '../geom/flat/simplify.js';
|
||||
* Multi-linestring geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -56,7 +56,7 @@ inherits(MultiLineString, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Append the passed linestring to the multilinestring.
|
||||
* @param {module:ol/geom/LineString~LineString} lineString LineString.
|
||||
* @param {module:ol/geom/LineString} lineString LineString.
|
||||
* @api
|
||||
*/
|
||||
MultiLineString.prototype.appendLineString = function(lineString) {
|
||||
@@ -72,7 +72,7 @@ MultiLineString.prototype.appendLineString = function(lineString) {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/MultiLineString~MultiLineString} Clone.
|
||||
* @return {!module:ol/geom/MultiLineString} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -160,7 +160,7 @@ MultiLineString.prototype.getEnds = function() {
|
||||
/**
|
||||
* Return the linestring at the specified index.
|
||||
* @param {number} index Index.
|
||||
* @return {module:ol/geom/LineString~LineString} LineString.
|
||||
* @return {module:ol/geom/LineString} LineString.
|
||||
* @api
|
||||
*/
|
||||
MultiLineString.prototype.getLineString = function(index) {
|
||||
@@ -176,14 +176,14 @@ MultiLineString.prototype.getLineString = function(index) {
|
||||
|
||||
/**
|
||||
* Return the linestrings of this multilinestring.
|
||||
* @return {Array.<module:ol/geom/LineString~LineString>} LineStrings.
|
||||
* @return {Array.<module:ol/geom/LineString>} LineStrings.
|
||||
* @api
|
||||
*/
|
||||
MultiLineString.prototype.getLineStrings = function() {
|
||||
const flatCoordinates = this.flatCoordinates;
|
||||
const ends = this.ends_;
|
||||
const layout = this.layout;
|
||||
/** @type {Array.<module:ol/geom/LineString~LineString>} */
|
||||
/** @type {Array.<module:ol/geom/LineString>} */
|
||||
const lineStrings = [];
|
||||
let offset = 0;
|
||||
for (let i = 0, ii = ends.length; i < ii; ++i) {
|
||||
@@ -288,7 +288,7 @@ MultiLineString.prototype.setFlatCoordinates = function(layout, flatCoordinates,
|
||||
|
||||
|
||||
/**
|
||||
* @param {Array.<module:ol/geom/LineString~LineString>} lineStrings LineStrings.
|
||||
* @param {Array.<module:ol/geom/LineString>} lineStrings LineStrings.
|
||||
*/
|
||||
MultiLineString.prototype.setLineStrings = function(lineStrings) {
|
||||
let layout = this.getLayout();
|
||||
|
||||
@@ -17,7 +17,7 @@ import {squaredDistance as squaredDx} from '../math.js';
|
||||
* Multi-point geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -32,7 +32,7 @@ inherits(MultiPoint, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Append the passed point to this multipoint.
|
||||
* @param {module:ol/geom/Point~Point} point Point.
|
||||
* @param {module:ol/geom/Point} point Point.
|
||||
* @api
|
||||
*/
|
||||
MultiPoint.prototype.appendPoint = function(point) {
|
||||
@@ -47,7 +47,7 @@ MultiPoint.prototype.appendPoint = function(point) {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/MultiPoint~MultiPoint} Clone.
|
||||
* @return {!module:ol/geom/MultiPoint} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -97,7 +97,7 @@ MultiPoint.prototype.getCoordinates = function() {
|
||||
/**
|
||||
* Return the point at the specified index.
|
||||
* @param {number} index Index.
|
||||
* @return {module:ol/geom/Point~Point} Point.
|
||||
* @return {module:ol/geom/Point} Point.
|
||||
* @api
|
||||
*/
|
||||
MultiPoint.prototype.getPoint = function(index) {
|
||||
@@ -114,14 +114,14 @@ MultiPoint.prototype.getPoint = function(index) {
|
||||
|
||||
/**
|
||||
* Return the points of this multipoint.
|
||||
* @return {Array.<module:ol/geom/Point~Point>} Points.
|
||||
* @return {Array.<module:ol/geom/Point>} Points.
|
||||
* @api
|
||||
*/
|
||||
MultiPoint.prototype.getPoints = function() {
|
||||
const flatCoordinates = this.flatCoordinates;
|
||||
const layout = this.layout;
|
||||
const stride = this.stride;
|
||||
/** @type {Array.<module:ol/geom/Point~Point>} */
|
||||
/** @type {Array.<module:ol/geom/Point>} */
|
||||
const points = [];
|
||||
for (let i = 0, ii = flatCoordinates.length; i < ii; i += stride) {
|
||||
const point = new Point(null);
|
||||
|
||||
@@ -25,7 +25,7 @@ import {quantizeMultiArray} from '../geom/flat/simplify.js';
|
||||
* Multi-polygon geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<Array.<Array.<module:ol/coordinate~Coordinate>>>} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -85,7 +85,7 @@ inherits(MultiPolygon, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Append the passed polygon to this multipolygon.
|
||||
* @param {module:ol/geom/Polygon~Polygon} polygon Polygon.
|
||||
* @param {module:ol/geom/Polygon} polygon Polygon.
|
||||
* @api
|
||||
*/
|
||||
MultiPolygon.prototype.appendPolygon = function(polygon) {
|
||||
@@ -110,7 +110,7 @@ MultiPolygon.prototype.appendPolygon = function(polygon) {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/MultiPolygon~MultiPolygon} Clone.
|
||||
* @return {!module:ol/geom/MultiPolygon} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -219,8 +219,8 @@ MultiPolygon.prototype.getFlatInteriorPoints = function() {
|
||||
|
||||
|
||||
/**
|
||||
* Return the interior points as {@link module:ol/geom/MultiPoint~MultiPoint multipoint}.
|
||||
* @return {module:ol/geom/MultiPoint~MultiPoint} Interior points as XYM coordinates, where M is
|
||||
* Return the interior points as {@link module:ol/geom/MultiPoint multipoint}.
|
||||
* @return {module:ol/geom/MultiPoint} Interior points as XYM coordinates, where M is
|
||||
* the length of the horizontal intersection that the point belongs to.
|
||||
* @api
|
||||
*/
|
||||
@@ -273,7 +273,7 @@ MultiPolygon.prototype.getSimplifiedGeometryInternal = function(squaredTolerance
|
||||
/**
|
||||
* Return the polygon at the specified index.
|
||||
* @param {number} index Index.
|
||||
* @return {module:ol/geom/Polygon~Polygon} Polygon.
|
||||
* @return {module:ol/geom/Polygon} Polygon.
|
||||
* @api
|
||||
*/
|
||||
MultiPolygon.prototype.getPolygon = function(index) {
|
||||
@@ -303,7 +303,7 @@ MultiPolygon.prototype.getPolygon = function(index) {
|
||||
|
||||
/**
|
||||
* Return the polygons of this multipolygon.
|
||||
* @return {Array.<module:ol/geom/Polygon~Polygon>} Polygons.
|
||||
* @return {Array.<module:ol/geom/Polygon>} Polygons.
|
||||
* @api
|
||||
*/
|
||||
MultiPolygon.prototype.getPolygons = function() {
|
||||
@@ -391,7 +391,7 @@ MultiPolygon.prototype.setFlatCoordinates = function(layout, flatCoordinates, en
|
||||
|
||||
|
||||
/**
|
||||
* @param {Array.<module:ol/geom/Polygon~Polygon>} polygons Polygons.
|
||||
* @param {Array.<module:ol/geom/Polygon>} polygons Polygons.
|
||||
*/
|
||||
MultiPolygon.prototype.setPolygons = function(polygons) {
|
||||
let layout = this.getLayout();
|
||||
|
||||
@@ -14,7 +14,7 @@ import {squaredDistance as squaredDx} from '../math.js';
|
||||
* Point geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {module:ol/coordinate~Coordinate} coordinates Coordinates.
|
||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
||||
* @api
|
||||
@@ -29,7 +29,7 @@ inherits(Point, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/Point~Point} Clone.
|
||||
* @return {!module:ol/geom/Point} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
|
||||
+11
-11
@@ -26,7 +26,7 @@ import {modulo} from '../math.js';
|
||||
* Polygon geometry.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/geom/SimpleGeometry~SimpleGeometry}
|
||||
* @extends {module:ol/geom/SimpleGeometry}
|
||||
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Array of linear
|
||||
* rings that define the polygon. The first linear ring of the array
|
||||
* defines the outer-boundary or surface of the polygon. Each subsequent
|
||||
@@ -91,7 +91,7 @@ inherits(Polygon, SimpleGeometry);
|
||||
|
||||
/**
|
||||
* Append the passed linear ring to this polygon.
|
||||
* @param {module:ol/geom/LinearRing~LinearRing} linearRing Linear ring.
|
||||
* @param {module:ol/geom/LinearRing} linearRing Linear ring.
|
||||
* @api
|
||||
*/
|
||||
Polygon.prototype.appendLinearRing = function(linearRing) {
|
||||
@@ -107,7 +107,7 @@ Polygon.prototype.appendLinearRing = function(linearRing) {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/Polygon~Polygon} Clone.
|
||||
* @return {!module:ol/geom/Polygon} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -209,7 +209,7 @@ Polygon.prototype.getFlatInteriorPoint = function() {
|
||||
|
||||
/**
|
||||
* Return an interior point of the polygon.
|
||||
* @return {module:ol/geom/Point~Point} Interior point as XYM coordinate, where M is the
|
||||
* @return {module:ol/geom/Point} Interior point as XYM coordinate, where M is the
|
||||
* length of the horizontal intersection that the point belongs to.
|
||||
* @api
|
||||
*/
|
||||
@@ -237,7 +237,7 @@ Polygon.prototype.getLinearRingCount = function() {
|
||||
* at index `1` and beyond.
|
||||
*
|
||||
* @param {number} index Index.
|
||||
* @return {module:ol/geom/LinearRing~LinearRing} Linear ring.
|
||||
* @return {module:ol/geom/LinearRing} Linear ring.
|
||||
* @api
|
||||
*/
|
||||
Polygon.prototype.getLinearRing = function(index) {
|
||||
@@ -253,7 +253,7 @@ Polygon.prototype.getLinearRing = function(index) {
|
||||
|
||||
/**
|
||||
* Return the linear rings of the polygon.
|
||||
* @return {Array.<module:ol/geom/LinearRing~LinearRing>} Linear rings.
|
||||
* @return {Array.<module:ol/geom/LinearRing>} Linear rings.
|
||||
* @api
|
||||
*/
|
||||
Polygon.prototype.getLinearRings = function() {
|
||||
@@ -376,7 +376,7 @@ export default Polygon;
|
||||
* polygon. Default is `32`.
|
||||
* @param {number=} opt_sphereRadius Optional radius for the sphere (defaults to
|
||||
* the Earth's mean radius using the WGS84 ellipsoid).
|
||||
* @return {module:ol/geom/Polygon~Polygon} The "circular" polygon.
|
||||
* @return {module:ol/geom/Polygon} The "circular" polygon.
|
||||
* @api
|
||||
*/
|
||||
export function circular(center, radius, opt_n, opt_sphereRadius) {
|
||||
@@ -396,7 +396,7 @@ export function circular(center, radius, opt_n, opt_sphereRadius) {
|
||||
/**
|
||||
* Create a polygon from an extent. The layout used is `XY`.
|
||||
* @param {module:ol/extent~Extent} extent The extent.
|
||||
* @return {module:ol/geom/Polygon~Polygon} The polygon.
|
||||
* @return {module:ol/geom/Polygon} The polygon.
|
||||
* @api
|
||||
*/
|
||||
export function fromExtent(extent) {
|
||||
@@ -415,11 +415,11 @@ export function fromExtent(extent) {
|
||||
|
||||
/**
|
||||
* Create a regular polygon from a circle.
|
||||
* @param {module:ol/geom/Circle~Circle} circle Circle geometry.
|
||||
* @param {module:ol/geom/Circle} circle Circle geometry.
|
||||
* @param {number=} opt_sides Number of sides of the polygon. Default is 32.
|
||||
* @param {number=} opt_angle Start angle for the first vertex of the polygon in
|
||||
* radians. Default is 0.
|
||||
* @return {module:ol/geom/Polygon~Polygon} Polygon geometry.
|
||||
* @return {module:ol/geom/Polygon} Polygon geometry.
|
||||
* @api
|
||||
*/
|
||||
export function fromCircle(circle, opt_sides, opt_angle) {
|
||||
@@ -441,7 +441,7 @@ export function fromCircle(circle, opt_sides, opt_angle) {
|
||||
|
||||
/**
|
||||
* Modify the coordinates of a polygon to make it a regular polygon.
|
||||
* @param {module:ol/geom/Polygon~Polygon} polygon Polygon geometry.
|
||||
* @param {module:ol/geom/Polygon} polygon Polygon geometry.
|
||||
* @param {module:ol/coordinate~Coordinate} center Center of the regular polygon.
|
||||
* @param {number} radius Radius of the regular polygon.
|
||||
* @param {number=} opt_angle Start angle for the first vertex of the polygon in
|
||||
|
||||
@@ -16,7 +16,7 @@ import {clear} from '../obj.js';
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/geom/Geometry~Geometry}
|
||||
* @extends {module:ol/geom/Geometry}
|
||||
* @api
|
||||
*/
|
||||
const SimpleGeometry = function() {
|
||||
@@ -59,7 +59,9 @@ function getLayoutForStride(stride) {
|
||||
} else if (stride == 4) {
|
||||
layout = GeometryLayout.XYZM;
|
||||
}
|
||||
return /** @type {module:ol/geom/GeometryLayout~GeometryLayout} */ (layout);
|
||||
return (
|
||||
/** @type {module:ol/geom/GeometryLayout~GeometryLayout} */ (layout)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +184,7 @@ SimpleGeometry.prototype.getSimplifiedGeometry = function(squaredTolerance) {
|
||||
|
||||
/**
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @return {module:ol/geom/SimpleGeometry~SimpleGeometry} Simplified geometry.
|
||||
* @return {module:ol/geom/SimpleGeometry} Simplified geometry.
|
||||
* @protected
|
||||
*/
|
||||
SimpleGeometry.prototype.getSimplifiedGeometryInternal = function(squaredTolerance) {
|
||||
@@ -316,7 +318,7 @@ SimpleGeometry.prototype.translate = function(deltaX, deltaY) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {module:ol/geom/SimpleGeometry~SimpleGeometry} simpleGeometry Simple geometry.
|
||||
* @param {module:ol/geom/SimpleGeometry} simpleGeometry Simple geometry.
|
||||
* @param {module:ol/transform~Transform} transform Transform.
|
||||
* @param {Array.<number>=} opt_dest Destination.
|
||||
* @return {Array.<number>} Transformed flat coordinates.
|
||||
|
||||
@@ -84,7 +84,7 @@ function line(interpolate, transform, squaredTolerance) {
|
||||
* @param {number} lat1 Latitude 1 in degrees.
|
||||
* @param {number} lon2 Longitude 2 in degrees.
|
||||
* @param {number} lat2 Latitude 2 in degrees.
|
||||
* @param {module:ol/proj/Projection~Projection} projection Projection.
|
||||
* @param {module:ol/proj/Projection} projection Projection.
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @return {Array.<number>} Flat coordinates.
|
||||
*/
|
||||
@@ -128,7 +128,7 @@ export function greatCircleArc(lon1, lat1, lon2, lat2, projection, squaredTolera
|
||||
* @param {number} lon Longitude.
|
||||
* @param {number} lat1 Latitude 1.
|
||||
* @param {number} lat2 Latitude 2.
|
||||
* @param {module:ol/proj/Projection~Projection} projection Projection.
|
||||
* @param {module:ol/proj/Projection} projection Projection.
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @return {Array.<number>} Flat coordinates.
|
||||
*/
|
||||
@@ -151,7 +151,7 @@ export function meridian(lon, lat1, lat2, projection, squaredTolerance) {
|
||||
* @param {number} lat Latitude.
|
||||
* @param {number} lon1 Longitude 1.
|
||||
* @param {number} lon2 Longitude 2.
|
||||
* @param {module:ol/proj/Projection~Projection} projection Projection.
|
||||
* @param {module:ol/proj/Projection} projection Projection.
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @return {Array.<number>} Flat coordinates.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user