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/xml.js
CHANGED
|
@@ -106,11 +106,11 @@ export function parse(xml) {
|
|
|
106
106
|
* Make an array extender function for extending the array at the top of the
|
|
107
107
|
* object stack.
|
|
108
108
|
* @param {function(this: T, Node, Array<*>): (Array<*>|undefined)} valueReader Value reader.
|
|
109
|
-
* @param {T} [
|
|
109
|
+
* @param {T} [thisArg] The object to use as `this` in `valueReader`.
|
|
110
110
|
* @return {Parser} Parser.
|
|
111
111
|
* @template T
|
|
112
112
|
*/
|
|
113
|
-
export function makeArrayExtender(valueReader,
|
|
113
|
+
export function makeArrayExtender(valueReader, thisArg) {
|
|
114
114
|
return (
|
|
115
115
|
/**
|
|
116
116
|
* @param {Node} node Node.
|
|
@@ -118,7 +118,7 @@ export function makeArrayExtender(valueReader, opt_this) {
|
|
|
118
118
|
*/
|
|
119
119
|
function (node, objectStack) {
|
|
120
120
|
const value = valueReader.call(
|
|
121
|
-
|
|
121
|
+
thisArg !== undefined ? thisArg : this,
|
|
122
122
|
node,
|
|
123
123
|
objectStack
|
|
124
124
|
);
|
|
@@ -136,11 +136,11 @@ export function makeArrayExtender(valueReader, opt_this) {
|
|
|
136
136
|
* Make an array pusher function for pushing to the array at the top of the
|
|
137
137
|
* object stack.
|
|
138
138
|
* @param {function(this: T, Element, Array<*>): *} valueReader Value reader.
|
|
139
|
-
* @param {T} [
|
|
139
|
+
* @param {T} [thisArg] The object to use as `this` in `valueReader`.
|
|
140
140
|
* @return {Parser} Parser.
|
|
141
141
|
* @template T
|
|
142
142
|
*/
|
|
143
|
-
export function makeArrayPusher(valueReader,
|
|
143
|
+
export function makeArrayPusher(valueReader, thisArg) {
|
|
144
144
|
return (
|
|
145
145
|
/**
|
|
146
146
|
* @param {Element} node Node.
|
|
@@ -148,7 +148,7 @@ export function makeArrayPusher(valueReader, opt_this) {
|
|
|
148
148
|
*/
|
|
149
149
|
function (node, objectStack) {
|
|
150
150
|
const value = valueReader.call(
|
|
151
|
-
|
|
151
|
+
thisArg !== undefined ? thisArg : this,
|
|
152
152
|
node,
|
|
153
153
|
objectStack
|
|
154
154
|
);
|
|
@@ -166,11 +166,11 @@ export function makeArrayPusher(valueReader, opt_this) {
|
|
|
166
166
|
* Make an object stack replacer function for replacing the object at the
|
|
167
167
|
* top of the stack.
|
|
168
168
|
* @param {function(this: T, Node, Array<*>): *} valueReader Value reader.
|
|
169
|
-
* @param {T} [
|
|
169
|
+
* @param {T} [thisArg] The object to use as `this` in `valueReader`.
|
|
170
170
|
* @return {Parser} Parser.
|
|
171
171
|
* @template T
|
|
172
172
|
*/
|
|
173
|
-
export function makeReplacer(valueReader,
|
|
173
|
+
export function makeReplacer(valueReader, thisArg) {
|
|
174
174
|
return (
|
|
175
175
|
/**
|
|
176
176
|
* @param {Node} node Node.
|
|
@@ -178,7 +178,7 @@ export function makeReplacer(valueReader, opt_this) {
|
|
|
178
178
|
*/
|
|
179
179
|
function (node, objectStack) {
|
|
180
180
|
const value = valueReader.call(
|
|
181
|
-
|
|
181
|
+
thisArg !== undefined ? thisArg : this,
|
|
182
182
|
node,
|
|
183
183
|
objectStack
|
|
184
184
|
);
|
|
@@ -193,12 +193,12 @@ export function makeReplacer(valueReader, opt_this) {
|
|
|
193
193
|
* Make an object property pusher function for adding a property to the
|
|
194
194
|
* object at the top of the stack.
|
|
195
195
|
* @param {function(this: T, Element, Array<*>): *} valueReader Value reader.
|
|
196
|
-
* @param {string} [
|
|
197
|
-
* @param {T} [
|
|
196
|
+
* @param {string} [property] Property.
|
|
197
|
+
* @param {T} [thisArg] The object to use as `this` in `valueReader`.
|
|
198
198
|
* @return {Parser} Parser.
|
|
199
199
|
* @template T
|
|
200
200
|
*/
|
|
201
|
-
export function makeObjectPropertyPusher(valueReader,
|
|
201
|
+
export function makeObjectPropertyPusher(valueReader, property, thisArg) {
|
|
202
202
|
return (
|
|
203
203
|
/**
|
|
204
204
|
* @param {Element} node Node.
|
|
@@ -206,7 +206,7 @@ export function makeObjectPropertyPusher(valueReader, opt_property, opt_this) {
|
|
|
206
206
|
*/
|
|
207
207
|
function (node, objectStack) {
|
|
208
208
|
const value = valueReader.call(
|
|
209
|
-
|
|
209
|
+
thisArg !== undefined ? thisArg : this,
|
|
210
210
|
node,
|
|
211
211
|
objectStack
|
|
212
212
|
);
|
|
@@ -214,14 +214,13 @@ export function makeObjectPropertyPusher(valueReader, opt_property, opt_this) {
|
|
|
214
214
|
const object = /** @type {!Object} */ (
|
|
215
215
|
objectStack[objectStack.length - 1]
|
|
216
216
|
);
|
|
217
|
-
const property
|
|
218
|
-
opt_property !== undefined ? opt_property : node.localName;
|
|
217
|
+
const name = property !== undefined ? property : node.localName;
|
|
219
218
|
let array;
|
|
220
|
-
if (
|
|
221
|
-
array = object[
|
|
219
|
+
if (name in object) {
|
|
220
|
+
array = object[name];
|
|
222
221
|
} else {
|
|
223
222
|
array = [];
|
|
224
|
-
object[
|
|
223
|
+
object[name] = array;
|
|
225
224
|
}
|
|
226
225
|
array.push(value);
|
|
227
226
|
}
|
|
@@ -232,12 +231,12 @@ export function makeObjectPropertyPusher(valueReader, opt_property, opt_this) {
|
|
|
232
231
|
/**
|
|
233
232
|
* Make an object property setter function.
|
|
234
233
|
* @param {function(this: T, Element, Array<*>): *} valueReader Value reader.
|
|
235
|
-
* @param {string} [
|
|
236
|
-
* @param {T} [
|
|
234
|
+
* @param {string} [property] Property.
|
|
235
|
+
* @param {T} [thisArg] The object to use as `this` in `valueReader`.
|
|
237
236
|
* @return {Parser} Parser.
|
|
238
237
|
* @template T
|
|
239
238
|
*/
|
|
240
|
-
export function makeObjectPropertySetter(valueReader,
|
|
239
|
+
export function makeObjectPropertySetter(valueReader, property, thisArg) {
|
|
241
240
|
return (
|
|
242
241
|
/**
|
|
243
242
|
* @param {Element} node Node.
|
|
@@ -245,7 +244,7 @@ export function makeObjectPropertySetter(valueReader, opt_property, opt_this) {
|
|
|
245
244
|
*/
|
|
246
245
|
function (node, objectStack) {
|
|
247
246
|
const value = valueReader.call(
|
|
248
|
-
|
|
247
|
+
thisArg !== undefined ? thisArg : this,
|
|
249
248
|
node,
|
|
250
249
|
objectStack
|
|
251
250
|
);
|
|
@@ -253,9 +252,8 @@ export function makeObjectPropertySetter(valueReader, opt_property, opt_this) {
|
|
|
253
252
|
const object = /** @type {!Object} */ (
|
|
254
253
|
objectStack[objectStack.length - 1]
|
|
255
254
|
);
|
|
256
|
-
const property
|
|
257
|
-
|
|
258
|
-
object[property] = value;
|
|
255
|
+
const name = property !== undefined ? property : node.localName;
|
|
256
|
+
object[name] = value;
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
259
|
);
|
|
@@ -266,14 +264,14 @@ export function makeObjectPropertySetter(valueReader, opt_property, opt_this) {
|
|
|
266
264
|
* designated parent. The parent is the `node` of the
|
|
267
265
|
* {@link module:ol/xml~NodeStackItem} at the top of the `objectStack`.
|
|
268
266
|
* @param {function(this: T, Node, V, Array<*>): void} nodeWriter Node writer.
|
|
269
|
-
* @param {T} [
|
|
267
|
+
* @param {T} [thisArg] The object to use as `this` in `nodeWriter`.
|
|
270
268
|
* @return {Serializer} Serializer.
|
|
271
269
|
* @template T, V
|
|
272
270
|
*/
|
|
273
|
-
export function makeChildAppender(nodeWriter,
|
|
271
|
+
export function makeChildAppender(nodeWriter, thisArg) {
|
|
274
272
|
return function (node, value, objectStack) {
|
|
275
273
|
nodeWriter.call(
|
|
276
|
-
|
|
274
|
+
thisArg !== undefined ? thisArg : this,
|
|
277
275
|
node,
|
|
278
276
|
value,
|
|
279
277
|
objectStack
|
|
@@ -294,11 +292,11 @@ export function makeChildAppender(nodeWriter, opt_this) {
|
|
|
294
292
|
* geometry writer, which could be reused for writing MultiLineString
|
|
295
293
|
* geometries.
|
|
296
294
|
* @param {function(this: T, Element, V, Array<*>): void} nodeWriter Node writer.
|
|
297
|
-
* @param {T} [
|
|
295
|
+
* @param {T} [thisArg] The object to use as `this` in `nodeWriter`.
|
|
298
296
|
* @return {Serializer} Serializer.
|
|
299
297
|
* @template T, V
|
|
300
298
|
*/
|
|
301
|
-
export function makeArraySerializer(nodeWriter,
|
|
299
|
+
export function makeArraySerializer(nodeWriter, thisArg) {
|
|
302
300
|
let serializersNS, nodeFactory;
|
|
303
301
|
return function (node, value, objectStack) {
|
|
304
302
|
if (serializersNS === undefined) {
|
|
@@ -313,39 +311,38 @@ export function makeArraySerializer(nodeWriter, opt_this) {
|
|
|
313
311
|
}
|
|
314
312
|
|
|
315
313
|
/**
|
|
316
|
-
* Create a node factory which can use the `
|
|
314
|
+
* Create a node factory which can use the `keys` passed to
|
|
317
315
|
* {@link module:ol/xml.serialize} or {@link module:ol/xml.pushSerializeAndPop} as node names,
|
|
318
316
|
* or a fixed node name. The namespace of the created nodes can either be fixed,
|
|
319
317
|
* or the parent namespace will be used.
|
|
320
|
-
* @param {string} [
|
|
318
|
+
* @param {string} [fixedNodeName] Fixed node name which will be used for all
|
|
321
319
|
* created nodes. If not provided, the 3rd argument to the resulting node
|
|
322
320
|
* factory needs to be provided and will be the nodeName.
|
|
323
|
-
* @param {string} [
|
|
321
|
+
* @param {string} [fixedNamespaceURI] Fixed namespace URI which will be used for
|
|
324
322
|
* all created nodes. If not provided, the namespace of the parent node will
|
|
325
323
|
* be used.
|
|
326
324
|
* @return {function(*, Array<*>, string=): (Node|undefined)} Node factory.
|
|
327
325
|
*/
|
|
328
|
-
export function makeSimpleNodeFactory(
|
|
329
|
-
const fixedNodeName = opt_nodeName;
|
|
326
|
+
export function makeSimpleNodeFactory(fixedNodeName, fixedNamespaceURI) {
|
|
330
327
|
return (
|
|
331
328
|
/**
|
|
332
329
|
* @param {*} value Value.
|
|
333
330
|
* @param {Array<*>} objectStack Object stack.
|
|
334
|
-
* @param {string} [
|
|
331
|
+
* @param {string} [newNodeName] Node name.
|
|
335
332
|
* @return {Node} Node.
|
|
336
333
|
*/
|
|
337
|
-
function (value, objectStack,
|
|
334
|
+
function (value, objectStack, newNodeName) {
|
|
338
335
|
const context = /** @type {NodeStackItem} */ (
|
|
339
336
|
objectStack[objectStack.length - 1]
|
|
340
337
|
);
|
|
341
338
|
const node = context.node;
|
|
342
339
|
let nodeName = fixedNodeName;
|
|
343
340
|
if (nodeName === undefined) {
|
|
344
|
-
nodeName =
|
|
341
|
+
nodeName = newNodeName;
|
|
345
342
|
}
|
|
346
343
|
|
|
347
344
|
const namespaceURI =
|
|
348
|
-
|
|
345
|
+
fixedNamespaceURI !== undefined ? fixedNamespaceURI : node.namespaceURI;
|
|
349
346
|
return createElementNS(namespaceURI, /** @type {string} */ (nodeName));
|
|
350
347
|
}
|
|
351
348
|
);
|
|
@@ -363,7 +360,7 @@ export const OBJECT_PROPERTY_NODE_FACTORY = makeSimpleNodeFactory();
|
|
|
363
360
|
/**
|
|
364
361
|
* Create an array of `values` to be used with {@link module:ol/xml.serialize} or
|
|
365
362
|
* {@link module:ol/xml.pushSerializeAndPop}, where `orderedKeys` has to be provided as
|
|
366
|
-
* `
|
|
363
|
+
* `key` argument.
|
|
367
364
|
* @param {Object<string, *>} object Key-value pairs for the sequence. Keys can
|
|
368
365
|
* be a subset of the `orderedKeys`.
|
|
369
366
|
* @param {Array<string>} orderedKeys Keys in the order of the sequence.
|
|
@@ -386,15 +383,12 @@ export function makeSequence(object, orderedKeys) {
|
|
|
386
383
|
* values are version specific.
|
|
387
384
|
* @param {Array<string>} namespaceURIs Namespace URIs.
|
|
388
385
|
* @param {T} structure Structure.
|
|
389
|
-
* @param {Object<string, T>} [
|
|
386
|
+
* @param {Object<string, T>} [structureNS] Namespaced structure to add to.
|
|
390
387
|
* @return {Object<string, T>} Namespaced structure.
|
|
391
388
|
* @template T
|
|
392
389
|
*/
|
|
393
|
-
export function makeStructureNS(namespaceURIs, structure,
|
|
394
|
-
|
|
395
|
-
* @type {Object<string, T>}
|
|
396
|
-
*/
|
|
397
|
-
const structureNS = opt_structureNS !== undefined ? opt_structureNS : {};
|
|
390
|
+
export function makeStructureNS(namespaceURIs, structure, structureNS) {
|
|
391
|
+
structureNS = structureNS !== undefined ? structureNS : {};
|
|
398
392
|
let i, ii;
|
|
399
393
|
for (i = 0, ii = namespaceURIs.length; i < ii; ++i) {
|
|
400
394
|
structureNS[namespaceURIs[i]] = structure;
|
|
@@ -408,16 +402,16 @@ export function makeStructureNS(namespaceURIs, structure, opt_structureNS) {
|
|
|
408
402
|
* Parsers by namespace.
|
|
409
403
|
* @param {Element} node Node.
|
|
410
404
|
* @param {Array<*>} objectStack Object stack.
|
|
411
|
-
* @param {*} [
|
|
405
|
+
* @param {*} [thisArg] The object to use as `this`.
|
|
412
406
|
*/
|
|
413
|
-
export function parseNode(parsersNS, node, objectStack,
|
|
407
|
+
export function parseNode(parsersNS, node, objectStack, thisArg) {
|
|
414
408
|
let n;
|
|
415
409
|
for (n = node.firstElementChild; n; n = n.nextElementSibling) {
|
|
416
410
|
const parsers = parsersNS[n.namespaceURI];
|
|
417
411
|
if (parsers !== undefined) {
|
|
418
412
|
const parser = parsers[n.localName];
|
|
419
413
|
if (parser !== undefined) {
|
|
420
|
-
parser.call(
|
|
414
|
+
parser.call(thisArg, n, objectStack);
|
|
421
415
|
}
|
|
422
416
|
}
|
|
423
417
|
}
|
|
@@ -430,19 +424,13 @@ export function parseNode(parsersNS, node, objectStack, opt_this) {
|
|
|
430
424
|
* Parsers by namespace.
|
|
431
425
|
* @param {Element} node Node.
|
|
432
426
|
* @param {Array<*>} objectStack Object stack.
|
|
433
|
-
* @param {*} [
|
|
427
|
+
* @param {*} [thisArg] The object to use as `this`.
|
|
434
428
|
* @return {T} Object.
|
|
435
429
|
* @template T
|
|
436
430
|
*/
|
|
437
|
-
export function pushParseAndPop(
|
|
438
|
-
object,
|
|
439
|
-
parsersNS,
|
|
440
|
-
node,
|
|
441
|
-
objectStack,
|
|
442
|
-
opt_this
|
|
443
|
-
) {
|
|
431
|
+
export function pushParseAndPop(object, parsersNS, node, objectStack, thisArg) {
|
|
444
432
|
objectStack.push(object);
|
|
445
|
-
parseNode(parsersNS, node, objectStack,
|
|
433
|
+
parseNode(parsersNS, node, objectStack, thisArg);
|
|
446
434
|
return /** @type {T} */ (objectStack.pop());
|
|
447
435
|
}
|
|
448
436
|
|
|
@@ -459,12 +447,12 @@ export function pushParseAndPop(
|
|
|
459
447
|
* @param {Array<*>} values Values to serialize. An example would be an array
|
|
460
448
|
* of {@link module:ol/Feature~Feature} instances.
|
|
461
449
|
* @param {Array<*>} objectStack Node stack.
|
|
462
|
-
* @param {Array<string>} [
|
|
450
|
+
* @param {Array<string>} [keys] Keys of the `values`. Will be passed to the
|
|
463
451
|
* `nodeFactory`. This is used for serializing object literals where the
|
|
464
|
-
* node name relates to the property key. The array length of `
|
|
465
|
-
* to match the length of `values`. For serializing a sequence, `
|
|
452
|
+
* node name relates to the property key. The array length of `keys` has
|
|
453
|
+
* to match the length of `values`. For serializing a sequence, `keys`
|
|
466
454
|
* determines the order of the sequence.
|
|
467
|
-
* @param {T} [
|
|
455
|
+
* @param {T} [thisArg] The object to use as `this` for the node factory and
|
|
468
456
|
* serializers.
|
|
469
457
|
* @template T
|
|
470
458
|
*/
|
|
@@ -473,23 +461,23 @@ export function serialize(
|
|
|
473
461
|
nodeFactory,
|
|
474
462
|
values,
|
|
475
463
|
objectStack,
|
|
476
|
-
|
|
477
|
-
|
|
464
|
+
keys,
|
|
465
|
+
thisArg
|
|
478
466
|
) {
|
|
479
|
-
const length = (
|
|
467
|
+
const length = (keys !== undefined ? keys : values).length;
|
|
480
468
|
let value, node;
|
|
481
469
|
for (let i = 0; i < length; ++i) {
|
|
482
470
|
value = values[i];
|
|
483
471
|
if (value !== undefined) {
|
|
484
472
|
node = nodeFactory.call(
|
|
485
|
-
|
|
473
|
+
thisArg !== undefined ? thisArg : this,
|
|
486
474
|
value,
|
|
487
475
|
objectStack,
|
|
488
|
-
|
|
476
|
+
keys !== undefined ? keys[i] : undefined
|
|
489
477
|
);
|
|
490
478
|
if (node !== undefined) {
|
|
491
479
|
serializersNS[node.namespaceURI][node.localName].call(
|
|
492
|
-
|
|
480
|
+
thisArg,
|
|
493
481
|
node,
|
|
494
482
|
value,
|
|
495
483
|
objectStack
|
|
@@ -512,12 +500,12 @@ export function serialize(
|
|
|
512
500
|
* @param {Array<*>} values Values to serialize. An example would be an array
|
|
513
501
|
* of {@link module:ol/Feature~Feature} instances.
|
|
514
502
|
* @param {Array<*>} objectStack Node stack.
|
|
515
|
-
* @param {Array<string>} [
|
|
503
|
+
* @param {Array<string>} [keys] Keys of the `values`. Will be passed to the
|
|
516
504
|
* `nodeFactory`. This is used for serializing object literals where the
|
|
517
|
-
* node name relates to the property key. The array length of `
|
|
518
|
-
* to match the length of `values`. For serializing a sequence, `
|
|
505
|
+
* node name relates to the property key. The array length of `keys` has
|
|
506
|
+
* to match the length of `values`. For serializing a sequence, `keys`
|
|
519
507
|
* determines the order of the sequence.
|
|
520
|
-
* @param {T} [
|
|
508
|
+
* @param {T} [thisArg] The object to use as `this` for the node factory and
|
|
521
509
|
* serializers.
|
|
522
510
|
* @return {O|undefined} Object.
|
|
523
511
|
* @template O, T
|
|
@@ -528,18 +516,11 @@ export function pushSerializeAndPop(
|
|
|
528
516
|
nodeFactory,
|
|
529
517
|
values,
|
|
530
518
|
objectStack,
|
|
531
|
-
|
|
532
|
-
|
|
519
|
+
keys,
|
|
520
|
+
thisArg
|
|
533
521
|
) {
|
|
534
522
|
objectStack.push(object);
|
|
535
|
-
serialize(
|
|
536
|
-
serializersNS,
|
|
537
|
-
nodeFactory,
|
|
538
|
-
values,
|
|
539
|
-
objectStack,
|
|
540
|
-
opt_keys,
|
|
541
|
-
opt_this
|
|
542
|
-
);
|
|
523
|
+
serialize(serializersNS, nodeFactory, values, objectStack, keys, thisArg);
|
|
543
524
|
return /** @type {O|undefined} */ (objectStack.pop());
|
|
544
525
|
}
|
|
545
526
|
|