ol 9.2.5-dev.1721167337447 → 9.2.5-dev.1721242587562
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +2 -0
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +1 -0
- package/ImageCanvas.d.ts +2 -1
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +2 -0
- package/ImageTile.js +1 -1
- package/Map.d.ts.map +1 -1
- package/Map.js +1 -0
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +2 -0
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +1 -0
- package/TileCache.d.ts +2 -1
- package/TileCache.d.ts.map +1 -1
- package/TileCache.js +4 -0
- package/TileQueue.d.ts +2 -1
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +1 -0
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +2 -0
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +1 -0
- package/control/Control.d.ts.map +1 -1
- package/control/Control.js +1 -0
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +1 -0
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +1 -0
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +1 -0
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +1 -0
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +1 -0
- package/format/EsriJSON.d.ts +8 -4
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +7 -0
- package/format/GML3.d.ts +2 -1
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +2 -0
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +1 -0
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +3 -0
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +3 -0
- package/format/GeoJSON.d.ts +8 -4
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +7 -0
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +2 -0
- package/format/JSONFeature.d.ts +8 -4
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +8 -0
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +3 -0
- package/format/MVT.d.ts +4 -2
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +3 -0
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +1 -0
- package/format/OWS.d.ts.map +1 -1
- package/format/OWS.js +1 -0
- package/format/Polyline.d.ts +6 -3
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +6 -0
- package/format/TextFeature.d.ts +8 -4
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +8 -0
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +2 -0
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +3 -0
- package/format/WKB.d.ts +8 -4
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +8 -0
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +6 -0
- package/format/WMSCapabilities.d.ts.map +1 -1
- package/format/WMSCapabilities.js +1 -0
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +1 -0
- package/format/WMTSCapabilities.d.ts.map +1 -1
- package/format/WMTSCapabilities.js +1 -0
- package/format/XMLFeature.d.ts +10 -5
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +8 -0
- package/geom/Circle.d.ts +10 -3
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +13 -0
- package/geom/GeometryCollection.d.ts +4 -2
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +12 -0
- package/geom/LineString.d.ts +8 -4
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +7 -0
- package/geom/LinearRing.d.ts +8 -4
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +7 -0
- package/geom/MultiLineString.d.ts +8 -4
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +7 -0
- package/geom/MultiPoint.d.ts +6 -3
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +6 -0
- package/geom/MultiPolygon.d.ts +8 -4
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +8 -0
- package/geom/Point.d.ts +4 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +7 -0
- package/geom/Polygon.d.ts +8 -4
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +8 -0
- package/geom/SimpleGeometry.d.ts +2 -1
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +6 -0
- package/interaction/DblClickDragZoom.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.js +1 -0
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +1 -0
- package/interaction/DragAndDrop.d.ts +2 -1
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +2 -0
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +4 -0
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +3 -0
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +3 -0
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +3 -0
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +1 -0
- package/interaction/Draw.d.ts +2 -1
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +4 -0
- package/interaction/Extent.d.ts +2 -1
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +5 -0
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +1 -0
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +1 -0
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +1 -0
- package/interaction/Modify.d.ts +2 -1
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +6 -0
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +1 -0
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -0
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -0
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +1 -0
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +2 -0
- package/interaction/Snap.d.ts +2 -1
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +3 -0
- package/interaction/Translate.d.ts +2 -1
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +5 -0
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +1 -0
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +1 -0
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +3 -0
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +3 -0
- package/layer/Heatmap.d.ts +4 -1
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +6 -0
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +4 -0
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +4 -0
- package/layer/Tile.d.ts +4 -1
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +3 -0
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +3 -0
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +3 -0
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +4 -0
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +3 -0
- package/layer/WebGLTile.d.ts +4 -2
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +6 -0
- package/package.json +1 -1
- package/render/Box.d.ts.map +1 -1
- package/render/Box.js +1 -0
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +2 -0
- package/render/canvas/ImageBuilder.d.ts +2 -1
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +4 -0
- package/render/canvas/Immediate.d.ts +24 -12
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +14 -0
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +4 -0
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +4 -0
- package/render/canvas/TextBuilder.d.ts +2 -1
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +3 -0
- package/renderer/Composite.d.ts.map +1 -1
- package/renderer/Composite.js +5 -0
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +1 -0
- package/renderer/canvas/ImageLayer.d.ts +4 -2
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +3 -0
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +1 -0
- package/renderer/canvas/TileLayer.d.ts +4 -2
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +3 -0
- package/renderer/canvas/VectorImageLayer.d.ts +6 -3
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +7 -0
- package/renderer/canvas/VectorLayer.d.ts +2 -1
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +6 -0
- package/renderer/canvas/VectorTileLayer.d.ts +2 -1
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +8 -0
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +2 -0
- package/renderer/webgl/PointsLayer.d.ts +2 -1
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +7 -0
- package/renderer/webgl/TileLayer.d.ts +16 -5
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +18 -0
- package/renderer/webgl/TileLayerBase.d.ts +4 -2
- package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
- package/renderer/webgl/TileLayerBase.js +7 -0
- package/renderer/webgl/VectorLayer.d.ts +6 -2
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +10 -0
- package/renderer/webgl/VectorTileLayer.d.ts +22 -6
- package/renderer/webgl/VectorTileLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorTileLayer.js +20 -0
- package/reproj/DataTile.d.ts.map +1 -1
- package/reproj/DataTile.js +4 -0
- package/reproj/Image.d.ts +2 -1
- package/reproj/Image.d.ts.map +1 -1
- package/reproj/Image.js +3 -0
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +2 -0
- package/source/Cluster.d.ts.map +1 -1
- package/source/Cluster.js +3 -0
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +8 -0
- package/source/Google.d.ts.map +1 -1
- package/source/Google.js +3 -0
- package/source/Image.d.ts +2 -1
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +1 -0
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +4 -0
- package/source/ImageCanvas.d.ts +2 -1
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +1 -0
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +4 -0
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +1 -0
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +4 -0
- package/source/Raster.d.ts +4 -2
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +6 -0
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +4 -0
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +1 -0
- package/source/TileImage.d.ts +2 -1
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +10 -0
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +2 -0
- package/source/UTFGrid.d.ts +4 -2
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +4 -0
- package/source/UrlTile.d.ts +2 -1
- package/source/UrlTile.d.ts.map +1 -1
- package/source/UrlTile.js +1 -0
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +3 -0
- package/source/VectorTile.d.ts +2 -1
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +6 -0
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +1 -0
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +1 -0
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +1 -0
- package/style/Circle.d.ts +2 -1
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +1 -0
- package/style/Icon.d.ts +6 -3
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +16 -0
- package/style/RegularShape.d.ts +6 -3
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +15 -0
- package/util.js +1 -1
- package/webgl/BaseTileRepresentation.d.ts.map +1 -1
- package/webgl/BaseTileRepresentation.js +3 -0
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +1 -0
- package/webgl/TileGeometry.d.ts.map +1 -1
- package/webgl/TileGeometry.js +3 -0
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +6 -0
package/geom/Circle.js
CHANGED
|
@@ -34,6 +34,7 @@ class Circle extends SimpleGeometry {
|
|
|
34
34
|
* Make a complete copy of the geometry.
|
|
35
35
|
* @return {!Circle} Clone.
|
|
36
36
|
* @api
|
|
37
|
+
* @override
|
|
37
38
|
*/
|
|
38
39
|
clone() {
|
|
39
40
|
const circle = new Circle(
|
|
@@ -51,6 +52,7 @@ class Circle extends SimpleGeometry {
|
|
|
51
52
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
52
53
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
53
54
|
* @return {number} Minimum squared distance.
|
|
55
|
+
* @override
|
|
54
56
|
*/
|
|
55
57
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
56
58
|
const flatCoordinates = this.flatCoordinates;
|
|
@@ -80,6 +82,7 @@ class Circle extends SimpleGeometry {
|
|
|
80
82
|
* @param {number} x X.
|
|
81
83
|
* @param {number} y Y.
|
|
82
84
|
* @return {boolean} Contains (x, y).
|
|
85
|
+
* @override
|
|
83
86
|
*/
|
|
84
87
|
containsXY(x, y) {
|
|
85
88
|
const flatCoordinates = this.flatCoordinates;
|
|
@@ -101,6 +104,7 @@ class Circle extends SimpleGeometry {
|
|
|
101
104
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
102
105
|
* @protected
|
|
103
106
|
* @return {import("../extent.js").Extent} extent Extent.
|
|
107
|
+
* @override
|
|
104
108
|
*/
|
|
105
109
|
computeExtent(extent) {
|
|
106
110
|
const flatCoordinates = this.flatCoordinates;
|
|
@@ -137,6 +141,7 @@ class Circle extends SimpleGeometry {
|
|
|
137
141
|
* Get the type of this geometry.
|
|
138
142
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
139
143
|
* @api
|
|
144
|
+
* @override
|
|
140
145
|
*/
|
|
141
146
|
getType() {
|
|
142
147
|
return 'Circle';
|
|
@@ -147,6 +152,7 @@ class Circle extends SimpleGeometry {
|
|
|
147
152
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
148
153
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
149
154
|
* @api
|
|
155
|
+
* @override
|
|
150
156
|
*/
|
|
151
157
|
intersectsExtent(extent) {
|
|
152
158
|
const circleExtent = this.getExtent();
|
|
@@ -206,10 +212,16 @@ class Circle extends SimpleGeometry {
|
|
|
206
212
|
this.changed();
|
|
207
213
|
}
|
|
208
214
|
|
|
215
|
+
/**
|
|
216
|
+
* @override
|
|
217
|
+
*/
|
|
209
218
|
getCoordinates() {
|
|
210
219
|
return null;
|
|
211
220
|
}
|
|
212
221
|
|
|
222
|
+
/**
|
|
223
|
+
* @override
|
|
224
|
+
*/
|
|
213
225
|
setCoordinates(coordinates, layout) {}
|
|
214
226
|
|
|
215
227
|
/**
|
|
@@ -228,6 +240,7 @@ class Circle extends SimpleGeometry {
|
|
|
228
240
|
* @param {number} angle Rotation angle in counter-clockwise radians.
|
|
229
241
|
* @param {import("../coordinate.js").Coordinate} anchor The rotation center.
|
|
230
242
|
* @api
|
|
243
|
+
* @override
|
|
231
244
|
*/
|
|
232
245
|
rotate(angle, anchor) {
|
|
233
246
|
const center = this.getCenter();
|
|
@@ -32,8 +32,9 @@ declare class GeometryCollection extends Geometry {
|
|
|
32
32
|
* Make a complete copy of the geometry.
|
|
33
33
|
* @return {!GeometryCollection} Clone.
|
|
34
34
|
* @api
|
|
35
|
+
* @override
|
|
35
36
|
*/
|
|
36
|
-
clone(): GeometryCollection;
|
|
37
|
+
override clone(): GeometryCollection;
|
|
37
38
|
/**
|
|
38
39
|
* Return the geometries that make up this geometry collection.
|
|
39
40
|
* @return {Array<Geometry>} Geometries.
|
|
@@ -52,8 +53,9 @@ declare class GeometryCollection extends Geometry {
|
|
|
52
53
|
* Create a simplified version of this geometry using the Douglas Peucker algorithm.
|
|
53
54
|
* @param {number} squaredTolerance Squared tolerance.
|
|
54
55
|
* @return {GeometryCollection} Simplified GeometryCollection.
|
|
56
|
+
* @override
|
|
55
57
|
*/
|
|
56
|
-
getSimplifiedGeometry(squaredTolerance: number): GeometryCollection;
|
|
58
|
+
override getSimplifiedGeometry(squaredTolerance: number): GeometryCollection;
|
|
57
59
|
/**
|
|
58
60
|
* @return {boolean} Is empty.
|
|
59
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryCollection.d.ts","sourceRoot":"","sources":["GeometryCollection.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IACE;;OAEG;IACH,wBAFW,KAAK,CAAC,QAAQ,CAAC,EAkBzB;IAbC;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,0BAA2B;IAK7B;;OAEG;IACH,kCAGC;IAED;;OAEG;IACH,gCAOC;IAED
|
|
1
|
+
{"version":3,"file":"GeometryCollection.d.ts","sourceRoot":"","sources":["GeometryCollection.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IACE;;OAEG;IACH,wBAFW,KAAK,CAAC,QAAQ,CAAC,EAkBzB;IAbC;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,0BAA2B;IAK7B;;OAEG;IACH,kCAGC;IAED;;OAEG;IACH,gCAOC;IAED;;;;;OAKG;IACH,kBAJa,kBAAkB,CAU9B;IAyDD;;;;OAIG;IACH,iBAHY,KAAK,CAAC,QAAQ,CAAC,CAK1B;IAED;;OAEG;IACH,sBAFY,KAAK,CAAC,QAAQ,CAAC,CAI1B;IAED;;OAEG;IACH,+BAFY,KAAK,CAAC,QAAQ,CAAC,CAkB1B;IAED;;;;;OAKG;IACH,iDAJW,MAAM,GACL,kBAAkB,CAoC7B;IA6BD;;OAEG;IACH,WAFY,OAAO,CAIlB;IAwCD;;;;OAIG;IACH,0BAHW,KAAK,CAAC,QAAQ,CAAC,QAKzB;IAED;;OAEG;IACH,+BAFW,KAAK,CAAC,QAAQ,CAAC,QAOzB;CA4CF;qBAjVoB,eAAe"}
|
|
@@ -63,6 +63,7 @@ class GeometryCollection extends Geometry {
|
|
|
63
63
|
* Make a complete copy of the geometry.
|
|
64
64
|
* @return {!GeometryCollection} Clone.
|
|
65
65
|
* @api
|
|
66
|
+
* @override
|
|
66
67
|
*/
|
|
67
68
|
clone() {
|
|
68
69
|
const geometryCollection = new GeometryCollection(
|
|
@@ -78,6 +79,7 @@ class GeometryCollection extends Geometry {
|
|
|
78
79
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
79
80
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
80
81
|
* @return {number} Minimum squared distance.
|
|
82
|
+
* @override
|
|
81
83
|
*/
|
|
82
84
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
83
85
|
if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
@@ -99,6 +101,7 @@ class GeometryCollection extends Geometry {
|
|
|
99
101
|
* @param {number} x X.
|
|
100
102
|
* @param {number} y Y.
|
|
101
103
|
* @return {boolean} Contains (x, y).
|
|
104
|
+
* @override
|
|
102
105
|
*/
|
|
103
106
|
containsXY(x, y) {
|
|
104
107
|
const geometries = this.geometries_;
|
|
@@ -114,6 +117,7 @@ class GeometryCollection extends Geometry {
|
|
|
114
117
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
115
118
|
* @protected
|
|
116
119
|
* @return {import("../extent.js").Extent} extent Extent.
|
|
120
|
+
* @override
|
|
117
121
|
*/
|
|
118
122
|
computeExtent(extent) {
|
|
119
123
|
createOrUpdateEmpty(extent);
|
|
@@ -165,6 +169,7 @@ class GeometryCollection extends Geometry {
|
|
|
165
169
|
* Create a simplified version of this geometry using the Douglas Peucker algorithm.
|
|
166
170
|
* @param {number} squaredTolerance Squared tolerance.
|
|
167
171
|
* @return {GeometryCollection} Simplified GeometryCollection.
|
|
172
|
+
* @override
|
|
168
173
|
*/
|
|
169
174
|
getSimplifiedGeometry(squaredTolerance) {
|
|
170
175
|
if (this.simplifiedGeometryRevision !== this.getRevision()) {
|
|
@@ -205,6 +210,7 @@ class GeometryCollection extends Geometry {
|
|
|
205
210
|
* Get the type of this geometry.
|
|
206
211
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
207
212
|
* @api
|
|
213
|
+
* @override
|
|
208
214
|
*/
|
|
209
215
|
getType() {
|
|
210
216
|
return 'GeometryCollection';
|
|
@@ -215,6 +221,7 @@ class GeometryCollection extends Geometry {
|
|
|
215
221
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
216
222
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
217
223
|
* @api
|
|
224
|
+
* @override
|
|
218
225
|
*/
|
|
219
226
|
intersectsExtent(extent) {
|
|
220
227
|
const geometries = this.geometries_;
|
|
@@ -239,6 +246,7 @@ class GeometryCollection extends Geometry {
|
|
|
239
246
|
* @param {number} angle Rotation angle in radians.
|
|
240
247
|
* @param {import("../coordinate.js").Coordinate} anchor The rotation center.
|
|
241
248
|
* @api
|
|
249
|
+
* @override
|
|
242
250
|
*/
|
|
243
251
|
rotate(angle, anchor) {
|
|
244
252
|
const geometries = this.geometries_;
|
|
@@ -257,6 +265,7 @@ class GeometryCollection extends Geometry {
|
|
|
257
265
|
* @param {import("../coordinate.js").Coordinate} [anchor] The scale origin (defaults to the center
|
|
258
266
|
* of the geometry extent).
|
|
259
267
|
* @api
|
|
268
|
+
* @override
|
|
260
269
|
*/
|
|
261
270
|
scale(sx, sy, anchor) {
|
|
262
271
|
if (!anchor) {
|
|
@@ -296,6 +305,7 @@ class GeometryCollection extends Geometry {
|
|
|
296
305
|
* @param {import("../proj.js").TransformFunction} transformFn Transform function.
|
|
297
306
|
* Called with a flat array of geometry coordinates.
|
|
298
307
|
* @api
|
|
308
|
+
* @override
|
|
299
309
|
*/
|
|
300
310
|
applyTransform(transformFn) {
|
|
301
311
|
const geometries = this.geometries_;
|
|
@@ -311,6 +321,7 @@ class GeometryCollection extends Geometry {
|
|
|
311
321
|
* @param {number} deltaX Delta X.
|
|
312
322
|
* @param {number} deltaY Delta Y.
|
|
313
323
|
* @api
|
|
324
|
+
* @override
|
|
314
325
|
*/
|
|
315
326
|
translate(deltaX, deltaY) {
|
|
316
327
|
const geometries = this.geometries_;
|
|
@@ -322,6 +333,7 @@ class GeometryCollection extends Geometry {
|
|
|
322
333
|
|
|
323
334
|
/**
|
|
324
335
|
* Clean up.
|
|
336
|
+
* @override
|
|
325
337
|
*/
|
|
326
338
|
disposeInternal() {
|
|
327
339
|
this.unlistenGeometriesChange_();
|
package/geom/LineString.d.ts
CHANGED
|
@@ -42,8 +42,9 @@ declare class LineString extends SimpleGeometry {
|
|
|
42
42
|
* Make a complete copy of the geometry.
|
|
43
43
|
* @return {!LineString} Clone.
|
|
44
44
|
* @api
|
|
45
|
+
* @override
|
|
45
46
|
*/
|
|
46
|
-
clone(): LineString;
|
|
47
|
+
override clone(): LineString;
|
|
47
48
|
/**
|
|
48
49
|
* Iterate over each segment, calling the provided callback.
|
|
49
50
|
* If the callback returns a truthy value the function returns that
|
|
@@ -75,8 +76,9 @@ declare class LineString extends SimpleGeometry {
|
|
|
75
76
|
* Return the coordinates of the linestring.
|
|
76
77
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
77
78
|
* @api
|
|
79
|
+
* @override
|
|
78
80
|
*/
|
|
79
|
-
getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
81
|
+
override getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
80
82
|
/**
|
|
81
83
|
* Return the coordinate at the provided fraction along the linestring.
|
|
82
84
|
* The `fraction` is a number between 0 and 1, where 0 is the start of the
|
|
@@ -102,15 +104,17 @@ declare class LineString extends SimpleGeometry {
|
|
|
102
104
|
* @param {number} squaredTolerance Squared tolerance.
|
|
103
105
|
* @return {LineString} Simplified LineString.
|
|
104
106
|
* @protected
|
|
107
|
+
* @override
|
|
105
108
|
*/
|
|
106
|
-
protected getSimplifiedGeometryInternal(squaredTolerance: number): LineString;
|
|
109
|
+
protected override getSimplifiedGeometryInternal(squaredTolerance: number): LineString;
|
|
107
110
|
/**
|
|
108
111
|
* Set the coordinates of the linestring.
|
|
109
112
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
110
113
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
111
114
|
* @api
|
|
115
|
+
* @override
|
|
112
116
|
*/
|
|
113
|
-
setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
117
|
+
override setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
114
118
|
}
|
|
115
119
|
import SimpleGeometry from './SimpleGeometry.js';
|
|
116
120
|
//# sourceMappingURL=LineString.d.ts.map
|
package/geom/LineString.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineString.d.ts","sourceRoot":"","sources":["LineString.js"],"names":[],"mappings":";AAeA;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DA4CpE;IArCC;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,8BAA+B;IAE/B;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAiB7B;;;;OAIG;IACH,6BAHW,OAAO,kBAAkB,EAAE,UAAU,QAM/C;IAED
|
|
1
|
+
{"version":3,"file":"LineString.d.ts","sourceRoot":"","sources":["LineString.js"],"names":[],"mappings":";AAeA;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DA4CpE;IArCC;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,8BAA+B;IAE/B;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAiB7B;;;;OAIG;IACH,6BAHW,OAAO,kBAAkB,EAAE,UAAU,QAM/C;IAED;;;;;OAKG;IACH,kBAJa,UAAU,CAWtB;IAwCD;;;;;;;;;;OAUG;IACH,eAHa,CAAC,EAAC,CAAC,YAHL,CAAS,IAAO,EAAD,CAAC,EAAE,IAAqC,EAArC,OAAO,kBAAkB,EAAE,UAAU,EAAE,IAAqC,EAArC,OAAO,kBAAkB,EAAE,UAAU,KAAG,CAAC,GAEjG,CAAC,GAAC,OAAO,CAYpB;IAED;;;;;;;;;;;;;OAaG;IACH,oBALW,MAAM,sCAEL,OAAO,kBAAkB,EAAE,UAAU,GAAC,IAAI,CAgBrD;IAED;;;;;OAKG;IACH,2BAJY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAWvD;IAED;;;;;;;;;OASG;IACH,0BANW,MAAM,6DAGL,OAAO,kBAAkB,EAAE,UAAU,CAahD;IAED;;;;OAIG;IACH,aAHY,MAAM,CAUjB;IAED;;OAEG;IACH,mBAFY,KAAK,CAAC,MAAM,CAAC,CAWxB;IAED;;;;;OAKG;IACH,mEALW,MAAM,GACL,UAAU,CAiBrB;IA6BD;;;;;;OAMG;IACH,qCALY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,qEAiBvD;CACF;2BAxT0B,qBAAqB"}
|
package/geom/LineString.js
CHANGED
|
@@ -81,6 +81,7 @@ class LineString extends SimpleGeometry {
|
|
|
81
81
|
* Make a complete copy of the geometry.
|
|
82
82
|
* @return {!LineString} Clone.
|
|
83
83
|
* @api
|
|
84
|
+
* @override
|
|
84
85
|
*/
|
|
85
86
|
clone() {
|
|
86
87
|
const lineString = new LineString(
|
|
@@ -97,6 +98,7 @@ class LineString extends SimpleGeometry {
|
|
|
97
98
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
98
99
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
99
100
|
* @return {number} Minimum squared distance.
|
|
101
|
+
* @override
|
|
100
102
|
*/
|
|
101
103
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
102
104
|
if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
@@ -182,6 +184,7 @@ class LineString extends SimpleGeometry {
|
|
|
182
184
|
* Return the coordinates of the linestring.
|
|
183
185
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
184
186
|
* @api
|
|
187
|
+
* @override
|
|
185
188
|
*/
|
|
186
189
|
getCoordinates() {
|
|
187
190
|
return inflateCoordinates(
|
|
@@ -246,6 +249,7 @@ class LineString extends SimpleGeometry {
|
|
|
246
249
|
* @param {number} squaredTolerance Squared tolerance.
|
|
247
250
|
* @return {LineString} Simplified LineString.
|
|
248
251
|
* @protected
|
|
252
|
+
* @override
|
|
249
253
|
*/
|
|
250
254
|
getSimplifiedGeometryInternal(squaredTolerance) {
|
|
251
255
|
/** @type {Array<number>} */
|
|
@@ -266,6 +270,7 @@ class LineString extends SimpleGeometry {
|
|
|
266
270
|
* Get the type of this geometry.
|
|
267
271
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
268
272
|
* @api
|
|
273
|
+
* @override
|
|
269
274
|
*/
|
|
270
275
|
getType() {
|
|
271
276
|
return 'LineString';
|
|
@@ -276,6 +281,7 @@ class LineString extends SimpleGeometry {
|
|
|
276
281
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
277
282
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
278
283
|
* @api
|
|
284
|
+
* @override
|
|
279
285
|
*/
|
|
280
286
|
intersectsExtent(extent) {
|
|
281
287
|
return intersectsLineString(
|
|
@@ -292,6 +298,7 @@ class LineString extends SimpleGeometry {
|
|
|
292
298
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
293
299
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
294
300
|
* @api
|
|
301
|
+
* @override
|
|
295
302
|
*/
|
|
296
303
|
setCoordinates(coordinates, layout) {
|
|
297
304
|
this.setLayout(layout, coordinates, 1);
|
package/geom/LinearRing.d.ts
CHANGED
|
@@ -27,8 +27,9 @@ declare class LinearRing extends SimpleGeometry {
|
|
|
27
27
|
* Make a complete copy of the geometry.
|
|
28
28
|
* @return {!LinearRing} Clone.
|
|
29
29
|
* @api
|
|
30
|
+
* @override
|
|
30
31
|
*/
|
|
31
|
-
clone(): LinearRing;
|
|
32
|
+
override clone(): LinearRing;
|
|
32
33
|
/**
|
|
33
34
|
* Return the area of the linear ring on projected plane.
|
|
34
35
|
* @return {number} Area (on projected plane).
|
|
@@ -39,21 +40,24 @@ declare class LinearRing extends SimpleGeometry {
|
|
|
39
40
|
* Return the coordinates of the linear ring.
|
|
40
41
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
41
42
|
* @api
|
|
43
|
+
* @override
|
|
42
44
|
*/
|
|
43
|
-
getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
45
|
+
override getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
44
46
|
/**
|
|
45
47
|
* @param {number} squaredTolerance Squared tolerance.
|
|
46
48
|
* @return {LinearRing} Simplified LinearRing.
|
|
47
49
|
* @protected
|
|
50
|
+
* @override
|
|
48
51
|
*/
|
|
49
|
-
protected getSimplifiedGeometryInternal(squaredTolerance: number): LinearRing;
|
|
52
|
+
protected override getSimplifiedGeometryInternal(squaredTolerance: number): LinearRing;
|
|
50
53
|
/**
|
|
51
54
|
* Set the coordinates of the linear ring.
|
|
52
55
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
53
56
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
54
57
|
* @api
|
|
58
|
+
* @override
|
|
55
59
|
*/
|
|
56
|
-
setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
60
|
+
override setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
57
61
|
}
|
|
58
62
|
import SimpleGeometry from './SimpleGeometry.js';
|
|
59
63
|
//# sourceMappingURL=LinearRing.d.ts.map
|
package/geom/LinearRing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinearRing.d.ts","sourceRoot":"","sources":["LinearRing.js"],"names":[],"mappings":";AAWA;;;;;;GAMG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DAgCpE;IAzBC;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAiB7B
|
|
1
|
+
{"version":3,"file":"LinearRing.d.ts","sourceRoot":"","sources":["LinearRing.js"],"names":[],"mappings":";AAWA;;;;;;GAMG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DAgCpE;IAzBC;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAiB7B;;;;;OAKG;IACH,kBAJa,UAAU,CAMtB;IAwCD;;;;OAIG;IACH,WAHY,MAAM,CAUjB;IAED;;;;;OAKG;IACH,2BAJY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAWvD;IAED;;;;;OAKG;IACH,mEALW,MAAM,GACL,UAAU,CAiBrB;IAuBD;;;;;;OAMG;IACH,qCALY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,qEAiBvD;CACF;2BA9L0B,qBAAqB"}
|
package/geom/LinearRing.js
CHANGED
|
@@ -56,6 +56,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
56
56
|
* Make a complete copy of the geometry.
|
|
57
57
|
* @return {!LinearRing} Clone.
|
|
58
58
|
* @api
|
|
59
|
+
* @override
|
|
59
60
|
*/
|
|
60
61
|
clone() {
|
|
61
62
|
return new LinearRing(this.flatCoordinates.slice(), this.layout);
|
|
@@ -67,6 +68,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
67
68
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
68
69
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
69
70
|
* @return {number} Minimum squared distance.
|
|
71
|
+
* @override
|
|
70
72
|
*/
|
|
71
73
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
72
74
|
if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
@@ -116,6 +118,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
116
118
|
* Return the coordinates of the linear ring.
|
|
117
119
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
118
120
|
* @api
|
|
121
|
+
* @override
|
|
119
122
|
*/
|
|
120
123
|
getCoordinates() {
|
|
121
124
|
return inflateCoordinates(
|
|
@@ -130,6 +133,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
130
133
|
* @param {number} squaredTolerance Squared tolerance.
|
|
131
134
|
* @return {LinearRing} Simplified LinearRing.
|
|
132
135
|
* @protected
|
|
136
|
+
* @override
|
|
133
137
|
*/
|
|
134
138
|
getSimplifiedGeometryInternal(squaredTolerance) {
|
|
135
139
|
/** @type {Array<number>} */
|
|
@@ -150,6 +154,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
150
154
|
* Get the type of this geometry.
|
|
151
155
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
152
156
|
* @api
|
|
157
|
+
* @override
|
|
153
158
|
*/
|
|
154
159
|
getType() {
|
|
155
160
|
return 'LinearRing';
|
|
@@ -160,6 +165,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
160
165
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
161
166
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
162
167
|
* @api
|
|
168
|
+
* @override
|
|
163
169
|
*/
|
|
164
170
|
intersectsExtent(extent) {
|
|
165
171
|
return false;
|
|
@@ -170,6 +176,7 @@ class LinearRing extends SimpleGeometry {
|
|
|
170
176
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
171
177
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
172
178
|
* @api
|
|
179
|
+
* @override
|
|
173
180
|
*/
|
|
174
181
|
setCoordinates(coordinates, layout) {
|
|
175
182
|
this.setLayout(layout, coordinates, 1);
|
|
@@ -39,8 +39,9 @@ declare class MultiLineString extends SimpleGeometry {
|
|
|
39
39
|
* Make a complete copy of the geometry.
|
|
40
40
|
* @return {!MultiLineString} Clone.
|
|
41
41
|
* @api
|
|
42
|
+
* @override
|
|
42
43
|
*/
|
|
43
|
-
clone(): MultiLineString;
|
|
44
|
+
override clone(): MultiLineString;
|
|
44
45
|
/**
|
|
45
46
|
* Returns the coordinate at `m` using linear interpolation, or `null` if no
|
|
46
47
|
* such coordinate exists.
|
|
@@ -68,8 +69,9 @@ declare class MultiLineString extends SimpleGeometry {
|
|
|
68
69
|
* Return the coordinates of the multilinestring.
|
|
69
70
|
* @return {Array<Array<import("../coordinate.js").Coordinate>>} Coordinates.
|
|
70
71
|
* @api
|
|
72
|
+
* @override
|
|
71
73
|
*/
|
|
72
|
-
getCoordinates(): Array<Array<import("../coordinate.js").Coordinate>>;
|
|
74
|
+
override getCoordinates(): Array<Array<import("../coordinate.js").Coordinate>>;
|
|
73
75
|
/**
|
|
74
76
|
* @return {Array<number>} Ends.
|
|
75
77
|
*/
|
|
@@ -95,15 +97,17 @@ declare class MultiLineString extends SimpleGeometry {
|
|
|
95
97
|
* @param {number} squaredTolerance Squared tolerance.
|
|
96
98
|
* @return {MultiLineString} Simplified MultiLineString.
|
|
97
99
|
* @protected
|
|
100
|
+
* @override
|
|
98
101
|
*/
|
|
99
|
-
protected getSimplifiedGeometryInternal(squaredTolerance: number): MultiLineString;
|
|
102
|
+
protected override getSimplifiedGeometryInternal(squaredTolerance: number): MultiLineString;
|
|
100
103
|
/**
|
|
101
104
|
* Set the coordinates of the multilinestring.
|
|
102
105
|
* @param {!Array<Array<import("../coordinate.js").Coordinate>>} coordinates Coordinates.
|
|
103
106
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
104
107
|
* @api
|
|
108
|
+
* @override
|
|
105
109
|
*/
|
|
106
|
-
setCoordinates(coordinates: Array<Array<import("../coordinate.js").Coordinate>>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
110
|
+
override setCoordinates(coordinates: Array<Array<import("../coordinate.js").Coordinate>>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
107
111
|
}
|
|
108
112
|
import SimpleGeometry from './SimpleGeometry.js';
|
|
109
113
|
import LineString from './LineString.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiLineString.d.ts","sourceRoot":"","sources":["MultiLineString.js"],"names":[],"mappings":";AAiBA;;;;;GAKG;AACH;IACE;;;;;;OAMG;IACH,yBANW,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,4FAyDtF;IAhDC;;;OAGG;IACH,cAAe;IAEf;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAkC7B;;;;OAIG;IACH,6BAHW,UAAU,QAOpB;IAED
|
|
1
|
+
{"version":3,"file":"MultiLineString.d.ts","sourceRoot":"","sources":["MultiLineString.js"],"names":[],"mappings":";AAiBA;;;;;GAKG;AACH;IACE;;;;;;OAMG;IACH,yBANW,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,4FAyDtF;IAhDC;;;OAGG;IACH,cAAe;IAEf;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAkC7B;;;;OAIG;IACH,6BAHW,UAAU,QAOpB;IAED;;;;;OAKG;IACH,kBAJa,eAAe,CAY3B;IAwCD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,oBANW,MAAM,yEAGL,OAAO,kBAAkB,EAAE,UAAU,GAAC,IAAI,CAqBrD;IAED;;;;;OAKG;IACH,2BAJY,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAW9D;IAED;;OAEG;IACH,WAFY,KAAK,CAAC,MAAM,CAAC,CAIxB;IAED;;;;;OAKG;IACH,qBAJW,MAAM,GACL,UAAU,CAcrB;IAED;;;;OAIG;IACH,kBAHY,KAAK,CAAC,UAAU,CAAC,CAoB5B;IAED;;OAEG;IACH,oBAFY,KAAK,CAAC,MAAM,CAAC,CAsBxB;IAED;;;;;OAKG;IACH,mEALW,MAAM,GACL,eAAe,CAoB1B;IA6BD;;;;;;OAMG;IACH,qCALY,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,qEAmB9D;CACF;2BA9V0B,qBAAqB;uBADzB,iBAAiB"}
|
package/geom/MultiLineString.js
CHANGED
|
@@ -97,6 +97,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
97
97
|
* Make a complete copy of the geometry.
|
|
98
98
|
* @return {!MultiLineString} Clone.
|
|
99
99
|
* @api
|
|
100
|
+
* @override
|
|
100
101
|
*/
|
|
101
102
|
clone() {
|
|
102
103
|
const multiLineString = new MultiLineString(
|
|
@@ -114,6 +115,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
114
115
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
115
116
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
116
117
|
* @return {number} Minimum squared distance.
|
|
118
|
+
* @override
|
|
117
119
|
*/
|
|
118
120
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
119
121
|
if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
@@ -191,6 +193,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
191
193
|
* Return the coordinates of the multilinestring.
|
|
192
194
|
* @return {Array<Array<import("../coordinate.js").Coordinate>>} Coordinates.
|
|
193
195
|
* @api
|
|
196
|
+
* @override
|
|
194
197
|
*/
|
|
195
198
|
getCoordinates() {
|
|
196
199
|
return inflateCoordinatesArray(
|
|
@@ -280,6 +283,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
280
283
|
* @param {number} squaredTolerance Squared tolerance.
|
|
281
284
|
* @return {MultiLineString} Simplified MultiLineString.
|
|
282
285
|
* @protected
|
|
286
|
+
* @override
|
|
283
287
|
*/
|
|
284
288
|
getSimplifiedGeometryInternal(squaredTolerance) {
|
|
285
289
|
/** @type {Array<number>} */
|
|
@@ -303,6 +307,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
303
307
|
* Get the type of this geometry.
|
|
304
308
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
305
309
|
* @api
|
|
310
|
+
* @override
|
|
306
311
|
*/
|
|
307
312
|
getType() {
|
|
308
313
|
return 'MultiLineString';
|
|
@@ -313,6 +318,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
313
318
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
314
319
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
315
320
|
* @api
|
|
321
|
+
* @override
|
|
316
322
|
*/
|
|
317
323
|
intersectsExtent(extent) {
|
|
318
324
|
return intersectsLineStringArray(
|
|
@@ -329,6 +335,7 @@ class MultiLineString extends SimpleGeometry {
|
|
|
329
335
|
* @param {!Array<Array<import("../coordinate.js").Coordinate>>} coordinates Coordinates.
|
|
330
336
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
331
337
|
* @api
|
|
338
|
+
* @override
|
|
332
339
|
*/
|
|
333
340
|
setCoordinates(coordinates, layout) {
|
|
334
341
|
this.setLayout(layout, coordinates, 2);
|
package/geom/MultiPoint.d.ts
CHANGED
|
@@ -22,14 +22,16 @@ declare class MultiPoint extends SimpleGeometry {
|
|
|
22
22
|
* Make a complete copy of the geometry.
|
|
23
23
|
* @return {!MultiPoint} Clone.
|
|
24
24
|
* @api
|
|
25
|
+
* @override
|
|
25
26
|
*/
|
|
26
|
-
clone(): MultiPoint;
|
|
27
|
+
override clone(): MultiPoint;
|
|
27
28
|
/**
|
|
28
29
|
* Return the coordinates of the multipoint.
|
|
29
30
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
30
31
|
* @api
|
|
32
|
+
* @override
|
|
31
33
|
*/
|
|
32
|
-
getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
34
|
+
override getCoordinates(): Array<import("../coordinate.js").Coordinate>;
|
|
33
35
|
/**
|
|
34
36
|
* Return the point at the specified index.
|
|
35
37
|
* @param {number} index Index.
|
|
@@ -48,8 +50,9 @@ declare class MultiPoint extends SimpleGeometry {
|
|
|
48
50
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
49
51
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
50
52
|
* @api
|
|
53
|
+
* @override
|
|
51
54
|
*/
|
|
52
|
-
setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
55
|
+
override setCoordinates(coordinates: Array<import("../coordinate.js").Coordinate>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
53
56
|
}
|
|
54
57
|
import SimpleGeometry from './SimpleGeometry.js';
|
|
55
58
|
import Point from './Point.js';
|
package/geom/MultiPoint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiPoint.d.ts","sourceRoot":"","sources":["MultiPoint.js"],"names":[],"mappings":";AAWA;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DAmBpE;IAED;;;;OAIG;IACH,mBAHW,KAAK,QAMf;IAED
|
|
1
|
+
{"version":3,"file":"MultiPoint.d.ts","sourceRoot":"","sources":["MultiPoint.js"],"names":[],"mappings":";AAWA;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,yBAJW,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+DAmBpE;IAED;;;;OAIG;IACH,mBAHW,KAAK,QAMf;IAED;;;;;OAKG;IACH,kBAJa,UAAU,CAWtB;IAkCD;;;;;OAKG;IACH,2BAJY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAWvD;IAED;;;;;OAKG;IACH,gBAJW,MAAM,GACL,KAAK,CAehB;IAED;;;;OAIG;IACH,aAHY,KAAK,CAAC,KAAK,CAAC,CAcvB;IAgCD;;;;;;OAMG;IACH,qCALY,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,qEAiBvD;CACF;2BApM0B,qBAAqB;kBAD9B,YAAY"}
|
package/geom/MultiPoint.js
CHANGED
|
@@ -52,6 +52,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
52
52
|
* Make a complete copy of the geometry.
|
|
53
53
|
* @return {!MultiPoint} Clone.
|
|
54
54
|
* @api
|
|
55
|
+
* @override
|
|
55
56
|
*/
|
|
56
57
|
clone() {
|
|
57
58
|
const multiPoint = new MultiPoint(
|
|
@@ -68,6 +69,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
68
69
|
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
69
70
|
* @param {number} minSquaredDistance Minimum squared distance.
|
|
70
71
|
* @return {number} Minimum squared distance.
|
|
72
|
+
* @override
|
|
71
73
|
*/
|
|
72
74
|
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
73
75
|
if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
@@ -97,6 +99,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
97
99
|
* Return the coordinates of the multipoint.
|
|
98
100
|
* @return {Array<import("../coordinate.js").Coordinate>} Coordinates.
|
|
99
101
|
* @api
|
|
102
|
+
* @override
|
|
100
103
|
*/
|
|
101
104
|
getCoordinates() {
|
|
102
105
|
return inflateCoordinates(
|
|
@@ -149,6 +152,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
149
152
|
* Get the type of this geometry.
|
|
150
153
|
* @return {import("./Geometry.js").Type} Geometry type.
|
|
151
154
|
* @api
|
|
155
|
+
* @override
|
|
152
156
|
*/
|
|
153
157
|
getType() {
|
|
154
158
|
return 'MultiPoint';
|
|
@@ -159,6 +163,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
159
163
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
160
164
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
161
165
|
* @api
|
|
166
|
+
* @override
|
|
162
167
|
*/
|
|
163
168
|
intersectsExtent(extent) {
|
|
164
169
|
const flatCoordinates = this.flatCoordinates;
|
|
@@ -178,6 +183,7 @@ class MultiPoint extends SimpleGeometry {
|
|
|
178
183
|
* @param {!Array<import("../coordinate.js").Coordinate>} coordinates Coordinates.
|
|
179
184
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
180
185
|
* @api
|
|
186
|
+
* @override
|
|
181
187
|
*/
|
|
182
188
|
setCoordinates(coordinates, layout) {
|
|
183
189
|
this.setLayout(layout, coordinates, 1);
|
package/geom/MultiPolygon.d.ts
CHANGED
|
@@ -58,8 +58,9 @@ declare class MultiPolygon extends SimpleGeometry {
|
|
|
58
58
|
* Make a complete copy of the geometry.
|
|
59
59
|
* @return {!MultiPolygon} Clone.
|
|
60
60
|
* @api
|
|
61
|
+
* @override
|
|
61
62
|
*/
|
|
62
|
-
clone(): MultiPolygon;
|
|
63
|
+
override clone(): MultiPolygon;
|
|
63
64
|
/**
|
|
64
65
|
* Return the area of the multipolygon on projected plane.
|
|
65
66
|
* @return {number} Area (on projected plane).
|
|
@@ -78,8 +79,9 @@ declare class MultiPolygon extends SimpleGeometry {
|
|
|
78
79
|
* constructed.
|
|
79
80
|
* @return {Array<Array<Array<import("../coordinate.js").Coordinate>>>} Coordinates.
|
|
80
81
|
* @api
|
|
82
|
+
* @override
|
|
81
83
|
*/
|
|
82
|
-
getCoordinates(right?: boolean | undefined): Array<Array<Array<import("../coordinate.js").Coordinate>>>;
|
|
84
|
+
override getCoordinates(right?: boolean | undefined): Array<Array<Array<import("../coordinate.js").Coordinate>>>;
|
|
83
85
|
/**
|
|
84
86
|
* @return {Array<Array<number>>} Endss.
|
|
85
87
|
*/
|
|
@@ -103,8 +105,9 @@ declare class MultiPolygon extends SimpleGeometry {
|
|
|
103
105
|
* @param {number} squaredTolerance Squared tolerance.
|
|
104
106
|
* @return {MultiPolygon} Simplified MultiPolygon.
|
|
105
107
|
* @protected
|
|
108
|
+
* @override
|
|
106
109
|
*/
|
|
107
|
-
protected getSimplifiedGeometryInternal(squaredTolerance: number): MultiPolygon;
|
|
110
|
+
protected override getSimplifiedGeometryInternal(squaredTolerance: number): MultiPolygon;
|
|
108
111
|
/**
|
|
109
112
|
* Return the polygon at the specified index.
|
|
110
113
|
* @param {number} index Index.
|
|
@@ -123,8 +126,9 @@ declare class MultiPolygon extends SimpleGeometry {
|
|
|
123
126
|
* @param {!Array<Array<Array<import("../coordinate.js").Coordinate>>>} coordinates Coordinates.
|
|
124
127
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
125
128
|
* @api
|
|
129
|
+
* @override
|
|
126
130
|
*/
|
|
127
|
-
setCoordinates(coordinates: Array<Array<Array<import("../coordinate.js").Coordinate>>>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
131
|
+
override setCoordinates(coordinates: Array<Array<Array<import("../coordinate.js").Coordinate>>>, layout?: import("./Geometry.js").GeometryLayout | undefined): void;
|
|
128
132
|
}
|
|
129
133
|
import SimpleGeometry from './SimpleGeometry.js';
|
|
130
134
|
import Polygon from './Polygon.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiPolygon.d.ts","sourceRoot":"","sources":["MultiPolygon.js"],"names":[],"mappings":";AAyBA;;;;;GAKG;AACH;IACE;;;;;OAKG;IACH,yBALW,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,GAAC,OAAO,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+FAoF1F;IA5EC;;;OAGG;IACH,eAAgB;IAEhB;;;OAGG;IACH,oCAAqC;IAErC;;;OAGG;IACH,4BAA+B;IAE/B;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAE3B;;;OAGG;IACH,0BAA2B;IAE3B;;;OAGG;IACH,iCAAoC;IAsCtC;;;;OAIG;IACH,uBAHW,OAAO,QAoBjB;IAED
|
|
1
|
+
{"version":3,"file":"MultiPolygon.d.ts","sourceRoot":"","sources":["MultiPolygon.js"],"names":[],"mappings":";AAyBA;;;;;GAKG;AACH;IACE;;;;;OAKG;IACH,yBALW,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,GAAC,OAAO,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC,+FAoF1F;IA5EC;;;OAGG;IACH,eAAgB;IAEhB;;;OAGG;IACH,oCAAqC;IAErC;;;OAGG;IACH,4BAA+B;IAE/B;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,0BAA2B;IAE3B;;;OAGG;IACH,0BAA2B;IAE3B;;;OAGG;IACH,iCAAoC;IAsCtC;;;;OAIG;IACH,uBAHW,OAAO,QAoBjB;IAED;;;;;OAKG;IACH,kBAJa,YAAY,CAmBxB;IAyDD;;;;OAIG;IACH,WAHY,MAAM,CAUjB;IAED;;;;;;;;;;;;;OAaG;IACH,sDAJY,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC,CAyBrE;IAED;;OAEG;IACH,YAFY,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAI/B;IAED;;OAEG;IACH,yBAFY,KAAK,CAAC,MAAM,CAAC,CAoBxB;IAED;;;;;OAKG;IACH,qBAJY,UAAU,CAMrB;IAED;;OAEG;IACH,8BAFY,KAAK,CAAC,MAAM,CAAC,CAqBxB;IAED;;;;;OAKG;IACH,mEALW,MAAM,GACL,YAAY,CAoBvB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,GACL,OAAO,CA0BlB;IAED;;;;OAIG;IACH,eAHY,KAAK,CAAC,OAAO,CAAC,CA0BzB;IA6BD;;;;;;OAMG;IACH,qCALY,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC,qEAyBrE;CACF;2BAvd0B,qBAAqB;oBAD5B,cAAc;uBADX,iBAAiB"}
|