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/MapEvent.js
CHANGED
|
@@ -12,9 +12,9 @@ class MapEvent extends Event {
|
|
|
12
12
|
/**
|
|
13
13
|
* @param {string} type Event type.
|
|
14
14
|
* @param {import("./Map.js").default} map Map.
|
|
15
|
-
* @param {?import("./Map.js").FrameState} [
|
|
15
|
+
* @param {?import("./Map.js").FrameState} [frameState] Frame state.
|
|
16
16
|
*/
|
|
17
|
-
constructor(type, map,
|
|
17
|
+
constructor(type, map, frameState) {
|
|
18
18
|
super(type);
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -29,7 +29,7 @@ class MapEvent extends Event {
|
|
|
29
29
|
* @type {?import("./Map.js").FrameState}
|
|
30
30
|
* @api
|
|
31
31
|
*/
|
|
32
|
-
this.frameState =
|
|
32
|
+
this.frameState = frameState !== undefined ? frameState : null;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
package/Object.d.ts
CHANGED
|
@@ -80,9 +80,9 @@ import Event from "./events/Event.js";
|
|
|
80
80
|
*/
|
|
81
81
|
declare class BaseObject extends Observable {
|
|
82
82
|
/**
|
|
83
|
-
* @param {Object<string, *>} [
|
|
83
|
+
* @param {Object<string, *>} [values] An object with key-value pairs.
|
|
84
84
|
*/
|
|
85
|
-
constructor(
|
|
85
|
+
constructor(values?: {
|
|
86
86
|
[x: string]: any;
|
|
87
87
|
} | undefined);
|
|
88
88
|
/***
|
|
@@ -146,20 +146,20 @@ declare class BaseObject extends Observable {
|
|
|
146
146
|
* Sets a value.
|
|
147
147
|
* @param {string} key Key name.
|
|
148
148
|
* @param {*} value Value.
|
|
149
|
-
* @param {boolean} [
|
|
149
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
150
150
|
* @api
|
|
151
151
|
*/
|
|
152
|
-
set(key: string, value: any,
|
|
152
|
+
set(key: string, value: any, silent?: boolean | undefined): void;
|
|
153
153
|
/**
|
|
154
154
|
* Sets a collection of key-value pairs. Note that this changes any existing
|
|
155
155
|
* properties and adds new ones (it does not remove any existing properties).
|
|
156
156
|
* @param {Object<string, *>} values Values.
|
|
157
|
-
* @param {boolean} [
|
|
157
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
158
158
|
* @api
|
|
159
159
|
*/
|
|
160
160
|
setProperties(values: {
|
|
161
161
|
[x: string]: any;
|
|
162
|
-
},
|
|
162
|
+
}, silent?: boolean | undefined): void;
|
|
163
163
|
/**
|
|
164
164
|
* Apply any properties from another object without triggering events.
|
|
165
165
|
* @param {BaseObject} source The source object.
|
|
@@ -169,10 +169,10 @@ declare class BaseObject extends Observable {
|
|
|
169
169
|
/**
|
|
170
170
|
* Unsets a property.
|
|
171
171
|
* @param {string} key Key name.
|
|
172
|
-
* @param {boolean} [
|
|
172
|
+
* @param {boolean} [silent] Unset without triggering an event.
|
|
173
173
|
* @api
|
|
174
174
|
*/
|
|
175
|
-
unset(key: string,
|
|
175
|
+
unset(key: string, silent?: boolean | undefined): void;
|
|
176
176
|
}
|
|
177
177
|
import Observable from "./Observable.js";
|
|
178
178
|
//# sourceMappingURL=Object.d.ts.map
|
package/Object.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["Object.js"],"names":[],"mappings":"AASA;;;GAGG;AACH;IACE;;;;OAIG;IACH,kBAJW,MAAM,OACN,MAAM,iBAoBhB;IAdC;;;;OAIG;IACH,KAHU,MAAM,CAGF;IAEd;;;;;OAKG;IACH,cAAwB;CAE3B;;;;;wCAIY,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAY,cAAc,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/F,OAAY,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,OAAO,mBAAmB,EAAE,KAAK,EAAE,MAAM,CAAC;;AAJ7H;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH;IACE;;OAEG;IACH;;mBAiCC;IA9BC;;OAEG;IACH,IAFU,kBAAkB,OAAO,UAAU,EAAE,SAAS,CAAC,CAElD;IAEP;;OAEG;IACH,MAFU,kBAAkB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEhD;IAET;;OAEG;IACH,IAFU,kBAAkB,IAAI,CAAC,CAE1B;IAQP;;;OAGG;IACH,gBAAmB;IAOrB;;;;;OAKG;IACH,SAJW,MAAM,OAUhB;IAED;;;;OAIG;IACH,WAHY,MAAM,MAAM,CAAC,CAKxB;IAED;;;;OAIG;IACH;YAHmB,MAAM;MAKxB;IAED;;OAEG;IACH,iBAFY,OAAO,CAIlB;IAED;;;OAGG;IACH,YAHW,MAAM,uBAahB;IAED;;;OAGG;IACH,uBAHW,MAAM,YACN,OAAO,aAAa,EAAE,QAAQ,QAIxC;IAED;;;OAGG;IACH,0BAHW,MAAM,YACN,OAAO,aAAa,EAAE,QAAQ,QAIxC;IAED;;;;;;OAMG;IACH,SALW,MAAM,kDAgBhB;IAED;;;;;;OAMG;IACH;YAJkB,MAAM;2CAQvB;IAED;;;;OAIG;IACH,kCAHW,UAAU,QAQpB;IAED;;;;;OAKG;IACH,WAJW,MAAM,sCAehB;CACF"}
|
package/Object.js
CHANGED
|
@@ -89,9 +89,9 @@ export class ObjectEvent extends Event {
|
|
|
89
89
|
*/
|
|
90
90
|
class BaseObject extends Observable {
|
|
91
91
|
/**
|
|
92
|
-
* @param {Object<string, *>} [
|
|
92
|
+
* @param {Object<string, *>} [values] An object with key-value pairs.
|
|
93
93
|
*/
|
|
94
|
-
constructor(
|
|
94
|
+
constructor(values) {
|
|
95
95
|
super();
|
|
96
96
|
|
|
97
97
|
/***
|
|
@@ -121,8 +121,8 @@ class BaseObject extends Observable {
|
|
|
121
121
|
*/
|
|
122
122
|
this.values_ = null;
|
|
123
123
|
|
|
124
|
-
if (
|
|
125
|
-
this.setProperties(
|
|
124
|
+
if (values !== undefined) {
|
|
125
|
+
this.setProperties(values);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -201,12 +201,12 @@ class BaseObject extends Observable {
|
|
|
201
201
|
* Sets a value.
|
|
202
202
|
* @param {string} key Key name.
|
|
203
203
|
* @param {*} value Value.
|
|
204
|
-
* @param {boolean} [
|
|
204
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
205
205
|
* @api
|
|
206
206
|
*/
|
|
207
|
-
set(key, value,
|
|
207
|
+
set(key, value, silent) {
|
|
208
208
|
const values = this.values_ || (this.values_ = {});
|
|
209
|
-
if (
|
|
209
|
+
if (silent) {
|
|
210
210
|
values[key] = value;
|
|
211
211
|
} else {
|
|
212
212
|
const oldValue = values[key];
|
|
@@ -221,12 +221,12 @@ class BaseObject extends Observable {
|
|
|
221
221
|
* Sets a collection of key-value pairs. Note that this changes any existing
|
|
222
222
|
* properties and adds new ones (it does not remove any existing properties).
|
|
223
223
|
* @param {Object<string, *>} values Values.
|
|
224
|
-
* @param {boolean} [
|
|
224
|
+
* @param {boolean} [silent] Update without triggering an event.
|
|
225
225
|
* @api
|
|
226
226
|
*/
|
|
227
|
-
setProperties(values,
|
|
227
|
+
setProperties(values, silent) {
|
|
228
228
|
for (const key in values) {
|
|
229
|
-
this.set(key, values[key],
|
|
229
|
+
this.set(key, values[key], silent);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
@@ -245,17 +245,17 @@ class BaseObject extends Observable {
|
|
|
245
245
|
/**
|
|
246
246
|
* Unsets a property.
|
|
247
247
|
* @param {string} key Key name.
|
|
248
|
-
* @param {boolean} [
|
|
248
|
+
* @param {boolean} [silent] Unset without triggering an event.
|
|
249
249
|
* @api
|
|
250
250
|
*/
|
|
251
|
-
unset(key,
|
|
251
|
+
unset(key, silent) {
|
|
252
252
|
if (this.values_ && key in this.values_) {
|
|
253
253
|
const oldValue = this.values_[key];
|
|
254
254
|
delete this.values_[key];
|
|
255
255
|
if (isEmpty(this.values_)) {
|
|
256
256
|
this.values_ = null;
|
|
257
257
|
}
|
|
258
|
-
if (!
|
|
258
|
+
if (!silent) {
|
|
259
259
|
this.notify(key, oldValue);
|
|
260
260
|
}
|
|
261
261
|
}
|
package/Overlay.d.ts
CHANGED
|
@@ -292,10 +292,10 @@ declare class Overlay extends BaseObject {
|
|
|
292
292
|
/**
|
|
293
293
|
* Pan the map so that the overlay is entirely visible in the current viewport
|
|
294
294
|
* (if necessary).
|
|
295
|
-
* @param {PanIntoViewOptions} [
|
|
295
|
+
* @param {PanIntoViewOptions} [panIntoViewOptions] Options for the pan action
|
|
296
296
|
* @api
|
|
297
297
|
*/
|
|
298
|
-
panIntoView(
|
|
298
|
+
panIntoView(panIntoViewOptions?: PanIntoViewOptions | undefined): void;
|
|
299
299
|
/**
|
|
300
300
|
* Get the extent of an element relative to the document
|
|
301
301
|
* @param {HTMLElement} element The element.
|
package/Overlay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["Overlay.js"],"names":[],"mappings":";;;;;;0BAWa,aAAa,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2CnI,MAAM,KAAE,MAAM;;;;;;;;;;;;;sCAyBxB,OAAO,mBAAmB,EAAE,KAAK,GAAC,gBAAgB,GAAC,YAAY,GAAC,eAAe,GAAC,iBAAiB,GAC7G,oBAAwB;;;;yCAKZ,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,uBAAuB,EAAE,OAAO,UAAU,EAAE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vB;IAED;;;;;;;OAOG;IACH,sBALW,OAAO,iBAAiB,EAAE,UAAU,GAAC,SAAS,QAOxD;IAED;;;;OAIG;IACH,iCAIC;IAED;;;;;OAKG;IACH,uEA2DC;IAED;;;;;;OAMG;IACH,2BALW,WAAW,QACX,OAAO,WAAW,EAAE,IAAI,GACvB,OAAO,aAAa,EAAE,MAAM,CAQvC;IAED;;;;;;OAMG;IACH,4BALW,WAAW,QAOrB;IAED;;;;OAIG;IACH,8BAHW,OAAO,QAQjB;IAED;;;OAGG;IACH,sCAWC;IAED;;;;OAIG;IACH,wCAJW,OAAO,YAAY,EAAE,KAAK,WAC1B,OAAO,WAAW,EAAE,IAAI,GAAC,SAAS,QA8C5C;IAED;;;OAGG;IACH,cAFY,OAAO,CAIlB;CACF"}
|
package/Overlay.js
CHANGED
|
@@ -402,10 +402,10 @@ class Overlay extends BaseObject {
|
|
|
402
402
|
/**
|
|
403
403
|
* Pan the map so that the overlay is entirely visible in the current viewport
|
|
404
404
|
* (if necessary).
|
|
405
|
-
* @param {PanIntoViewOptions} [
|
|
405
|
+
* @param {PanIntoViewOptions} [panIntoViewOptions] Options for the pan action
|
|
406
406
|
* @api
|
|
407
407
|
*/
|
|
408
|
-
panIntoView(
|
|
408
|
+
panIntoView(panIntoViewOptions) {
|
|
409
409
|
const map = this.getMap();
|
|
410
410
|
|
|
411
411
|
if (!map || !map.getTargetElement() || !this.get(Property.POSITION)) {
|
|
@@ -419,7 +419,7 @@ class Overlay extends BaseObject {
|
|
|
419
419
|
outerHeight(element),
|
|
420
420
|
]);
|
|
421
421
|
|
|
422
|
-
|
|
422
|
+
panIntoViewOptions = panIntoViewOptions || {};
|
|
423
423
|
|
|
424
424
|
const myMargin =
|
|
425
425
|
panIntoViewOptions.margin === undefined ? 20 : panIntoViewOptions.margin;
|
package/Tile.d.ts
CHANGED
|
@@ -124,9 +124,9 @@ declare class Tile extends EventTarget {
|
|
|
124
124
|
/**
|
|
125
125
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
126
126
|
* @param {import("./TileState.js").default} state State.
|
|
127
|
-
* @param {Options} [
|
|
127
|
+
* @param {Options} [options] Tile options.
|
|
128
128
|
*/
|
|
129
|
-
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any,
|
|
129
|
+
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, options?: Options | undefined);
|
|
130
130
|
/**
|
|
131
131
|
* @type {import("./tilecoord.js").TileCoord}
|
|
132
132
|
*/
|
package/Tile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA0CsB,IAAI,QAAE,MAAM,KAAG,IAAI;;;;;;;;;;;iCAcnB,OAAO,gBAAgB,EAAE,SAAS,QAAE,MAAM,QAC/D,OAAmB,sBAAsB,EAAE,OAAO,KAAG,CAAC,MAAM,GAAC,SAAS,CAAC;;;;;;;;;;;;;AAhDxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,uBAJW,OAAO,gBAAgB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA0CsB,IAAI,QAAE,MAAM,KAAG,IAAI;;;;;;;;;;;iCAcnB,OAAO,gBAAgB,EAAE,SAAS,QAAE,MAAM,QAC/D,OAAmB,sBAAsB,EAAE,OAAO,KAAG,CAAC,MAAM,GAAC,SAAS,CAAC;;;;;;;;;;;;;AAhDxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,uBAJW,OAAO,gBAAgB,EAAE,SAAS,6CAsD5C;IA7CC;;OAEG;IACH,WAFU,OAAO,gBAAgB,EAAE,SAAS,CAElB;IAE1B;;;OAGG;IACH,qBAAkB;IAElB;;;;;OAKG;IACH,aAFU,IAAI,CAES;IAEvB;;;;;OAKG;IACH,KAFU,MAAM,CAEH;IAEb;;;OAGG;IACH,aAFU,MAAM,CAG6C;IAE7D;;;;OAIG;IACH;YAFiB,MAAM,GAAE,MAAM;MAEJ;IAE3B;;OAEG;IACH,aAFU,OAAO,CAEuB;IAG1C;;OAEG;IACH,0BAEC;IAED;;OAEG;IACH,gBAKC;IAED;;OAEG;IACH,UAFY,MAAM,CAIjB;IAED;;;;;OAKG;IACH,kBAFa,IAAI,CAyBhB;IAED;;;OAGG;IACH,4BAgCC;IAED;;;;OAIG;IACH,gBAHY,OAAO,gBAAgB,EAAE,SAAS,CAK7C;IAED;;OAEG;IACH,gBAEC;IAED;;;;;;;OAOG;IACH,2BAMC;IAED;;;;;;OAMG;IACH,aAEC;IAED;;;;;OAKG;IACH,aAJW,MAAM,QACN,MAAM,GACL,MAAM,CAoBjB;IAED;;;;;;OAMG;IACH,iBAHW,MAAM,GACL,OAAO,CAOlB;IAED;;;OAGG;IACH,kBAFW,MAAM,QAMhB;CACF"}
|
package/Tile.js
CHANGED
|
@@ -78,12 +78,12 @@ class Tile extends EventTarget {
|
|
|
78
78
|
/**
|
|
79
79
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
80
80
|
* @param {import("./TileState.js").default} state State.
|
|
81
|
-
* @param {Options} [
|
|
81
|
+
* @param {Options} [options] Tile options.
|
|
82
82
|
*/
|
|
83
|
-
constructor(tileCoord, state,
|
|
83
|
+
constructor(tileCoord, state, options) {
|
|
84
84
|
super();
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
options = options ? options : {};
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* @type {import("./tilecoord.js").TileCoord}
|
package/TileCache.d.ts
CHANGED
package/TileCache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileCache.d.ts","sourceRoot":"","sources":["TileCache.js"],"names":[],"mappings":";AAMA;IAuBM,
|
|
1
|
+
{"version":3,"file":"TileCache.d.ts","sourceRoot":"","sources":["TileCache.js"],"names":[],"mappings":";AAMA;IAuBM,gDAqBuK;IApC3K;;OAEG;IACH;YAFmB,MAAM,GAAE,OAAO;aAWjC;IAED;;OAEG;IACH,2BAeC;CACF"}
|
package/VectorTile.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ declare class VectorTile extends Tile {
|
|
|
6
6
|
* @param {string} src Data source url.
|
|
7
7
|
* @param {import("./format/Feature.js").default} format Feature format.
|
|
8
8
|
* @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
|
|
9
|
-
* @param {import("./Tile.js").Options} [
|
|
9
|
+
* @param {import("./Tile.js").Options} [options] Tile options.
|
|
10
10
|
*/
|
|
11
|
-
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, src: string, format: import("./format/Feature.js").default, tileLoadFunction: import("./Tile.js").LoadFunction,
|
|
11
|
+
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, src: string, format: import("./format/Feature.js").default, tileLoadFunction: import("./Tile.js").LoadFunction, options?: import("./Tile.js").Options | undefined);
|
|
12
12
|
/**
|
|
13
13
|
* Extent of this tile; set by the source.
|
|
14
14
|
* @type {import("./extent.js").Extent}
|
package/VectorTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":";AAMA;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,gBAAgB,EAAE,SAAS,mBAElC,MAAM,UACN,OAAO,qBAAqB,EAAE,OAAO,oBACrC,OAAO,WAAW,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":";AAMA;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,gBAAgB,EAAE,SAAS,mBAElC,MAAM,UACN,OAAO,qBAAqB,EAAE,OAAO,oBACrC,OAAO,WAAW,EAAE,YAAY,qDAuD1C;IAjDC;;;OAGG;IACH,QAFU,OAAO,aAAa,EAAE,MAAM,CAEpB;IAElB;;;OAGG;IACH,gBAAqB;IAErB;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,YAFU,OAAO,sBAAsB,EAAE,OAAO,CAE1B;IAEtB;;;OAGG;IACH,YAFU,MAAM,CAED;IAEf;;;OAGG;IACH,0BAAyC;IAEzC;;;OAGG;IACH,aAAe;IAKjB;;;;OAIG;IACH,aAHY,OAAO,qBAAqB,EAAE,OAAO,CAKhD;IAED;;;;OAIG;IACH,eAHY,MAAM,OAAO,cAAc,EAAE,WAAW,CAAC,CAKpD;IAeD;;;;OAIG;IACH,iBAHW,MAAM,OAAO,cAAc,EAAE,OAAO,CAAC,kBACrC,OAAO,sBAAsB,EAAE,OAAO,QAIhD;IAED;;OAEG;IACH,gBAEC;IAED;;;;;OAKG;IACH,sBAHW,MAAM,OAAO,cAAc,EAAE,OAAO,CAAC,QAM/C;IAED;;;;OAIG;IACH,kBAHW,OAAO,oBAAoB,EAAE,aAAa,QAKpD;CACF"}
|
package/VectorTile.js
CHANGED
|
@@ -11,10 +11,10 @@ class VectorTile extends Tile {
|
|
|
11
11
|
* @param {string} src Data source url.
|
|
12
12
|
* @param {import("./format/Feature.js").default} format Feature format.
|
|
13
13
|
* @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
|
|
14
|
-
* @param {import("./Tile.js").Options} [
|
|
14
|
+
* @param {import("./Tile.js").Options} [options] Tile options.
|
|
15
15
|
*/
|
|
16
|
-
constructor(tileCoord, state, src, format, tileLoadFunction,
|
|
17
|
-
super(tileCoord, state,
|
|
16
|
+
constructor(tileCoord, state, src, format, tileLoadFunction, options) {
|
|
17
|
+
super(tileCoord, state, options);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Extent of this tile; set by the source.
|
package/View.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ export type ViewOnSignature<Return> = import("./Observable").OnSignature<import(
|
|
|
431
431
|
* A consequence of this is that, when applying a delta on the view state, one
|
|
432
432
|
* should use `adjustCenter`, `adjustRotation`, `adjustZoom` and `adjustResolution`
|
|
433
433
|
* rather than the corresponding setters. This will let view do its internal
|
|
434
|
-
* computations. Besides, the `adjust*` methods also take an `
|
|
434
|
+
* computations. Besides, the `adjust*` methods also take an `anchor`
|
|
435
435
|
* argument which allows specifying an origin for the transformation.
|
|
436
436
|
*
|
|
437
437
|
* ### Interacting with the view
|
|
@@ -446,9 +446,9 @@ export type ViewOnSignature<Return> = import("./Observable").OnSignature<import(
|
|
|
446
446
|
*/
|
|
447
447
|
declare class View extends BaseObject {
|
|
448
448
|
/**
|
|
449
|
-
* @param {ViewOptions} [
|
|
449
|
+
* @param {ViewOptions} [options] View options.
|
|
450
450
|
*/
|
|
451
|
-
constructor(
|
|
451
|
+
constructor(options?: ViewOptions | undefined);
|
|
452
452
|
/***
|
|
453
453
|
* @type {ViewOnSignature<import("./events").EventsKey>}
|
|
454
454
|
*/
|
|
@@ -656,7 +656,7 @@ declare class View extends BaseObject {
|
|
|
656
656
|
/**
|
|
657
657
|
* Returns the current viewport size.
|
|
658
658
|
* @private
|
|
659
|
-
* @param {number} [
|
|
659
|
+
* @param {number} [rotation] Take into account the rotation of the viewport when giving the size
|
|
660
660
|
* @return {import("./size.js").Size} Viewport size or `[100, 100]` when no viewport is found.
|
|
661
661
|
*/
|
|
662
662
|
private getViewportSize_;
|
|
@@ -665,9 +665,9 @@ declare class View extends BaseObject {
|
|
|
665
665
|
* to avoid performance hit and layout reflow.
|
|
666
666
|
* This should be done on map size change.
|
|
667
667
|
* Note: the constraints are not resolved during an animation to avoid stopping it
|
|
668
|
-
* @param {import("./size.js").Size} [
|
|
668
|
+
* @param {import("./size.js").Size} [size] Viewport size; if undefined, [100, 100] is assumed
|
|
669
669
|
*/
|
|
670
|
-
setViewportSize(
|
|
670
|
+
setViewportSize(size?: import("./size.js").Size | undefined): void;
|
|
671
671
|
/**
|
|
672
672
|
* Get the view center.
|
|
673
673
|
* @return {import("./coordinate.js").Coordinate|undefined} The center of the view.
|
|
@@ -689,27 +689,27 @@ declare class View extends BaseObject {
|
|
|
689
689
|
*/
|
|
690
690
|
getConstrainResolution(): boolean;
|
|
691
691
|
/**
|
|
692
|
-
* @param {Array<number>} [
|
|
692
|
+
* @param {Array<number>} [hints] Destination array.
|
|
693
693
|
* @return {Array<number>} Hint.
|
|
694
694
|
*/
|
|
695
|
-
getHints(
|
|
695
|
+
getHints(hints?: number[] | undefined): Array<number>;
|
|
696
696
|
/**
|
|
697
697
|
* Calculate the extent for the current view state and the passed size.
|
|
698
698
|
* The size is the pixel dimensions of the box into which the calculated extent
|
|
699
699
|
* should fit. In most cases you want to get the extent of the entire map,
|
|
700
700
|
* that is `map.getSize()`.
|
|
701
|
-
* @param {import("./size.js").Size} [
|
|
701
|
+
* @param {import("./size.js").Size} [size] Box pixel size. If not provided, the size
|
|
702
702
|
* of the map that uses this view will be used.
|
|
703
703
|
* @return {import("./extent.js").Extent} Extent.
|
|
704
704
|
* @api
|
|
705
705
|
*/
|
|
706
|
-
calculateExtent(
|
|
706
|
+
calculateExtent(size?: import("./size.js").Size | undefined): import("./extent.js").Extent;
|
|
707
707
|
/**
|
|
708
|
-
* @param {import("./size.js").Size} [
|
|
708
|
+
* @param {import("./size.js").Size} [size] Box pixel size. If not provided,
|
|
709
709
|
* the map's last known viewport size will be used.
|
|
710
710
|
* @return {import("./extent.js").Extent} Extent.
|
|
711
711
|
*/
|
|
712
|
-
calculateExtentInternal(
|
|
712
|
+
calculateExtentInternal(size?: import("./size.js").Size | undefined): import("./extent.js").Extent;
|
|
713
713
|
/**
|
|
714
714
|
* Get the maximum resolution of the view.
|
|
715
715
|
* @return {number} The maximum resolution of the view.
|
|
@@ -775,27 +775,27 @@ declare class View extends BaseObject {
|
|
|
775
775
|
/**
|
|
776
776
|
* Get the resolution for a provided extent (in map units) and size (in pixels).
|
|
777
777
|
* @param {import("./extent.js").Extent} extent Extent.
|
|
778
|
-
* @param {import("./size.js").Size} [
|
|
778
|
+
* @param {import("./size.js").Size} [size] Box pixel size.
|
|
779
779
|
* @return {number} The resolution at which the provided extent will render at
|
|
780
780
|
* the given size.
|
|
781
781
|
* @api
|
|
782
782
|
*/
|
|
783
|
-
getResolutionForExtent(extent: import("./extent.js").Extent,
|
|
783
|
+
getResolutionForExtent(extent: import("./extent.js").Extent, size?: import("./size.js").Size | undefined): number;
|
|
784
784
|
/**
|
|
785
785
|
* Get the resolution for a provided extent (in map units) and size (in pixels).
|
|
786
786
|
* @param {import("./extent.js").Extent} extent Extent.
|
|
787
|
-
* @param {import("./size.js").Size} [
|
|
787
|
+
* @param {import("./size.js").Size} [size] Box pixel size.
|
|
788
788
|
* @return {number} The resolution at which the provided extent will render at
|
|
789
789
|
* the given size.
|
|
790
790
|
*/
|
|
791
|
-
getResolutionForExtentInternal(extent: import("./extent.js").Extent,
|
|
791
|
+
getResolutionForExtentInternal(extent: import("./extent.js").Extent, size?: import("./size.js").Size | undefined): number;
|
|
792
792
|
/**
|
|
793
793
|
* Return a function that returns a value between 0 and 1 for a
|
|
794
794
|
* resolution. Exponential scaling is assumed.
|
|
795
|
-
* @param {number} [
|
|
795
|
+
* @param {number} [power] Power.
|
|
796
796
|
* @return {function(number): number} Resolution for value function.
|
|
797
797
|
*/
|
|
798
|
-
getResolutionForValueFunction(
|
|
798
|
+
getResolutionForValueFunction(power?: number | undefined): (arg0: number) => number;
|
|
799
799
|
/**
|
|
800
800
|
* Get the view rotation.
|
|
801
801
|
* @return {number} The rotation of the view in radians.
|
|
@@ -806,14 +806,14 @@ declare class View extends BaseObject {
|
|
|
806
806
|
/**
|
|
807
807
|
* Return a function that returns a resolution for a value between
|
|
808
808
|
* 0 and 1. Exponential scaling is assumed.
|
|
809
|
-
* @param {number} [
|
|
809
|
+
* @param {number} [power] Power.
|
|
810
810
|
* @return {function(number): number} Value for resolution function.
|
|
811
811
|
*/
|
|
812
|
-
getValueForResolutionFunction(
|
|
812
|
+
getValueForResolutionFunction(power?: number | undefined): (arg0: number) => number;
|
|
813
813
|
/**
|
|
814
814
|
* Returns the size of the viewport minus padding.
|
|
815
815
|
* @private
|
|
816
|
-
* @param {number} [
|
|
816
|
+
* @param {number} [rotation] Take into account the rotation of the viewport when giving the size
|
|
817
817
|
* @return {import("./size.js").Size} Viewport size reduced by the padding.
|
|
818
818
|
*/
|
|
819
819
|
private getViewportSizeMinusPadding_;
|
|
@@ -850,10 +850,10 @@ declare class View extends BaseObject {
|
|
|
850
850
|
* Takes care of the map angle.
|
|
851
851
|
* @param {import("./geom/SimpleGeometry.js").default|import("./extent.js").Extent} geometryOrExtent The geometry or
|
|
852
852
|
* extent to fit the view to.
|
|
853
|
-
* @param {FitOptions} [
|
|
853
|
+
* @param {FitOptions} [options] Options.
|
|
854
854
|
* @api
|
|
855
855
|
*/
|
|
856
|
-
fit(geometryOrExtent: import("./geom/SimpleGeometry.js").default | import("./extent.js").Extent,
|
|
856
|
+
fit(geometryOrExtent: import("./geom/SimpleGeometry.js").default | import("./extent.js").Extent, options?: FitOptions | undefined): void;
|
|
857
857
|
/**
|
|
858
858
|
* Calculate rotated extent
|
|
859
859
|
* @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
|
|
@@ -862,9 +862,9 @@ declare class View extends BaseObject {
|
|
|
862
862
|
rotatedExtentForGeometry(geometry: import("./geom/SimpleGeometry.js").default): import("./extent").Extent;
|
|
863
863
|
/**
|
|
864
864
|
* @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
|
|
865
|
-
* @param {FitOptions} [
|
|
865
|
+
* @param {FitOptions} [options] Options.
|
|
866
866
|
*/
|
|
867
|
-
fitInternal(geometry: import("./geom/SimpleGeometry.js").default,
|
|
867
|
+
fitInternal(geometry: import("./geom/SimpleGeometry.js").default, options?: FitOptions | undefined): void;
|
|
868
868
|
/**
|
|
869
869
|
* Center on coordinate and view position.
|
|
870
870
|
* @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
|
|
@@ -907,38 +907,38 @@ declare class View extends BaseObject {
|
|
|
907
907
|
* Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
|
|
908
908
|
* constraint will apply.
|
|
909
909
|
* @param {number} ratio The ratio to apply on the view resolution.
|
|
910
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
910
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
911
911
|
* @api
|
|
912
912
|
*/
|
|
913
|
-
adjustResolution(ratio: number,
|
|
913
|
+
adjustResolution(ratio: number, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
914
914
|
/**
|
|
915
915
|
* Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
|
|
916
916
|
* constraint will apply.
|
|
917
917
|
* @param {number} ratio The ratio to apply on the view resolution.
|
|
918
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
918
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
919
919
|
*/
|
|
920
|
-
adjustResolutionInternal(ratio: number,
|
|
920
|
+
adjustResolutionInternal(ratio: number, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
921
921
|
/**
|
|
922
922
|
* Adds a value to the view zoom level, optionally using an anchor. Any resolution
|
|
923
923
|
* constraint will apply.
|
|
924
924
|
* @param {number} delta Relative value to add to the zoom level.
|
|
925
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
925
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
926
926
|
* @api
|
|
927
927
|
*/
|
|
928
|
-
adjustZoom(delta: number,
|
|
928
|
+
adjustZoom(delta: number, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
929
929
|
/**
|
|
930
930
|
* Adds a value to the view rotation, optionally using an anchor. Any rotation
|
|
931
931
|
* constraint will apply.
|
|
932
932
|
* @param {number} delta Relative value to add to the zoom rotation, in radians.
|
|
933
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
933
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
|
|
934
934
|
* @api
|
|
935
935
|
*/
|
|
936
|
-
adjustRotation(delta: number,
|
|
936
|
+
adjustRotation(delta: number, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
937
937
|
/**
|
|
938
938
|
* @param {number} delta Relative value to add to the zoom rotation, in radians.
|
|
939
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
939
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
|
|
940
940
|
*/
|
|
941
|
-
adjustRotationInternal(delta: number,
|
|
941
|
+
adjustRotationInternal(delta: number, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
942
942
|
/**
|
|
943
943
|
* Set the center of the current view. Any extent constraint will apply.
|
|
944
944
|
* @param {import("./coordinate.js").Coordinate|undefined} center The center of the view.
|
|
@@ -981,8 +981,8 @@ declare class View extends BaseObject {
|
|
|
981
981
|
* Recompute rotation/resolution/center based on target values.
|
|
982
982
|
* Note: we have to compute rotation first, then resolution and center considering that
|
|
983
983
|
* parameters can influence one another in case a view extent constraint is present.
|
|
984
|
-
* @param {boolean} [
|
|
985
|
-
* @param {boolean} [
|
|
984
|
+
* @param {boolean} [doNotCancelAnims] Do not cancel animations.
|
|
985
|
+
* @param {boolean} [forceMoving] Apply constraints as if the view is moving.
|
|
986
986
|
* @private
|
|
987
987
|
*/
|
|
988
988
|
private applyTargetState_;
|
|
@@ -991,11 +991,11 @@ declare class View extends BaseObject {
|
|
|
991
991
|
* This is typically done on interaction end.
|
|
992
992
|
* Note: calling this with a duration of 0 will apply the constrained values straight away,
|
|
993
993
|
* without animation.
|
|
994
|
-
* @param {number} [
|
|
995
|
-
* @param {number} [
|
|
996
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
994
|
+
* @param {number} [duration] The animation duration in ms.
|
|
995
|
+
* @param {number} [resolutionDirection] Which direction to zoom.
|
|
996
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
997
997
|
*/
|
|
998
|
-
resolveConstraints(
|
|
998
|
+
resolveConstraints(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
999
999
|
/**
|
|
1000
1000
|
* Notify the View that an interaction has started.
|
|
1001
1001
|
* The view state will be resolved to a stable one if needed
|
|
@@ -1006,48 +1006,48 @@ declare class View extends BaseObject {
|
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Notify the View that an interaction has ended. The view state will be resolved
|
|
1008
1008
|
* to a stable one if needed (depending on its constraints).
|
|
1009
|
-
* @param {number} [
|
|
1010
|
-
* @param {number} [
|
|
1011
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
1009
|
+
* @param {number} [duration] Animation duration in ms.
|
|
1010
|
+
* @param {number} [resolutionDirection] Which direction to zoom.
|
|
1011
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
1012
1012
|
* @api
|
|
1013
1013
|
*/
|
|
1014
|
-
endInteraction(
|
|
1014
|
+
endInteraction(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Notify the View that an interaction has ended. The view state will be resolved
|
|
1017
1017
|
* to a stable one if needed (depending on its constraints).
|
|
1018
|
-
* @param {number} [
|
|
1019
|
-
* @param {number} [
|
|
1020
|
-
* @param {import("./coordinate.js").Coordinate} [
|
|
1018
|
+
* @param {number} [duration] Animation duration in ms.
|
|
1019
|
+
* @param {number} [resolutionDirection] Which direction to zoom.
|
|
1020
|
+
* @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
|
|
1021
1021
|
*/
|
|
1022
|
-
endInteractionInternal(
|
|
1022
|
+
endInteractionInternal(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: import("./coordinate.js").Coordinate | undefined): void;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Get a valid position for the view center according to the current constraints.
|
|
1025
1025
|
* @param {import("./coordinate.js").Coordinate|undefined} targetCenter Target center position.
|
|
1026
|
-
* @param {number} [
|
|
1026
|
+
* @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.
|
|
1027
1027
|
* This is useful to guess a valid center position at a different zoom level.
|
|
1028
1028
|
* @return {import("./coordinate.js").Coordinate|undefined} Valid center position.
|
|
1029
1029
|
*/
|
|
1030
|
-
getConstrainedCenter(targetCenter: import("./coordinate.js").Coordinate | undefined,
|
|
1030
|
+
getConstrainedCenter(targetCenter: import("./coordinate.js").Coordinate | undefined, targetResolution?: number | undefined): import("./coordinate.js").Coordinate | undefined;
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Get a valid zoom level according to the current view constraints.
|
|
1033
1033
|
* @param {number|undefined} targetZoom Target zoom.
|
|
1034
|
-
* @param {number} [
|
|
1034
|
+
* @param {number} [direction=0] Indicate which resolution should be used
|
|
1035
1035
|
* by a renderer if the view resolution does not match any resolution of the tile source.
|
|
1036
1036
|
* If 0, the nearest resolution will be used. If 1, the nearest lower resolution
|
|
1037
1037
|
* will be used. If -1, the nearest higher resolution will be used.
|
|
1038
1038
|
* @return {number|undefined} Valid zoom level.
|
|
1039
1039
|
*/
|
|
1040
|
-
getConstrainedZoom(targetZoom: number | undefined,
|
|
1040
|
+
getConstrainedZoom(targetZoom: number | undefined, direction?: number | undefined): number | undefined;
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Get a valid resolution according to the current view constraints.
|
|
1043
1043
|
* @param {number|undefined} targetResolution Target resolution.
|
|
1044
|
-
* @param {number} [
|
|
1044
|
+
* @param {number} [direction=0] Indicate which resolution should be used
|
|
1045
1045
|
* by a renderer if the view resolution does not match any resolution of the tile source.
|
|
1046
1046
|
* If 0, the nearest resolution will be used. If 1, the nearest lower resolution
|
|
1047
1047
|
* will be used. If -1, the nearest higher resolution will be used.
|
|
1048
1048
|
* @return {number|undefined} Valid resolution.
|
|
1049
1049
|
*/
|
|
1050
|
-
getConstrainedResolution(targetResolution: number | undefined,
|
|
1050
|
+
getConstrainedResolution(targetResolution: number | undefined, direction?: number | undefined): number | undefined;
|
|
1051
1051
|
}
|
|
1052
1052
|
import BaseObject from "./Object.js";
|
|
1053
1053
|
//# sourceMappingURL=View.d.ts.map
|
package/View.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.d.ts","sourceRoot":"","sources":["View.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"View.d.ts","sourceRoot":"","sources":["View.js"],"names":[],"mappings":"AAk3DA;;;GAGG;AACH,gDAHW,WAAW,GACV,OAAO,uBAAuB,EAAE,IAAI,CAoB/C;AAED;;;;GAIG;AACH,oDAJW,WAAW;gBACG,OAAO,2BAA2B,EAAE,IAAI;mBAAiB,MAAM;mBAClE,MAAM;aAAW,MAAM;gBAAc,MAAM;EAuIhE;AAED;;;GAGG;AACH,kDAHW,WAAW,GACV,OAAO,yBAAyB,EAAE,IAAI,CAmBjD;AAED;;;;GAIG;AACH,2CAHW,SAAS,GACR,OAAO,CAelB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAngEa,MAAM;;;;cACN,MAAM;;;;cACN,OAAO;;;;mBACE,MAAM,KAAE,MAAM;;;;qBACd,OAAO,KAAE,IAAI;;;;;;YAKtB,OAAO,uBAAuB,EAAE,IAAI;;;;gBACpC,OAAO,2BAA2B,EAAE,IAAI;;;;cACxC,OAAO,yBAAyB,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkB7B,MAAM,KAAE,MAAM;;;;;;uBAKd,OAAO,KAAE,IAAI;;;;;;;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