ol 7.0.0-dev.1659036591252 → 7.0.0-dev.1659039074785
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/AssertionError.d.ts.map +1 -1
- package/AssertionError.js +35 -48
- package/Collection.d.ts.map +1 -1
- package/Collection.js +260 -246
- package/CollectionEventType.d.ts.map +1 -1
- package/CollectionEventType.js +13 -13
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +84 -90
- package/Disposable.d.ts.map +1 -1
- package/Disposable.js +25 -23
- package/Feature.d.ts.map +1 -1
- package/Feature.js +243 -227
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +325 -282
- package/Image.d.ts.map +1 -1
- package/Image.js +159 -151
- package/ImageBase.d.ts.map +1 -1
- package/ImageBase.js +80 -86
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +72 -81
- package/ImageState.d.ts.map +1 -1
- package/ImageState.js +6 -6
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +169 -163
- package/Kinetic.d.ts.map +1 -1
- package/Kinetic.js +104 -91
- package/Map.d.ts.map +1 -1
- package/Map.js +25 -39
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +104 -113
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +379 -274
- package/MapBrowserEventType.d.ts.map +1 -1
- package/MapBrowserEventType.js +46 -40
- package/MapEvent.d.ts.map +1 -1
- package/MapEvent.js +24 -39
- package/MapEventType.d.ts.map +1 -1
- package/MapEventType.js +36 -31
- package/MapProperty.d.ts.map +1 -1
- package/MapProperty.js +5 -5
- package/Object.d.ts.map +1 -1
- package/Object.js +198 -199
- package/ObjectEventType.d.ts.map +1 -1
- package/ObjectEventType.js +8 -7
- package/Observable.d.ts.map +1 -1
- package/Observable.js +116 -117
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +459 -403
- package/PluggableMap.d.ts.map +1 -1
- package/PluggableMap.js +1548 -1251
- package/README.md +2 -6
- package/Tile.d.ts.map +1 -1
- package/Tile.js +234 -225
- package/TileCache.d.ts.map +1 -1
- package/TileCache.js +43 -59
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +140 -134
- package/TileRange.d.ts.map +1 -1
- package/TileRange.js +128 -110
- package/TileState.d.ts.map +1 -1
- package/TileState.js +10 -10
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +134 -132
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +116 -117
- package/View.d.ts.map +1 -1
- package/View.js +1807 -1475
- package/ViewHint.d.ts.map +1 -1
- package/ViewHint.js +3 -3
- package/ViewProperty.d.ts.map +1 -1
- package/ViewProperty.js +4 -4
- package/array.d.ts.map +1 -1
- package/array.js +118 -114
- package/asserts.d.ts.map +1 -1
- package/asserts.js +4 -4
- package/centerconstraint.d.ts.map +1 -1
- package/centerconstraint.js +49 -42
- package/color.d.ts.map +1 -1
- package/color.js +143 -134
- package/colorlike.d.ts.map +1 -1
- package/colorlike.js +8 -8
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +310 -275
- package/control/Control.d.ts.map +1 -1
- package/control/Control.js +111 -113
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +301 -275
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +250 -224
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +600 -494
- package/control/Rotate.d.ts.map +1 -1
- package/control/Rotate.js +140 -136
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +435 -403
- package/control/Zoom.d.ts.map +1 -1
- package/control/Zoom.js +126 -109
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +326 -283
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/ZoomToExtent.js +67 -67
- package/control.d.ts.map +1 -1
- package/control.js +34 -26
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +160 -131
- package/css.d.ts.map +1 -1
- package/css.js +46 -35
- package/dom.d.ts.map +1 -1
- package/dom.js +88 -67
- package/easing.d.ts.map +1 -1
- package/easing.js +14 -11
- package/events/Event.d.ts.map +1 -1
- package/events/Event.js +45 -38
- package/events/EventType.d.ts.map +1 -1
- package/events/EventType.js +30 -28
- package/events/KeyCode.d.ts.map +1 -1
- package/events/KeyCode.js +5 -5
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +155 -157
- package/events/condition.d.ts.map +1 -1
- package/events/condition.js +148 -94
- package/events.d.ts.map +1 -1
- package/events.js +29 -23
- package/extent/Relationship.d.ts.map +1 -1
- package/extent/Relationship.js +7 -7
- package/extent.d.ts.map +1 -1
- package/extent.js +506 -417
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +105 -79
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +402 -376
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +226 -189
- package/format/GML.d.ts.map +1 -1
- package/format/GML.js +5 -2
- package/format/GML2.d.ts.map +1 -1
- package/format/GML2.js +705 -558
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +1122 -892
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +185 -148
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +538 -447
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +632 -494
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +401 -353
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +124 -132
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/IIIFInfo.js +392 -346
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +191 -184
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +2384 -1886
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +344 -323
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +129 -119
- package/format/OWS.d.ts.map +1 -1
- package/format/OWS.js +134 -110
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +224 -196
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +188 -180
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +255 -202
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +979 -794
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +860 -724
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +716 -678
- package/format/WMSCapabilities.d.ts.map +1 -1
- package/format/WMSCapabilities.js +342 -274
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +130 -113
- package/format/WMTSCapabilities.d.ts.map +1 -1
- package/format/WMTSCapabilities.js +179 -132
- package/format/XML.d.ts.map +1 -1
- package/format/XML.js +43 -46
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +278 -273
- package/format/filter/And.d.ts.map +1 -1
- package/format/filter/And.js +10 -26
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Bbox.js +30 -42
- package/format/filter/Comparison.d.ts.map +1 -1
- package/format/filter/Comparison.js +14 -30
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.js +21 -36
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/Contains.js +13 -29
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/DWithin.js +25 -40
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/Disjoint.js +13 -29
- package/format/filter/During.d.ts.map +1 -1
- package/format/filter/During.js +20 -35
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/EqualTo.js +12 -28
- package/format/filter/Filter.d.ts.map +1 -1
- package/format/filter/Filter.js +20 -19
- package/format/filter/GreaterThan.d.ts.map +1 -1
- package/format/filter/GreaterThan.js +11 -27
- package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/GreaterThanOrEqualTo.js +11 -27
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/Intersects.js +13 -29
- package/format/filter/IsBetween.d.ts.map +1 -1
- package/format/filter/IsBetween.js +20 -35
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsLike.js +49 -54
- package/format/filter/IsNull.d.ts.map +1 -1
- package/format/filter/IsNull.js +10 -26
- package/format/filter/LessThan.d.ts.map +1 -1
- package/format/filter/LessThan.js +11 -27
- package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/LessThanOrEqualTo.js +11 -27
- package/format/filter/LogicalNary.d.ts.map +1 -1
- package/format/filter/LogicalNary.js +16 -32
- package/format/filter/Not.d.ts.map +1 -1
- package/format/filter/Not.js +13 -29
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/NotEqualTo.js +12 -28
- package/format/filter/Or.d.ts.map +1 -1
- package/format/filter/Or.js +10 -26
- package/format/filter/ResourceId.d.ts.map +1 -1
- package/format/filter/ResourceId.js +13 -29
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Spatial.js +27 -41
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter/Within.js +13 -29
- package/format/filter.d.ts.map +1 -1
- package/format/filter.js +57 -24
- package/{src/format → format}/readme.md +0 -0
- package/format/xlink.d.ts.map +1 -1
- package/format/xlink.js +4 -3
- package/format/xsd.d.ts.map +1 -1
- package/format/xsd.js +67 -56
- package/format.d.ts.map +1 -1
- package/format.js +18 -18
- package/functions.d.ts.map +1 -1
- package/functions.js +42 -34
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +245 -233
- package/geom/Geometry.d.ts.map +1 -1
- package/geom/Geometry.js +302 -257
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +322 -298
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +292 -215
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +172 -131
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +331 -251
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +189 -169
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +441 -332
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +108 -109
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +438 -343
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +311 -270
- package/geom/flat/area.d.ts.map +1 -1
- package/geom/flat/area.js +28 -26
- package/geom/flat/center.d.ts.map +1 -1
- package/geom/flat/center.js +16 -11
- package/geom/flat/closest.d.ts.map +1 -1
- package/geom/flat/closest.js +241 -132
- package/geom/flat/contains.d.ts.map +1 -1
- package/geom/flat/contains.js +95 -55
- package/geom/flat/deflate.d.ts.map +1 -1
- package/geom/flat/deflate.js +65 -34
- package/geom/flat/flip.d.ts.map +1 -1
- package/geom/flat/flip.js +27 -21
- package/geom/flat/geodesic.d.ts.map +1 -1
- package/geom/flat/geodesic.js +123 -89
- package/geom/flat/inflate.d.ts.map +1 -1
- package/geom/flat/inflate.js +65 -32
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interiorpoint.js +82 -60
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/interpolate.js +166 -131
- package/geom/flat/intersectsextent.d.ts.map +1 -1
- package/geom/flat/intersectsextent.js +173 -66
- package/geom/flat/length.d.ts.map +1 -1
- package/geom/flat/length.js +18 -17
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/orient.js +124 -78
- package/geom/flat/reverse.d.ts.map +1 -1
- package/geom/flat/reverse.js +9 -9
- package/geom/flat/segments.d.ts.map +1 -1
- package/geom/flat/segments.js +12 -9
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/simplify.js +324 -194
- package/geom/flat/straightchunk.d.ts.map +1 -1
- package/geom/flat/straightchunk.js +34 -34
- package/geom/flat/textpath.d.ts.map +1 -1
- package/geom/flat/textpath.js +129 -103
- package/geom/flat/topology.d.ts.map +1 -1
- package/geom/flat/topology.js +11 -9
- package/geom/flat/transform.d.ts.map +1 -1
- package/geom/flat/transform.js +98 -63
- package/geom.d.ts.map +1 -1
- package/geom.js +12 -12
- package/has.d.ts.map +1 -1
- package/has.js +45 -29
- package/index.d.ts.map +1 -1
- package/index.js +29 -28
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +45 -55
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +254 -240
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +203 -175
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +163 -161
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +97 -99
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +105 -111
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +52 -62
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +1064 -965
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +433 -402
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Interaction.js +113 -112
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +90 -96
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +63 -67
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +282 -257
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +1413 -1168
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +256 -220
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +139 -133
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +117 -115
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +150 -151
- package/interaction/Property.d.ts.map +1 -1
- package/interaction/Property.js +2 -2
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +441 -386
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +568 -481
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +328 -280
- package/interaction.d.ts.map +1 -1
- package/interaction.js +106 -76
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +331 -306
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseImage.js +12 -27
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +99 -100
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +175 -166
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +1066 -850
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +280 -242
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +270 -170
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +33 -47
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +316 -277
- package/layer/MapboxVector.d.ts.map +1 -1
- package/layer/MapboxVector.js +72 -88
- package/layer/Property.d.ts.map +1 -1
- package/layer/Property.js +11 -11
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +14 -29
- package/layer/TileProperty.d.ts.map +1 -1
- package/layer/TileProperty.js +3 -3
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +14 -29
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +31 -44
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +138 -127
- package/layer/VectorTileRenderType.d.ts.map +1 -1
- package/layer/VectorTileRenderType.js +24 -24
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +52 -61
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +410 -274
- package/layer.d.ts.map +1 -1
- package/layer.js +13 -13
- package/loadingstrategy.d.ts.map +1 -1
- package/loadingstrategy.js +36 -17
- package/math.d.ts.map +1 -1
- package/math.js +80 -66
- package/net.d.ts.map +1 -1
- package/net.js +111 -123
- package/obj.d.ts.map +1 -1
- package/obj.js +10 -9
- package/package.json +1 -1
- package/pixel.d.ts.map +1 -1
- package/pixel.js +3 -2
- package/pointer/EventType.d.ts.map +1 -1
- package/pointer/EventType.js +9 -9
- package/proj/Projection.d.ts.map +1 -1
- package/proj/Projection.js +202 -177
- package/proj/Units.d.ts.map +1 -1
- package/proj/Units.js +49 -45
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg3857.js +74 -86
- package/proj/epsg4326.d.ts.map +1 -1
- package/proj/epsg4326.js +33 -46
- package/proj/proj4.d.ts.map +1 -1
- package/proj/proj4.js +48 -36
- package/proj/projections.d.ts.map +1 -1
- package/proj/projections.js +12 -7
- package/proj/transforms.d.ts.map +1 -1
- package/proj/transforms.js +27 -23
- package/proj.d.ts.map +1 -1
- package/proj.js +333 -245
- package/render/Box.d.ts.map +1 -1
- package/render/Box.js +115 -118
- package/render/Event.d.ts.map +1 -1
- package/render/Event.js +37 -50
- package/render/EventType.d.ts.map +1 -1
- package/render/EventType.js +43 -37
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +341 -249
- package/render/VectorContext.d.ts.map +1 -1
- package/render/VectorContext.js +105 -92
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +611 -532
- package/render/canvas/BuilderGroup.d.ts.map +1 -1
- package/render/canvas/BuilderGroup.js +86 -73
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +1170 -868
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +374 -274
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +255 -253
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +1125 -907
- package/render/canvas/Instruction.d.ts.map +1 -1
- package/render/canvas/Instruction.js +24 -19
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +157 -139
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +252 -234
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +607 -543
- package/render/canvas/hitdetect.d.ts.map +1 -1
- package/render/canvas/hitdetect.js +149 -119
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +294 -218
- package/render/webgl/BatchRenderer.d.ts.map +1 -1
- package/render/webgl/BatchRenderer.js +173 -137
- package/render/webgl/LineStringBatchRenderer.d.ts.map +1 -1
- package/render/webgl/LineStringBatchRenderer.js +102 -100
- package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
- package/render/webgl/MixedGeometryBatch.js +278 -256
- package/render/webgl/PointBatchRenderer.d.ts.map +1 -1
- package/render/webgl/PointBatchRenderer.js +84 -89
- package/render/webgl/PolygonBatchRenderer.d.ts.map +1 -1
- package/render/webgl/PolygonBatchRenderer.js +103 -96
- package/render/webgl/constants.d.ts.map +1 -1
- package/render/webgl/constants.js +6 -5
- package/render/webgl/utils.d.ts.map +1 -1
- package/render/webgl/utils.js +272 -178
- package/render.d.ts.map +1 -1
- package/render.js +62 -33
- package/renderer/Composite.d.ts.map +1 -1
- package/renderer/Composite.js +135 -127
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +182 -176
- package/renderer/Map.d.ts.map +1 -1
- package/renderer/Map.js +214 -168
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +257 -193
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +286 -242
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +724 -532
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +206 -159
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +760 -533
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +810 -583
- package/renderer/canvas/common.d.ts.map +1 -1
- package/renderer/canvas/common.js +8 -7
- package/renderer/vector.d.ts.map +1 -1
- package/renderer/vector.js +339 -202
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +218 -179
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +637 -498
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +757 -548
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +340 -235
- package/renderer/webgl/shaders.d.ts.map +1 -1
- package/renderer/webgl/shaders.js +159 -14
- package/reproj/Image.d.ts.map +1 -1
- package/reproj/Image.js +212 -157
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +336 -245
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj/Triangulation.js +458 -317
- package/reproj/common.d.ts.map +1 -1
- package/reproj/common.js +4 -3
- package/reproj.d.ts.map +1 -1
- package/reproj.js +341 -205
- package/resolutionconstraint.d.ts.map +1 -1
- package/resolutionconstraint.js +158 -91
- package/rotationconstraint.d.ts.map +1 -1
- package/rotationconstraint.js +46 -43
- package/size.d.ts.map +1 -1
- package/size.js +28 -26
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +245 -203
- package/source/CartoDB.d.ts.map +1 -1
- package/source/CartoDB.js +149 -145
- package/source/Cluster.d.ts.map +1 -1
- package/source/Cluster.js +250 -235
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +184 -177
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +633 -555
- package/source/IIIF.d.ts.map +1 -1
- package/source/IIIF.js +303 -279
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +209 -191
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +252 -214
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +97 -86
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +229 -199
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +142 -125
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +423 -334
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +57 -68
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +55 -66
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +53 -58
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +758 -659
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +172 -161
- package/source/Stamen.d.ts.map +1 -1
- package/source/Stamen.js +114 -117
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +325 -304
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +190 -168
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +45 -55
- package/source/TileEventType.d.ts.map +1 -1
- package/source/TileEventType.js +25 -22
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +384 -342
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileJSON.js +148 -146
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +391 -329
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +458 -396
- package/source/UrlTile.d.ts.map +1 -1
- package/source/UrlTile.js +189 -193
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +956 -855
- package/source/VectorEventType.d.ts.map +1 -1
- package/source/VectorEventType.js +51 -44
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +401 -352
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +479 -428
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +63 -70
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +236 -207
- package/source/common.d.ts.map +1 -1
- package/source/common.js +2 -2
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +283 -212
- package/source/wms.d.ts.map +1 -1
- package/source/wms.js +3 -2
- package/source.d.ts.map +1 -1
- package/source.js +52 -50
- package/sphere.d.ts.map +1 -1
- package/sphere.js +164 -136
- package/string.d.ts.map +1 -1
- package/string.js +24 -19
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/LRUCache.js +256 -237
- package/structs/LinkedList.d.ts.map +1 -1
- package/structs/LinkedList.js +234 -217
- package/structs/PriorityQueue.d.ts.map +1 -1
- package/structs/PriorityQueue.js +227 -205
- package/structs/RBush.d.ts.map +1 -1
- package/structs/RBush.js +199 -175
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +58 -67
- package/style/Fill.d.ts.map +1 -1
- package/style/Fill.js +46 -41
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +353 -309
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +254 -238
- package/style/IconImageCache.d.ts.map +1 -1
- package/style/IconImageCache.js +88 -78
- package/style/Image.d.ts.map +1 -1
- package/style/Image.js +263 -233
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +545 -495
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +210 -187
- package/style/Style.d.ts.map +1 -1
- package/style/Style.js +368 -321
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +506 -446
- package/style/expressions.d.ts.map +1 -1
- package/style/expressions.js +747 -566
- package/style/literal.d.ts.map +1 -1
- package/style/literal.js +9 -6
- package/style.d.ts.map +1 -1
- package/style.js +10 -10
- package/tilecoord.d.ts.map +1 -1
- package/tilecoord.js +38 -32
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +613 -486
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid/WMTS.js +130 -127
- package/tilegrid/common.d.ts.map +1 -1
- package/tilegrid/common.js +4 -3
- package/tilegrid.d.ts.map +1 -1
- package/tilegrid.js +104 -64
- package/tileurlfunction.d.ts.map +1 -1
- package/tileurlfunction.js +70 -66
- package/transform.d.ts.map +1 -1
- package/transform.js +110 -85
- package/uri.d.ts.map +1 -1
- package/uri.js +14 -14
- package/util.d.ts.map +1 -1
- package/util.js +12 -7
- package/vec/mat4.d.ts.map +1 -1
- package/vec/mat4.js +10 -9
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +104 -86
- package/webgl/ContextEventType.d.ts.map +1 -1
- package/webgl/ContextEventType.js +3 -3
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +851 -632
- package/webgl/PaletteTexture.d.ts.map +1 -1
- package/webgl/PaletteTexture.js +43 -31
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +330 -198
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/RenderTarget.js +162 -127
- package/webgl/ShaderBuilder.d.ts.map +1 -1
- package/webgl/ShaderBuilder.js +526 -384
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +348 -284
- package/webgl.d.ts.map +1 -1
- package/webgl.js +53 -36
- package/worker/webgl.d.ts.map +1 -1
- package/worker/webgl.js +8 -7
- package/xml.d.ts.map +1 -1
- package/xml.js +264 -149
- package/AssertionError.js.map +0 -1
- package/Collection.js.map +0 -1
- package/CollectionEventType.js.map +0 -1
- package/DataTile.js.map +0 -1
- package/Disposable.js.map +0 -1
- package/Feature.js.map +0 -1
- package/Geolocation.js.map +0 -1
- package/Image.js.map +0 -1
- package/ImageBase.js.map +0 -1
- package/ImageCanvas.js.map +0 -1
- package/ImageState.js.map +0 -1
- package/ImageTile.js.map +0 -1
- package/Kinetic.js.map +0 -1
- package/Map.js.map +0 -1
- package/MapBrowserEvent.js.map +0 -1
- package/MapBrowserEventHandler.js.map +0 -1
- package/MapBrowserEventType.js.map +0 -1
- package/MapEvent.js.map +0 -1
- package/MapEventType.js.map +0 -1
- package/MapProperty.js.map +0 -1
- package/Object.js.map +0 -1
- package/ObjectEventType.js.map +0 -1
- package/Observable.js.map +0 -1
- package/Overlay.js.map +0 -1
- package/PluggableMap.js.map +0 -1
- package/Tile.js.map +0 -1
- package/TileCache.js.map +0 -1
- package/TileQueue.js.map +0 -1
- package/TileRange.js.map +0 -1
- package/TileState.js.map +0 -1
- package/VectorRenderTile.js.map +0 -1
- package/VectorTile.js.map +0 -1
- package/View.js.map +0 -1
- package/ViewHint.js.map +0 -1
- package/ViewProperty.js.map +0 -1
- package/array.js.map +0 -1
- package/asserts.js.map +0 -1
- package/centerconstraint.js.map +0 -1
- package/color.js.map +0 -1
- package/colorlike.js.map +0 -1
- package/control/Attribution.js.map +0 -1
- package/control/Control.js.map +0 -1
- package/control/FullScreen.js.map +0 -1
- package/control/MousePosition.js.map +0 -1
- package/control/OverviewMap.js.map +0 -1
- package/control/Rotate.js.map +0 -1
- package/control/ScaleLine.js.map +0 -1
- package/control/Zoom.js.map +0 -1
- package/control/ZoomSlider.js.map +0 -1
- package/control/ZoomToExtent.js.map +0 -1
- package/control.js.map +0 -1
- package/coordinate.js.map +0 -1
- package/css.js.map +0 -1
- package/dom.js.map +0 -1
- package/easing.js.map +0 -1
- package/events/Event.js.map +0 -1
- package/events/EventType.js.map +0 -1
- package/events/KeyCode.js.map +0 -1
- package/events/Target.js.map +0 -1
- package/events/condition.js.map +0 -1
- package/events.js.map +0 -1
- package/extent/Relationship.js.map +0 -1
- package/extent.js.map +0 -1
- package/featureloader.js.map +0 -1
- package/format/EsriJSON.js.map +0 -1
- package/format/Feature.js.map +0 -1
- package/format/GML.js.map +0 -1
- package/format/GML2.js.map +0 -1
- package/format/GML3.js.map +0 -1
- package/format/GML32.js.map +0 -1
- package/format/GMLBase.js.map +0 -1
- package/format/GPX.js.map +0 -1
- package/format/GeoJSON.js.map +0 -1
- package/format/IGC.js.map +0 -1
- package/format/IIIFInfo.js.map +0 -1
- package/format/JSONFeature.js.map +0 -1
- package/format/KML.js.map +0 -1
- package/format/MVT.js.map +0 -1
- package/format/OSMXML.js.map +0 -1
- package/format/OWS.js.map +0 -1
- package/format/Polyline.js.map +0 -1
- package/format/TextFeature.js.map +0 -1
- package/format/TopoJSON.js.map +0 -1
- package/format/WFS.js.map +0 -1
- package/format/WKB.js.map +0 -1
- package/format/WKT.js.map +0 -1
- package/format/WMSCapabilities.js.map +0 -1
- package/format/WMSGetFeatureInfo.js.map +0 -1
- package/format/WMTSCapabilities.js.map +0 -1
- package/format/XML.js.map +0 -1
- package/format/XMLFeature.js.map +0 -1
- package/format/filter/And.js.map +0 -1
- package/format/filter/Bbox.js.map +0 -1
- package/format/filter/Comparison.js.map +0 -1
- package/format/filter/ComparisonBinary.js.map +0 -1
- package/format/filter/Contains.js.map +0 -1
- package/format/filter/DWithin.js.map +0 -1
- package/format/filter/Disjoint.js.map +0 -1
- package/format/filter/During.js.map +0 -1
- package/format/filter/EqualTo.js.map +0 -1
- package/format/filter/Filter.js.map +0 -1
- package/format/filter/GreaterThan.js.map +0 -1
- package/format/filter/GreaterThanOrEqualTo.js.map +0 -1
- package/format/filter/Intersects.js.map +0 -1
- package/format/filter/IsBetween.js.map +0 -1
- package/format/filter/IsLike.js.map +0 -1
- package/format/filter/IsNull.js.map +0 -1
- package/format/filter/LessThan.js.map +0 -1
- package/format/filter/LessThanOrEqualTo.js.map +0 -1
- package/format/filter/LogicalNary.js.map +0 -1
- package/format/filter/Not.js.map +0 -1
- package/format/filter/NotEqualTo.js.map +0 -1
- package/format/filter/Or.js.map +0 -1
- package/format/filter/ResourceId.js.map +0 -1
- package/format/filter/Spatial.js.map +0 -1
- package/format/filter/Within.js.map +0 -1
- package/format/filter.js.map +0 -1
- package/format/xlink.js.map +0 -1
- package/format/xsd.js.map +0 -1
- package/format.js.map +0 -1
- package/functions.js.map +0 -1
- package/geom/Circle.js.map +0 -1
- package/geom/Geometry.js.map +0 -1
- package/geom/GeometryCollection.js.map +0 -1
- package/geom/LineString.js.map +0 -1
- package/geom/LinearRing.js.map +0 -1
- package/geom/MultiLineString.js.map +0 -1
- package/geom/MultiPoint.js.map +0 -1
- package/geom/MultiPolygon.js.map +0 -1
- package/geom/Point.js.map +0 -1
- package/geom/Polygon.js.map +0 -1
- package/geom/SimpleGeometry.js.map +0 -1
- package/geom/flat/area.js.map +0 -1
- package/geom/flat/center.js.map +0 -1
- package/geom/flat/closest.js.map +0 -1
- package/geom/flat/contains.js.map +0 -1
- package/geom/flat/deflate.js.map +0 -1
- package/geom/flat/flip.js.map +0 -1
- package/geom/flat/geodesic.js.map +0 -1
- package/geom/flat/inflate.js.map +0 -1
- package/geom/flat/interiorpoint.js.map +0 -1
- package/geom/flat/interpolate.js.map +0 -1
- package/geom/flat/intersectsextent.js.map +0 -1
- package/geom/flat/length.js.map +0 -1
- package/geom/flat/orient.js.map +0 -1
- package/geom/flat/reverse.js.map +0 -1
- package/geom/flat/segments.js.map +0 -1
- package/geom/flat/simplify.js.map +0 -1
- package/geom/flat/straightchunk.js.map +0 -1
- package/geom/flat/textpath.js.map +0 -1
- package/geom/flat/topology.js.map +0 -1
- package/geom/flat/transform.js.map +0 -1
- package/geom.js.map +0 -1
- package/has.js.map +0 -1
- package/index.js.map +0 -1
- package/interaction/DoubleClickZoom.js.map +0 -1
- package/interaction/DragAndDrop.js.map +0 -1
- package/interaction/DragBox.js.map +0 -1
- package/interaction/DragPan.js.map +0 -1
- package/interaction/DragRotate.js.map +0 -1
- package/interaction/DragRotateAndZoom.js.map +0 -1
- package/interaction/DragZoom.js.map +0 -1
- package/interaction/Draw.js.map +0 -1
- package/interaction/Extent.js.map +0 -1
- package/interaction/Interaction.js.map +0 -1
- package/interaction/KeyboardPan.js.map +0 -1
- package/interaction/KeyboardZoom.js.map +0 -1
- package/interaction/Link.js.map +0 -1
- package/interaction/Modify.js.map +0 -1
- package/interaction/MouseWheelZoom.js.map +0 -1
- package/interaction/PinchRotate.js.map +0 -1
- package/interaction/PinchZoom.js.map +0 -1
- package/interaction/Pointer.js.map +0 -1
- package/interaction/Property.js.map +0 -1
- package/interaction/Select.js.map +0 -1
- package/interaction/Snap.js.map +0 -1
- package/interaction/Translate.js.map +0 -1
- package/interaction.js.map +0 -1
- package/layer/Base.js.map +0 -1
- package/layer/BaseImage.js.map +0 -1
- package/layer/BaseTile.js.map +0 -1
- package/layer/BaseVector.js.map +0 -1
- package/layer/Graticule.js.map +0 -1
- package/layer/Group.js.map +0 -1
- package/layer/Heatmap.js.map +0 -1
- package/layer/Image.js.map +0 -1
- package/layer/Layer.js.map +0 -1
- package/layer/MapboxVector.js.map +0 -1
- package/layer/Property.js.map +0 -1
- package/layer/Tile.js.map +0 -1
- package/layer/TileProperty.js.map +0 -1
- package/layer/Vector.js.map +0 -1
- package/layer/VectorImage.js.map +0 -1
- package/layer/VectorTile.js.map +0 -1
- package/layer/VectorTileRenderType.js.map +0 -1
- package/layer/WebGLPoints.js.map +0 -1
- package/layer/WebGLTile.js.map +0 -1
- package/layer.js.map +0 -1
- package/loadingstrategy.js.map +0 -1
- package/math.js.map +0 -1
- package/net.js.map +0 -1
- package/obj.js.map +0 -1
- package/pixel.js.map +0 -1
- package/pointer/EventType.js.map +0 -1
- package/proj/Projection.js.map +0 -1
- package/proj/Units.js.map +0 -1
- package/proj/epsg3857.js.map +0 -1
- package/proj/epsg4326.js.map +0 -1
- package/proj/proj4.js.map +0 -1
- package/proj/projections.js.map +0 -1
- package/proj/transforms.js.map +0 -1
- package/proj.js.map +0 -1
- package/render/Box.js.map +0 -1
- package/render/Event.js.map +0 -1
- package/render/EventType.js.map +0 -1
- package/render/Feature.js.map +0 -1
- package/render/VectorContext.js.map +0 -1
- package/render/canvas/Builder.js.map +0 -1
- package/render/canvas/BuilderGroup.js.map +0 -1
- package/render/canvas/Executor.js.map +0 -1
- package/render/canvas/ExecutorGroup.js.map +0 -1
- package/render/canvas/ImageBuilder.js.map +0 -1
- package/render/canvas/Immediate.js.map +0 -1
- package/render/canvas/Instruction.js.map +0 -1
- package/render/canvas/LineStringBuilder.js.map +0 -1
- package/render/canvas/PolygonBuilder.js.map +0 -1
- package/render/canvas/TextBuilder.js.map +0 -1
- package/render/canvas/hitdetect.js.map +0 -1
- package/render/canvas.js.map +0 -1
- package/render/webgl/BatchRenderer.js.map +0 -1
- package/render/webgl/LineStringBatchRenderer.js.map +0 -1
- package/render/webgl/MixedGeometryBatch.js.map +0 -1
- package/render/webgl/PointBatchRenderer.js.map +0 -1
- package/render/webgl/PolygonBatchRenderer.js.map +0 -1
- package/render/webgl/constants.js.map +0 -1
- package/render/webgl/utils.js.map +0 -1
- package/render.js.map +0 -1
- package/renderer/Composite.js.map +0 -1
- package/renderer/Layer.js.map +0 -1
- package/renderer/Map.js.map +0 -1
- package/renderer/canvas/ImageLayer.js.map +0 -1
- package/renderer/canvas/Layer.js.map +0 -1
- package/renderer/canvas/TileLayer.js.map +0 -1
- package/renderer/canvas/VectorImageLayer.js.map +0 -1
- package/renderer/canvas/VectorLayer.js.map +0 -1
- package/renderer/canvas/VectorTileLayer.js.map +0 -1
- package/renderer/canvas/common.js.map +0 -1
- package/renderer/vector.js.map +0 -1
- package/renderer/webgl/Layer.js.map +0 -1
- package/renderer/webgl/PointsLayer.js.map +0 -1
- package/renderer/webgl/TileLayer.js.map +0 -1
- package/renderer/webgl/VectorLayer.js.map +0 -1
- package/renderer/webgl/shaders.js.map +0 -1
- package/reproj/Image.js.map +0 -1
- package/reproj/Tile.js.map +0 -1
- package/reproj/Triangulation.js.map +0 -1
- package/reproj/common.js.map +0 -1
- package/reproj.js.map +0 -1
- package/resolutionconstraint.js.map +0 -1
- package/rotationconstraint.js.map +0 -1
- package/size.js.map +0 -1
- package/source/BingMaps.js.map +0 -1
- package/source/CartoDB.js.map +0 -1
- package/source/Cluster.js.map +0 -1
- package/source/DataTile.js.map +0 -1
- package/source/GeoTIFF.js.map +0 -1
- package/source/IIIF.js.map +0 -1
- package/source/Image.js.map +0 -1
- package/source/ImageArcGISRest.js.map +0 -1
- package/source/ImageCanvas.js.map +0 -1
- package/source/ImageMapGuide.js.map +0 -1
- package/source/ImageStatic.js.map +0 -1
- package/source/ImageWMS.js.map +0 -1
- package/source/OGCMapTile.js.map +0 -1
- package/source/OGCVectorTile.js.map +0 -1
- package/source/OSM.js.map +0 -1
- package/source/Raster.js.map +0 -1
- package/source/Source.js.map +0 -1
- package/source/Stamen.js.map +0 -1
- package/source/Tile.js.map +0 -1
- package/source/TileArcGISRest.js.map +0 -1
- package/source/TileDebug.js.map +0 -1
- package/source/TileEventType.js.map +0 -1
- package/source/TileImage.js.map +0 -1
- package/source/TileJSON.js.map +0 -1
- package/source/TileWMS.js.map +0 -1
- package/source/UTFGrid.js.map +0 -1
- package/source/UrlTile.js.map +0 -1
- package/source/Vector.js.map +0 -1
- package/source/VectorEventType.js.map +0 -1
- package/source/VectorTile.js.map +0 -1
- package/source/WMTS.js.map +0 -1
- package/source/XYZ.js.map +0 -1
- package/source/Zoomify.js.map +0 -1
- package/source/common.js.map +0 -1
- package/source/ogcTileUtil.js.map +0 -1
- package/source/wms.js.map +0 -1
- package/source.js.map +0 -1
- package/sphere.js.map +0 -1
- package/src/AssertionError.js +0 -46
- package/src/Collection.js +0 -315
- package/src/CollectionEventType.js +0 -21
- package/src/DataTile.js +0 -114
- package/src/Disposable.js +0 -36
- package/src/Feature.js +0 -337
- package/src/Geolocation.js +0 -399
- package/src/Image.js +0 -204
- package/src/ImageBase.js +0 -98
- package/src/ImageCanvas.js +0 -93
- package/src/ImageState.js +0 -14
- package/src/ImageTile.js +0 -195
- package/src/Kinetic.js +0 -126
- package/src/Map.js +0 -79
- package/src/MapBrowserEvent.js +0 -122
- package/src/MapBrowserEventHandler.js +0 -420
- package/src/MapBrowserEventType.js +0 -59
- package/src/MapEvent.js +0 -36
- package/src/MapEventType.js +0 -47
- package/src/MapProperty.js +0 -13
- package/src/Object.js +0 -265
- package/src/ObjectEventType.js +0 -19
- package/src/Observable.js +0 -192
- package/src/Overlay.js +0 -581
- package/src/PluggableMap.js +0 -1770
- package/src/Tile.js +0 -322
- package/src/TileCache.js +0 -50
- package/src/TileQueue.js +0 -164
- package/src/TileRange.js +0 -154
- package/src/TileState.js +0 -18
- package/src/VectorRenderTile.js +0 -166
- package/src/VectorTile.js +0 -138
- package/src/View.js +0 -2147
- package/src/ViewHint.js +0 -11
- package/src/ViewProperty.js +0 -12
- package/src/array.js +0 -226
- package/src/asserts.js +0 -14
- package/src/centerconstraint.js +0 -79
- package/src/color.js +0 -231
- package/src/colorlike.js +0 -29
- package/src/control/Attribution.js +0 -375
- package/src/control/Control.js +0 -161
- package/src/control/FullScreen.js +0 -405
- package/src/control/MousePosition.js +0 -321
- package/src/control/OverviewMap.js +0 -682
- package/src/control/Rotate.js +0 -182
- package/src/control/ScaleLine.js +0 -524
- package/src/control/Zoom.js +0 -160
- package/src/control/ZoomSlider.js +0 -388
- package/src/control/ZoomToExtent.js +0 -94
- package/src/control.js +0 -72
- package/src/coordinate.js +0 -442
- package/src/css.js +0 -116
- package/src/dom.js +0 -154
- package/src/easing.js +0 -59
- package/src/events/Event.js +0 -77
- package/src/events/EventType.js +0 -39
- package/src/events/KeyCode.js +0 -14
- package/src/events/Target.js +0 -188
- package/src/events/condition.js +0 -328
- package/src/events.js +0 -105
- package/src/extent/Relationship.js +0 -16
- package/src/extent.js +0 -928
- package/src/featureloader.js +0 -179
- package/src/format/EsriJSON.js +0 -578
- package/src/format/Feature.js +0 -309
- package/src/format/GML.js +0 -40
- package/src/format/GML2.js +0 -787
- package/src/format/GML3.js +0 -1289
- package/src/format/GML32.js +0 -344
- package/src/format/GMLBase.js +0 -694
- package/src/format/GPX.js +0 -942
- package/src/format/GeoJSON.js +0 -569
- package/src/format/IGC.js +0 -175
- package/src/format/IIIFInfo.js +0 -484
- package/src/format/JSONFeature.js +0 -210
- package/src/format/KML.js +0 -3367
- package/src/format/MVT.js +0 -436
- package/src/format/OSMXML.js +0 -196
- package/src/format/OWS.js +0 -325
- package/src/format/Polyline.js +0 -356
- package/src/format/TextFeature.js +0 -207
- package/src/format/TopoJSON.js +0 -447
- package/src/format/WFS.js +0 -1375
- package/src/format/WKB.js +0 -925
- package/src/format/WKT.js +0 -869
- package/src/format/WMSCapabilities.js +0 -625
- package/src/format/WMSGetFeatureInfo.js +0 -165
- package/src/format/WMTSCapabilities.js +0 -380
- package/src/format/XML.js +0 -54
- package/src/format/XMLFeature.js +0 -293
- package/src/format/filter/And.js +0 -21
- package/src/format/filter/Bbox.js +0 -45
- package/src/format/filter/Comparison.js +0 -28
- package/src/format/filter/ComparisonBinary.js +0 -35
- package/src/format/filter/Contains.js +0 -24
- package/src/format/filter/DWithin.js +0 -38
- package/src/format/filter/Disjoint.js +0 -24
- package/src/format/filter/During.js +0 -32
- package/src/format/filter/EqualTo.js +0 -22
- package/src/format/filter/Filter.js +0 -33
- package/src/format/filter/GreaterThan.js +0 -21
- package/src/format/filter/GreaterThanOrEqualTo.js +0 -21
- package/src/format/filter/Intersects.js +0 -24
- package/src/format/filter/IsBetween.js +0 -32
- package/src/format/filter/IsLike.js +0 -61
- package/src/format/filter/IsNull.js +0 -20
- package/src/format/filter/LessThan.js +0 -21
- package/src/format/filter/LessThanOrEqualTo.js +0 -21
- package/src/format/filter/LogicalNary.js +0 -30
- package/src/format/filter/Not.js +0 -25
- package/src/format/filter/NotEqualTo.js +0 -22
- package/src/format/filter/Or.js +0 -20
- package/src/format/filter/ResourceId.js +0 -25
- package/src/format/filter/Spatial.js +0 -42
- package/src/format/filter/Within.js +0 -24
- package/src/format/filter.js +0 -301
- package/src/format/xlink.js +0 -17
- package/src/format/xsd.js +0 -154
- package/src/format.js +0 -21
- package/src/functions.js +0 -81
- package/src/geom/Circle.js +0 -282
- package/src/geom/Geometry.js +0 -348
- package/src/geom/GeometryCollection.js +0 -345
- package/src/geom/LineString.js +0 -311
- package/src/geom/LinearRing.js +0 -188
- package/src/geom/MultiLineString.js +0 -350
- package/src/geom/MultiPoint.js +0 -203
- package/src/geom/MultiPolygon.js +0 -471
- package/src/geom/Point.js +0 -120
- package/src/geom/Polygon.js +0 -509
- package/src/geom/SimpleGeometry.js +0 -354
- package/src/geom/flat/area.js +0 -58
- package/src/geom/flat/center.js +0 -28
- package/src/geom/flat/closest.js +0 -337
- package/src/geom/flat/contains.js +0 -145
- package/src/geom/flat/deflate.js +0 -105
- package/src/geom/flat/flip.js +0 -41
- package/src/geom/flat/geodesic.js +0 -184
- package/src/geom/flat/inflate.js +0 -96
- package/src/geom/flat/interiorpoint.js +0 -111
- package/src/geom/flat/interpolate.js +0 -210
- package/src/geom/flat/intersectsextent.js +0 -232
- package/src/geom/flat/length.js +0 -39
- package/src/geom/flat/orient.js +0 -208
- package/src/geom/flat/reverse.js +0 -21
- package/src/geom/flat/segments.js +0 -31
- package/src/geom/flat/simplify.js +0 -478
- package/src/geom/flat/straightchunk.js +0 -50
- package/src/geom/flat/textpath.js +0 -154
- package/src/geom/flat/topology.js +0 -24
- package/src/geom/flat/transform.js +0 -149
- package/src/geom.js +0 -15
- package/src/has.js +0 -90
- package/src/index.js +0 -32
- package/src/interaction/DoubleClickZoom.js +0 -64
- package/src/interaction/DragAndDrop.js +0 -325
- package/src/interaction/DragBox.js +0 -275
- package/src/interaction/DragPan.js +0 -189
- package/src/interaction/DragRotate.js +0 -125
- package/src/interaction/DragRotateAndZoom.js +0 -137
- package/src/interaction/DragZoom.js +0 -84
- package/src/interaction/Draw.js +0 -1286
- package/src/interaction/Extent.js +0 -550
- package/src/interaction/Interaction.js +0 -170
- package/src/interaction/KeyboardPan.js +0 -125
- package/src/interaction/KeyboardZoom.js +0 -94
- package/src/interaction/Link.js +0 -358
- package/src/interaction/Modify.js +0 -1657
- package/src/interaction/MouseWheelZoom.js +0 -301
- package/src/interaction/PinchRotate.js +0 -163
- package/src/interaction/PinchZoom.js +0 -139
- package/src/interaction/Pointer.js +0 -206
- package/src/interaction/Property.js +0 -10
- package/src/interaction/Select.js +0 -592
- package/src/interaction/Snap.js +0 -665
- package/src/interaction/Translate.js +0 -416
- package/src/interaction.js +0 -168
- package/src/layer/Base.js +0 -397
- package/src/layer/BaseImage.js +0 -57
- package/src/layer/BaseTile.js +0 -160
- package/src/layer/BaseVector.js +0 -264
- package/src/layer/Graticule.js +0 -1243
- package/src/layer/Group.js +0 -352
- package/src/layer/Heatmap.js +0 -334
- package/src/layer/Image.js +0 -51
- package/src/layer/Layer.js +0 -426
- package/src/layer/MapboxVector.js +0 -196
- package/src/layer/Property.js +0 -19
- package/src/layer/Tile.js +0 -32
- package/src/layer/TileProperty.js +0 -11
- package/src/layer/Vector.js +0 -35
- package/src/layer/VectorImage.js +0 -95
- package/src/layer/VectorTile.js +0 -242
- package/src/layer/VectorTileRenderType.js +0 -34
- package/src/layer/WebGLPoints.js +0 -127
- package/src/layer/WebGLTile.js +0 -525
- package/src/layer.js +0 -16
- package/src/loadingstrategy.js +0 -74
- package/src/math.js +0 -199
- package/src/net.js +0 -150
- package/src/obj.js +0 -26
- package/src/ol.css +0 -291
- package/src/pixel.js +0 -12
- package/src/pointer/EventType.js +0 -18
- package/src/proj/Projection.js +0 -271
- package/src/proj/Units.js +0 -82
- package/src/proj/epsg3857.js +0 -136
- package/src/proj/epsg4326.js +0 -69
- package/src/proj/proj4.js +0 -69
- package/src/proj/projections.js +0 -37
- package/src/proj/transforms.js +0 -68
- package/src/proj.js +0 -755
- package/src/render/Box.js +0 -132
- package/src/render/Event.js +0 -44
- package/src/render/EventType.js +0 -57
- package/src/render/Feature.js +0 -398
- package/src/render/VectorContext.js +0 -115
- package/src/render/canvas/Builder.js +0 -651
- package/src/render/canvas/BuilderGroup.js +0 -105
- package/src/render/canvas/Executor.js +0 -1265
- package/src/render/canvas/ExecutorGroup.js +0 -422
- package/src/render/canvas/ImageBuilder.js +0 -271
- package/src/render/canvas/Immediate.js +0 -1169
- package/src/render/canvas/Instruction.js +0 -44
- package/src/render/canvas/LineStringBuilder.js +0 -163
- package/src/render/canvas/PolygonBuilder.js +0 -257
- package/src/render/canvas/TextBuilder.js +0 -635
- package/src/render/canvas/hitdetect.js +0 -184
- package/src/render/canvas.js +0 -502
- package/src/render/webgl/BatchRenderer.js +0 -201
- package/src/render/webgl/LineStringBatchRenderer.js +0 -116
- package/src/render/webgl/MixedGeometryBatch.js +0 -364
- package/src/render/webgl/PointBatchRenderer.js +0 -97
- package/src/render/webgl/PolygonBatchRenderer.js +0 -117
- package/src/render/webgl/constants.js +0 -27
- package/src/render/webgl/utils.js +0 -351
- package/src/render.js +0 -136
- package/src/renderer/Composite.js +0 -154
- package/src/renderer/Layer.js +0 -199
- package/src/renderer/Map.js +0 -243
- package/src/renderer/canvas/ImageLayer.js +0 -274
- package/src/renderer/canvas/Layer.js +0 -326
- package/src/renderer/canvas/TileLayer.js +0 -768
- package/src/renderer/canvas/VectorImageLayer.js +0 -231
- package/src/renderer/canvas/VectorLayer.js +0 -800
- package/src/renderer/canvas/VectorTileLayer.js +0 -859
- package/src/renderer/canvas/common.js +0 -21
- package/src/renderer/vector.js +0 -484
- package/src/renderer/webgl/Layer.js +0 -262
- package/src/renderer/webgl/PointsLayer.js +0 -769
- package/src/renderer/webgl/TileLayer.js +0 -850
- package/src/renderer/webgl/VectorLayer.js +0 -409
- package/src/renderer/webgl/shaders.js +0 -198
- package/src/reproj/Image.js +0 -244
- package/src/reproj/Tile.js +0 -368
- package/src/reproj/Triangulation.js +0 -507
- package/src/reproj/common.js +0 -17
- package/src/reproj.js +0 -436
- package/src/resolutionconstraint.js +0 -243
- package/src/rotationconstraint.js +0 -89
- package/src/size.js +0 -73
- package/src/source/BingMaps.js +0 -335
- package/src/source/CartoDB.js +0 -203
- package/src/source/Cluster.js +0 -328
- package/src/source/DataTile.js +0 -243
- package/src/source/GeoTIFF.js +0 -840
- package/src/source/IIIF.js +0 -361
- package/src/source/Image.js +0 -276
- package/src/source/ImageArcGISRest.js +0 -319
- package/src/source/ImageCanvas.js +0 -146
- package/src/source/ImageMapGuide.js +0 -288
- package/src/source/ImageStatic.js +0 -181
- package/src/source/ImageWMS.js +0 -497
- package/src/source/OGCMapTile.js +0 -100
- package/src/source/OGCVectorTile.js +0 -99
- package/src/source/OSM.js +0 -100
- package/src/source/Raster.js +0 -992
- package/src/source/Source.js +0 -246
- package/src/source/Stamen.js +0 -164
- package/src/source/Tile.js +0 -397
- package/src/source/TileArcGISRest.js +0 -261
- package/src/source/TileDebug.js +0 -71
- package/src/source/TileEventType.js +0 -36
- package/src/source/TileImage.js +0 -471
- package/src/source/TileJSON.js +0 -219
- package/src/source/TileWMS.js +0 -477
- package/src/source/UTFGrid.js +0 -526
- package/src/source/UrlTile.js +0 -231
- package/src/source/Vector.js +0 -1138
- package/src/source/VectorEventType.js +0 -62
- package/src/source/VectorTile.js +0 -518
- package/src/source/WMTS.js +0 -601
- package/src/source/XYZ.js +0 -136
- package/src/source/Zoomify.js +0 -303
- package/src/source/common.js +0 -9
- package/src/source/ogcTileUtil.js +0 -405
- package/src/source/wms.js +0 -19
- package/src/source.js +0 -70
- package/src/sphere.js +0 -263
- package/src/string.js +0 -44
- package/src/structs/LRUCache.js +0 -287
- package/src/structs/LinkedList.js +0 -259
- package/src/structs/PriorityQueue.js +0 -262
- package/src/structs/RBush.js +0 -226
- package/src/style/Circle.js +0 -82
- package/src/style/Fill.js +0 -63
- package/src/style/Icon.js +0 -440
- package/src/style/IconImage.js +0 -299
- package/src/style/IconImageCache.js +0 -116
- package/src/style/Image.js +0 -297
- package/src/style/RegularShape.js +0 -617
- package/src/style/Stroke.js +0 -236
- package/src/style/Style.js +0 -566
- package/src/style/Text.js +0 -582
- package/src/style/expressions.js +0 -1044
- package/src/style/literal.js +0 -42
- package/src/style.js +0 -13
- package/src/tilecoord.js +0 -98
- package/src/tilegrid/TileGrid.js +0 -690
- package/src/tilegrid/WMTS.js +0 -188
- package/src/tilegrid/common.js +0 -15
- package/src/tilegrid.js +0 -183
- package/src/tileurlfunction.js +0 -124
- package/src/transform.js +0 -289
- package/src/uri.js +0 -27
- package/src/util.js +0 -40
- package/src/vec/mat4.js +0 -25
- package/src/webgl/Buffer.js +0 -143
- package/src/webgl/ContextEventType.js +0 -11
- package/src/webgl/Helper.js +0 -1121
- package/src/webgl/PaletteTexture.js +0 -50
- package/src/webgl/PostProcessingPass.js +0 -406
- package/src/webgl/RenderTarget.js +0 -187
- package/src/webgl/ShaderBuilder.js +0 -592
- package/src/webgl/TileTexture.js +0 -410
- package/src/webgl.js +0 -132
- package/src/worker/webgl.js +0 -8
- package/src/xml.js +0 -591
- package/string.js.map +0 -1
- package/structs/LRUCache.js.map +0 -1
- package/structs/LinkedList.js.map +0 -1
- package/structs/PriorityQueue.js.map +0 -1
- package/structs/RBush.js.map +0 -1
- package/style/Circle.js.map +0 -1
- package/style/Fill.js.map +0 -1
- package/style/Icon.js.map +0 -1
- package/style/IconImage.js.map +0 -1
- package/style/IconImageCache.js.map +0 -1
- package/style/Image.js.map +0 -1
- package/style/RegularShape.js.map +0 -1
- package/style/Stroke.js.map +0 -1
- package/style/Style.js.map +0 -1
- package/style/Text.js.map +0 -1
- package/style/expressions.js.map +0 -1
- package/style/literal.js.map +0 -1
- package/style.js.map +0 -1
- package/tilecoord.js.map +0 -1
- package/tilegrid/TileGrid.js.map +0 -1
- package/tilegrid/WMTS.js.map +0 -1
- package/tilegrid/common.js.map +0 -1
- package/tilegrid.js.map +0 -1
- package/tileurlfunction.js.map +0 -1
- package/transform.js.map +0 -1
- package/uri.js.map +0 -1
- package/util.js.map +0 -1
- package/vec/mat4.js.map +0 -1
- package/webgl/Buffer.js.map +0 -1
- package/webgl/ContextEventType.js.map +0 -1
- package/webgl/Helper.js.map +0 -1
- package/webgl/PaletteTexture.js.map +0 -1
- package/webgl/PostProcessingPass.js.map +0 -1
- package/webgl/RenderTarget.js.map +0 -1
- package/webgl/ShaderBuilder.js.map +0 -1
- package/webgl/TileTexture.js.map +0 -1
- package/webgl.js.map +0 -1
- package/worker/webgl.js.map +0 -1
- package/xml.js.map +0 -1
package/AssertionError.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssertionError.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"AssertionError.d.ts","sourceRoot":"","sources":["AssertionError.js"],"names":[],"mappings":";AAKA;;;;GAIG;AACH;IACE;;OAEG;IACH,kBAFW,MAAM,EA8BhB;IAjBC;;;;;;;OAOG;IACH,MAHU,MAAM,CAGA;CAUnB"}
|
package/AssertionError.js
CHANGED
|
@@ -1,59 +1,46 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
/**
|
|
17
2
|
* @module ol/AssertionError
|
|
18
3
|
*/
|
|
19
|
-
import {
|
|
4
|
+
import {VERSION} from './util.js';
|
|
5
|
+
|
|
20
6
|
/**
|
|
21
7
|
* Error object thrown when an assertion failed. This is an ECMA-262 Error,
|
|
22
8
|
* extended with a `code` property.
|
|
23
9
|
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error.
|
|
24
10
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
class AssertionError extends Error {
|
|
12
|
+
/**
|
|
13
|
+
* @param {number} code Error code.
|
|
14
|
+
*/
|
|
15
|
+
constructor(code) {
|
|
16
|
+
const path = VERSION === 'latest' ? VERSION : 'v' + VERSION.split('-')[0];
|
|
17
|
+
const message =
|
|
18
|
+
'Assertion failed. See https://openlayers.org/en/' +
|
|
19
|
+
path +
|
|
20
|
+
'/doc/errors/#' +
|
|
21
|
+
code +
|
|
22
|
+
' for details.';
|
|
23
|
+
|
|
24
|
+
super(message);
|
|
25
|
+
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
27
|
+
* Error code. The meaning of the code can be found on
|
|
28
|
+
* https://openlayers.org/en/latest/doc/errors/ (replace `latest` with
|
|
29
|
+
* the version found in the OpenLayers script's header comment if a version
|
|
30
|
+
* other than the latest is used).
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @api
|
|
29
33
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* the version found in the OpenLayers script's header comment if a version
|
|
43
|
-
* other than the latest is used).
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @api
|
|
46
|
-
*/
|
|
47
|
-
_this.code = code;
|
|
48
|
-
/**
|
|
49
|
-
* @type {string}
|
|
50
|
-
*/
|
|
51
|
-
_this.name = 'AssertionError';
|
|
52
|
-
// Re-assign message, see https://github.com/Rich-Harris/buble/issues/40
|
|
53
|
-
_this.message = message;
|
|
54
|
-
return _this;
|
|
55
|
-
}
|
|
56
|
-
return AssertionError;
|
|
57
|
-
}(Error));
|
|
34
|
+
this.code = code;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @type {string}
|
|
38
|
+
*/
|
|
39
|
+
this.name = 'AssertionError';
|
|
40
|
+
|
|
41
|
+
// Re-assign message, see https://github.com/Rich-Harris/buble/issues/40
|
|
42
|
+
this.message = message;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
58
46
|
export default AssertionError;
|
|
59
|
-
//# sourceMappingURL=AssertionError.js.map
|
package/Collection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["Collection.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH;IACE;;;;OAIG;IACH,0EAgBC;IAbC;;;;OAIG;IACH,aAA0B;IAE1B;;;;OAIG;IACH,OAHU,MAAM,CAGM;CAEzB;;;;;4CAIY,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,KAAK,GAAC,eAAe,EAAE,OAAO,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,GACjI,OAAW,cAAc,EAAE,WAAW,CAAC,KAAK,GAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAC,GAC/E,OAAW,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,OAAO,mBAAmB,EAAE,KAAK,GAClH,eAAqB,GAAC,KAAK,GAAC,QAAQ,EAAC,MAAM,CAAC;;;;;;;;;AAN7C;;;;;;;GAOG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;;OAGG;IACH,4EAuCC;IApCC;;OAEG;IACH,IAFU,sBAAsB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEtD;IAEP;;OAEG;IACH,MAFU,sBAAsB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEpD;IAET;;OAEG;IACH,IAFU,sBAAsB,IAAI,CAAC,CAE9B;IAIP;;;OAGG;IACH,gBAA+B;IAE/B;;;OAGG;IACH,eAAwC;IAW1C;;;OAGG;IACH,cAIC;IAED;;;;;;OAMG;IACH,YAJY,MAAM,CAAC,CAAC,GACR,WAAW,CAAC,CAAC,CAQxB;IAED;;;;;;OAMG;IACH,kBALoB,CAAC,QAAE,MAAM,QAAE,MAAM,CAAC,CAAC,gBAUtC;IAED;;;;;;;OAOG;IACH,YAHa,MAAM,CAAC,CAAC,CAKpB;IAED;;;;;OAKG;IACH,YAJW,MAAM,GACL,CAAC,CAKZ;IAED;;;;;OAKG;IACH,aAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,QACN,CAAC,QAYX;IAED;;;;;OAKG;IACH,OAHY,CAAC,GAAC,SAAS,CAKtB;IAED;;;;;OAKG;IACH,WAJW,CAAC,GACA,MAAM,CAUjB;IAED;;;;;OAKG;IACH,aAJW,CAAC,GACA,CAAC,GAAC,SAAS,CAWtB;IAED;;;;;;OAMG;IACH,gBAJW,MAAM,GACL,CAAC,GAAC,SAAS,CAWtB;IAED;;;;;OAKG;IACH,aAJW,MAAM,QACN,CAAC,QAuBX;IAED;;OAEG;IACH,sBAEC;IAED;;;;OAIG;IACH,sBAMC;CACF"}
|
package/Collection.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
/**
|
|
17
2
|
* @module ol/Collection
|
|
18
3
|
*/
|
|
@@ -20,44 +5,45 @@ import AssertionError from './AssertionError.js';
|
|
|
20
5
|
import BaseObject from './Object.js';
|
|
21
6
|
import CollectionEventType from './CollectionEventType.js';
|
|
22
7
|
import Event from './events/Event.js';
|
|
8
|
+
|
|
23
9
|
/**
|
|
24
10
|
* @enum {string}
|
|
25
11
|
* @private
|
|
26
12
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
const Property = {
|
|
14
|
+
LENGTH: 'length',
|
|
29
15
|
};
|
|
16
|
+
|
|
30
17
|
/**
|
|
31
18
|
* @classdesc
|
|
32
19
|
* Events emitted by {@link module:ol/Collection~Collection} instances are instances of this
|
|
33
20
|
* type.
|
|
34
21
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
export class CollectionEvent extends Event {
|
|
23
|
+
/**
|
|
24
|
+
* @param {import("./CollectionEventType.js").default} type Type.
|
|
25
|
+
* @param {*} [opt_element] Element.
|
|
26
|
+
* @param {number} [opt_index] The index of the added or removed element.
|
|
27
|
+
*/
|
|
28
|
+
constructor(type, opt_element, opt_index) {
|
|
29
|
+
super(type);
|
|
30
|
+
|
|
37
31
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
40
|
-
* @
|
|
32
|
+
* The element that is added to or removed from the collection.
|
|
33
|
+
* @type {*}
|
|
34
|
+
* @api
|
|
41
35
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* @api
|
|
54
|
-
*/
|
|
55
|
-
_this.index = opt_index;
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
return CollectionEvent;
|
|
59
|
-
}(Event));
|
|
60
|
-
export { CollectionEvent };
|
|
36
|
+
this.element = opt_element;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The index of the added or removed element.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @api
|
|
42
|
+
*/
|
|
43
|
+
this.index = opt_index;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
61
47
|
/***
|
|
62
48
|
* @template Return
|
|
63
49
|
* @typedef {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default, Return> &
|
|
@@ -66,11 +52,13 @@ export { CollectionEvent };
|
|
|
66
52
|
* import("./Observable").CombinedOnSignature<import("./Observable").EventTypes|import("./ObjectEventType").Types|
|
|
67
53
|
* 'change:length'|'add'|'remove',Return>} CollectionOnSignature
|
|
68
54
|
*/
|
|
55
|
+
|
|
69
56
|
/**
|
|
70
57
|
* @typedef {Object} Options
|
|
71
58
|
* @property {boolean} [unique=false] Disallow the same item from being added to
|
|
72
59
|
* the collection twice.
|
|
73
60
|
*/
|
|
61
|
+
|
|
74
62
|
/**
|
|
75
63
|
* @classdesc
|
|
76
64
|
* An expanded version of standard JS Array, adding convenience methods for
|
|
@@ -84,218 +72,244 @@ export { CollectionEvent };
|
|
|
84
72
|
* @template T
|
|
85
73
|
* @api
|
|
86
74
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*/
|
|
98
|
-
_this.on;
|
|
99
|
-
/***
|
|
100
|
-
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
101
|
-
*/
|
|
102
|
-
_this.once;
|
|
103
|
-
/***
|
|
104
|
-
* @type {CollectionOnSignature<void>}
|
|
105
|
-
*/
|
|
106
|
-
_this.un;
|
|
107
|
-
var options = opt_options || {};
|
|
108
|
-
/**
|
|
109
|
-
* @private
|
|
110
|
-
* @type {boolean}
|
|
111
|
-
*/
|
|
112
|
-
_this.unique_ = !!options.unique;
|
|
113
|
-
/**
|
|
114
|
-
* @private
|
|
115
|
-
* @type {!Array<T>}
|
|
116
|
-
*/
|
|
117
|
-
_this.array_ = opt_array ? opt_array : [];
|
|
118
|
-
if (_this.unique_) {
|
|
119
|
-
for (var i = 0, ii = _this.array_.length; i < ii; ++i) {
|
|
120
|
-
_this.assertUnique_(_this.array_[i], i);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
_this.updateLength_();
|
|
124
|
-
return _this;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Remove all elements from the collection.
|
|
128
|
-
* @api
|
|
129
|
-
*/
|
|
130
|
-
Collection.prototype.clear = function () {
|
|
131
|
-
while (this.getLength() > 0) {
|
|
132
|
-
this.pop();
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Add elements to the collection. This pushes each item in the provided array
|
|
137
|
-
* to the end of the collection.
|
|
138
|
-
* @param {!Array<T>} arr Array.
|
|
139
|
-
* @return {Collection<T>} This collection.
|
|
140
|
-
* @api
|
|
141
|
-
*/
|
|
142
|
-
Collection.prototype.extend = function (arr) {
|
|
143
|
-
for (var i = 0, ii = arr.length; i < ii; ++i) {
|
|
144
|
-
this.push(arr[i]);
|
|
145
|
-
}
|
|
146
|
-
return this;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Iterate over each element, calling the provided callback.
|
|
150
|
-
* @param {function(T, number, Array<T>): *} f The function to call
|
|
151
|
-
* for every element. This function takes 3 arguments (the element, the
|
|
152
|
-
* index and the array). The return value is ignored.
|
|
153
|
-
* @api
|
|
154
|
-
*/
|
|
155
|
-
Collection.prototype.forEach = function (f) {
|
|
156
|
-
var array = this.array_;
|
|
157
|
-
for (var i = 0, ii = array.length; i < ii; ++i) {
|
|
158
|
-
f(array[i], i, array);
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Get a reference to the underlying Array object. Warning: if the array
|
|
163
|
-
* is mutated, no events will be dispatched by the collection, and the
|
|
164
|
-
* collection's "length" property won't be in sync with the actual length
|
|
165
|
-
* of the array.
|
|
166
|
-
* @return {!Array<T>} Array.
|
|
167
|
-
* @api
|
|
168
|
-
*/
|
|
169
|
-
Collection.prototype.getArray = function () {
|
|
170
|
-
return this.array_;
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Get the element at the provided index.
|
|
174
|
-
* @param {number} index Index.
|
|
175
|
-
* @return {T} Element.
|
|
176
|
-
* @api
|
|
177
|
-
*/
|
|
178
|
-
Collection.prototype.item = function (index) {
|
|
179
|
-
return this.array_[index];
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Get the length of this collection.
|
|
183
|
-
* @return {number} The length of the array.
|
|
184
|
-
* @observable
|
|
185
|
-
* @api
|
|
75
|
+
class Collection extends BaseObject {
|
|
76
|
+
/**
|
|
77
|
+
* @param {Array<T>} [opt_array] Array.
|
|
78
|
+
* @param {Options} [opt_options] Collection options.
|
|
79
|
+
*/
|
|
80
|
+
constructor(opt_array, opt_options) {
|
|
81
|
+
super();
|
|
82
|
+
|
|
83
|
+
/***
|
|
84
|
+
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
186
85
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
* Insert an element at the provided index.
|
|
192
|
-
* @param {number} index Index.
|
|
193
|
-
* @param {T} elem Element.
|
|
194
|
-
* @api
|
|
86
|
+
this.on;
|
|
87
|
+
|
|
88
|
+
/***
|
|
89
|
+
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
195
90
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
this.array_.splice(index, 0, elem);
|
|
201
|
-
this.updateLength_();
|
|
202
|
-
this.dispatchEvent(new CollectionEvent(CollectionEventType.ADD, elem, index));
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* Remove the last element of the collection and return it.
|
|
206
|
-
* Return `undefined` if the collection is empty.
|
|
207
|
-
* @return {T|undefined} Element.
|
|
208
|
-
* @api
|
|
209
|
-
*/
|
|
210
|
-
Collection.prototype.pop = function () {
|
|
211
|
-
return this.removeAt(this.getLength() - 1);
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Insert the provided element at the end of the collection.
|
|
215
|
-
* @param {T} elem Element.
|
|
216
|
-
* @return {number} New length of the collection.
|
|
217
|
-
* @api
|
|
218
|
-
*/
|
|
219
|
-
Collection.prototype.push = function (elem) {
|
|
220
|
-
if (this.unique_) {
|
|
221
|
-
this.assertUnique_(elem);
|
|
222
|
-
}
|
|
223
|
-
var n = this.getLength();
|
|
224
|
-
this.insertAt(n, elem);
|
|
225
|
-
return this.getLength();
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Remove the first occurrence of an element from the collection.
|
|
229
|
-
* @param {T} elem Element.
|
|
230
|
-
* @return {T|undefined} The removed element or undefined if none found.
|
|
231
|
-
* @api
|
|
232
|
-
*/
|
|
233
|
-
Collection.prototype.remove = function (elem) {
|
|
234
|
-
var arr = this.array_;
|
|
235
|
-
for (var i = 0, ii = arr.length; i < ii; ++i) {
|
|
236
|
-
if (arr[i] === elem) {
|
|
237
|
-
return this.removeAt(i);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return undefined;
|
|
241
|
-
};
|
|
242
|
-
/**
|
|
243
|
-
* Remove the element at the provided index and return it.
|
|
244
|
-
* Return `undefined` if the collection does not contain this index.
|
|
245
|
-
* @param {number} index Index.
|
|
246
|
-
* @return {T|undefined} Value.
|
|
247
|
-
* @api
|
|
91
|
+
this.once;
|
|
92
|
+
|
|
93
|
+
/***
|
|
94
|
+
* @type {CollectionOnSignature<void>}
|
|
248
95
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
this.dispatchEvent(new CollectionEvent(CollectionEventType.REMOVE, prev, index));
|
|
254
|
-
return prev;
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* Set the element at the provided index.
|
|
258
|
-
* @param {number} index Index.
|
|
259
|
-
* @param {T} elem Element.
|
|
260
|
-
* @api
|
|
261
|
-
*/
|
|
262
|
-
Collection.prototype.setAt = function (index, elem) {
|
|
263
|
-
var n = this.getLength();
|
|
264
|
-
if (index < n) {
|
|
265
|
-
if (this.unique_) {
|
|
266
|
-
this.assertUnique_(elem, index);
|
|
267
|
-
}
|
|
268
|
-
var prev = this.array_[index];
|
|
269
|
-
this.array_[index] = elem;
|
|
270
|
-
this.dispatchEvent(new CollectionEvent(CollectionEventType.REMOVE, prev, index));
|
|
271
|
-
this.dispatchEvent(new CollectionEvent(CollectionEventType.ADD, elem, index));
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
for (var j = n; j < index; ++j) {
|
|
275
|
-
this.insertAt(j, undefined);
|
|
276
|
-
}
|
|
277
|
-
this.insertAt(index, elem);
|
|
278
|
-
}
|
|
279
|
-
};
|
|
96
|
+
this.un;
|
|
97
|
+
|
|
98
|
+
const options = opt_options || {};
|
|
99
|
+
|
|
280
100
|
/**
|
|
281
101
|
* @private
|
|
102
|
+
* @type {boolean}
|
|
282
103
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
};
|
|
104
|
+
this.unique_ = !!options.unique;
|
|
105
|
+
|
|
286
106
|
/**
|
|
287
107
|
* @private
|
|
288
|
-
* @
|
|
289
|
-
* @param {number} [opt_except] Optional index to ignore.
|
|
108
|
+
* @type {!Array<T>}
|
|
290
109
|
*/
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
110
|
+
this.array_ = opt_array ? opt_array : [];
|
|
111
|
+
|
|
112
|
+
if (this.unique_) {
|
|
113
|
+
for (let i = 0, ii = this.array_.length; i < ii; ++i) {
|
|
114
|
+
this.assertUnique_(this.array_[i], i);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
this.updateLength_();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Remove all elements from the collection.
|
|
123
|
+
* @api
|
|
124
|
+
*/
|
|
125
|
+
clear() {
|
|
126
|
+
while (this.getLength() > 0) {
|
|
127
|
+
this.pop();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Add elements to the collection. This pushes each item in the provided array
|
|
133
|
+
* to the end of the collection.
|
|
134
|
+
* @param {!Array<T>} arr Array.
|
|
135
|
+
* @return {Collection<T>} This collection.
|
|
136
|
+
* @api
|
|
137
|
+
*/
|
|
138
|
+
extend(arr) {
|
|
139
|
+
for (let i = 0, ii = arr.length; i < ii; ++i) {
|
|
140
|
+
this.push(arr[i]);
|
|
141
|
+
}
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Iterate over each element, calling the provided callback.
|
|
147
|
+
* @param {function(T, number, Array<T>): *} f The function to call
|
|
148
|
+
* for every element. This function takes 3 arguments (the element, the
|
|
149
|
+
* index and the array). The return value is ignored.
|
|
150
|
+
* @api
|
|
151
|
+
*/
|
|
152
|
+
forEach(f) {
|
|
153
|
+
const array = this.array_;
|
|
154
|
+
for (let i = 0, ii = array.length; i < ii; ++i) {
|
|
155
|
+
f(array[i], i, array);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Get a reference to the underlying Array object. Warning: if the array
|
|
161
|
+
* is mutated, no events will be dispatched by the collection, and the
|
|
162
|
+
* collection's "length" property won't be in sync with the actual length
|
|
163
|
+
* of the array.
|
|
164
|
+
* @return {!Array<T>} Array.
|
|
165
|
+
* @api
|
|
166
|
+
*/
|
|
167
|
+
getArray() {
|
|
168
|
+
return this.array_;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Get the element at the provided index.
|
|
173
|
+
* @param {number} index Index.
|
|
174
|
+
* @return {T} Element.
|
|
175
|
+
* @api
|
|
176
|
+
*/
|
|
177
|
+
item(index) {
|
|
178
|
+
return this.array_[index];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Get the length of this collection.
|
|
183
|
+
* @return {number} The length of the array.
|
|
184
|
+
* @observable
|
|
185
|
+
* @api
|
|
186
|
+
*/
|
|
187
|
+
getLength() {
|
|
188
|
+
return this.get(Property.LENGTH);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Insert an element at the provided index.
|
|
193
|
+
* @param {number} index Index.
|
|
194
|
+
* @param {T} elem Element.
|
|
195
|
+
* @api
|
|
196
|
+
*/
|
|
197
|
+
insertAt(index, elem) {
|
|
198
|
+
if (this.unique_) {
|
|
199
|
+
this.assertUnique_(elem);
|
|
200
|
+
}
|
|
201
|
+
this.array_.splice(index, 0, elem);
|
|
202
|
+
this.updateLength_();
|
|
203
|
+
this.dispatchEvent(
|
|
204
|
+
new CollectionEvent(CollectionEventType.ADD, elem, index)
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Remove the last element of the collection and return it.
|
|
210
|
+
* Return `undefined` if the collection is empty.
|
|
211
|
+
* @return {T|undefined} Element.
|
|
212
|
+
* @api
|
|
213
|
+
*/
|
|
214
|
+
pop() {
|
|
215
|
+
return this.removeAt(this.getLength() - 1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Insert the provided element at the end of the collection.
|
|
220
|
+
* @param {T} elem Element.
|
|
221
|
+
* @return {number} New length of the collection.
|
|
222
|
+
* @api
|
|
223
|
+
*/
|
|
224
|
+
push(elem) {
|
|
225
|
+
if (this.unique_) {
|
|
226
|
+
this.assertUnique_(elem);
|
|
227
|
+
}
|
|
228
|
+
const n = this.getLength();
|
|
229
|
+
this.insertAt(n, elem);
|
|
230
|
+
return this.getLength();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Remove the first occurrence of an element from the collection.
|
|
235
|
+
* @param {T} elem Element.
|
|
236
|
+
* @return {T|undefined} The removed element or undefined if none found.
|
|
237
|
+
* @api
|
|
238
|
+
*/
|
|
239
|
+
remove(elem) {
|
|
240
|
+
const arr = this.array_;
|
|
241
|
+
for (let i = 0, ii = arr.length; i < ii; ++i) {
|
|
242
|
+
if (arr[i] === elem) {
|
|
243
|
+
return this.removeAt(i);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return undefined;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Remove the element at the provided index and return it.
|
|
251
|
+
* Return `undefined` if the collection does not contain this index.
|
|
252
|
+
* @param {number} index Index.
|
|
253
|
+
* @return {T|undefined} Value.
|
|
254
|
+
* @api
|
|
255
|
+
*/
|
|
256
|
+
removeAt(index) {
|
|
257
|
+
const prev = this.array_[index];
|
|
258
|
+
this.array_.splice(index, 1);
|
|
259
|
+
this.updateLength_();
|
|
260
|
+
this.dispatchEvent(
|
|
261
|
+
new CollectionEvent(CollectionEventType.REMOVE, prev, index)
|
|
262
|
+
);
|
|
263
|
+
return prev;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Set the element at the provided index.
|
|
268
|
+
* @param {number} index Index.
|
|
269
|
+
* @param {T} elem Element.
|
|
270
|
+
* @api
|
|
271
|
+
*/
|
|
272
|
+
setAt(index, elem) {
|
|
273
|
+
const n = this.getLength();
|
|
274
|
+
if (index < n) {
|
|
275
|
+
if (this.unique_) {
|
|
276
|
+
this.assertUnique_(elem, index);
|
|
277
|
+
}
|
|
278
|
+
const prev = this.array_[index];
|
|
279
|
+
this.array_[index] = elem;
|
|
280
|
+
this.dispatchEvent(
|
|
281
|
+
new CollectionEvent(CollectionEventType.REMOVE, prev, index)
|
|
282
|
+
);
|
|
283
|
+
this.dispatchEvent(
|
|
284
|
+
new CollectionEvent(CollectionEventType.ADD, elem, index)
|
|
285
|
+
);
|
|
286
|
+
} else {
|
|
287
|
+
for (let j = n; j < index; ++j) {
|
|
288
|
+
this.insertAt(j, undefined);
|
|
289
|
+
}
|
|
290
|
+
this.insertAt(index, elem);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @private
|
|
296
|
+
*/
|
|
297
|
+
updateLength_() {
|
|
298
|
+
this.set(Property.LENGTH, this.array_.length);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @private
|
|
303
|
+
* @param {T} elem Element.
|
|
304
|
+
* @param {number} [opt_except] Optional index to ignore.
|
|
305
|
+
*/
|
|
306
|
+
assertUnique_(elem, opt_except) {
|
|
307
|
+
for (let i = 0, ii = this.array_.length; i < ii; ++i) {
|
|
308
|
+
if (this.array_[i] === elem && i !== opt_except) {
|
|
309
|
+
throw new AssertionError(58);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
300
315
|
export default Collection;
|
|
301
|
-
//# sourceMappingURL=Collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionEventType.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"CollectionEventType.d.ts","sourceRoot":"","sources":["CollectionEventType.js"],"names":[],"mappings":""}
|