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
|
@@ -74,9 +74,9 @@ export type Options = {
|
|
|
74
74
|
*/
|
|
75
75
|
declare class MousePosition extends Control {
|
|
76
76
|
/**
|
|
77
|
-
* @param {Options} [
|
|
77
|
+
* @param {Options} [options] Mouse position options.
|
|
78
78
|
*/
|
|
79
|
-
constructor(
|
|
79
|
+
constructor(options?: Options | undefined);
|
|
80
80
|
/***
|
|
81
81
|
* @type {MousePositionOnSignature<import("../events").EventsKey>}
|
|
82
82
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MousePosition.d.ts","sourceRoot":"","sources":["MousePosition.js"],"names":[],"mappings":";;;;+CA0Ba,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,yBAA+B,GAAC,mBAAmB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC7F,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,yBAA+B,GAAC,mBAAmB,EAAE,MAAM,CAAC;;;;;;;;;;;;;iBAO/C,OAAO,YAAY,EAAE,cAAc;;;;;;qBAC1B,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;AAd7D;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"MousePosition.d.ts","sourceRoot":"","sources":["MousePosition.js"],"names":[],"mappings":";;;;+CA0Ba,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,yBAA+B,GAAC,mBAAmB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC7F,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,yBAA+B,GAAC,mBAAmB,EAAE,MAAM,CAAC;;;;;;;;;;;;;iBAO/C,OAAO,YAAY,EAAE,cAAc;;;;;;qBAC1B,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;AAd7D;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,2CAkEC;IArDC;;OAEG;IACH,IAFU,yBAAyB,OAAO,WAAW,EAAE,SAAS,CAAC,CAE1D;IAEP;;OAEG;IACH,MAFU,yBAAyB,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAET;;OAEG;IACH,IAFU,yBAAyB,IAAI,CAAC,CAEjC;IAWP;;;OAGG;IACH,0BAA0D;IAE1D;;;OAGG;IACH,qBAA2E;IAE3E;;;OAGG;IACH,sBAAsC;IAEtC;;;OAGG;IACH,uBAA0B;IAE1B;;;OAGG;IACH,mBAAsB;IAGxB;;OAEG;IACH,iCAEC;IAED;;;;;;;OAOG;IACH,uBALY,OAAO,kBAAkB,EAAE,gBAAgB,GAAC,SAAS,CAShE;IAED;;;;;;OAMG;IACH,iBALY,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAS5D;IAED;;;OAGG;IACH,iCAHW,UAAU,QAMpB;IAED;;;OAGG;IACH,gCAHW,KAAK,QAKf;IA0BD;;;;;;OAMG;IACH,4BALW,OAAO,kBAAkB,EAAE,gBAAgB,QAOrD;IAED;;;;;;OAMG;IACH,0BALW,OAAO,YAAY,EAAE,cAAc,QAO7C;IAED;;;OAGG;IACH,oBAqCC;CAmBF"}
|
package/control/MousePosition.js
CHANGED
|
@@ -62,10 +62,10 @@ const COORDINATE_FORMAT = 'coordinateFormat';
|
|
|
62
62
|
*/
|
|
63
63
|
class MousePosition extends Control {
|
|
64
64
|
/**
|
|
65
|
-
* @param {Options} [
|
|
65
|
+
* @param {Options} [options] Mouse position options.
|
|
66
66
|
*/
|
|
67
|
-
constructor(
|
|
68
|
-
|
|
67
|
+
constructor(options) {
|
|
68
|
+
options = options ? options : {};
|
|
69
69
|
|
|
70
70
|
const element = document.createElement('div');
|
|
71
71
|
element.className =
|
package/control/OverviewMap.d.ts
CHANGED
|
@@ -78,9 +78,9 @@ export type Options = {
|
|
|
78
78
|
*/
|
|
79
79
|
declare class OverviewMap extends Control {
|
|
80
80
|
/**
|
|
81
|
-
* @param {Options} [
|
|
81
|
+
* @param {Options} [options] OverviewMap options.
|
|
82
82
|
*/
|
|
83
|
-
constructor(
|
|
83
|
+
constructor(options?: Options | undefined);
|
|
84
84
|
/**
|
|
85
85
|
* @private
|
|
86
86
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CA+LC;IAtLC;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,qBACgE;IAMhE;;;OAGG;IACH,wBACuE;IAEvE;;;OAGG;IACH,oBAA4B;IAY1B;;;OAGG;IACH,uBAAoD;IASpD;;;OAGG;IACH,eAA4C;IAmB9C;;;OAGG;IACH,kBAA8C;IAG9C;;;;OAIG;IACH,cAAyB;IAQzB;;;OAGG;IACH,eAAmB;IAYnB;;;OAGG;IACH,oBAIE;IA0GJ;;;;OAIG;IACH,iCAgBC;IAED;;;;OAIG;IACH,kBAeC;IAED;;;;OAIG;IACH,oBAKC;IAED;;;OAGG;IACH,+BAIC;IAED;;;;;;;;;;OAUG;IACH,wBAiDC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;;OAIG;IACH,kBASC;IAED;;;OAGG;IACH,mBAkCC;IAED;;OAEG;IACH,uCAaC;IATC,yBAQC;IAGH;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,sBAsBC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QAQjB;IAED;;;;OAIG;IACH,gBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,qBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,kCAHW,OAAO,QAkBjB;IAED;;;;OAIG;IACH,kBAHY,OAAO,WAAW,EAAE,OAAO,CAKtC;CAWF"}
|
package/control/OverviewMap.js
CHANGED
|
@@ -66,10 +66,10 @@ const MIN_RATIO = 0.1;
|
|
|
66
66
|
*/
|
|
67
67
|
class OverviewMap extends Control {
|
|
68
68
|
/**
|
|
69
|
-
* @param {Options} [
|
|
69
|
+
* @param {Options} [options] OverviewMap options.
|
|
70
70
|
*/
|
|
71
|
-
constructor(
|
|
72
|
-
|
|
71
|
+
constructor(options) {
|
|
72
|
+
options = options ? options : {};
|
|
73
73
|
|
|
74
74
|
super({
|
|
75
75
|
element: document.createElement('div'),
|
package/control/Rotate.d.ts
CHANGED
|
@@ -67,9 +67,9 @@ export type Options = {
|
|
|
67
67
|
*/
|
|
68
68
|
declare class Rotate extends Control {
|
|
69
69
|
/**
|
|
70
|
-
* @param {Options} [
|
|
70
|
+
* @param {Options} [options] Rotate options.
|
|
71
71
|
*/
|
|
72
|
-
constructor(
|
|
72
|
+
constructor(options?: Options | undefined);
|
|
73
73
|
/**
|
|
74
74
|
* @type {HTMLElement}
|
|
75
75
|
* @private
|
package/control/Rotate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rotate.d.ts","sourceRoot":"","sources":["Rotate.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiBuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;wBAEpC,IAAI;;;;;;;AAX7B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"Rotate.d.ts","sourceRoot":"","sources":["Rotate.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiBuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;wBAEpC,IAAI;;;;;;;AAX7B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CA6EC;IA1DC;;;OAGG;IACH,eAAkB;IA+BlB,wBAxEqB,IAAI,cAwEiD;IAE1E;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,kBAAyE;IAEzE;;;OAGG;IACH,kBAA0B;IAO5B;;;OAGG;IACH,qBAOC;IAED;;OAEG;IACH,oBAoBC;CA2BF"}
|
package/control/Rotate.js
CHANGED
|
@@ -33,10 +33,10 @@ import {easeOut} from '../easing.js';
|
|
|
33
33
|
*/
|
|
34
34
|
class Rotate extends Control {
|
|
35
35
|
/**
|
|
36
|
-
* @param {Options} [
|
|
36
|
+
* @param {Options} [options] Rotate options.
|
|
37
37
|
*/
|
|
38
|
-
constructor(
|
|
39
|
-
|
|
38
|
+
constructor(options) {
|
|
39
|
+
options = options ? options : {};
|
|
40
40
|
|
|
41
41
|
super({
|
|
42
42
|
element: document.createElement('div'),
|
package/control/ScaleLine.d.ts
CHANGED
|
@@ -102,9 +102,9 @@ export type Options = {
|
|
|
102
102
|
*/
|
|
103
103
|
declare class ScaleLine extends Control {
|
|
104
104
|
/**
|
|
105
|
-
* @param {Options} [
|
|
105
|
+
* @param {Options} [options] Scale line options.
|
|
106
106
|
*/
|
|
107
|
-
constructor(
|
|
107
|
+
constructor(options?: Options | undefined);
|
|
108
108
|
/***
|
|
109
109
|
* @type {ScaleLineOnSignature<import("../events").EventsKey>}
|
|
110
110
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScaleLine.d.ts","sourceRoot":"","sources":["ScaleLine.js"],"names":[],"mappings":";;;;oBAca,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI;;;;2CAkBrD,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,cAAoB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC9D,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GAC9G,cAAc,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;qBAWR,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAU/C,MAAM,GAAC,SAAS;;AA3B9B;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"ScaleLine.d.ts","sourceRoot":"","sources":["ScaleLine.js"],"names":[],"mappings":";;;;oBAca,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI;;;;2CAkBrD,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,cAAoB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC9D,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GAC9G,cAAc,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;qBAWR,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAU/C,MAAM,GAAC,SAAS;;AA3B9B;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACE;;OAEG;IACH,2CA2GC;IA/FC;;OAEG;IACH,IAFU,qBAAqB,OAAO,WAAW,EAAE,SAAS,CAAC,CAEtD;IAEP;;OAEG;IACH,MAFU,qBAAqB,OAAO,WAAW,EAAE,SAAS,CAAC,CAEpD;IAET;;OAEG;IACH,IAFU,qBAAqB,IAAI,CAAC,CAE7B;IASP;;;OAGG;IACH,sBAAkD;IAMlD;;;OAGG;IACH,mBAAsB;IAEtB;;;OAGG;IACH,kBAAuE;IAEvE;;;OAGG;IACH,kBAAiC;IAEjC;;;OAGG;IACH,yBAA6B;IAE7B;;;OAGG;IACH,uBAA+B;IAE/B;;;OAGG;IACH,sBAAuB;IAMvB;;;OAGG;IACH,kBAAqC;IAErC;;;OAGG;IACH,uBAAwC;IAExC;;;OAGG;IACH,sBAA0C;IAE1C;;;OAGG;IACH,aAAoC;IAGtC;;;;;;OAMG;IACH,YALY,KAAK,CAOhB;IAED;;OAEG;IACH,4BAEC;IAED;;;;;OAKG;IACH,gBAJW,KAAK,QAMf;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAK1B;IAED;;OAEG;IACH,uBAkIC;IAED;;;;;;OAMG;IACH,uBAoCC;IAED;;;;OAIG;IACH,uBAHW,UAAU,GAAC,UAAU,GACpB,MAAM,CAUjB;IAED;;;;;;;;OAQG;IACH,kBAPW,MAAM,SACN,MAAM,UACN,OAAO,SACP,MAAM,UACN,MAAM,GACL,MAAM,CAoBjB;IAED;;;OAGG;IACH,yBAFY,MAAM,CAYjB;CAgBF"}
|
package/control/ScaleLine.js
CHANGED
|
@@ -75,10 +75,10 @@ const DEFAULT_DPI = 25.4 / 0.28;
|
|
|
75
75
|
*/
|
|
76
76
|
class ScaleLine extends Control {
|
|
77
77
|
/**
|
|
78
|
-
* @param {Options} [
|
|
78
|
+
* @param {Options} [options] Scale line options.
|
|
79
79
|
*/
|
|
80
|
-
constructor(
|
|
81
|
-
|
|
80
|
+
constructor(options) {
|
|
81
|
+
options = options ? options : {};
|
|
82
82
|
|
|
83
83
|
const element = document.createElement('div');
|
|
84
84
|
element.style.pointerEvents = 'none';
|
package/control/Zoom.d.ts
CHANGED
|
@@ -70,9 +70,9 @@ export type Options = {
|
|
|
70
70
|
*/
|
|
71
71
|
declare class Zoom extends Control {
|
|
72
72
|
/**
|
|
73
|
-
* @param {Options} [
|
|
73
|
+
* @param {Options} [options] Zoom options.
|
|
74
74
|
*/
|
|
75
|
-
constructor(
|
|
75
|
+
constructor(options?: Options | undefined);
|
|
76
76
|
/**
|
|
77
77
|
* @type {number}
|
|
78
78
|
* @private
|
package/control/Zoom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.d.ts","sourceRoot":"","sources":["Zoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"Zoom.d.ts","sourceRoot":"","sources":["Zoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CA+EC;IALC;;;OAGG;IACH,kBAAwE;IAG1E;;;;OAIG;IACH,qBAGC;IAED;;;OAGG;IACH,qBAwBC;CACF"}
|
package/control/Zoom.js
CHANGED
|
@@ -33,10 +33,10 @@ import {easeOut} from '../easing.js';
|
|
|
33
33
|
*/
|
|
34
34
|
class Zoom extends Control {
|
|
35
35
|
/**
|
|
36
|
-
* @param {Options} [
|
|
36
|
+
* @param {Options} [options] Zoom options.
|
|
37
37
|
*/
|
|
38
|
-
constructor(
|
|
39
|
-
|
|
38
|
+
constructor(options) {
|
|
39
|
+
options = options ? options : {};
|
|
40
40
|
|
|
41
41
|
super({
|
|
42
42
|
element: document.createElement('div'),
|
package/control/ZoomSlider.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ export type Options = {
|
|
|
33
33
|
*/
|
|
34
34
|
declare class ZoomSlider extends Control {
|
|
35
35
|
/**
|
|
36
|
-
* @param {Options} [
|
|
36
|
+
* @param {Options} [options] Zoom slider options.
|
|
37
37
|
*/
|
|
38
|
-
constructor(
|
|
38
|
+
constructor(options?: Options | undefined);
|
|
39
39
|
/**
|
|
40
40
|
* @type {!Array<import("../events.js").EventsKey>}
|
|
41
41
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAJ7D;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAJ7D;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAkHC;IA1GC;;;OAGG;IACH,0BAA2B;IAE3B;;;;;OAKG;IACH,2BAAmC;IAEnC;;;;;;OAMG;IACH,mBAAoC;IAEpC;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,qBAAqB;IAErB;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,gBAAY;IAEZ;;;;;OAKG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,2BAA+B;IAE/B;;;OAGG;IACH,kBAAwE;IAmD1E;;;;;;;OAOG;IACH,oBAmCC;IAED;;;OAGG;IACH,8BAgBC;IAED;;;;OAIG;IACH,4BAoBC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;OAIG;IACH,0BAWC;IAED;;;;;OAKG;IACH,0BASC;IAED;;;;;;;;;OASG;IACH,6BAQC;IAED;;;;;;;OAOG;IACH,kCAGC;IAED;;;;;;;;OAQG;IACH,kCAGC;CAkBF"}
|
package/control/ZoomSlider.js
CHANGED
|
@@ -41,10 +41,10 @@ const Direction = {
|
|
|
41
41
|
*/
|
|
42
42
|
class ZoomSlider extends Control {
|
|
43
43
|
/**
|
|
44
|
-
* @param {Options} [
|
|
44
|
+
* @param {Options} [options] Zoom slider options.
|
|
45
45
|
*/
|
|
46
|
-
constructor(
|
|
47
|
-
|
|
46
|
+
constructor(options) {
|
|
47
|
+
options = options ? options : {};
|
|
48
48
|
|
|
49
49
|
super({
|
|
50
50
|
element: document.createElement('div'),
|
|
@@ -44,9 +44,9 @@ export type Options = {
|
|
|
44
44
|
*/
|
|
45
45
|
declare class ZoomToExtent extends Control {
|
|
46
46
|
/**
|
|
47
|
-
* @param {Options} [
|
|
47
|
+
* @param {Options} [options] Options.
|
|
48
48
|
*/
|
|
49
|
-
constructor(
|
|
49
|
+
constructor(options?: Options | undefined);
|
|
50
50
|
/**
|
|
51
51
|
* @type {?import("../extent.js").Extent|null}
|
|
52
52
|
* @protected
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoomToExtent.d.ts","sourceRoot":"","sources":["ZoomToExtent.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"ZoomToExtent.d.ts","sourceRoot":"","sources":["ZoomToExtent.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAsCC;IA9BC;;;OAGG;IACH,mBAHW,OAAO,cAAc,EAAE,MAAM,GAAC,IAAI,SAGO;IA4BtD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,qCAOC;CACF"}
|
package/control/ZoomToExtent.js
CHANGED
|
@@ -27,10 +27,10 @@ import {fromExtent as polygonFromExtent} from '../geom/Polygon.js';
|
|
|
27
27
|
*/
|
|
28
28
|
class ZoomToExtent extends Control {
|
|
29
29
|
/**
|
|
30
|
-
* @param {Options} [
|
|
30
|
+
* @param {Options} [options] Options.
|
|
31
31
|
*/
|
|
32
|
-
constructor(
|
|
33
|
-
|
|
32
|
+
constructor(options) {
|
|
33
|
+
options = options ? options : {};
|
|
34
34
|
|
|
35
35
|
super({
|
|
36
36
|
element: document.createElement('div'),
|
package/control/defaults.d.ts
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
* * {@link module:ol/control/Rotate~Rotate}
|
|
21
21
|
* * {@link module:ol/control/Attribution~Attribution}
|
|
22
22
|
*
|
|
23
|
-
* @param {DefaultsOptions} [
|
|
23
|
+
* @param {DefaultsOptions} [options] Options for the default controls.
|
|
24
24
|
* @return {Collection<import("./Control.js").default>} A collection of controls
|
|
25
25
|
* to be used with the {@link module:ol/Map~Map} constructor's `controls` option.
|
|
26
26
|
* @api
|
|
27
27
|
*/
|
|
28
|
-
export function defaults(
|
|
28
|
+
export function defaults(options?: DefaultsOptions | undefined): Collection<import("./Control.js").default>;
|
|
29
29
|
export type DefaultsOptions = {
|
|
30
30
|
/**
|
|
31
31
|
* Include
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,iEAJY,WAAW,OAAO,cAAc,EAAE,OAAO,CAAC,CA2BrD"}
|
package/control/defaults.js
CHANGED
|
@@ -29,13 +29,13 @@ import Zoom from './Zoom.js';
|
|
|
29
29
|
* * {@link module:ol/control/Rotate~Rotate}
|
|
30
30
|
* * {@link module:ol/control/Attribution~Attribution}
|
|
31
31
|
*
|
|
32
|
-
* @param {DefaultsOptions} [
|
|
32
|
+
* @param {DefaultsOptions} [options] Options for the default controls.
|
|
33
33
|
* @return {Collection<import("./Control.js").default>} A collection of controls
|
|
34
34
|
* to be used with the {@link module:ol/Map~Map} constructor's `controls` option.
|
|
35
35
|
* @api
|
|
36
36
|
*/
|
|
37
|
-
export function defaults(
|
|
38
|
-
|
|
37
|
+
export function defaults(options) {
|
|
38
|
+
options = options ? options : {};
|
|
39
39
|
|
|
40
40
|
/** @type {Collection<import("./Control.js").default>} */
|
|
41
41
|
const controls = new Collection();
|
package/coordinate.d.ts
CHANGED
|
@@ -73,20 +73,20 @@ export function closestOnSegment(coordinate: Coordinate, segment: Array<Coordina
|
|
|
73
73
|
* const out = stringifyFunc(coord);
|
|
74
74
|
* // out is now '7.85, 47.98'
|
|
75
75
|
*
|
|
76
|
-
* @param {number} [
|
|
76
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
77
77
|
* after the decimal point. Default is `0`.
|
|
78
78
|
* @return {CoordinateFormat} Coordinate format.
|
|
79
79
|
* @api
|
|
80
80
|
*/
|
|
81
|
-
export function createStringXY(
|
|
81
|
+
export function createStringXY(fractionDigits?: number | undefined): CoordinateFormat;
|
|
82
82
|
/**
|
|
83
83
|
* @param {string} hemispheres Hemispheres.
|
|
84
84
|
* @param {number} degrees Degrees.
|
|
85
|
-
* @param {number} [
|
|
85
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
86
86
|
* after the decimal point. Default is `0`.
|
|
87
87
|
* @return {string} String.
|
|
88
88
|
*/
|
|
89
|
-
export function degreesToStringHDMS(hemispheres: string, degrees: number,
|
|
89
|
+
export function degreesToStringHDMS(hemispheres: string, degrees: number, fractionDigits?: number | undefined): string;
|
|
90
90
|
/**
|
|
91
91
|
* Transforms the given {@link module:ol/coordinate~Coordinate} to a string
|
|
92
92
|
* using the given string template. The strings `{x}` and `{y}` in the template
|
|
@@ -113,12 +113,12 @@ export function degreesToStringHDMS(hemispheres: string, degrees: number, opt_fr
|
|
|
113
113
|
* @param {Coordinate} coordinate Coordinate.
|
|
114
114
|
* @param {string} template A template string with `{x}` and `{y}` placeholders
|
|
115
115
|
* that will be replaced by first and second coordinate values.
|
|
116
|
-
* @param {number} [
|
|
116
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
117
117
|
* after the decimal point. Default is `0`.
|
|
118
118
|
* @return {string} Formatted coordinate.
|
|
119
119
|
* @api
|
|
120
120
|
*/
|
|
121
|
-
export function format(coordinate: Coordinate, template: string,
|
|
121
|
+
export function format(coordinate: Coordinate, template: string, fractionDigits?: number | undefined): string;
|
|
122
122
|
/**
|
|
123
123
|
* @param {Coordinate} coordinate1 First coordinate.
|
|
124
124
|
* @param {Coordinate} coordinate2 Second coordinate.
|
|
@@ -204,12 +204,12 @@ export function squaredDistanceToSegment(coordinate: Coordinate, segment: Array<
|
|
|
204
204
|
* // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'
|
|
205
205
|
*
|
|
206
206
|
* @param {Coordinate} coordinate Coordinate.
|
|
207
|
-
* @param {number} [
|
|
207
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
208
208
|
* after the decimal point. Default is `0`.
|
|
209
209
|
* @return {string} Hemisphere, degrees, minutes and seconds.
|
|
210
210
|
* @api
|
|
211
211
|
*/
|
|
212
|
-
export function toStringHDMS(coordinate: Coordinate,
|
|
212
|
+
export function toStringHDMS(coordinate: Coordinate, fractionDigits?: number | undefined): string;
|
|
213
213
|
/**
|
|
214
214
|
* Format a coordinate as a comma delimited string.
|
|
215
215
|
*
|
|
@@ -230,12 +230,12 @@ export function toStringHDMS(coordinate: Coordinate, opt_fractionDigits?: number
|
|
|
230
230
|
* // out is now '7.8, 48.0'
|
|
231
231
|
*
|
|
232
232
|
* @param {Coordinate} coordinate Coordinate.
|
|
233
|
-
* @param {number} [
|
|
233
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
234
234
|
* after the decimal point. Default is `0`.
|
|
235
235
|
* @return {string} XY.
|
|
236
236
|
* @api
|
|
237
237
|
*/
|
|
238
|
-
export function toStringXY(coordinate: Coordinate,
|
|
238
|
+
export function toStringXY(coordinate: Coordinate, fractionDigits?: number | undefined): string;
|
|
239
239
|
/**
|
|
240
240
|
* Modifies the provided coordinate in-place to be within the real world
|
|
241
241
|
* extent. The lower projection extent boundary is inclusive, the upper one
|
|
@@ -249,10 +249,10 @@ export function wrapX(coordinate: Coordinate, projection: import("./proj/Project
|
|
|
249
249
|
/**
|
|
250
250
|
* @param {Coordinate} coordinate Coordinate.
|
|
251
251
|
* @param {import("./proj/Projection.js").default} projection Projection.
|
|
252
|
-
* @param {number} [
|
|
252
|
+
* @param {number} [sourceExtentWidth] Width of the source extent.
|
|
253
253
|
* @return {number} Offset in world widths.
|
|
254
254
|
*/
|
|
255
|
-
export function getWorldsAway(coordinate: Coordinate, projection: import("./proj/Projection.js").default,
|
|
255
|
+
export function getWorldsAway(coordinate: Coordinate, projection: import("./proj/Projection.js").default, sourceExtentWidth?: number | undefined): number;
|
|
256
256
|
/**
|
|
257
257
|
* An array of numbers representing an xy coordinate. Example: `[16, 48]`.
|
|
258
258
|
*/
|
package/coordinate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinate.d.ts","sourceRoot":"","sources":["coordinate.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,2EAIC;AAED;;;;;;GAMG;AACH,gEAHW,OAAO,kBAAkB,EAAE,OAAO,cAsB5C;AAED;;;;;;;;;;;GAWG;AACH,kEALW,iBAAiB,cAgC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,
|
|
1
|
+
{"version":3,"file":"coordinate.d.ts","sourceRoot":"","sources":["coordinate.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,2EAIC;AAED;;;;;;GAMG;AACH,gEAHW,OAAO,kBAAkB,EAAE,OAAO,cAsB5C;AAED;;;;;;;;;;;GAWG;AACH,kEALW,iBAAiB,cAgC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qEAHY,gBAAgB,CAa3B;AAED;;;;;;GAMG;AACH,iDANW,MAAM,WACN,MAAM,wCAGL,MAAM,CAiCjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,yDAPW,MAAM,wCAIL,MAAM,CAWjB;AAED;;;;GAIG;AACH,0EAFY,OAAO,CAWlB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,sDAJW,MAAM,cAYhB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qDAHW,MAAM,cAOhB;AAED;;;;GAIG;AACH,yEAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,kEAFY,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,0EAJW,iBAAiB,GAEhB,MAAM,CAIjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,2FAHY,MAAM,CAajB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,yFAHY,MAAM,CAKjB;AAED;;;;;;;;GAQG;AACH,0DAHW,OAAO,sBAAsB,EAAE,OAAO,cAYhD;AACD;;;;;GAKG;AACH,kEAJW,OAAO,sBAAsB,EAAE,OAAO,2CAErC,MAAM,CAejB;;;;yBA9aY,MAAM,MAAM,CAAC;;;;;sCAQJ,CAAC,WAAW,SAAS,CAAC,KAAG,MAAM"}
|
package/coordinate.js
CHANGED
|
@@ -135,19 +135,19 @@ export function closestOnSegment(coordinate, segment) {
|
|
|
135
135
|
* const out = stringifyFunc(coord);
|
|
136
136
|
* // out is now '7.85, 47.98'
|
|
137
137
|
*
|
|
138
|
-
* @param {number} [
|
|
138
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
139
139
|
* after the decimal point. Default is `0`.
|
|
140
140
|
* @return {CoordinateFormat} Coordinate format.
|
|
141
141
|
* @api
|
|
142
142
|
*/
|
|
143
|
-
export function createStringXY(
|
|
143
|
+
export function createStringXY(fractionDigits) {
|
|
144
144
|
return (
|
|
145
145
|
/**
|
|
146
146
|
* @param {Coordinate} coordinate Coordinate.
|
|
147
147
|
* @return {string} String XY.
|
|
148
148
|
*/
|
|
149
149
|
function (coordinate) {
|
|
150
|
-
return toStringXY(coordinate,
|
|
150
|
+
return toStringXY(coordinate, fractionDigits);
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
}
|
|
@@ -155,14 +155,14 @@ export function createStringXY(opt_fractionDigits) {
|
|
|
155
155
|
/**
|
|
156
156
|
* @param {string} hemispheres Hemispheres.
|
|
157
157
|
* @param {number} degrees Degrees.
|
|
158
|
-
* @param {number} [
|
|
158
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
159
159
|
* after the decimal point. Default is `0`.
|
|
160
160
|
* @return {string} String.
|
|
161
161
|
*/
|
|
162
|
-
export function degreesToStringHDMS(hemispheres, degrees,
|
|
162
|
+
export function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {
|
|
163
163
|
const normalizedDegrees = modulo(degrees + 180, 360) - 180;
|
|
164
164
|
const x = Math.abs(3600 * normalizedDegrees);
|
|
165
|
-
const decimals =
|
|
165
|
+
const decimals = fractionDigits || 0;
|
|
166
166
|
|
|
167
167
|
let deg = Math.floor(x / 3600);
|
|
168
168
|
let min = Math.floor((x - deg * 3600) / 60);
|
|
@@ -218,16 +218,16 @@ export function degreesToStringHDMS(hemispheres, degrees, opt_fractionDigits) {
|
|
|
218
218
|
* @param {Coordinate} coordinate Coordinate.
|
|
219
219
|
* @param {string} template A template string with `{x}` and `{y}` placeholders
|
|
220
220
|
* that will be replaced by first and second coordinate values.
|
|
221
|
-
* @param {number} [
|
|
221
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
222
222
|
* after the decimal point. Default is `0`.
|
|
223
223
|
* @return {string} Formatted coordinate.
|
|
224
224
|
* @api
|
|
225
225
|
*/
|
|
226
|
-
export function format(coordinate, template,
|
|
226
|
+
export function format(coordinate, template, fractionDigits) {
|
|
227
227
|
if (coordinate) {
|
|
228
228
|
return template
|
|
229
|
-
.replace('{x}', coordinate[0].toFixed(
|
|
230
|
-
.replace('{y}', coordinate[1].toFixed(
|
|
229
|
+
.replace('{x}', coordinate[0].toFixed(fractionDigits))
|
|
230
|
+
.replace('{y}', coordinate[1].toFixed(fractionDigits));
|
|
231
231
|
} else {
|
|
232
232
|
return '';
|
|
233
233
|
}
|
|
@@ -353,17 +353,17 @@ export function squaredDistanceToSegment(coordinate, segment) {
|
|
|
353
353
|
* // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'
|
|
354
354
|
*
|
|
355
355
|
* @param {Coordinate} coordinate Coordinate.
|
|
356
|
-
* @param {number} [
|
|
356
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
357
357
|
* after the decimal point. Default is `0`.
|
|
358
358
|
* @return {string} Hemisphere, degrees, minutes and seconds.
|
|
359
359
|
* @api
|
|
360
360
|
*/
|
|
361
|
-
export function toStringHDMS(coordinate,
|
|
361
|
+
export function toStringHDMS(coordinate, fractionDigits) {
|
|
362
362
|
if (coordinate) {
|
|
363
363
|
return (
|
|
364
|
-
degreesToStringHDMS('NS', coordinate[1],
|
|
364
|
+
degreesToStringHDMS('NS', coordinate[1], fractionDigits) +
|
|
365
365
|
' ' +
|
|
366
|
-
degreesToStringHDMS('EW', coordinate[0],
|
|
366
|
+
degreesToStringHDMS('EW', coordinate[0], fractionDigits)
|
|
367
367
|
);
|
|
368
368
|
} else {
|
|
369
369
|
return '';
|
|
@@ -390,13 +390,13 @@ export function toStringHDMS(coordinate, opt_fractionDigits) {
|
|
|
390
390
|
* // out is now '7.8, 48.0'
|
|
391
391
|
*
|
|
392
392
|
* @param {Coordinate} coordinate Coordinate.
|
|
393
|
-
* @param {number} [
|
|
393
|
+
* @param {number} [fractionDigits] The number of digits to include
|
|
394
394
|
* after the decimal point. Default is `0`.
|
|
395
395
|
* @return {string} XY.
|
|
396
396
|
* @api
|
|
397
397
|
*/
|
|
398
|
-
export function toStringXY(coordinate,
|
|
399
|
-
return format(coordinate, '{x}, {y}',
|
|
398
|
+
export function toStringXY(coordinate, fractionDigits) {
|
|
399
|
+
return format(coordinate, '{x}, {y}', fractionDigits);
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
/**
|
|
@@ -421,18 +421,17 @@ export function wrapX(coordinate, projection) {
|
|
|
421
421
|
/**
|
|
422
422
|
* @param {Coordinate} coordinate Coordinate.
|
|
423
423
|
* @param {import("./proj/Projection.js").default} projection Projection.
|
|
424
|
-
* @param {number} [
|
|
424
|
+
* @param {number} [sourceExtentWidth] Width of the source extent.
|
|
425
425
|
* @return {number} Offset in world widths.
|
|
426
426
|
*/
|
|
427
|
-
export function getWorldsAway(coordinate, projection,
|
|
427
|
+
export function getWorldsAway(coordinate, projection, sourceExtentWidth) {
|
|
428
428
|
const projectionExtent = projection.getExtent();
|
|
429
429
|
let worldsAway = 0;
|
|
430
430
|
if (
|
|
431
431
|
projection.canWrapX() &&
|
|
432
432
|
(coordinate[0] < projectionExtent[0] || coordinate[0] > projectionExtent[2])
|
|
433
433
|
) {
|
|
434
|
-
|
|
435
|
-
opt_sourceExtentWidth || getWidth(projectionExtent);
|
|
434
|
+
sourceExtentWidth = sourceExtentWidth || getWidth(projectionExtent);
|
|
436
435
|
worldsAway = Math.floor(
|
|
437
436
|
(coordinate[0] - projectionExtent[0]) / sourceExtentWidth
|
|
438
437
|
);
|
package/dom.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Create an html canvas element and returns its 2d context.
|
|
6
|
-
* @param {number} [
|
|
7
|
-
* @param {number} [
|
|
8
|
-
* @param {Array<HTMLCanvasElement>} [
|
|
9
|
-
* @param {CanvasRenderingContext2DSettings} [
|
|
6
|
+
* @param {number} [width] Canvas width.
|
|
7
|
+
* @param {number} [height] Canvas height.
|
|
8
|
+
* @param {Array<HTMLCanvasElement>} [canvasPool] Canvas pool to take existing canvas from.
|
|
9
|
+
* @param {CanvasRenderingContext2DSettings} [settings] CanvasRenderingContext2DSettings
|
|
10
10
|
* @return {CanvasRenderingContext2D} The context.
|
|
11
11
|
*/
|
|
12
|
-
export function createCanvasContext2D(
|
|
12
|
+
export function createCanvasContext2D(width?: number | undefined, height?: number | undefined, canvasPool?: HTMLCanvasElement[] | undefined, settings?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D;
|
|
13
13
|
/**
|
|
14
14
|
* Releases canvas memory to avoid exceeding memory limits in Safari.
|
|
15
15
|
* See https://pqina.nl/blog/total-canvas-memory-use-exceeds-the-maximum-limit/
|
package/dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["dom.js"],"names":[],"mappings":"AAEA;;GAEG;AAGH;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["dom.js"],"names":[],"mappings":"AAEA;;GAEG;AAGH;;;;;;;GAOG;AACH,uMAFY,wBAAwB,CAsBnC;AAED;;;;GAIG;AACH,uCAFW,wBAAwB,QAOlC;AAED;;;;;;GAMG;AACH,oCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;;;;GAMG;AACH,qCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;GAGG;AACH,qCAHW,IAAI,WACJ,IAAI,QAOd;AAED;;;GAGG;AACH,iCAHW,IAAI,GACH,IAAI,GAAC,IAAI,CAIpB;AAED;;GAEG;AACH,qCAFW,IAAI,QAMd;AAED;;;;;;;GAOG;AACH,sCAHW,IAAI,YACJ,MAAM,IAAI,CAAC,QAmCrB"}
|
package/dom.js
CHANGED
|
@@ -7,36 +7,31 @@ import {WORKER_OFFSCREEN_CANVAS} from './has.js';
|
|
|
7
7
|
//FIXME Move this function to the canvas module
|
|
8
8
|
/**
|
|
9
9
|
* Create an html canvas element and returns its 2d context.
|
|
10
|
-
* @param {number} [
|
|
11
|
-
* @param {number} [
|
|
12
|
-
* @param {Array<HTMLCanvasElement>} [
|
|
13
|
-
* @param {CanvasRenderingContext2DSettings} [
|
|
10
|
+
* @param {number} [width] Canvas width.
|
|
11
|
+
* @param {number} [height] Canvas height.
|
|
12
|
+
* @param {Array<HTMLCanvasElement>} [canvasPool] Canvas pool to take existing canvas from.
|
|
13
|
+
* @param {CanvasRenderingContext2DSettings} [settings] CanvasRenderingContext2DSettings
|
|
14
14
|
* @return {CanvasRenderingContext2D} The context.
|
|
15
15
|
*/
|
|
16
|
-
export function createCanvasContext2D(
|
|
17
|
-
opt_width,
|
|
18
|
-
opt_height,
|
|
19
|
-
opt_canvasPool,
|
|
20
|
-
opt_Context2DSettings
|
|
21
|
-
) {
|
|
16
|
+
export function createCanvasContext2D(width, height, canvasPool, settings) {
|
|
22
17
|
/** @type {HTMLCanvasElement|OffscreenCanvas} */
|
|
23
18
|
let canvas;
|
|
24
|
-
if (
|
|
25
|
-
canvas =
|
|
19
|
+
if (canvasPool && canvasPool.length) {
|
|
20
|
+
canvas = canvasPool.shift();
|
|
26
21
|
} else if (WORKER_OFFSCREEN_CANVAS) {
|
|
27
|
-
canvas = new OffscreenCanvas(
|
|
22
|
+
canvas = new OffscreenCanvas(width || 300, height || 300);
|
|
28
23
|
} else {
|
|
29
24
|
canvas = document.createElement('canvas');
|
|
30
25
|
}
|
|
31
|
-
if (
|
|
32
|
-
canvas.width =
|
|
26
|
+
if (width) {
|
|
27
|
+
canvas.width = width;
|
|
33
28
|
}
|
|
34
|
-
if (
|
|
35
|
-
canvas.height =
|
|
29
|
+
if (height) {
|
|
30
|
+
canvas.height = height;
|
|
36
31
|
}
|
|
37
32
|
//FIXME Allow OffscreenCanvasRenderingContext2D as return type
|
|
38
33
|
return /** @type {CanvasRenderingContext2D} */ (
|
|
39
|
-
canvas.getContext('2d',
|
|
34
|
+
canvas.getContext('2d', settings)
|
|
40
35
|
);
|
|
41
36
|
}
|
|
42
37
|
|
package/events/Target.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ export type EventTargetLike = EventTarget | Target;
|
|
|
20
20
|
*/
|
|
21
21
|
declare class Target extends Disposable {
|
|
22
22
|
/**
|
|
23
|
-
* @param {*} [
|
|
23
|
+
* @param {*} [target] Default event target for dispatched events.
|
|
24
24
|
*/
|
|
25
|
-
constructor(
|
|
25
|
+
constructor(target?: any);
|
|
26
26
|
/**
|
|
27
27
|
* @private
|
|
28
28
|
* @type {*}
|
|
@@ -68,11 +68,11 @@ declare class Target extends Disposable {
|
|
|
68
68
|
*/
|
|
69
69
|
getListeners(type: string): Array<import("../events.js").Listener> | undefined;
|
|
70
70
|
/**
|
|
71
|
-
* @param {string} [
|
|
71
|
+
* @param {string} [type] Type. If not provided,
|
|
72
72
|
* `true` will be returned if this event target has any listeners.
|
|
73
73
|
* @return {boolean} Has listeners.
|
|
74
74
|
*/
|
|
75
|
-
hasListener(
|
|
75
|
+
hasListener(type?: string | undefined): boolean;
|
|
76
76
|
/**
|
|
77
77
|
* @param {string} type Type.
|
|
78
78
|
* @param {import("../events.js").Listener} listener Listener.
|
package/events/Target.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["Target.js"],"names":[],"mappings":";8BASa,WAAW,GAAC,MAAM;AAD/B;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["Target.js"],"names":[],"mappings":";8BASa,WAAW,GAAC,MAAM;AAD/B;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,0BA0BC;IAvBC;;;OAGG;IACH,qBAA0B;IAE1B;;;OAGG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,qBAAwB;IAExB;;;OAGG;IACH,mBAAsB;IAGxB;;;OAGG;IACH,uBAHW,MAAM,YACN,OAAO,cAAc,EAAE,QAAQ,QAWzC;IAED;;;;;;;;;OASG;IACH,qBALW,OAAO,YAAY,EAAE,OAAO,GAAC,MAAM,GAClC,OAAO,GAAC,SAAS,CAiD5B;IASD;;;;;;OAMG;IACH,mBAHW,MAAM,GACL,MAAM,OAAO,cAAc,EAAE,QAAQ,CAAC,GAAC,SAAS,CAI3D;IAED;;;;OAIG;IACH,wCAFY,OAAO,CASlB;IAED;;;OAGG;IACH,0BAHW,MAAM,YACN,OAAO,cAAc,EAAE,QAAQ,QAmBzC;CACF"}
|