ol 7.0.0-dev.1660306204497 → 7.0.0-dev.1660487589130
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/Collection.d.ts +4 -4
- package/Collection.d.ts.map +1 -1
- package/Collection.js +8 -8
- package/Feature.d.ts +4 -4
- package/Feature.d.ts.map +1 -1
- package/Feature.js +10 -12
- package/Geolocation.d.ts +2 -2
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +3 -3
- package/ImageCanvas.d.ts +2 -2
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +4 -5
- package/ImageTile.d.ts +2 -2
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +3 -10
- package/Map.d.ts +12 -12
- package/Map.d.ts.map +1 -1
- package/Map.js +23 -23
- package/MapBrowserEvent.d.ts +4 -4
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +7 -14
- package/MapEvent.d.ts +2 -2
- package/MapEvent.d.ts.map +1 -1
- package/MapEvent.js +3 -3
- package/Object.d.ts +8 -8
- package/Object.d.ts.map +1 -1
- package/Object.js +13 -13
- package/Overlay.d.ts +2 -2
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +3 -3
- package/Tile.d.ts +2 -2
- package/Tile.d.ts.map +1 -1
- package/Tile.js +3 -3
- package/TileCache.d.ts +1 -1
- package/TileCache.d.ts.map +1 -1
- package/VectorTile.d.ts +2 -2
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +3 -3
- package/View.d.ts +55 -55
- package/View.d.ts.map +1 -1
- package/View.js +96 -103
- package/array.d.ts +5 -5
- package/array.d.ts.map +1 -1
- package/array.js +8 -8
- package/centerconstraint.js +6 -6
- package/control/Attribution.d.ts +2 -2
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +3 -3
- package/control/FullScreen.d.ts +2 -2
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +3 -3
- package/control/MousePosition.d.ts +2 -2
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +3 -3
- package/control/OverviewMap.d.ts +2 -2
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +3 -3
- package/control/Rotate.d.ts +2 -2
- package/control/Rotate.d.ts.map +1 -1
- package/control/Rotate.js +3 -3
- package/control/ScaleLine.d.ts +2 -2
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +3 -3
- package/control/Zoom.d.ts +2 -2
- package/control/Zoom.d.ts.map +1 -1
- package/control/Zoom.js +3 -3
- package/control/ZoomSlider.d.ts +2 -2
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +3 -3
- package/control/ZoomToExtent.d.ts +2 -2
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/ZoomToExtent.js +3 -3
- package/control/defaults.d.ts +2 -2
- package/control/defaults.d.ts.map +1 -1
- package/control/defaults.js +3 -3
- package/coordinate.d.ts +12 -12
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +20 -21
- package/dom.d.ts +5 -5
- package/dom.d.ts.map +1 -1
- package/dom.js +13 -18
- package/events/Target.d.ts +4 -4
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +7 -7
- package/events.d.ts +5 -5
- package/events.d.ts.map +1 -1
- package/events.js +9 -9
- package/extent.d.ts +25 -25
- package/extent.d.ts.map +1 -1
- package/extent.js +66 -72
- package/format/EsriJSON.d.ts +11 -11
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +45 -50
- package/format/Feature.d.ts +18 -18
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +33 -41
- package/format/GML.d.ts +1 -1
- package/format/GML.js +3 -3
- package/format/GML2.d.ts +5 -5
- package/format/GML2.d.ts.map +1 -1
- package/format/GML2.js +15 -18
- package/format/GML3.d.ts +7 -7
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +26 -29
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +3 -5
- package/format/GMLBase.d.ts +6 -6
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +14 -14
- package/format/GPX.d.ts +2 -2
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +15 -17
- package/format/GeoJSON.d.ts +10 -10
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +60 -65
- package/format/IGC.d.ts +2 -2
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +9 -9
- package/format/IIIFInfo.d.ts +2 -2
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/IIIFInfo.js +3 -3
- package/format/JSONFeature.d.ts +22 -22
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +30 -30
- package/format/KML.d.ts +2 -2
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +22 -22
- package/format/MVT.d.ts +5 -5
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +7 -9
- package/format/OSMXML.js +3 -3
- package/format/Polyline.d.ts +16 -16
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +33 -37
- package/format/TextFeature.d.ts +22 -22
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +30 -30
- package/format/TopoJSON.d.ts +2 -2
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +13 -13
- package/format/WFS.d.ts +7 -7
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +15 -18
- package/format/WKB.d.ts +8 -8
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +21 -21
- package/format/WKT.d.ts +2 -2
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +25 -25
- package/format/WMSGetFeatureInfo.d.ts +2 -2
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +9 -9
- package/format/XMLFeature.d.ts +28 -28
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +44 -47
- package/format/filter/Bbox.d.ts +2 -2
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Bbox.js +3 -3
- package/format/filter/ComparisonBinary.d.ts +2 -2
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.js +3 -3
- package/format/filter/Contains.d.ts +2 -2
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/Contains.js +3 -3
- package/format/filter/DWithin.d.ts +2 -2
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/DWithin.js +3 -3
- package/format/filter/Disjoint.d.ts +2 -2
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/Disjoint.js +3 -3
- package/format/filter/EqualTo.d.ts +2 -2
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/EqualTo.js +3 -3
- package/format/filter/Intersects.d.ts +2 -2
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/Intersects.js +3 -3
- package/format/filter/IsLike.d.ts +5 -5
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsLike.js +12 -12
- package/format/filter/NotEqualTo.d.ts +2 -2
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/NotEqualTo.js +3 -3
- package/format/filter/Spatial.d.ts +2 -2
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Spatial.js +3 -3
- package/format/filter/Within.d.ts +2 -2
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter/Within.js +3 -3
- package/format/filter.d.ts +21 -21
- package/format/filter.d.ts.map +1 -1
- package/format/filter.js +36 -36
- package/geom/Circle.d.ts +8 -8
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +13 -13
- package/geom/Geometry.d.ts +10 -10
- package/geom/Geometry.d.ts.map +1 -1
- package/geom/Geometry.js +16 -16
- package/geom/GeometryCollection.d.ts +2 -2
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +7 -8
- package/geom/LineString.d.ts +11 -11
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +17 -17
- package/geom/LinearRing.d.ts +5 -5
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +9 -9
- package/geom/MultiLineString.d.ts +14 -14
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +21 -21
- package/geom/MultiPoint.d.ts +5 -5
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +9 -9
- package/geom/MultiPolygon.d.ts +8 -8
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +22 -22
- package/geom/Point.d.ts +2 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +6 -6
- package/geom/Polygon.d.ts +16 -16
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +28 -28
- package/geom/SimpleGeometry.d.ts +4 -4
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +8 -10
- package/geom/flat/closest.d.ts +6 -6
- package/geom/flat/closest.d.ts.map +1 -1
- package/geom/flat/closest.js +9 -9
- package/geom/flat/deflate.d.ts +4 -4
- package/geom/flat/deflate.d.ts.map +1 -1
- package/geom/flat/deflate.js +6 -6
- package/geom/flat/flip.d.ts +3 -3
- package/geom/flat/flip.d.ts.map +1 -1
- package/geom/flat/flip.js +6 -14
- package/geom/flat/inflate.d.ts +6 -6
- package/geom/flat/inflate.d.ts.map +1 -1
- package/geom/flat/inflate.js +9 -10
- package/geom/flat/interiorpoint.d.ts +2 -2
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interiorpoint.js +5 -5
- package/geom/flat/interpolate.d.ts +3 -3
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/interpolate.js +6 -6
- package/geom/flat/orient.d.ts +12 -12
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/orient.js +16 -18
- package/geom/flat/simplify.d.ts +2 -2
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/simplify.js +4 -6
- package/geom/flat/transform.d.ts +8 -8
- package/geom/flat/transform.d.ts.map +1 -1
- package/geom/flat/transform.js +16 -16
- package/interaction/DoubleClickZoom.d.ts +2 -2
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +3 -3
- package/interaction/DragAndDrop.d.ts +5 -5
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +8 -8
- package/interaction/DragBox.d.ts +2 -2
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +3 -3
- package/interaction/DragPan.d.ts +2 -2
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +3 -3
- package/interaction/DragRotate.d.ts +2 -2
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +3 -3
- package/interaction/DragRotateAndZoom.d.ts +2 -2
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +3 -3
- package/interaction/DragZoom.d.ts +2 -2
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +3 -3
- package/interaction/Draw.d.ts +3 -3
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +15 -13
- package/interaction/Extent.d.ts +2 -2
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +13 -13
- package/interaction/Interaction.d.ts +7 -7
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Interaction.js +12 -12
- package/interaction/KeyboardPan.d.ts +2 -2
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +3 -3
- package/interaction/KeyboardZoom.d.ts +2 -2
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +3 -3
- package/interaction/Link.d.ts +2 -2
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +4 -4
- package/interaction/Modify.d.ts +1 -1
- package/interaction/Modify.js +3 -3
- package/interaction/MouseWheelZoom.d.ts +2 -2
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +3 -3
- package/interaction/PinchRotate.d.ts +2 -2
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -3
- package/interaction/PinchZoom.d.ts +2 -2
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -3
- package/interaction/Pointer.d.ts +2 -2
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +3 -3
- package/interaction/Select.d.ts +2 -2
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +3 -3
- package/interaction/Snap.d.ts +6 -6
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +9 -9
- package/interaction/Translate.d.ts +2 -2
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +3 -3
- package/interaction/defaults.d.ts +2 -2
- package/interaction/defaults.d.ts.map +1 -1
- package/interaction/defaults.js +3 -3
- package/layer/Base.d.ts +8 -8
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +10 -10
- package/layer/BaseImage.d.ts +2 -2
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseImage.js +3 -3
- package/layer/BaseTile.d.ts +2 -2
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +3 -3
- package/layer/BaseVector.d.ts +4 -4
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +21 -21
- package/layer/Graticule.d.ts +2 -2
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +6 -10
- package/layer/Group.d.ts +2 -2
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +11 -11
- package/layer/Heatmap.d.ts +2 -2
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +3 -3
- package/layer/Image.d.ts +2 -2
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +3 -3
- package/layer/Layer.js +6 -6
- package/layer/Tile.d.ts +2 -2
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +3 -3
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +3 -3
- package/layer/VectorImage.d.ts +2 -2
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +3 -3
- package/layer/VectorTile.d.ts +3 -3
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +4 -4
- package/layer/WebGLTile.d.ts +2 -2
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +3 -3
- package/net.d.ts +3 -3
- package/net.d.ts.map +1 -1
- package/net.js +6 -6
- package/package.json +1 -1
- package/proj/epsg3857.d.ts +6 -6
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg3857.js +8 -10
- package/proj/epsg4326.js +3 -3
- package/proj.d.ts +16 -16
- package/proj.d.ts.map +1 -1
- package/proj.js +38 -39
- package/render/Event.d.ts +4 -4
- package/render/Event.d.ts.map +1 -1
- package/render/Event.js +7 -7
- package/render/Feature.d.ts +4 -4
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +6 -6
- package/render/VectorContext.d.ts +4 -4
- package/render/VectorContext.d.ts.map +1 -1
- package/render/VectorContext.js +4 -4
- package/render/canvas/Executor.d.ts +8 -8
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +31 -33
- package/render/canvas/ExecutorGroup.d.ts +5 -5
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +10 -10
- package/render/canvas/ImageBuilder.d.ts +2 -2
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +3 -3
- package/render/canvas/Immediate.d.ts +3 -3
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +6 -6
- package/render/canvas/TextBuilder.d.ts +2 -2
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +3 -3
- package/render/webgl/utils.d.ts +2 -2
- package/render/webgl/utils.d.ts.map +1 -1
- package/render/webgl/utils.js +3 -3
- package/render.d.ts +2 -2
- package/render.d.ts.map +1 -1
- package/render.js +3 -3
- package/renderer/canvas/Layer.d.ts +2 -2
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +6 -6
- package/renderer/canvas/TileLayer.d.ts +2 -2
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +4 -4
- package/renderer/canvas/VectorLayer.d.ts +5 -5
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +11 -11
- package/renderer/canvas/VectorTileLayer.d.ts +2 -2
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +4 -4
- package/renderer/vector.d.ts +3 -3
- package/renderer/vector.d.ts.map +1 -1
- package/renderer/vector.js +42 -42
- package/renderer/webgl/Layer.d.ts +2 -2
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +3 -3
- package/reproj/Tile.d.ts +4 -4
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +9 -9
- package/reproj/Triangulation.d.ts +2 -2
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj/Triangulation.js +4 -7
- package/reproj.d.ts +3 -3
- package/reproj.d.ts.map +1 -1
- package/reproj.js +8 -8
- package/resolutionconstraint.d.ts +13 -13
- package/resolutionconstraint.d.ts.map +1 -1
- package/resolutionconstraint.js +44 -43
- package/rotationconstraint.d.ts +2 -2
- package/rotationconstraint.d.ts.map +1 -1
- package/rotationconstraint.js +9 -9
- package/size.d.ts +6 -6
- package/size.d.ts.map +1 -1
- package/size.js +21 -21
- package/source/Cluster.js +3 -3
- package/source/IIIF.d.ts +2 -2
- package/source/IIIF.d.ts.map +1 -1
- package/source/IIIF.js +26 -26
- package/source/ImageArcGISRest.d.ts +2 -2
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +3 -3
- package/source/ImageCanvas.d.ts +2 -2
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +3 -3
- package/source/ImageWMS.d.ts +7 -7
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +5 -5
- package/source/OSM.d.ts +2 -2
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +3 -3
- package/source/Raster.d.ts +2 -2
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +3 -3
- package/source/Tile.d.ts +2 -2
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +3 -4
- package/source/TileArcGISRest.d.ts +2 -2
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +3 -3
- package/source/TileDebug.d.ts +2 -2
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +3 -3
- package/source/TileWMS.d.ts +2 -2
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +3 -3
- package/source/UTFGrid.d.ts +6 -6
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +9 -14
- package/source/Vector.d.ts +13 -13
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +21 -22
- package/source/XYZ.d.ts +2 -2
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +3 -3
- package/source/Zoomify.d.ts +4 -4
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +5 -7
- package/sphere.d.ts +8 -8
- package/sphere.d.ts.map +1 -1
- package/sphere.js +14 -14
- package/string.d.ts +2 -2
- package/string.d.ts.map +1 -1
- package/string.js +3 -3
- package/structs/LRUCache.d.ts +4 -4
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/LRUCache.js +5 -6
- package/structs/LinkedList.d.ts +2 -2
- package/structs/LinkedList.d.ts.map +1 -1
- package/structs/LinkedList.js +3 -3
- package/structs/RBush.d.ts +4 -4
- package/structs/RBush.d.ts.map +1 -1
- package/structs/RBush.js +6 -12
- package/style/Circle.d.ts +2 -2
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +3 -3
- package/style/Fill.d.ts +2 -2
- package/style/Fill.d.ts.map +1 -1
- package/style/Fill.js +3 -3
- package/style/Icon.d.ts +2 -2
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +3 -3
- package/style/Stroke.d.ts +2 -2
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +3 -3
- package/style/Style.d.ts +2 -2
- package/style/Style.d.ts.map +1 -1
- package/style/Style.js +3 -3
- package/style/Text.d.ts +2 -2
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +3 -3
- package/style/expressions.js +7 -7
- package/tilecoord.d.ts +2 -2
- package/tilecoord.d.ts.map +1 -1
- package/tilecoord.js +7 -7
- package/tilegrid/TileGrid.d.ts +14 -14
- package/tilegrid/TileGrid.js +28 -28
- package/tilegrid/WMTS.d.ts +3 -3
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid/WMTS.js +6 -6
- package/tilegrid.d.ts +10 -10
- package/tilegrid.d.ts.map +1 -1
- package/tilegrid.js +24 -36
- package/util.js +1 -1
- package/webgl/Buffer.d.ts +2 -2
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +3 -3
- package/webgl/Helper.d.ts +9 -9
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +15 -28
- package/webgl/RenderTarget.d.ts +2 -2
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/RenderTarget.js +3 -3
- package/webgl.d.ts +2 -2
- package/webgl.d.ts.map +1 -1
- package/webgl.js +4 -4
- package/xml.d.ts +37 -37
- package/xml.d.ts.map +1 -1
- package/xml.js +63 -82
package/events/Target.js
CHANGED
|
@@ -27,16 +27,16 @@ import {clear} from '../obj.js';
|
|
|
27
27
|
*/
|
|
28
28
|
class Target extends Disposable {
|
|
29
29
|
/**
|
|
30
|
-
* @param {*} [
|
|
30
|
+
* @param {*} [target] Default event target for dispatched events.
|
|
31
31
|
*/
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(target) {
|
|
33
33
|
super();
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @private
|
|
37
37
|
* @type {*}
|
|
38
38
|
*/
|
|
39
|
-
this.eventTarget_ =
|
|
39
|
+
this.eventTarget_ = target;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @private
|
|
@@ -148,16 +148,16 @@ class Target extends Disposable {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* @param {string} [
|
|
151
|
+
* @param {string} [type] Type. If not provided,
|
|
152
152
|
* `true` will be returned if this event target has any listeners.
|
|
153
153
|
* @return {boolean} Has listeners.
|
|
154
154
|
*/
|
|
155
|
-
hasListener(
|
|
155
|
+
hasListener(type) {
|
|
156
156
|
if (!this.listeners_) {
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
159
|
-
return
|
|
160
|
-
?
|
|
159
|
+
return type
|
|
160
|
+
? type in this.listeners_
|
|
161
161
|
: Object.keys(this.listeners_).length > 0;
|
|
162
162
|
}
|
|
163
163
|
|
package/events.d.ts
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
* @param {import("./events/Target.js").EventTargetLike} target Event target.
|
|
31
31
|
* @param {string} type Event type.
|
|
32
32
|
* @param {ListenerFunction} listener Listener.
|
|
33
|
-
* @param {Object} [
|
|
33
|
+
* @param {Object} [thisArg] Object referenced by the `this` keyword in the
|
|
34
34
|
* listener. Default is the `target`.
|
|
35
|
-
* @param {boolean} [
|
|
35
|
+
* @param {boolean} [once] If true, add the listener as one-off listener.
|
|
36
36
|
* @return {EventsKey} Unique key for the listener.
|
|
37
37
|
*/
|
|
38
|
-
export function listen(target: import("./events/Target.js").EventTargetLike, type: string, listener: ListenerFunction,
|
|
38
|
+
export function listen(target: import("./events/Target.js").EventTargetLike, type: string, listener: ListenerFunction, thisArg?: any, once?: boolean | undefined): EventsKey;
|
|
39
39
|
/**
|
|
40
40
|
* Registers a one-off event listener on an event target. Inspired by
|
|
41
41
|
* https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
|
|
@@ -52,11 +52,11 @@ export function listen(target: import("./events/Target.js").EventTargetLike, typ
|
|
|
52
52
|
* @param {import("./events/Target.js").EventTargetLike} target Event target.
|
|
53
53
|
* @param {string} type Event type.
|
|
54
54
|
* @param {ListenerFunction} listener Listener.
|
|
55
|
-
* @param {Object} [
|
|
55
|
+
* @param {Object} [thisArg] Object referenced by the `this` keyword in the
|
|
56
56
|
* listener. Default is the `target`.
|
|
57
57
|
* @return {EventsKey} Key for unlistenByKey.
|
|
58
58
|
*/
|
|
59
|
-
export function listenOnce(target: import("./events/Target.js").EventTargetLike, type: string, listener: ListenerFunction,
|
|
59
|
+
export function listenOnce(target: import("./events/Target.js").EventTargetLike, type: string, listener: ListenerFunction, thisArg?: any): EventsKey;
|
|
60
60
|
/**
|
|
61
61
|
* Unregisters event listeners on an event target. Inspired by
|
|
62
62
|
* https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
|
package/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["events.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH,+BARW,OAAO,oBAAoB,EAAE,eAAe,QAC5C,MAAM,YACN,gBAAgB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["events.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH,+BARW,OAAO,oBAAoB,EAAE,eAAe,QAC5C,MAAM,YACN,gBAAgB,8CAIf,SAAS,CAoBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mCAPW,OAAO,oBAAoB,EAAE,eAAe,QAC5C,MAAM,YACN,gBAAgB,kBAGf,SAAS,CAIpB;AAED;;;;;;;;GAQG;AACH,mCAFW,SAAS,QAOnB;;;;;;;;cAhGa,gBAAgB;;;;YAChB,OAAO,oBAAoB,EAAE,eAAe;;;;UAC5C,MAAM;;;;;;sCAQE,CAAC,KAAK,GAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,KAAG,CAAC,IAAI,GAAC,OAAO,CAAC;;;;;iBAMpE,gBAAgB;;uBAIjB,gBAAgB,GAAC,cAAc"}
|
package/events.js
CHANGED
|
@@ -39,16 +39,16 @@ import {clear} from './obj.js';
|
|
|
39
39
|
* @param {import("./events/Target.js").EventTargetLike} target Event target.
|
|
40
40
|
* @param {string} type Event type.
|
|
41
41
|
* @param {ListenerFunction} listener Listener.
|
|
42
|
-
* @param {Object} [
|
|
42
|
+
* @param {Object} [thisArg] Object referenced by the `this` keyword in the
|
|
43
43
|
* listener. Default is the `target`.
|
|
44
|
-
* @param {boolean} [
|
|
44
|
+
* @param {boolean} [once] If true, add the listener as one-off listener.
|
|
45
45
|
* @return {EventsKey} Unique key for the listener.
|
|
46
46
|
*/
|
|
47
|
-
export function listen(target, type, listener,
|
|
48
|
-
if (
|
|
49
|
-
listener = listener.bind(
|
|
47
|
+
export function listen(target, type, listener, thisArg, once) {
|
|
48
|
+
if (thisArg && thisArg !== target) {
|
|
49
|
+
listener = listener.bind(thisArg);
|
|
50
50
|
}
|
|
51
|
-
if (
|
|
51
|
+
if (once) {
|
|
52
52
|
const originalListener = listener;
|
|
53
53
|
listener = function () {
|
|
54
54
|
target.removeEventListener(type, listener);
|
|
@@ -80,12 +80,12 @@ export function listen(target, type, listener, opt_this, opt_once) {
|
|
|
80
80
|
* @param {import("./events/Target.js").EventTargetLike} target Event target.
|
|
81
81
|
* @param {string} type Event type.
|
|
82
82
|
* @param {ListenerFunction} listener Listener.
|
|
83
|
-
* @param {Object} [
|
|
83
|
+
* @param {Object} [thisArg] Object referenced by the `this` keyword in the
|
|
84
84
|
* listener. Default is the `target`.
|
|
85
85
|
* @return {EventsKey} Key for unlistenByKey.
|
|
86
86
|
*/
|
|
87
|
-
export function listenOnce(target, type, listener,
|
|
88
|
-
return listen(target, type, listener,
|
|
87
|
+
export function listenOnce(target, type, listener, thisArg) {
|
|
88
|
+
return listen(target, type, listener, thisArg, true);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
package/extent.d.ts
CHANGED
|
@@ -19,19 +19,19 @@ export function boundingExtent(coordinates: Array<import("./coordinate.js").Coor
|
|
|
19
19
|
* Return extent increased by the provided value.
|
|
20
20
|
* @param {Extent} extent Extent.
|
|
21
21
|
* @param {number} value The amount by which the extent should be buffered.
|
|
22
|
-
* @param {Extent} [
|
|
22
|
+
* @param {Extent} [dest] Extent.
|
|
23
23
|
* @return {Extent} Extent.
|
|
24
24
|
* @api
|
|
25
25
|
*/
|
|
26
|
-
export function buffer(extent: Extent, value: number,
|
|
26
|
+
export function buffer(extent: Extent, value: number, dest?: Extent | undefined): Extent;
|
|
27
27
|
/**
|
|
28
28
|
* Creates a clone of an extent.
|
|
29
29
|
*
|
|
30
30
|
* @param {Extent} extent Extent to clone.
|
|
31
|
-
* @param {Extent} [
|
|
31
|
+
* @param {Extent} [dest] Extent.
|
|
32
32
|
* @return {Extent} The clone.
|
|
33
33
|
*/
|
|
34
|
-
export function clone(extent: Extent,
|
|
34
|
+
export function clone(extent: Extent, dest?: Extent | undefined): Extent;
|
|
35
35
|
/**
|
|
36
36
|
* @param {Extent} extent Extent.
|
|
37
37
|
* @param {number} x X.
|
|
@@ -91,43 +91,43 @@ export function createEmpty(): Extent;
|
|
|
91
91
|
* @param {number} minY Minimum Y.
|
|
92
92
|
* @param {number} maxX Maximum X.
|
|
93
93
|
* @param {number} maxY Maximum Y.
|
|
94
|
-
* @param {Extent} [
|
|
94
|
+
* @param {Extent} [dest] Destination extent.
|
|
95
95
|
* @return {Extent} Extent.
|
|
96
96
|
*/
|
|
97
|
-
export function createOrUpdate(minX: number, minY: number, maxX: number, maxY: number,
|
|
97
|
+
export function createOrUpdate(minX: number, minY: number, maxX: number, maxY: number, dest?: Extent | undefined): Extent;
|
|
98
98
|
/**
|
|
99
99
|
* Create a new empty extent or make the provided one empty.
|
|
100
|
-
* @param {Extent} [
|
|
100
|
+
* @param {Extent} [dest] Extent.
|
|
101
101
|
* @return {Extent} Extent.
|
|
102
102
|
*/
|
|
103
|
-
export function createOrUpdateEmpty(
|
|
103
|
+
export function createOrUpdateEmpty(dest?: Extent | undefined): Extent;
|
|
104
104
|
/**
|
|
105
105
|
* @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
|
|
106
|
-
* @param {Extent} [
|
|
106
|
+
* @param {Extent} [dest] Extent.
|
|
107
107
|
* @return {Extent} Extent.
|
|
108
108
|
*/
|
|
109
|
-
export function createOrUpdateFromCoordinate(coordinate: import("./coordinate.js").Coordinate,
|
|
109
|
+
export function createOrUpdateFromCoordinate(coordinate: import("./coordinate.js").Coordinate, dest?: Extent | undefined): Extent;
|
|
110
110
|
/**
|
|
111
111
|
* @param {Array<import("./coordinate.js").Coordinate>} coordinates Coordinates.
|
|
112
|
-
* @param {Extent} [
|
|
112
|
+
* @param {Extent} [dest] Extent.
|
|
113
113
|
* @return {Extent} Extent.
|
|
114
114
|
*/
|
|
115
|
-
export function createOrUpdateFromCoordinates(coordinates: Array<import("./coordinate.js").Coordinate>,
|
|
115
|
+
export function createOrUpdateFromCoordinates(coordinates: Array<import("./coordinate.js").Coordinate>, dest?: Extent | undefined): Extent;
|
|
116
116
|
/**
|
|
117
117
|
* @param {Array<number>} flatCoordinates Flat coordinates.
|
|
118
118
|
* @param {number} offset Offset.
|
|
119
119
|
* @param {number} end End.
|
|
120
120
|
* @param {number} stride Stride.
|
|
121
|
-
* @param {Extent} [
|
|
121
|
+
* @param {Extent} [dest] Extent.
|
|
122
122
|
* @return {Extent} Extent.
|
|
123
123
|
*/
|
|
124
|
-
export function createOrUpdateFromFlatCoordinates(flatCoordinates: Array<number>, offset: number, end: number, stride: number,
|
|
124
|
+
export function createOrUpdateFromFlatCoordinates(flatCoordinates: Array<number>, offset: number, end: number, stride: number, dest?: Extent | undefined): Extent;
|
|
125
125
|
/**
|
|
126
126
|
* @param {Array<Array<import("./coordinate.js").Coordinate>>} rings Rings.
|
|
127
|
-
* @param {Extent} [
|
|
127
|
+
* @param {Extent} [dest] Extent.
|
|
128
128
|
* @return {Extent} Extent.
|
|
129
129
|
*/
|
|
130
|
-
export function createOrUpdateFromRings(rings: Array<Array<import("./coordinate.js").Coordinate>>,
|
|
130
|
+
export function createOrUpdateFromRings(rings: Array<Array<import("./coordinate.js").Coordinate>>, dest?: Extent | undefined): Extent;
|
|
131
131
|
/**
|
|
132
132
|
* Determine if two extents are equivalent.
|
|
133
133
|
* @param {Extent} extent1 Extent 1.
|
|
@@ -240,10 +240,10 @@ export function getEnlargedArea(extent1: Extent, extent2: Extent): number;
|
|
|
240
240
|
* @param {number} resolution Resolution.
|
|
241
241
|
* @param {number} rotation Rotation.
|
|
242
242
|
* @param {import("./size.js").Size} size Size.
|
|
243
|
-
* @param {Extent} [
|
|
243
|
+
* @param {Extent} [dest] Destination extent.
|
|
244
244
|
* @return {Extent} Extent.
|
|
245
245
|
*/
|
|
246
|
-
export function getForViewAndSize(center: import("./coordinate.js").Coordinate, resolution: number, rotation: number, size: import("./size.js").Size,
|
|
246
|
+
export function getForViewAndSize(center: import("./coordinate.js").Coordinate, resolution: number, rotation: number, size: import("./size.js").Size, dest?: Extent | undefined): Extent;
|
|
247
247
|
/**
|
|
248
248
|
* @param {import("./coordinate.js").Coordinate} center Center.
|
|
249
249
|
* @param {number} resolution Resolution.
|
|
@@ -269,11 +269,11 @@ export function getIntersectionArea(extent1: Extent, extent2: Extent): number;
|
|
|
269
269
|
* Get the intersection of two extents.
|
|
270
270
|
* @param {Extent} extent1 Extent 1.
|
|
271
271
|
* @param {Extent} extent2 Extent 2.
|
|
272
|
-
* @param {Extent} [
|
|
272
|
+
* @param {Extent} [dest] Optional extent to populate with intersection.
|
|
273
273
|
* @return {Extent} Intersecting extent.
|
|
274
274
|
* @api
|
|
275
275
|
*/
|
|
276
|
-
export function getIntersection(extent1: Extent, extent2: Extent,
|
|
276
|
+
export function getIntersection(extent1: Extent, extent2: Extent, dest?: Extent | undefined): Extent;
|
|
277
277
|
/**
|
|
278
278
|
* @param {Extent} extent Extent.
|
|
279
279
|
* @return {number} Margin.
|
|
@@ -324,10 +324,10 @@ export function intersects(extent1: Extent, extent2: Extent): boolean;
|
|
|
324
324
|
export function isEmpty(extent: Extent): boolean;
|
|
325
325
|
/**
|
|
326
326
|
* @param {Extent} extent Extent.
|
|
327
|
-
* @param {Extent} [
|
|
327
|
+
* @param {Extent} [dest] Extent.
|
|
328
328
|
* @return {Extent} Extent.
|
|
329
329
|
*/
|
|
330
|
-
export function returnOrUpdate(extent: Extent,
|
|
330
|
+
export function returnOrUpdate(extent: Extent, dest?: Extent | undefined): Extent;
|
|
331
331
|
/**
|
|
332
332
|
* @param {Extent} extent Extent.
|
|
333
333
|
* @param {number} value Value.
|
|
@@ -347,13 +347,13 @@ export function intersectsSegment(extent: Extent, start: import("./coordinate.js
|
|
|
347
347
|
* @param {Extent} extent Extent.
|
|
348
348
|
* @param {import("./proj.js").TransformFunction} transformFn Transform function.
|
|
349
349
|
* Called with `[minX, minY, maxX, maxY]` extent coordinates.
|
|
350
|
-
* @param {Extent} [
|
|
351
|
-
* @param {number} [
|
|
350
|
+
* @param {Extent} [dest] Destination extent.
|
|
351
|
+
* @param {number} [stops] Number of stops per side used for the transform.
|
|
352
352
|
* By default only the corners are used.
|
|
353
353
|
* @return {Extent} Extent.
|
|
354
354
|
* @api
|
|
355
355
|
*/
|
|
356
|
-
export function applyTransform(extent: Extent, transformFn: import("./proj.js").TransformFunction,
|
|
356
|
+
export function applyTransform(extent: Extent, transformFn: import("./proj.js").TransformFunction, dest?: Extent | undefined, stops?: number | undefined): Extent;
|
|
357
357
|
/**
|
|
358
358
|
* Modifies the provided extent in-place to be within the real world
|
|
359
359
|
* extent.
|
package/extent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extent.d.ts","sourceRoot":"","sources":["extent.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH;;;GAGG;AAEH;;;;;;GAMG;AACH,4CAJW,MAAM,OAAO,iBAAiB,EAAE,UAAU,CAAC,UAUrD;AAiBD;;;;;;;GAOG;AACH,8CALW,MAAM,
|
|
1
|
+
{"version":3,"file":"extent.d.ts","sourceRoot":"","sources":["extent.js"],"names":[],"mappings":"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"}
|
package/extent.js
CHANGED
|
@@ -33,33 +33,33 @@ export function boundingExtent(coordinates) {
|
|
|
33
33
|
/**
|
|
34
34
|
* @param {Array<number>} xs Xs.
|
|
35
35
|
* @param {Array<number>} ys Ys.
|
|
36
|
-
* @param {Extent} [
|
|
36
|
+
* @param {Extent} [dest] Destination extent.
|
|
37
37
|
* @private
|
|
38
38
|
* @return {Extent} Extent.
|
|
39
39
|
*/
|
|
40
|
-
function _boundingExtentXYs(xs, ys,
|
|
40
|
+
function _boundingExtentXYs(xs, ys, dest) {
|
|
41
41
|
const minX = Math.min.apply(null, xs);
|
|
42
42
|
const minY = Math.min.apply(null, ys);
|
|
43
43
|
const maxX = Math.max.apply(null, xs);
|
|
44
44
|
const maxY = Math.max.apply(null, ys);
|
|
45
|
-
return createOrUpdate(minX, minY, maxX, maxY,
|
|
45
|
+
return createOrUpdate(minX, minY, maxX, maxY, dest);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Return extent increased by the provided value.
|
|
50
50
|
* @param {Extent} extent Extent.
|
|
51
51
|
* @param {number} value The amount by which the extent should be buffered.
|
|
52
|
-
* @param {Extent} [
|
|
52
|
+
* @param {Extent} [dest] Extent.
|
|
53
53
|
* @return {Extent} Extent.
|
|
54
54
|
* @api
|
|
55
55
|
*/
|
|
56
|
-
export function buffer(extent, value,
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return
|
|
56
|
+
export function buffer(extent, value, dest) {
|
|
57
|
+
if (dest) {
|
|
58
|
+
dest[0] = extent[0] - value;
|
|
59
|
+
dest[1] = extent[1] - value;
|
|
60
|
+
dest[2] = extent[2] + value;
|
|
61
|
+
dest[3] = extent[3] + value;
|
|
62
|
+
return dest;
|
|
63
63
|
} else {
|
|
64
64
|
return [
|
|
65
65
|
extent[0] - value,
|
|
@@ -74,16 +74,16 @@ export function buffer(extent, value, opt_extent) {
|
|
|
74
74
|
* Creates a clone of an extent.
|
|
75
75
|
*
|
|
76
76
|
* @param {Extent} extent Extent to clone.
|
|
77
|
-
* @param {Extent} [
|
|
77
|
+
* @param {Extent} [dest] Extent.
|
|
78
78
|
* @return {Extent} The clone.
|
|
79
79
|
*/
|
|
80
|
-
export function clone(extent,
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
80
|
+
export function clone(extent, dest) {
|
|
81
|
+
if (dest) {
|
|
82
|
+
dest[0] = extent[0];
|
|
83
|
+
dest[1] = extent[1];
|
|
84
|
+
dest[2] = extent[2];
|
|
85
|
+
dest[3] = extent[3];
|
|
86
|
+
return dest;
|
|
87
87
|
} else {
|
|
88
88
|
return extent.slice();
|
|
89
89
|
}
|
|
@@ -206,16 +206,16 @@ export function createEmpty() {
|
|
|
206
206
|
* @param {number} minY Minimum Y.
|
|
207
207
|
* @param {number} maxX Maximum X.
|
|
208
208
|
* @param {number} maxY Maximum Y.
|
|
209
|
-
* @param {Extent} [
|
|
209
|
+
* @param {Extent} [dest] Destination extent.
|
|
210
210
|
* @return {Extent} Extent.
|
|
211
211
|
*/
|
|
212
|
-
export function createOrUpdate(minX, minY, maxX, maxY,
|
|
213
|
-
if (
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return
|
|
212
|
+
export function createOrUpdate(minX, minY, maxX, maxY, dest) {
|
|
213
|
+
if (dest) {
|
|
214
|
+
dest[0] = minX;
|
|
215
|
+
dest[1] = minY;
|
|
216
|
+
dest[2] = maxX;
|
|
217
|
+
dest[3] = maxY;
|
|
218
|
+
return dest;
|
|
219
219
|
} else {
|
|
220
220
|
return [minX, minY, maxX, maxY];
|
|
221
221
|
}
|
|
@@ -223,31 +223,31 @@ export function createOrUpdate(minX, minY, maxX, maxY, opt_extent) {
|
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Create a new empty extent or make the provided one empty.
|
|
226
|
-
* @param {Extent} [
|
|
226
|
+
* @param {Extent} [dest] Extent.
|
|
227
227
|
* @return {Extent} Extent.
|
|
228
228
|
*/
|
|
229
|
-
export function createOrUpdateEmpty(
|
|
230
|
-
return createOrUpdate(Infinity, Infinity, -Infinity, -Infinity,
|
|
229
|
+
export function createOrUpdateEmpty(dest) {
|
|
230
|
+
return createOrUpdate(Infinity, Infinity, -Infinity, -Infinity, dest);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
|
|
235
|
-
* @param {Extent} [
|
|
235
|
+
* @param {Extent} [dest] Extent.
|
|
236
236
|
* @return {Extent} Extent.
|
|
237
237
|
*/
|
|
238
|
-
export function createOrUpdateFromCoordinate(coordinate,
|
|
238
|
+
export function createOrUpdateFromCoordinate(coordinate, dest) {
|
|
239
239
|
const x = coordinate[0];
|
|
240
240
|
const y = coordinate[1];
|
|
241
|
-
return createOrUpdate(x, y, x, y,
|
|
241
|
+
return createOrUpdate(x, y, x, y, dest);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
245
|
* @param {Array<import("./coordinate.js").Coordinate>} coordinates Coordinates.
|
|
246
|
-
* @param {Extent} [
|
|
246
|
+
* @param {Extent} [dest] Extent.
|
|
247
247
|
* @return {Extent} Extent.
|
|
248
248
|
*/
|
|
249
|
-
export function createOrUpdateFromCoordinates(coordinates,
|
|
250
|
-
const extent = createOrUpdateEmpty(
|
|
249
|
+
export function createOrUpdateFromCoordinates(coordinates, dest) {
|
|
250
|
+
const extent = createOrUpdateEmpty(dest);
|
|
251
251
|
return extendCoordinates(extent, coordinates);
|
|
252
252
|
}
|
|
253
253
|
|
|
@@ -256,7 +256,7 @@ export function createOrUpdateFromCoordinates(coordinates, opt_extent) {
|
|
|
256
256
|
* @param {number} offset Offset.
|
|
257
257
|
* @param {number} end End.
|
|
258
258
|
* @param {number} stride Stride.
|
|
259
|
-
* @param {Extent} [
|
|
259
|
+
* @param {Extent} [dest] Extent.
|
|
260
260
|
* @return {Extent} Extent.
|
|
261
261
|
*/
|
|
262
262
|
export function createOrUpdateFromFlatCoordinates(
|
|
@@ -264,19 +264,19 @@ export function createOrUpdateFromFlatCoordinates(
|
|
|
264
264
|
offset,
|
|
265
265
|
end,
|
|
266
266
|
stride,
|
|
267
|
-
|
|
267
|
+
dest
|
|
268
268
|
) {
|
|
269
|
-
const extent = createOrUpdateEmpty(
|
|
269
|
+
const extent = createOrUpdateEmpty(dest);
|
|
270
270
|
return extendFlatCoordinates(extent, flatCoordinates, offset, end, stride);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* @param {Array<Array<import("./coordinate.js").Coordinate>>} rings Rings.
|
|
275
|
-
* @param {Extent} [
|
|
275
|
+
* @param {Extent} [dest] Extent.
|
|
276
276
|
* @return {Extent} Extent.
|
|
277
277
|
*/
|
|
278
|
-
export function createOrUpdateFromRings(rings,
|
|
279
|
-
const extent = createOrUpdateEmpty(
|
|
278
|
+
export function createOrUpdateFromRings(rings, dest) {
|
|
279
|
+
const extent = createOrUpdateEmpty(dest);
|
|
280
280
|
return extendRings(extent, rings);
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -525,16 +525,10 @@ export function getEnlargedArea(extent1, extent2) {
|
|
|
525
525
|
* @param {number} resolution Resolution.
|
|
526
526
|
* @param {number} rotation Rotation.
|
|
527
527
|
* @param {import("./size.js").Size} size Size.
|
|
528
|
-
* @param {Extent} [
|
|
528
|
+
* @param {Extent} [dest] Destination extent.
|
|
529
529
|
* @return {Extent} Extent.
|
|
530
530
|
*/
|
|
531
|
-
export function getForViewAndSize(
|
|
532
|
-
center,
|
|
533
|
-
resolution,
|
|
534
|
-
rotation,
|
|
535
|
-
size,
|
|
536
|
-
opt_extent
|
|
537
|
-
) {
|
|
531
|
+
export function getForViewAndSize(center, resolution, rotation, size, dest) {
|
|
538
532
|
const [x0, y0, x1, y1, x2, y2, x3, y3] = getRotatedViewport(
|
|
539
533
|
center,
|
|
540
534
|
resolution,
|
|
@@ -546,7 +540,7 @@ export function getForViewAndSize(
|
|
|
546
540
|
Math.min(y0, y1, y2, y3),
|
|
547
541
|
Math.max(x0, x1, x2, x3),
|
|
548
542
|
Math.max(y0, y1, y2, y3),
|
|
549
|
-
|
|
543
|
+
dest
|
|
550
544
|
);
|
|
551
545
|
}
|
|
552
546
|
|
|
@@ -606,12 +600,12 @@ export function getIntersectionArea(extent1, extent2) {
|
|
|
606
600
|
* Get the intersection of two extents.
|
|
607
601
|
* @param {Extent} extent1 Extent 1.
|
|
608
602
|
* @param {Extent} extent2 Extent 2.
|
|
609
|
-
* @param {Extent} [
|
|
603
|
+
* @param {Extent} [dest] Optional extent to populate with intersection.
|
|
610
604
|
* @return {Extent} Intersecting extent.
|
|
611
605
|
* @api
|
|
612
606
|
*/
|
|
613
|
-
export function getIntersection(extent1, extent2,
|
|
614
|
-
const intersection =
|
|
607
|
+
export function getIntersection(extent1, extent2, dest) {
|
|
608
|
+
const intersection = dest ? dest : createEmpty();
|
|
615
609
|
if (intersects(extent1, extent2)) {
|
|
616
610
|
if (extent1[0] > extent2[0]) {
|
|
617
611
|
intersection[0] = extent1[0];
|
|
@@ -715,16 +709,16 @@ export function isEmpty(extent) {
|
|
|
715
709
|
|
|
716
710
|
/**
|
|
717
711
|
* @param {Extent} extent Extent.
|
|
718
|
-
* @param {Extent} [
|
|
712
|
+
* @param {Extent} [dest] Extent.
|
|
719
713
|
* @return {Extent} Extent.
|
|
720
714
|
*/
|
|
721
|
-
export function returnOrUpdate(extent,
|
|
722
|
-
if (
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
return
|
|
715
|
+
export function returnOrUpdate(extent, dest) {
|
|
716
|
+
if (dest) {
|
|
717
|
+
dest[0] = extent[0];
|
|
718
|
+
dest[1] = extent[1];
|
|
719
|
+
dest[2] = extent[2];
|
|
720
|
+
dest[3] = extent[3];
|
|
721
|
+
return dest;
|
|
728
722
|
} else {
|
|
729
723
|
return extent;
|
|
730
724
|
}
|
|
@@ -812,27 +806,27 @@ export function intersectsSegment(extent, start, end) {
|
|
|
812
806
|
* @param {Extent} extent Extent.
|
|
813
807
|
* @param {import("./proj.js").TransformFunction} transformFn Transform function.
|
|
814
808
|
* Called with `[minX, minY, maxX, maxY]` extent coordinates.
|
|
815
|
-
* @param {Extent} [
|
|
816
|
-
* @param {number} [
|
|
809
|
+
* @param {Extent} [dest] Destination extent.
|
|
810
|
+
* @param {number} [stops] Number of stops per side used for the transform.
|
|
817
811
|
* By default only the corners are used.
|
|
818
812
|
* @return {Extent} Extent.
|
|
819
813
|
* @api
|
|
820
814
|
*/
|
|
821
|
-
export function applyTransform(extent, transformFn,
|
|
815
|
+
export function applyTransform(extent, transformFn, dest, stops) {
|
|
822
816
|
let coordinates = [];
|
|
823
|
-
if (
|
|
817
|
+
if (stops > 1) {
|
|
824
818
|
const width = extent[2] - extent[0];
|
|
825
819
|
const height = extent[3] - extent[1];
|
|
826
|
-
for (let i = 0; i <
|
|
820
|
+
for (let i = 0; i < stops; ++i) {
|
|
827
821
|
coordinates.push(
|
|
828
|
-
extent[0] + (width * i) /
|
|
822
|
+
extent[0] + (width * i) / stops,
|
|
829
823
|
extent[1],
|
|
830
824
|
extent[2],
|
|
831
|
-
extent[1] + (height * i) /
|
|
832
|
-
extent[2] - (width * i) /
|
|
825
|
+
extent[1] + (height * i) / stops,
|
|
826
|
+
extent[2] - (width * i) / stops,
|
|
833
827
|
extent[3],
|
|
834
828
|
extent[0],
|
|
835
|
-
extent[3] - (height * i) /
|
|
829
|
+
extent[3] - (height * i) / stops
|
|
836
830
|
);
|
|
837
831
|
}
|
|
838
832
|
} else {
|
|
@@ -854,7 +848,7 @@ export function applyTransform(extent, transformFn, opt_extent, opt_stops) {
|
|
|
854
848
|
xs.push(coordinates[i]);
|
|
855
849
|
ys.push(coordinates[i + 1]);
|
|
856
850
|
}
|
|
857
|
-
return _boundingExtentXYs(xs, ys,
|
|
851
|
+
return _boundingExtentXYs(xs, ys, dest);
|
|
858
852
|
}
|
|
859
853
|
|
|
860
854
|
/**
|
package/format/EsriJSON.d.ts
CHANGED
|
@@ -45,9 +45,9 @@ export type Options = {
|
|
|
45
45
|
*/
|
|
46
46
|
declare class EsriJSON extends JSONFeature {
|
|
47
47
|
/**
|
|
48
|
-
* @param {Options} [
|
|
48
|
+
* @param {Options} [options] Options.
|
|
49
49
|
*/
|
|
50
|
-
constructor(
|
|
50
|
+
constructor(options?: Options | undefined);
|
|
51
51
|
/**
|
|
52
52
|
* Name of the geometry attribute for features.
|
|
53
53
|
* @type {string|undefined}
|
|
@@ -56,37 +56,37 @@ declare class EsriJSON extends JSONFeature {
|
|
|
56
56
|
private geometryName_;
|
|
57
57
|
/**
|
|
58
58
|
* @param {Object} object Object.
|
|
59
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
60
|
-
* @param {string} [
|
|
59
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
60
|
+
* @param {string} [idField] Name of the field where to get the id from.
|
|
61
61
|
* @protected
|
|
62
62
|
* @return {import("../Feature.js").default} Feature.
|
|
63
63
|
*/
|
|
64
|
-
protected readFeatureFromObject(object: any,
|
|
64
|
+
protected readFeatureFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined, idField?: string | undefined): import("../Feature.js").default;
|
|
65
65
|
/**
|
|
66
66
|
* @param {EsriJSONGeometry} object Object.
|
|
67
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
67
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
68
68
|
* @protected
|
|
69
69
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
70
70
|
*/
|
|
71
|
-
protected readGeometryFromObject(object: EsriJSONGeometry,
|
|
71
|
+
protected readGeometryFromObject(object: EsriJSONGeometry, options?: import("./Feature.js").ReadOptions | undefined): import("../geom/Geometry.js").default;
|
|
72
72
|
/**
|
|
73
73
|
* Encode a geometry as a EsriJSON object.
|
|
74
74
|
*
|
|
75
75
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
76
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
76
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
77
77
|
* @return {EsriJSONGeometry} Object.
|
|
78
78
|
* @api
|
|
79
79
|
*/
|
|
80
|
-
writeGeometryObject(geometry: import("../geom/Geometry.js").default,
|
|
80
|
+
writeGeometryObject(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): EsriJSONGeometry;
|
|
81
81
|
/**
|
|
82
82
|
* Encode an array of features as a EsriJSON object.
|
|
83
83
|
*
|
|
84
84
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
85
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
85
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
86
86
|
* @return {EsriJSONFeatureSet} EsriJSON Object.
|
|
87
87
|
* @api
|
|
88
88
|
*/
|
|
89
|
-
writeFeaturesObject(features: Array<import("../Feature.js").default>,
|
|
89
|
+
writeFeaturesObject(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): EsriJSONFeatureSet;
|
|
90
90
|
}
|
|
91
91
|
import JSONFeature from "./JSONFeature.js";
|
|
92
92
|
//# sourceMappingURL=EsriJSON.d.ts.map
|
package/format/EsriJSON.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsriJSON.d.ts","sourceRoot":"","sources":["EsriJSON.js"],"names":[],"mappings":";8BAqBa,OAAO,iBAAiB,EAAE,OAAO;iCACjC,OAAO,iBAAiB,EAAE,UAAU;+BACpC,OAAO,iBAAiB,EAAE,QAAQ;4BAClC,OAAO,iBAAiB,EAAE,KAAK;+BAC/B,OAAO,iBAAiB,EAAE,QAAQ;8BAClC,OAAO,iBAAiB,EAAE,OAAO;iCACjC,OAAO,iBAAiB,EAAE,UAAU;4BACpC,OAAO,iBAAiB,EAAE,KAAK;+BAC/B,OAAO,iBAAiB,EAAE,QAAQ;2CAClC,OAAO,iBAAiB,EAAE,oBAAoB;;;;;WAK7C,MAAM,MAAM,MAAM,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;AAgChD;;;GAGG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"EsriJSON.d.ts","sourceRoot":"","sources":["EsriJSON.js"],"names":[],"mappings":";8BAqBa,OAAO,iBAAiB,EAAE,OAAO;iCACjC,OAAO,iBAAiB,EAAE,UAAU;+BACpC,OAAO,iBAAiB,EAAE,QAAQ;4BAClC,OAAO,iBAAiB,EAAE,KAAK;+BAC/B,OAAO,iBAAiB,EAAE,QAAQ;8BAClC,OAAO,iBAAiB,EAAE,OAAO;iCACjC,OAAO,iBAAiB,EAAE,UAAU;4BACpC,OAAO,iBAAiB,EAAE,KAAK;+BAC/B,OAAO,iBAAiB,EAAE,QAAQ;2CAClC,OAAO,iBAAiB,EAAE,oBAAoB;;;;;WAK7C,MAAM,MAAM,MAAM,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;AAgChD;;;GAGG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAWC;IANC;;;;OAIG;IACH,sBAAyC;IAG3C;;;;;;OAMG;IACH,sIAFY,OAAO,eAAe,EAAE,OAAO,CAkB1C;IA8BD;;;;;OAKG;IACH,yCALW,gBAAgB,6DAGf,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAsBD;;;;;;;OAOG;IACH,8BALW,OAAO,qBAAqB,EAAE,OAAO,8DAEpC,gBAAgB,CAK3B;IAuCD;;;;;;;OAOG;IACH,8BALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,8DAErC,kBAAkB,CAY7B;CACF"}
|