@vertigis/arcgis-extensions 49.8.1 → 50.0.0
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/AppConfig.schema.json +23 -6
- package/Hyperlink.d.ts +3 -1
- package/Hyperlink.js +1 -1
- package/data/ArcGISServiceTableExtension.js +1 -1
- package/data/Feature.d.ts +1 -3
- package/data/Feature.js +1 -1
- package/data/FeatureSet.d.ts +40 -2
- package/data/FeatureSet.js +1 -1
- package/data/FeatureSettings.js +1 -1
- package/data/FeatureSourceBase.d.ts +22 -27
- package/data/FeatureSourceBase.js +1 -1
- package/data/FieldExtension.d.ts +0 -3
- package/data/FieldExtension.js +1 -1
- package/data/PopupContentExtension.js +1 -1
- package/data/Schema.js +1 -1
- package/data/_Relationship.d.ts +1 -2
- package/data/_TableExtension.d.ts +1 -1
- package/data/_TableExtension.js +1 -1
- package/docs/html/assets/highlight.css +38 -10
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/Entity.EntityBase.html +12 -74
- package/docs/html/classes/Hyperlink.Hyperlink.html +10 -72
- package/docs/html/classes/LanguageResources.LanguageResources.html +36 -30
- package/docs/html/classes/data_ArcGISServiceTableExtension.ArcGISServiceTableExtension.html +35 -97
- package/docs/html/classes/data_Attachment.Attachment.html +12 -74
- package/docs/html/classes/data_Feature.Feature.html +16 -76
- package/docs/html/classes/data_FeatureList.FeatureList.html +73 -17
- package/docs/html/classes/data_FeatureSet.FeatureSet.html +39 -33
- package/docs/html/classes/data_FeatureSettings.FeatureSettings.html +11 -71
- package/docs/html/classes/data_FeatureSourceBase.FeatureSourceBase.html +35 -98
- package/docs/html/classes/data_FeatureSourceBase.RelationshipCollection.html +72 -16
- package/docs/html/classes/data_FeatureStream.FeatureStream.html +13 -75
- package/docs/html/classes/data_FieldExtension.FieldExtension.html +13 -75
- package/docs/html/classes/data_PopupContentExtension.PopupContentExtension.html +13 -75
- package/docs/html/classes/data_RelationshipBase.RelationshipBase.html +37 -31
- package/docs/html/classes/data_Schema.Schema.html +13 -73
- package/docs/html/classes/data_TaskSettings.TaskSettings.html +12 -72
- package/docs/html/classes/data__TableExtension.TableExtension.html +34 -96
- package/docs/html/classes/data__TableExtension.TableFeatureSettings.html +11 -71
- package/docs/html/classes/data__TableExtension.TableSchema.html +15 -75
- package/docs/html/classes/layer_preset_LayerPreset.LayerPreset.html +14 -76
- package/docs/html/classes/layer_preset_LayerPresetSettings.LayerPresetSetting.html +36 -30
- package/docs/html/classes/mapping_ArcGISSublayerExtension.ArcGISSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_ArcGISSublayerExtension.ArcGISSublayerRelationshipCollection.html +72 -16
- package/docs/html/classes/mapping_BasemapExtension.BasemapExtension.html +14 -76
- package/docs/html/classes/mapping_Bookmark.Bookmark.html +12 -74
- package/docs/html/classes/mapping_BuildingComponentSublayerExtension.BuildingComponentSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_BuildingComponentSublayerExtension.BuildingComponentSublayerSchema.html +13 -73
- package/docs/html/classes/mapping_BuildingGroupSublayerExtension.BuildingGroupSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_BuildingGroupSublayerExtension.BuildingGroupSublayerSchema.html +13 -73
- package/docs/html/classes/mapping_BuildingSceneLayerExtension.BuildingSceneLayerExtension.html +35 -97
- package/docs/html/classes/mapping_BuildingSceneLayerExtension.BuildingSceneLayerReadOnlySchema.html +13 -73
- package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerFeatureSettings.html +11 -53
- package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerSchema.html +13 -73
- package/docs/html/classes/mapping_CSVLayerExtension.CSVLayerExtension.html +35 -97
- package/docs/html/classes/mapping_ElevationLayerExtension.ElevationLayerExtension.html +35 -97
- package/docs/html/classes/mapping_FeatureCollectionLayerExtension.FeatureCollectionLayerExtension.html +35 -97
- package/docs/html/classes/mapping_FeatureLayerExtension.FeatureLayerExtension.html +35 -97
- package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerExtensionBase.html +35 -97
- package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerReadOnlySchema.html +13 -73
- package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerSchema.html +13 -73
- package/docs/html/classes/mapping_GeoJSONLayerExtension.GeoJSONLayerExtension.html +35 -97
- package/docs/html/classes/mapping_GeoRSSLayerExtension.GeoRSSLayerExtension.html +35 -97
- package/docs/html/classes/mapping_GraphicsLayerExtension.GraphicsLayerExtension.html +35 -97
- package/docs/html/classes/mapping_GroundExtension.GroundExtension.html +13 -75
- package/docs/html/classes/mapping_GroupLayerExtension.GroupLayerExtension.html +35 -97
- package/docs/html/classes/mapping_GroupLayerExtension.GroupLayerExtensionCollection.html +74 -23
- package/docs/html/classes/mapping_ImageryLayerExtension.ImageryLayerExtension.html +35 -97
- package/docs/html/classes/mapping_ImageryTileLayerExtension.ImageryTileLayerExtension.html +35 -97
- package/docs/html/classes/mapping_IntegratedMeshLayerExtension.IntegratedMeshLayerExtension.html +35 -97
- package/docs/html/classes/mapping_KMLLayerExtension.KMLLayerExtension.html +35 -97
- package/docs/html/classes/mapping_KMLSublayerExtension.KMLSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_MapConstraints.MapConstraints.html +12 -72
- package/docs/html/classes/mapping_MapExtension.MapExtension.html +13 -75
- package/docs/html/classes/mapping_MapImageLayerExtension.MapImageLayerExtension.html +35 -97
- package/docs/html/classes/mapping_MapImageSublayerExtension.MapImageSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_MapNotesLayerExtension.MapNotesLayerExtension.html +35 -97
- package/docs/html/classes/mapping_MapNotesSublayerExtension.MapNotesSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_MapNotesSublayerExtension.MapNotesSublayerExtensionSchema.html +13 -73
- package/docs/html/classes/mapping_MediaLayerExtension.MediaLayerExtension.html +35 -97
- package/docs/html/classes/mapping_OpenStreetMapLayerExtension.OpenStreetMapLayerExtension.html +35 -97
- package/docs/html/classes/mapping_PointCloudLayerExtension.PointCloudLayerExtension.html +35 -97
- package/docs/html/classes/mapping_RouteLayerExtension.RouteLayerExtension.html +35 -97
- package/docs/html/classes/mapping_RouteLayerExtension.RouteLayerExtensionSchema.html +13 -73
- package/docs/html/classes/mapping_SceneLayerExtension.SceneLayerExtension.html +35 -97
- package/docs/html/classes/mapping_StreamLayerExtension.StreamLayerExtension.html +35 -97
- package/docs/html/classes/mapping_StreamLayerExtension.StreamLayerSchema.html +13 -73
- package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerExtension.html +35 -97
- package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerRelationshipCollection.html +72 -16
- package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerSchema.html +13 -73
- package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerRelationshipCollection.html +72 -16
- package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerSchema.html +13 -73
- package/docs/html/classes/mapping_TileLayerExtension.TileLayerExtension.html +35 -97
- package/docs/html/classes/mapping_TileSublayerExtension.TileSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_UnsupportedLayerExtension.UnsupportedLayerExtension.html +35 -97
- package/docs/html/classes/mapping_VectorTileLayerExtension.VectorTileLayerExtension.html +35 -97
- package/docs/html/classes/mapping_WFSLayerExtension.WFSLayerExtension.html +35 -97
- package/docs/html/classes/mapping_WMSLayerExtension.WMSLayerExtension.html +35 -97
- package/docs/html/classes/mapping_WMSSublayerExtension.WMSSublayerExtension.html +35 -97
- package/docs/html/classes/mapping_WMTSLayerExtension.WMTSLayerExtension.html +35 -97
- package/docs/html/classes/mapping_WebTileLayerExtension.WebTileLayerExtension.html +35 -97
- package/docs/html/classes/mapping__LayerExtension.LayerExtension.html +35 -97
- package/docs/html/classes/mapping__LayerExtension.LayerExtensionReadOnlySchema.html +13 -73
- package/docs/html/classes/mapping__LayerExtension.LayerExtensionSchema.html +13 -73
- package/docs/html/classes/mapping__LayerExtensionCollectionImpl.LayerExtensionCollectionImpl.html +74 -23
- package/docs/html/classes/mapping__SublayerExtension.SubSublayerExtensionCollection.html +74 -23
- package/docs/html/classes/mapping__SublayerExtension.SublayerExtension.html +35 -97
- package/docs/html/classes/mapping__SublayerExtension.SublayerSchema.html +13 -73
- package/docs/html/classes/mapping_support_ArrayWrappedCollection.ArrayWrappedCollection.html +72 -16
- package/docs/html/classes/mapping_support_LayerListSettings.ExtensionBaseLayerListSettings.html +9 -71
- package/docs/html/classes/mapping_support_LayerListSettings.LayerListSettings.html +10 -72
- package/docs/html/classes/mapping_support__LayerExtensionCollection.LayerExtensionCollectionBase.html +77 -26
- package/docs/html/classes/mapping_support__SublayerExtensionCollection.SublayerExtensionCollectionBase.html +77 -26
- package/docs/html/classes/menus_Menu.Menu.html +13 -75
- package/docs/html/classes/menus_MenuItem.MenuItem.html +13 -75
- package/docs/html/classes/support_FormatSettings.FormatSettings.html +12 -72
- package/docs/html/classes/support_InitializableBase.InitializableBase.html +21 -83
- package/docs/html/classes/support_InitializableCollectionProxy.InitializableCollectionProxy.html +73 -17
- package/docs/html/classes/support_Observable.Observable.html +27 -26
- package/docs/html/classes/support_ReadOnlyInitializableCollection.ReadOnlyInitializableCollection.html +73 -17
- package/docs/html/classes/support_Serializable.SerializableBase.html +38 -32
- package/docs/html/classes/support_Settings.Settings.html +15 -75
- package/docs/html/classes/support__ArcGISRelationshipCollection.ArcGISRelationshipCollection.html +72 -16
- package/docs/html/classes/support_observableUtils.ObservableMixin.html +3 -0
- package/docs/html/classes/tasks_geocoding_ArcGISGeocoder.ArcGISGeocoder.html +35 -97
- package/docs/html/classes/tasks_geocoding_Geocoder.Geocoder.html +33 -95
- package/docs/html/classes/tasks_identify_IdentifyService.IdentifyService.html +11 -73
- package/docs/html/classes/tasks_query_ArcGISRelationship.ArcGISRelationship.html +36 -30
- package/docs/html/classes/tasks_query_QueryBasedRelationship.QueryBasedRelationship.html +36 -30
- package/docs/html/classes/tasks_query_QueryService.QueryService.html +11 -73
- package/docs/html/classes/tasks_search_SearchService.SearchService.html +12 -74
- package/docs/html/classes/utilities_CaseInsensitiveObservableMap.CaseInsensitiveObservableMap.html +24 -27
- package/docs/html/classes/utilities_CollectionProxy.CollectionProxy.html +73 -17
- package/docs/html/classes/utilities_CopyOnWriteCollection.CopyOnWriteCollection.html +72 -16
- package/docs/html/classes/utilities_MapTransformCollection.MapTransformCollection.html +72 -16
- package/docs/html/classes/utilities_ObservableMap.ObservableMap.html +26 -32
- package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +38 -32
- package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +44 -42
- package/docs/html/classes/utilities_ReadOnlyCollection.ReadOnlyCollection.html +72 -16
- package/docs/html/classes/utilities_ReadOnlyMap.ReadOnlyMap.html +23 -29
- package/docs/html/classes/utilities_format_date.DateFormatter.html +37 -31
- package/docs/html/classes/utilities_format_number.NumberFormatter.html +37 -31
- package/docs/html/classes/utilities_format_time.TimeFormatter.html +37 -31
- package/docs/html/functions/support_Observable.deprecatedGetPropertyPath.html +7 -0
- package/docs/html/functions/support_Observable.deprecatedNotifyChange.html +5 -0
- package/docs/html/functions/support_Observable.deprecatedSet.html +9 -0
- package/docs/html/functions/support_Observable.deprecatedWatch.html +9 -0
- package/docs/html/functions/support_Observable.deprecatedWatchProperty.html +14 -0
- package/docs/html/functions/support_Observable.getPropertyByPath.html +3 -2
- package/docs/html/functions/support_observableUtils.createIHandle.html +8 -0
- package/docs/html/functions/support_observableUtils.notifyChange.html +8 -0
- package/docs/html/functions/support_observableUtils.observable-1.html +31 -0
- package/docs/html/functions/support_observableUtils.onWatch.html +14 -0
- package/docs/html/functions/support_observableUtils.once.html +11 -0
- package/docs/html/functions/support_observableUtils.watch.html +24 -0
- package/docs/html/functions/support_observableUtils.watchEach.html +33 -0
- package/docs/html/functions/support_observableUtils.watchEvent.html +12 -0
- package/docs/html/functions/support_observableUtils.when.html +9 -0
- package/docs/html/functions/support_observableUtils.whenOnce.html +9 -0
- package/docs/html/functions/utilities__layer_preset.createFlattenedLayerXList.html +5 -0
- package/docs/html/functions/utilities__layer_preset.createRef.html +5 -0
- package/docs/html/functions/utilities__layer_preset.getBackingLayer.html +6 -0
- package/docs/html/functions/utilities__layer_preset.isIterable.html +4 -0
- package/docs/html/functions/utilities__layer_preset.isLayerRefEqual.html +5 -0
- package/docs/html/functions/utilities__layer_preset.isSublayerRefEqual.html +7 -0
- package/docs/html/functions/utilities__layer_preset.toMapExtension.html +4 -0
- package/docs/html/functions/utilities_checkArg.checkArg.html +1 -1
- package/docs/html/functions/utilities_watch.onCollectionPropertyChange.html +6 -1
- package/docs/html/functions/utilities_watch.watchCollectionPropertyEach.html +5 -4
- package/docs/html/functions/utilities_watch.watchEach.html +8 -6
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/interfaces/data_ArcGISServiceTableExtension.ArcGISServiceTableExtensionProperties.html +1 -1
- package/docs/html/interfaces/data_Feature.PresentableAttributes.html +24 -30
- package/docs/html/interfaces/data_Schema.SchemaProperties.html +2 -2
- package/docs/html/interfaces/data__Relationship.Relationship-1.html +35 -29
- package/docs/html/interfaces/data__TableExtension.TableExtensionProperties.html +1 -1
- package/docs/html/interfaces/json_AnnotationLayerJson.AnnotationLayerJson.html +2 -2
- package/docs/html/interfaces/json_BasemapLayerJson.BasemapLayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_BingLayerJson.BingLayerJson.html +2 -2
- package/docs/html/interfaces/json_BuildingSceneLayerJson.BuildingSceneLayerJson.html +2 -2
- package/docs/html/interfaces/json_CSVLayerJson.CSVLayerJson.html +2 -2
- package/docs/html/interfaces/json_FeatureLayerJson.FeatureLayerJson.html +2 -2
- package/docs/html/interfaces/json_GeoJSONLayerJson.GeoJSONLayerJson.html +2 -2
- package/docs/html/interfaces/json_GeoRSSLayerJson.GeoRSSLayerJson.html +2 -2
- package/docs/html/interfaces/json_GroupLayerJson.GroupLayerJson.html +2 -2
- package/docs/html/interfaces/json_ImageServiceLayerJson.ImageServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_ImageServiceVectorLayerJson.ImageServiceVectorLayerJson.html +2 -2
- package/docs/html/interfaces/json_IntegratedMeshLayerJson.IntegratedMeshLayerJson.html +2 -2
- package/docs/html/interfaces/json_ItemJson.ItemJson.html +2 -2
- package/docs/html/interfaces/json_KMLLayerJson.KMLLayerJson.html +2 -2
- package/docs/html/interfaces/json_LayerJson.LayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_MapServiceLayerJson.MapServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_MediaLayerJson.MediaLayerJson.html +2 -2
- package/docs/html/interfaces/json_OpenStreetMapLayerJson.OpenStreetMapLayerJson.html +2 -2
- package/docs/html/interfaces/json_OperationalLayerJson.OperationalLayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_PointCloudLayerJson.PointCloudLayerJson.html +2 -2
- package/docs/html/interfaces/json_RasterDataElevationLayerJson.RasterDataElevationLayerJson.html +2 -2
- package/docs/html/interfaces/json_SceneLayerJson.SceneLayerJson.html +2 -2
- package/docs/html/interfaces/json_StreamLayerJson.StreamLayerJson.html +2 -2
- package/docs/html/interfaces/json_SubtypeGroupLayerJson.SubtypeGroupLayerJson.html +2 -2
- package/docs/html/interfaces/json_SubtypeGroupLayerJson.SubtypeSubtypeGroupLayerJson.html +2 -2
- package/docs/html/interfaces/json_SubtypeSublayerJson.SubtypeSublayerJson.html +2 -2
- package/docs/html/interfaces/json_TiledElevationServiceLayerJson.TiledElevationServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_TiledImageServiceLayerJson.TiledImageServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_TiledMapServiceLayerJson.TiledMapServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_VectorTileLayerJson.VectorTileLayerJson.html +2 -2
- package/docs/html/interfaces/json_WFSLayerJson.WFSLayerJson.html +2 -2
- package/docs/html/interfaces/json_WMSLayerJson.WMSLayerJson.html +2 -2
- package/docs/html/interfaces/json_WebTileLayerJson.WebTileLayerJson.html +2 -2
- package/docs/html/interfaces/mapping_ArcGISSublayerExtension.ArcGISSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_BuildingComponentSublayerExtension.BuildingComponentSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_BuildingGroupSublayerExtension.BuildingGroupSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerProperties.html +2 -2
- package/docs/html/interfaces/mapping_BuildingSublayerExtension.BuildingSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_CSVLayerExtension.CSVLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_ElevationLayerExtension.ElevationLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerProperties.html +2 -2
- package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerBaseProperties.html +2 -2
- package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerExtensionBaseProperties.html +1 -1
- package/docs/html/interfaces/mapping_GeoJSONLayerExtension.GeoJSONLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_GeoRSSLayerExtension.GeoRSSLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_GraphicsLayerExtension.GraphicsLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_GroupLayerExtension.GroupLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_ImageryLayerExtension.ImageryLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_ImageryTileLayerExtension.ImageryTileLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_IntegratedMeshLayerExtension.IntegratedMeshLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_KMLLayerExtension.KMLLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_KMLSublayerExtension.KMLSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_MapExtension.MapExtensionProperties.html +3 -3
- package/docs/html/interfaces/mapping_MapImageLayerExtension.MapImageLayerExtensionProperties.html +4 -4
- package/docs/html/interfaces/mapping_MapImageSublayerExtension.MapImageSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_MapNotesLayerExtension.MapNotesLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_MapNotesSublayerExtension.MapNotesSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_MediaLayerExtension.MediaLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_OpenStreetMapLayerExtension.OpenStreetMapLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerProperties.html +2 -2
- package/docs/html/interfaces/mapping_RouteLayerExtension.RouteLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_SceneLayerExtension.SceneLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_StreamLayerExtension.StreamLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_SubtypeSublayerExtension.SubtypeSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_TileLayerExtension.TileLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_TileSublayerExtension.TileSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_VectorTileLayerExtension.VectorTileLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_WFSLayerExtension.WFSLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_WMSLayerExtension.WMSLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_WMSSublayerExtension.WMSSublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_WMTSLayerExtension.WMTSLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_WebTileLayerExtension.WebTileLayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping__LayerExtension.LayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping__SublayerExtension.SublayerExtensionProperties.html +1 -1
- package/docs/html/interfaces/mapping_support_ArrayWrappedCollection.ArrayWrappedCollectionProperties.html +3 -3
- package/docs/html/interfaces/support_InitializableBase.Initializable.html +1 -1
- package/docs/html/interfaces/support_Observable.IDeprecatedObservable.html +57 -0
- package/docs/html/interfaces/support_Serializable.Serializable.html +60 -5
- package/docs/html/interfaces/support_esri.SublayerLike.html +2 -29
- package/docs/html/interfaces/support_observableUtils.IHandle.html +9 -0
- package/docs/html/interfaces/support_observableUtils.WatchEachOptions.html +29 -0
- package/docs/html/interfaces/support_observableUtils.WatchOptions.html +26 -0
- package/docs/html/interfaces/utilities_collection.AfterItemChangeEvent.html +4 -0
- package/docs/html/modules/support_Observable.html +8 -2
- package/docs/html/modules/support_esri.html +4 -3
- package/docs/html/modules/support_observableUtils.html +20 -0
- package/docs/html/modules/utilities_ObservableWeakSet.html +1 -1
- package/docs/html/modules/utilities__layer_preset.html +8 -0
- package/docs/html/modules/utilities_collection.html +1 -0
- package/docs/html/modules/utilities_layer_preset.html +7 -0
- package/docs/html/modules/utilities_layers.html +3 -2
- package/docs/html/modules/utilities_watch.html +4 -4
- package/docs/html/modules.html +3 -0
- package/docs/html/types/support_esri.CollectionAfterEvent.html +1 -0
- package/docs/html/types/support_esri.CollectionAfterItemEvent.html +1 -1
- package/docs/html/types/support_esri.CollectionEvent.html +1 -0
- package/docs/html/types/support_esri.CollectionItemEvent.html +1 -0
- package/docs/html/types/support_observableUtils.Observable.html +5 -0
- package/docs/html/types/support_observableUtils.ObservablePropertyPath.html +9 -0
- package/docs/html/types/support_observableUtils.TargetTypeFromPath.html +14 -0
- package/docs/html/types/support_observableUtils.ValueTypeFromPath.html +14 -0
- package/docs/html/types/support_observableUtils.WhenOptions.html +7 -0
- package/docs/html/types/utilities_watch.WatchCallback.html +3 -0
- package/docs/html/variables/version.version.html +1 -1
- package/layer-preset/LayerPreset.d.ts +1 -1
- package/layer-preset/LayerPreset.js +1 -1
- package/mapping/ArcGISSublayerExtension.js +1 -1
- package/mapping/BasemapExtension.d.ts +1 -1
- package/mapping/BasemapExtension.js +1 -1
- package/mapping/BuildingComponentSublayerExtension.js +1 -1
- package/mapping/CSVLayerExtension.js +1 -1
- package/mapping/FeatureLayerExtension.js +1 -1
- package/mapping/FeatureLayerExtensionBase.js +1 -1
- package/mapping/GeoJSONLayerExtension.js +1 -1
- package/mapping/GeoRSSLayerExtension.js +1 -1
- package/mapping/GraphicsLayerExtension.js +1 -1
- package/mapping/GroundExtension.js +1 -1
- package/mapping/GroupLayerExtension.js +1 -1
- package/mapping/ImageryLayerExtension.js +1 -1
- package/mapping/KMLLayerExtension.js +1 -1
- package/mapping/MapExtension.d.ts +1 -1
- package/mapping/MapExtension.js +1 -1
- package/mapping/MapNotesSublayerExtension.js +1 -1
- package/mapping/PointCloudLayerExtension.js +1 -1
- package/mapping/RouteLayerExtension.js +1 -1
- package/mapping/SceneLayerExtension.js +1 -1
- package/mapping/StreamLayerExtension.js +1 -1
- package/mapping/SubtypeGroupLayerExtension.js +1 -1
- package/mapping/SubtypeSublayerExtension.js +1 -1
- package/mapping/WFSLayerExtension.js +1 -1
- package/mapping/WMTSLayerExtension.js +1 -1
- package/mapping/_LayerExtension.js +1 -1
- package/mapping/_SublayerExtension.d.ts +1 -1
- package/mapping/_SublayerExtension.js +1 -1
- package/mapping/support/ArrayWrappedCollection.d.ts +3 -3
- package/mapping/support/ArrayWrappedCollection.js +1 -1
- package/mapping/support/LayerListSettings.d.ts +3 -1
- package/mapping/support/LayerListSettings.js +1 -1
- package/mapping/support/PopupTemplateFeatureSettings.js +1 -1
- package/mapping/support/_LayerExtensionCollection.d.ts +19 -4
- package/mapping/support/_LayerExtensionCollection.js +1 -1
- package/mapping/support/_SublayerExtensionCollection.d.ts +19 -4
- package/mapping/support/_SublayerExtensionCollection.js +1 -1
- package/package.json +1 -1
- package/portal/BuildingSceneLayer.js +1 -1
- package/portal/SubtypeGroupLayer.js +1 -1
- package/portal/WMSLayer.js +1 -1
- package/support/InitializableBase.d.ts +12 -3
- package/support/InitializableBase.js +1 -1
- package/support/InitializeError.js +1 -1
- package/support/Observable.d.ts +164 -14
- package/support/Observable.js +1 -1
- package/support/Serializable.d.ts +40 -3
- package/support/Serializable.js +1 -1
- package/support/Settings.d.ts +6 -7
- package/support/Settings.js +1 -1
- package/support/esri.d.ts +6 -52
- package/support/observableUtils.d.ts +560 -0
- package/support/observableUtils.js +1 -0
- package/tasks/geocoding/ArcGISGeocoder.js +1 -1
- package/tasks/query/ClientSideQueryProvider.js +1 -1
- package/utilities/CollectionProxy.d.ts +54 -23
- package/utilities/CollectionProxy.js +1 -1
- package/utilities/MapTransformCollection.js +1 -1
- package/utilities/ObservableMap.d.ts +35 -4
- package/utilities/ObservableMap.js +1 -1
- package/utilities/ObservableSet.d.ts +44 -3
- package/utilities/ObservableSet.js +1 -1
- package/utilities/ObservableWeakSet.d.ts +3 -0
- package/utilities/ReadOnlyMap.d.ts +15 -2
- package/utilities/ReadOnlyMap.js +1 -1
- package/utilities/_layer-preset.d.ts +65 -0
- package/utilities/_layer-preset.js +1 -0
- package/utilities/collection.d.ts +9 -0
- package/utilities/collection.js +1 -1
- package/utilities/layer-preset.d.ts +1 -0
- package/utilities/layer-preset.js +1 -0
- package/utilities/layers.d.ts +1 -1
- package/utilities/layers.js +1 -1
- package/utilities/watch.d.ts +25 -7
- package/utilities/watch.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/docs/html/interfaces/support_esri.AccessorLike.html +0 -29
- package/docs/html/types/support_esri.WatchCallback.html +0 -3
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import type Collection from "@arcgis/core/core/Collection";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
watch(path: string | string[], callback: WatchCallback<T>, sync: boolean | undefined): IHandle;
|
|
7
|
-
}
|
|
8
|
-
type CollectionCompatibleObservableConstructor = new () => CollectionCompatibleObservable<unknown>;
|
|
2
|
+
import Evented from "@arcgis/core/core/Evented.js";
|
|
3
|
+
import { type IDeprecatedObservable } from "../support/Observable.js";
|
|
4
|
+
import type { ItemCallback, ItemCompareCallback, ItemMapCallback, ItemReduceCallback, ItemTestCallback, CollectionAfterAddEventHandler, CollectionChangeEventHandler, CollectionAfterChangesEventHandler, CollectionAfterRemoveEventHandler, CollectionBeforeAddEventHandler, CollectionBeforeChangesEventHandler, CollectionBeforeRemoveEventHandler, EventHandler } from "../support/esri.js";
|
|
5
|
+
import type { WatchCallback } from "./watch.js";
|
|
9
6
|
/**
|
|
10
7
|
* Merge typings of Collection and CollectionProxy.
|
|
11
8
|
*/
|
|
12
9
|
export interface CollectionProxy<T> extends Collection<T> {
|
|
13
10
|
}
|
|
14
|
-
declare const CollectionProxy_base:
|
|
11
|
+
declare const CollectionProxy_base: typeof Evented & (abstract new (...args: any[]) => import("../support/observableUtils.js").ObservableMixin);
|
|
15
12
|
/**
|
|
16
13
|
* Base class for implementing a Collection proxy, i.e. a class that wraps an
|
|
17
14
|
* existing collection and provides additional functionality or logic. The
|
|
@@ -21,7 +18,8 @@ declare const CollectionProxy_base: CollectionCompatibleObservableConstructor;
|
|
|
21
18
|
* that need to implement special add/remove logic only need to override those
|
|
22
19
|
* methods.
|
|
23
20
|
*/
|
|
24
|
-
export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
21
|
+
export declare abstract class CollectionProxy<T> extends CollectionProxy_base implements Omit<Collection<T>, "notifyChange">, IDeprecatedObservable {
|
|
22
|
+
private readonly _handles;
|
|
25
23
|
/**
|
|
26
24
|
* The number of items in the collection.
|
|
27
25
|
*/
|
|
@@ -49,7 +47,6 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
49
47
|
private _destroyed;
|
|
50
48
|
private _initialized;
|
|
51
49
|
private _collectionField;
|
|
52
|
-
private readonly _collectionChangeHandle;
|
|
53
50
|
/**
|
|
54
51
|
* Initializes a new instance of the
|
|
55
52
|
* {@link utilities/CollectionProxy!CollectionProxy} class.
|
|
@@ -92,7 +89,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
92
89
|
*/
|
|
93
90
|
concat(value: T[] | Collection<T>): Collection<T>;
|
|
94
91
|
/**
|
|
95
|
-
*
|
|
92
|
+
* Removes all event listeners and destroys the collection.
|
|
96
93
|
*/
|
|
97
94
|
destroy(): void;
|
|
98
95
|
/**
|
|
@@ -151,6 +148,13 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
151
148
|
* @param callback The function to call for each item in the Collection.
|
|
152
149
|
*/
|
|
153
150
|
forEach(callback: ItemCallback<T>): void;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the item at the specified index.
|
|
153
|
+
*
|
|
154
|
+
* @param index Zero-based index of the item in the Collection to retrieve.
|
|
155
|
+
* @returns The item in the Collection stored at the specified index.
|
|
156
|
+
*/
|
|
157
|
+
at(index: number): T | undefined;
|
|
154
158
|
/**
|
|
155
159
|
* Returns the item at the specified index.
|
|
156
160
|
*
|
|
@@ -207,10 +211,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
207
211
|
on(type: "before-changes", listener: CollectionBeforeChangesEventHandler): IHandle;
|
|
208
212
|
on(type: "before-remove", listener: CollectionBeforeRemoveEventHandler<T>): IHandle;
|
|
209
213
|
on(type: "change", listener: CollectionChangeEventHandler<T>): IHandle;
|
|
210
|
-
|
|
211
|
-
* @inheritdoc
|
|
212
|
-
*/
|
|
213
|
-
watch(path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
214
|
+
on(type: string, listener: EventHandler): IHandle;
|
|
214
215
|
/**
|
|
215
216
|
* Removes the last item from the collection and returns it.
|
|
216
217
|
*/
|
|
@@ -329,17 +330,47 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
329
330
|
*/
|
|
330
331
|
unshift(item: T): number;
|
|
331
332
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* @param propertyName The property.
|
|
333
|
+
* @deprecated
|
|
334
|
+
* @inheritdoc
|
|
335
335
|
*/
|
|
336
|
-
|
|
336
|
+
set<T>(propertyPath: string, value: T): this;
|
|
337
337
|
/**
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
* @param propertyName The property.
|
|
341
|
-
* @param value The value.
|
|
338
|
+
* @deprecated
|
|
339
|
+
* @inheritdoc
|
|
342
340
|
*/
|
|
341
|
+
set(properties: HashMap<unknown>): this;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated
|
|
344
|
+
* @inheritdoc
|
|
345
|
+
*/
|
|
346
|
+
get<T>(propertyPath: string): T;
|
|
347
|
+
/**
|
|
348
|
+
* @deprecated
|
|
349
|
+
* @inheritdoc
|
|
350
|
+
*/
|
|
351
|
+
get(propertyPath: string): unknown;
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated
|
|
354
|
+
* @inheritdoc
|
|
355
|
+
*/
|
|
356
|
+
watch(path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
357
|
+
/**
|
|
358
|
+
* @deprecated
|
|
359
|
+
* @inheritdoc
|
|
360
|
+
*/
|
|
361
|
+
notifyChange(propertyKey: string): void;
|
|
362
|
+
notifyChange(propertyKey: keyof this): void;
|
|
363
|
+
/**
|
|
364
|
+
* @deprecated
|
|
365
|
+
* @inheritdoc
|
|
366
|
+
*/
|
|
367
|
+
_watchProperty(propertyKey: keyof this, subpath: string, callback: WatchCallback, sync: boolean): IHandle;
|
|
368
|
+
addHandles<T>(handles: IHandle | IHandle[], groupKey?: GroupKey<T>): void;
|
|
369
|
+
removeHandles<T>(groupKey?: GroupKey<T>): void;
|
|
370
|
+
hasHandles<T>(groupKey?: GroupKey<T>): boolean;
|
|
371
|
+
protected _get(propertyName: string): any;
|
|
372
|
+
protected _get<T>(propertyName: string): T;
|
|
343
373
|
protected _set<T>(propertyName: string, value: T): this;
|
|
374
|
+
private _addForwardingEvents;
|
|
344
375
|
}
|
|
345
376
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import e from"@arcgis/core/core/Evented.js";import{deprecatedGetPropertyPath as t,deprecatedNotifyChange as i,deprecatedSet as o,deprecatedWatch as r,deprecatedWatchProperty as n}from"../support/Observable.js";import{notifyChange as s,observable as l,onWatch as c,watch as h}from"../support/observableUtils.js";import{_generateChangeEvent as d}from"./collection.js";const a="collection-proxy-collection-change-handles";export class CollectionProxy extends(l(e)){_handles=new Map;get length(){return this._collection.length}get declaredClass(){return"esri.core.Collection"}get destroyed(){return this._destroyed}set destroyed(e){this._destroyed=e}get initialized(){return this._initialized}set initialized(e){this._initialized=e}get _collection(){if(void 0===this._collectionField)throw new Error("CollectionProxy requires a backing collection.");return this._collectionField}set _collection(e){if(this._collectionField===e)return;const t=this._collectionField;this.removeHandles(a);const i=d(t,e);if(null!=i){for(const e of i.added){const t={item:e,cancellable:!1,defaultPrevented:!1,preventDefault:()=>{},target:this};this.emit("before-add",t)}for(const e of i.removed){const t={item:e,cancellable:!1,defaultPrevented:!1,preventDefault:()=>{},target:this};this.emit("before-remove",t)}this.emit("before-changes",{cancellable:!1,defaultPrevented:!1,preventDefault:()=>{},target:this})}if(this._collectionField=e,this._addForwardingEvents(),null!=i){this.emit("change",i);for(const e of i.added)this.emit("after-add",{item:e,target:this});for(const e of i.removed)this.emit("after-remove",{item:e,target:this});this.emit("after-changes")}s(this,"length")}_destroyed=!1;_initialized=!0;_collectionField;constructor(e){super(),this._collectionField=e,this._addForwardingEvents()}*[Symbol.iterator](){for(const e of this._collection)yield e}add(e,t){return this._collection.add(e,t),this}addMany(e,t){if(!e)return this;if(arguments.length>1){let i=t;for(let t=0;t<e.length;t++)"function"==typeof e.getItemAt?this.add(e.getItemAt(t),i++):this.add(e[t],i++)}else for(let t=0;t<e.length;t++)"function"==typeof e.getItemAt?this.add(e.getItemAt(t)):this.add(e[t]);return this}clone(){const e=Object.create(Object.getPrototypeOf(this));return e._collection=this._collection,e}concat(e){return this._collection.concat(e)}destroy(){this.removeHandles(),this._destroyed=!0,this._initialized=!1,this._collection.destroy()}every(e){return this._collection.every(e)}filter(e){return this._collection.filter(e)}find(e){return this._collection.find(e)}findIndex(e){return this._collection.findIndex(e)}flatten(e){return this._collection.flatten(e)}forEach(e){return this._collection.forEach(e)}at(e){return this.getItemAt(e)}getItemAt(e){return this._collection.getItemAt(e)}includes(e){return this._collection.includes(e)}indexOf(e,t){return this._collection.indexOf(e,t)}join(e){return this._collection.join(e)}lastIndexOf(e,t){return this._collection.lastIndexOf(e,t)}map(e){return this._collection.map(e)}on(e,t){return super.on(e,t)}pop(){return this.removeAt(this.length-1)}push(e){return this.add(e,this.length),this.length}reduce(e,t){return this._collection.reduce(e,t)}reduceRight(e,t){return this._collection.reduceRight(e,t)}remove(e){return this.removeAt(this.indexOf(e))}removeAll(){const e=[];for(;this.length;){const t=this.pop();t&&e.push(t)}return e}removeAt(e){return this._collection.removeAt(e)}removeMany(e){const t=[];for(let i=0;i<e.length;i++){const o="function"==typeof e.getItemAt?e.getItemAt(i):e[i],r=this.indexOf(o);if(r>=0){const e=this.removeAt(r);e&&t.push(e)}}return t}reorder(e,t){return this._collection.reorder(e,t)}reverse(){return this._collection.reverse(),this}shift(){return this.removeAt(0)}slice(e,t){return this._collection.slice(e,t)}some(e){return this._collection.some(e)}sort(e){return this._collection.sort(e),this}splice(e,t,...i){const o=[];for(let i=t;i>0;i--){const t=this.removeAt(e);t&&o.push(t)}let r=e;return i.forEach((e=>{this.add(e,r),r++})),o}toArray(){return this._collection.toArray()}unshift(e){return this.add(e,0),this.length}set(e,t){return o(this,e,t)}get(e){return t(this,e)}watch(e,t,i){return r(this,e,t,i)}notifyChange(e){i(this,e)}_watchProperty(e,t,i,o){return n(this,e,t,i,o)}addHandles(e,t){const i=Array.isArray(e)?e:[e],o=t??"default";this._handles.has(o)||this._handles.set(o,[]),this._handles.get(o).push(...i)}removeHandles(e){if(null==e)for(const e of this._handles.values())for(const t of e)t.remove();else{const t=this._handles.get(e);if(null!=t){for(const e of t)e.remove();this._handles.delete(e)}}}hasHandles(e){return null==e?this._handles.size>0:this._handles.has(e)}_get(e){return this.get(e)}_set(e,t){return this.set(e,t)}_addForwardingEvents(){null!=this._collectionField&&this.addHandles([this._collectionField.on("before-add",(e=>this.emit("before-add",e))),this._collectionField.on("before-changes",(e=>this.emit("before-changes",e))),this._collectionField.on("before-remove",(e=>this.emit("before-remove",e))),this._collectionField.on("change",(e=>this.emit("change",e))),this._collectionField.on("after-add",(e=>this.emit("after-add",e))),this._collectionField.on("after-changes",(e=>this.emit("after-changes",e))),this._collectionField.on("after-remove",(e=>this.emit("after-remove",e))),c(this,"length",(()=>h(this._collectionField,"length",(()=>s(this,"length")),{sync:!0})))],a)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{onWatch as e,watch as t,notifyChange as i}from"../support/observableUtils.js";import{ReadOnlyCollection as a}from"./ReadOnlyCollection.js";export class MapTransformCollection extends a{get _collection(){return this._originalCollection.map(this._callback)}_callback;_originalCollection;constructor(a,s){super(),this._callback=s,this._originalCollection=a,a.on("change",(e=>{this.hasEventListener("change")&&this.emit("change",{added:e.added.map(this._callback),removed:e.removed.map(this._callback),moved:e.moved.map(this._callback),target:this})})),a.on("before-add",(e=>{this.hasEventListener("before-add")&&this.emit("before-add",{...e,item:this._callback(e.item),target:this})})),a.on("before-remove",(e=>{this.hasEventListener("before-remove")&&this.emit("before-remove",{...e,item:this._callback(e.item),target:this})})),a.on("before-changes",(e=>{this.hasEventListener("before-changes")&&this.emit("before-changes",{...e,target:this})})),a.on("after-add",(e=>{this.hasEventListener("after-add")&&this.emit("after-add",{...e,item:this._callback(e.item),target:this})})),a.on("after-remove",(e=>{this.hasEventListener("after-remove")&&this.emit("after-remove",{...e,item:this._callback(e.item),target:this})})),a.on("after-changes",(e=>{this.hasEventListener("after-changes")&&this.emit("after-changes",{...e,target:this})})),e(this,"length",(()=>t(this._originalCollection,"length",(()=>i(this,"length")),{sync:!0})))}}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Evented from "@arcgis/core/core/Evented.js";
|
|
2
|
+
import { type IDeprecatedObservable } from "../support/Observable.js";
|
|
2
3
|
import type { EventHandler } from "../support/esri.js";
|
|
4
|
+
import type { AfterItemChangeEvent } from "./collection.js";
|
|
5
|
+
import type { WatchCallback } from "./watch.js";
|
|
3
6
|
/**
|
|
4
7
|
* Raised when items are added or removed from an {@link ObservableMap}.
|
|
5
8
|
*/
|
|
@@ -17,14 +20,15 @@ export interface MapChangeEvent<K, V> {
|
|
|
17
20
|
*/
|
|
18
21
|
target: ObservableMap<K, V>;
|
|
19
22
|
}
|
|
23
|
+
declare const ObservableMap_base: typeof Evented & (abstract new (...args: any[]) => import("../support/observableUtils.js").ObservableMixin);
|
|
20
24
|
/**
|
|
21
25
|
* A Map that supports observability.
|
|
22
26
|
*/
|
|
23
|
-
export declare class ObservableMap<K, V> extends
|
|
27
|
+
export declare class ObservableMap<K, V> extends ObservableMap_base implements Map<K, V>, IDeprecatedObservable {
|
|
24
28
|
/**
|
|
25
29
|
* Used by Object.toString().
|
|
26
30
|
*/
|
|
27
|
-
readonly [Symbol.toStringTag]
|
|
31
|
+
readonly [Symbol.toStringTag] = "ObservableMap";
|
|
28
32
|
/**
|
|
29
33
|
* The number of elements.
|
|
30
34
|
*/
|
|
@@ -53,6 +57,9 @@ export declare class ObservableMap<K, V> extends Observable implements Map<K, V>
|
|
|
53
57
|
*/
|
|
54
58
|
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: unknown): void;
|
|
55
59
|
get(key: K): V;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated
|
|
62
|
+
*/
|
|
56
63
|
get(property: unknown): unknown;
|
|
57
64
|
/**
|
|
58
65
|
* Indicates whether or not an element with the specified key exists.
|
|
@@ -60,9 +67,15 @@ export declare class ObservableMap<K, V> extends Observable implements Map<K, V>
|
|
|
60
67
|
* @param key The key to test for.
|
|
61
68
|
*/
|
|
62
69
|
has(key: K): boolean;
|
|
70
|
+
set(key: K, value: V): this;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated
|
|
73
|
+
*/
|
|
63
74
|
set(property: unknown, value: unknown): this;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
*/
|
|
64
78
|
set(properties: unknown): this;
|
|
65
|
-
set(key: K, value?: V): this;
|
|
66
79
|
/**
|
|
67
80
|
* Returns the `[key, value]` pairs for each element in the map in insertion
|
|
68
81
|
* order.
|
|
@@ -86,5 +99,23 @@ export declare class ObservableMap<K, V> extends Observable implements Map<K, V>
|
|
|
86
99
|
*/
|
|
87
100
|
toJSON(): unknown;
|
|
88
101
|
on(name: "change", callback: (event: MapChangeEvent<K, V>) => void): IHandle;
|
|
102
|
+
on(name: "after-add", callback: (event: AfterItemChangeEvent<ObservableMap<K, V>, [K, V]>) => void): IHandle;
|
|
103
|
+
on(name: "after-remove", callback: (event: AfterItemChangeEvent<ObservableMap<K, V>, [K, V]>) => void): IHandle;
|
|
89
104
|
on(name: string, callback: EventHandler): IHandle;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated
|
|
107
|
+
* @inheritdoc
|
|
108
|
+
*/
|
|
109
|
+
watch(path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated
|
|
112
|
+
* @inheritdoc
|
|
113
|
+
*/
|
|
114
|
+
notifyChange(propertyKey: keyof this): void;
|
|
115
|
+
/**
|
|
116
|
+
* @deprecated
|
|
117
|
+
* @inheritdoc
|
|
118
|
+
*/
|
|
119
|
+
_watchProperty(propertyKey: keyof this, subpath: string, callback: WatchCallback, sync: boolean): IHandle;
|
|
90
120
|
}
|
|
121
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import t from"@arcgis/core/core/Evented.js";import{deprecatedNotifyChange as e,deprecatedWatch as r,deprecatedWatchProperty as i}from"../support/Observable.js";import{notifyChange as s,observable as a}from"../support/observableUtils.js";import{toJSON as o}from"./object.js";export class ObservableMap extends(a(t)){[Symbol.toStringTag]="ObservableMap";get size(){return this._originalMap.size}_originalMap;constructor(){super(),this._originalMap=new Map}clear(){if(!this.size)return;const t=Array.from(this.entries());if(this._originalMap.clear(),s(this,"size"),this.hasEventListener("after-remove"))for(const[e,r]of t)this.emit("after-remove",{item:[e,r],target:this});this.emit("change",{added:[],removed:t,target:this})}delete(t){if(!this.has(t))return!1;const e=this.get(t);return this._originalMap.delete(t),s(this,"size"),this.emit("after-remove",{item:[t,e],target:this}),this.emit("change",{added:[],removed:[[t,e]],target:this}),!0}forEach(t,e){this._originalMap.forEach(t,e)}get(t){return this._originalMap.get(t)}has(t){return this._originalMap.has(t)}set(t,e){const r=!this.has(t),i=this.get(t);return this._originalMap.set(t,e),s(this,"size"),r||this.emit("after-remove",{item:[t,i],target:this}),this.emit("after-add",{item:[t,e],target:this}),this.emit("change",{added:[[t,e]],removed:r?[]:[[t,i]],target:this}),this}entries(){return this._originalMap.entries()}keys(){return this._originalMap.keys()}values(){return this._originalMap.values()}[Symbol.iterator](){return this._originalMap[Symbol.iterator]()}toJSON(){return o([...this])}on(t,e){return super.on(t,e)}watch(t,e,i){return r(this,t,e,i)}notifyChange(t){e(this,t)}_watchProperty(t,e,r,s){return i(this,t,e,r,s)}}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Evented from "@arcgis/core/core/Evented.js";
|
|
2
|
+
import { type IDeprecatedObservable } from "../support/Observable.js";
|
|
2
3
|
import type { EventHandler } from "../support/esri.js";
|
|
3
|
-
import type { ChangeEvent } from "./collection.js";
|
|
4
|
+
import type { AfterItemChangeEvent, ChangeEvent } from "./collection.js";
|
|
5
|
+
import type { WatchCallback } from "./watch.js";
|
|
6
|
+
declare const ObservableSet_base: typeof Evented & (abstract new (...args: any[]) => import("../support/observableUtils.js").ObservableMixin);
|
|
4
7
|
/**
|
|
5
8
|
* A Set that supports observability.
|
|
6
9
|
*/
|
|
7
|
-
export declare class ObservableSet<T> extends
|
|
10
|
+
export declare class ObservableSet<T> extends ObservableSet_base implements Set<T>, IDeprecatedObservable {
|
|
8
11
|
/**
|
|
9
12
|
* Used by Object.toString().
|
|
10
13
|
*/
|
|
@@ -82,5 +85,43 @@ export declare class ObservableSet<T> extends Observable implements Set<T> {
|
|
|
82
85
|
*/
|
|
83
86
|
toJSON(): unknown;
|
|
84
87
|
on(name: "change", callback: (event: ChangeEvent<T>) => void): IHandle;
|
|
88
|
+
on(name: "after-add", callback: (event: AfterItemChangeEvent<this, T>) => void): IHandle;
|
|
89
|
+
on(name: "after-remove", callback: (event: AfterItemChangeEvent<this, T>) => void): IHandle;
|
|
85
90
|
on(name: string, callback: EventHandler): IHandle;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated
|
|
93
|
+
* @inheritdoc
|
|
94
|
+
*/
|
|
95
|
+
set<T>(propertyPath: string, value: T): this;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated
|
|
98
|
+
* @inheritdoc
|
|
99
|
+
*/
|
|
100
|
+
set(properties: HashMap<unknown>): this;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
* @inheritdoc
|
|
104
|
+
*/
|
|
105
|
+
get<T>(propertyPath: string): T;
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated
|
|
108
|
+
* @inheritdoc
|
|
109
|
+
*/
|
|
110
|
+
get(propertyPath: string): unknown;
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated
|
|
113
|
+
* @inheritdoc
|
|
114
|
+
*/
|
|
115
|
+
watch(path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated
|
|
118
|
+
* @inheritdoc
|
|
119
|
+
*/
|
|
120
|
+
notifyChange(propertyKey: keyof this): void;
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated
|
|
123
|
+
* @inheritdoc
|
|
124
|
+
*/
|
|
125
|
+
_watchProperty(propertyKey: keyof this, subpath: string, callback: WatchCallback, sync: boolean): IHandle;
|
|
86
126
|
}
|
|
127
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import t from"@arcgis/core/core/Evented.js";import{deprecatedGetPropertyPath as e,deprecatedNotifyChange as i,deprecatedSet as r,deprecatedWatch as s,deprecatedWatchProperty as a}from"../support/Observable.js";import{notifyChange as h,observable as o}from"../support/observableUtils.js";import{toJSON as n}from"./object.js";export class ObservableSet extends(o(t)){[Symbol.toStringTag]="ObservableSet";get size(){return this._originalSet.size}_originalSet;constructor(){super(),this._originalSet=new Set}add(t){return this.has(t)||(this._originalSet.add(t),h(this,"size"),this.emit("after-add",{item:t,target:this}),this.emit("change",{added:[t],removed:[],moved:[],target:this})),this}addMany(t){const e=[];for(const i of t)this.has(i)||(e.push(i),this._originalSet.add(i));if(e.length){if(h(this,"size"),this.hasEventListener("after-add"))for(const t of e)this.emit("after-add",{item:t,target:this});this.emit("change",{added:e,removed:[],moved:[],target:this})}return this}clear(){if(!this.size)return;const t=Array.from(this.values());if(this._originalSet.clear(),h(this,"size"),this.hasEventListener("after-remove"))for(const e of t)this.emit("after-remove",{item:e,target:this});this.emit("change",{added:[],removed:t,moved:[],target:this})}delete(t){return!!this.has(t)&&(this._originalSet.delete(t),h(this,"size"),this.emit("after-remove",{item:t,target:this}),this.emit("change",{added:[],removed:[t],moved:[],target:this}),!0)}deleteMany(t){const e=[];for(const i of t)this.has(i)&&(e.push(i),this._originalSet.delete(i));if(e.length){if(h(this,"size"),this.hasEventListener("after-remove"))for(const t of e)this.emit("after-remove",{item:t,target:this});this.emit("change",{added:[],removed:e,moved:[],target:this})}return!!e.length}forEach(t,e){this._originalSet.forEach(t,e)}has(t){return this._originalSet.has(t)}entries(){return this._originalSet.entries()}keys(){return this._originalSet.keys()}values(){return this._originalSet.values()}[Symbol.iterator](){return this._originalSet[Symbol.iterator]()}toJSON(){return n([...this.values()])}on(t,e){return super.on(t,e)}set(t,e){return r(this,t,e)}get(t){return e(this,t)}watch(t,e,i){return s(this,t,e,i)}notifyChange(t){i(this,t)}_watchProperty(t,e,i,r){return a(this,t,e,i,r)}}
|
|
@@ -2,6 +2,9 @@ import { Observable } from "../support/Observable.js";
|
|
|
2
2
|
import type { ChangeEvent } from "./collection.js";
|
|
3
3
|
/**
|
|
4
4
|
* A Set that supports observability.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated This class is deprecated and will be removed in a future version.
|
|
7
|
+
* Use {@link utilities/ObservableSet} instead.
|
|
5
8
|
*/
|
|
6
9
|
export declare class ObservableWeakSet<T extends object> extends Observable implements WeakSet<T> {
|
|
7
10
|
/**
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { EventHandler } from "../support/esri.js";
|
|
1
2
|
import { ObservableMap, type MapChangeEvent } from "./ObservableMap.js";
|
|
3
|
+
import type { AfterItemChangeEvent } from "./collection.js";
|
|
2
4
|
import type { WatchCallback } from "./watch.js";
|
|
3
5
|
/**
|
|
4
6
|
* A map that is read-only and delegates operations to an underlying
|
|
@@ -14,13 +16,24 @@ export declare class ReadOnlyMap<K, V> extends ObservableMap<K, V> {
|
|
|
14
16
|
*/
|
|
15
17
|
protected readonly _originalMap: ObservableMap<K, V>;
|
|
16
18
|
constructor(originalMap: ObservableMap<K, V>);
|
|
19
|
+
emit(type: string, event?: unknown): boolean;
|
|
17
20
|
clear(): void;
|
|
18
21
|
delete(key: K): boolean;
|
|
19
|
-
emit(type: string, event?: unknown): boolean;
|
|
20
22
|
set(property: unknown, value: unknown): this;
|
|
21
23
|
set(properties: unknown): this;
|
|
22
24
|
set(key: K, value?: V): this;
|
|
25
|
+
on(name: "change", callback: (event: MapChangeEvent<K, V>) => void): IHandle;
|
|
26
|
+
on(name: "after-add", callback: (event: AfterItemChangeEvent<ObservableMap<K, V>, [K, V]>) => void): IHandle;
|
|
27
|
+
on(name: "after-remove", callback: (event: AfterItemChangeEvent<ObservableMap<K, V>, [K, V]>) => void): IHandle;
|
|
28
|
+
on(name: string, callback: EventHandler): IHandle;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* @inheritdoc
|
|
32
|
+
*/
|
|
23
33
|
notifyChange(propertyKey: keyof this): void;
|
|
24
|
-
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
* @inheritdoc
|
|
37
|
+
*/
|
|
25
38
|
watch(path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
26
39
|
}
|
package/utilities/ReadOnlyMap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError as
|
|
1
|
+
import{InvalidOperationError as i}from"../InvalidOperationError.js";import{notifyChange as r,onWatch as t,watch as e}from"../support/observableUtils.js";import{ObservableMap as o}from"./ObservableMap.js";const s="This map is read-only.";export class ReadOnlyMap extends o{constructor(i){super(),this._originalMap=i,t(this,"size",(()=>e(this._originalMap,"size",(()=>r(this,"size")),{sync:!0})))}emit(i,r){return this._originalMap.emit(i,r)}clear(){throw new i(s)}delete(r){throw new i(s)}set(){throw new i(s)}on(i,r){return this._originalMap.on(i,r)}notifyChange(i){this._originalMap.notifyChange(i)}watch(i,r,t){return this._originalMap.watch(i,r,t)}}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type EsriMap from "@arcgis/core/Map";
|
|
2
|
+
import Collection from "@arcgis/core/core/Collection.js";
|
|
3
|
+
import type Layer from "@arcgis/core/layers/Layer";
|
|
4
|
+
import { MapExtension } from "../mapping/MapExtension.js";
|
|
5
|
+
import type { LayerExtension, LayerReference } from "../mapping/_LayerExtension.js";
|
|
6
|
+
import type { SublayerExtension, SublayerReference } from "../mapping/_SublayerExtension.js";
|
|
7
|
+
import type { SublayerLike } from "../support/esri.js";
|
|
8
|
+
/**
|
|
9
|
+
* Creates a LayerReference or SublayerReference from various input types.
|
|
10
|
+
*
|
|
11
|
+
* @param ref The reference, which can be a string, number, LayerReference,
|
|
12
|
+
* SublayerReference, Layer, or SublayerLike.
|
|
13
|
+
* @returns A LayerReference or SublayerReference object.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createRef(ref: string | number | LayerReference | SublayerReference | Layer | SublayerLike): LayerReference | SublayerReference | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if two LayerReference objects are considered equal.
|
|
18
|
+
*
|
|
19
|
+
* @param layerRef1 The first layer reference to compare.
|
|
20
|
+
* @param layerRef2 The second layer reference to compare.
|
|
21
|
+
* @param layerXList Optional to check group extensions.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isLayerRefEqual(layerRef1: LayerReference, layerRef2: LayerReference, layerXList?: LayerExtension[]): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if two SublayerReference objects are considered equal.
|
|
26
|
+
*
|
|
27
|
+
* Sublayers are considered equal if both their `id` and `title` properties
|
|
28
|
+
* match.
|
|
29
|
+
*
|
|
30
|
+
* @param subLayerRef1 The first sublayer reference to compare.
|
|
31
|
+
* @param sublayerRef2 The second sublayer reference to compare.
|
|
32
|
+
* @returns True if the sublayer references are equal, otherwise false.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isSublayerRefEqual(subLayerRef1: SublayerReference, sublayerRef2: SublayerReference): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Flattens a MapExtension or a Collection of LayerExtensions into a single
|
|
37
|
+
* Collection of LayerExtensions, including nested group layers.
|
|
38
|
+
*
|
|
39
|
+
* @param source The MapExtension or Collection of LayerExtensions to flatten.
|
|
40
|
+
* @returns A flattened Collection of LayerExtensions.
|
|
41
|
+
*/
|
|
42
|
+
export declare function createFlattenedLayerXList(source: MapExtension | Collection<LayerExtension>): Collection<LayerExtension>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the backing Layer or SublayerLike for a given LayerExtension or
|
|
45
|
+
* SublayerExtension.
|
|
46
|
+
*
|
|
47
|
+
* @param extension The LayerExtension or SublayerExtension to get the backing
|
|
48
|
+
* layer from.
|
|
49
|
+
* @returns The backing Layer or SublayerLike.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getBackingLayer(extension: LayerExtension | SublayerExtension): Layer | SublayerLike;
|
|
52
|
+
/**
|
|
53
|
+
* Converts an EsriMap or MapExtension to a MapExtension instance.
|
|
54
|
+
*
|
|
55
|
+
* @param mapOrExtension The EsriMap or MapExtension to convert.
|
|
56
|
+
* @returns A MapExtension instance.
|
|
57
|
+
*/
|
|
58
|
+
export declare function toMapExtension(mapOrExtension: EsriMap | MapExtension): MapExtension;
|
|
59
|
+
/**
|
|
60
|
+
* Checks if the provided value is iterable.
|
|
61
|
+
*
|
|
62
|
+
* @param value The value to check.
|
|
63
|
+
* @returns True if the value is iterable, otherwise false.
|
|
64
|
+
*/
|
|
65
|
+
export declare function isIterable<T>(value: unknown): value is Iterable<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"@arcgis/core/core/Collection.js";import{isLayerExtension as e,isMapExtension as r,isSublayerExtension as i,isTableExtension as n}from"../ItemType.js";import{MapExtension as o}from"../mapping/MapExtension.js";import{isMap as a,isWebMap as u,isWebScene as l}from"../utilities/mapping.js";import{getLayerUrl as s,hasMmapLayer as f}from"./_layers.js";import{isGroupLayerExtension as p}from"./extensions.js";function c(t){if(t.layer)return;const e=function(t){const e=t.toJSON?.();if(e)return n(t),e?.$ref}(t);return e?"string"==typeof e?e:e.path:void 0}function y(t){if(t.sublayer)return t.sublayer.id;const e=function(t){const e=t.toJSON?.();if(e)return e?.$ref}(t);return e?"string"==typeof e?e:e.id:void 0}export function createRef(t){return"string"==typeof t?{id:t,title:t}:"number"==typeof t?{id:t}:e(t)?function(t){const e={id:t.layer?.id,title:t.title,url:s(t.layer)},r=c(t);return r&&(e.path=r),e}(t):i(t)?{id:y(r=t),title:r.title}:t&&"object"==typeof t&&"id"in t?t:void 0;var r}export function isLayerRefEqual(t,e,r){const i=t.id&&e.id&&t.id===e.id,n=t.title===e.title,o=t.url&&e.url&&t.url===e.url,a=t.path&&e.path&&t.path===e.path;if(i&&n||n&&a||n&&o||i&&o)return!0;if(n&&r){return r.some((t=>t.title===e.title&&(f([t])||p(t)&&0===t.layerExtensions.length)))}return!1}export function isSublayerRefEqual(t,e){return t.id===e.id&&t.title===e.title}export function createFlattenedLayerXList(e){if(r(e))return createFlattenedLayerXList(e.layerExtensions);const i=new t;for(const t of e.filter((t=>!!t.layer)).toArray())i.add(t),p(t)&&i.addMany(createFlattenedLayerXList(t.layerExtensions));return i}export function getBackingLayer(t){return e(t)?t.layer:t.sublayer}export function toMapExtension(t){const e=t;return a(e)||u(e)||l(e)?new o({map:e}):t}export function isIterable(t){return!!t?.[Symbol.iterator]}
|
|
@@ -7,6 +7,15 @@ import type { CompareOptions } from "./array.js";
|
|
|
7
7
|
declare const DeprecatedCollection: typeof Collection;
|
|
8
8
|
export { DeprecatedCollection as Collection };
|
|
9
9
|
export type { CompareOptions, ChangeEvent };
|
|
10
|
+
/**
|
|
11
|
+
* Raised when items are added or removed from a collection like object.
|
|
12
|
+
*/
|
|
13
|
+
export interface AfterItemChangeEvent<TCollection, TItem> extends __esri.CollectionAfterItemEvent<TItem> {
|
|
14
|
+
/**
|
|
15
|
+
* The collection like object that raised the event.
|
|
16
|
+
*/
|
|
17
|
+
target: TCollection;
|
|
18
|
+
}
|
|
10
19
|
/**
|
|
11
20
|
* Compares two collections and invokes callbacks for items that are new,
|
|
12
21
|
* missing, or matching in the second collection relative to the first.
|
package/utilities/collection.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@arcgis/core/core/Collection";import{compare as r,compareAsync as t}from"./array.js";const o=e;export{o as Collection};export function compare(e,t,o){return r(e,t,o)}export async function compareAsync(e,r,o){return t(e,r,o)}export function _generateChangeEvent(r,t){const o=t??new e,n=r??new e,c=o,a=o.filter((e=>n.includes(e))),i=n.filter((e=>o.includes(e))),l={added:o.filter((e=>!n.includes(e))).toArray(),removed:n.filter((e=>!o.includes(e))).toArray(),moved:a.filter(((e,r)=>i.indexOf(e)!==r)).toArray(),target:c};if(l.added.length||l.removed.length||l.moved.length)return l}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createRef, isLayerRefEqual, isSublayerRefEqual, getBackingLayer, toMapExtension, isIterable, } from "./_layer-preset.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{createRef,isLayerRefEqual,isSublayerRefEqual,getBackingLayer,toMapExtension,isIterable}from"./_layer-preset.js";
|
package/utilities/layers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { hasMmapLayer, layersAreEquivalent, isBuildingComponentSublayer, isBuildingGroupSublayer, isBuildingSceneLayer, isCSVLayer, isElevationLayer, isFeatureLayer, isFeatureLayerBase, isGeoJSONLayer, isGeoRssLayer, isGraphicsLayer, isGroupLayer, isImageryLayer, isImageryTileLayer, isIntegratedMeshLayer, isKMLLayer, isKMLSublayer, isLayer, isLayerWithLegendEnabledProperty, isMapImageLayer, isMapImageSublayer, isOpenStreetMapLayer, isPointCloudLayer, isSceneLayer, isStreamLayer, isSublayer, isSubtypeGroupLayer, isSubtypeSublayer, isTileLayer, isTiledImageServiceLayer, isTiledMapServiceLayer, isVectorTileLayer, isWMSLayer, isWMSSublayer, isWMTSLayer, isWMTSSublayer, isWebTileLayer, } from "./_layers.js";
|
|
1
|
+
export { getLayerUrl, hasMmapLayer, layersAreEquivalent, isBuildingComponentSublayer, isBuildingGroupSublayer, isBuildingSceneLayer, isCSVLayer, isElevationLayer, isFeatureLayer, isFeatureLayerBase, isGeoJSONLayer, isGeoRssLayer, isGraphicsLayer, isGroupLayer, isImageryLayer, isImageryTileLayer, isIntegratedMeshLayer, isKMLLayer, isKMLSublayer, isLayer, isLayerWithLegendEnabledProperty, isMapImageLayer, isMapImageSublayer, isOpenStreetMapLayer, isPointCloudLayer, isSceneLayer, isStreamLayer, isSublayer, isSubtypeGroupLayer, isSubtypeSublayer, isTileLayer, isTiledImageServiceLayer, isTiledMapServiceLayer, isVectorTileLayer, isWMSLayer, isWMSSublayer, isWMTSLayer, isWMTSSublayer, isWebTileLayer, } from "./_layers.js";
|
package/utilities/layers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{hasMmapLayer,layersAreEquivalent,isBuildingComponentSublayer,isBuildingGroupSublayer,isBuildingSceneLayer,isCSVLayer,isElevationLayer,isFeatureLayer,isFeatureLayerBase,isGeoJSONLayer,isGeoRssLayer,isGraphicsLayer,isGroupLayer,isImageryLayer,isImageryTileLayer,isIntegratedMeshLayer,isKMLLayer,isKMLSublayer,isLayer,isLayerWithLegendEnabledProperty,isMapImageLayer,isMapImageSublayer,isOpenStreetMapLayer,isPointCloudLayer,isSceneLayer,isStreamLayer,isSublayer,isSubtypeGroupLayer,isSubtypeSublayer,isTileLayer,isTiledImageServiceLayer,isTiledMapServiceLayer,isVectorTileLayer,isWMSLayer,isWMSSublayer,isWMTSLayer,isWMTSSublayer,isWebTileLayer}from"./_layers.js";
|
|
1
|
+
export{getLayerUrl,hasMmapLayer,layersAreEquivalent,isBuildingComponentSublayer,isBuildingGroupSublayer,isBuildingSceneLayer,isCSVLayer,isElevationLayer,isFeatureLayer,isFeatureLayerBase,isGeoJSONLayer,isGeoRssLayer,isGraphicsLayer,isGroupLayer,isImageryLayer,isImageryTileLayer,isIntegratedMeshLayer,isKMLLayer,isKMLSublayer,isLayer,isLayerWithLegendEnabledProperty,isMapImageLayer,isMapImageSublayer,isOpenStreetMapLayer,isPointCloudLayer,isSceneLayer,isStreamLayer,isSublayer,isSubtypeGroupLayer,isSubtypeSublayer,isTileLayer,isTiledImageServiceLayer,isTiledMapServiceLayer,isVectorTileLayer,isWMSLayer,isWMSSublayer,isWMTSLayer,isWMTSSublayer,isWebTileLayer}from"./_layers.js";
|
package/utilities/watch.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type Accessor from "@arcgis/core/core/Accessor";
|
|
2
|
+
import type Collection from "@arcgis/core/core/Collection";
|
|
2
3
|
import type Evented from "@arcgis/core/core/Evented";
|
|
3
|
-
import type {
|
|
4
|
+
import type { Observable as DeprecatedObservable } from "../support/Observable.js";
|
|
5
|
+
import type { ChangeEventCallback, EventHandler } from "../support/esri.js";
|
|
6
|
+
import { type Observable } from "../support/observableUtils.js";
|
|
4
7
|
import type { ObservableMap } from "./ObservableMap.js";
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A callback that gets invoked by esri's `watch` on classes that inherit from
|
|
10
|
+
* Accessor to notify observers about property changes.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
export type WatchCallback<T = any, U = any> = (newValue: T, oldValue: T, propertyName: string, target: U) => void;
|
|
6
15
|
/**
|
|
7
16
|
* Listens for an event on each item in a collection.
|
|
8
17
|
*
|
|
@@ -14,6 +23,7 @@ export declare function onEach<T extends Evented>(collection: Collection<T>, eve
|
|
|
14
23
|
/**
|
|
15
24
|
* Watches a property on each item in a collection.
|
|
16
25
|
*
|
|
26
|
+
* @deprecated Use {@link support/observableUtils!watch} instead.
|
|
17
27
|
* @param collection The collection of items to watch.
|
|
18
28
|
* @param path The property path to watch on each item.
|
|
19
29
|
* @param callback The callback to invoke. Note that the item that changed is
|
|
@@ -21,10 +31,11 @@ export declare function onEach<T extends Evented>(collection: Collection<T>, eve
|
|
|
21
31
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
22
32
|
* `false`.
|
|
23
33
|
*/
|
|
24
|
-
export declare function watchEach<T extends
|
|
34
|
+
export declare function watchEach<T extends Observable, U = unknown>(collection: Collection<T> | ObservableMap<unknown, T>, path: string | string[], callback: WatchCallback<U, T>, sync?: boolean): IHandle;
|
|
25
35
|
/**
|
|
26
36
|
* Watches a property on each item in a collection.
|
|
27
37
|
*
|
|
38
|
+
* @deprecated Use {@link support/observableUtils!watchEach} instead.
|
|
28
39
|
* @param collection The collection of items to watch.
|
|
29
40
|
* @param getValue Function used to get the current value from each item. All
|
|
30
41
|
* accessed properties will be tracked.
|
|
@@ -33,10 +44,11 @@ export declare function watchEach<T extends AccessorLike, U = unknown>(collectio
|
|
|
33
44
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
34
45
|
* `false`.
|
|
35
46
|
*/
|
|
36
|
-
export declare function watchEach<T extends
|
|
47
|
+
export declare function watchEach<T extends DeprecatedObservable | Accessor, U = unknown>(collection: Collection<T> | ObservableMap<unknown, T>, getValue: (item: T) => U, callback: (newValue: U, oldValue: U | undefined, item: T) => void, sync?: boolean): IHandle;
|
|
37
48
|
/**
|
|
38
49
|
* Watches a property on each item in a collection property.
|
|
39
50
|
*
|
|
51
|
+
* @deprecated Use {@link support/observableUtils!watchEach} instead.
|
|
40
52
|
* @param obj The object to watch.
|
|
41
53
|
* @param collectionPath The property path on the object that returns the
|
|
42
54
|
* collection to watch.
|
|
@@ -46,7 +58,7 @@ export declare function watchEach<T extends AccessorLike, U = unknown>(collectio
|
|
|
46
58
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
47
59
|
* `false`.
|
|
48
60
|
*/
|
|
49
|
-
export declare function watchCollectionPropertyEach(obj:
|
|
61
|
+
export declare function watchCollectionPropertyEach(obj: Observable, collectionPath: string, path: string | string[], callback: WatchCallback, sync?: boolean): IHandle;
|
|
50
62
|
/**
|
|
51
63
|
* Listens to change events on a collection property. This function also handles
|
|
52
64
|
* the case where the collection property itself is changed, in addition to
|
|
@@ -56,13 +68,19 @@ export declare function watchCollectionPropertyEach(obj: AccessorLike, collectio
|
|
|
56
68
|
* between the two collections and emit a "change" event with the appropriate
|
|
57
69
|
* values for event.added, event.removed, etc.
|
|
58
70
|
*
|
|
71
|
+
* Because this function calculates the difference between property changes it
|
|
72
|
+
* is best to avoid using this function if you are only interested in the
|
|
73
|
+
* collection changed event occurring and not the items that were added or
|
|
74
|
+
* removed. In that case, use {@link support/observableUtils!watchEvent}
|
|
75
|
+
* instead.
|
|
76
|
+
*
|
|
59
77
|
* @param obj The object that owns the collection property to watch.
|
|
60
78
|
* @param path The collection property to watch.
|
|
61
79
|
* @param callback The callback to invoke when the collection changes.
|
|
62
80
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
63
81
|
* `false`.
|
|
64
82
|
*/
|
|
65
|
-
export declare function onCollectionPropertyChange<T>(obj:
|
|
83
|
+
export declare function onCollectionPropertyChange<T>(obj: Observable, path: string, callback: ChangeEventCallback<T>, sync?: boolean): IHandle;
|
|
66
84
|
/**
|
|
67
85
|
* Listens for an emitted event from an object and executes a callback only once
|
|
68
86
|
* before removing the listener.
|
package/utilities/watch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@arcgis/core/core/
|
|
1
|
+
import*as o from"@arcgis/core/core/reactiveUtils";import{getPropertyByPath as t}from"../support/Observable.js";import{createIHandle as e,watch as r}from"../support/observableUtils.js";import{checkArg as s}from"./checkArg.js";import{_generateChangeEvent as n}from"./collection.js";export function onEach(o,t,e){s("collection",o).isNotMissing(),s("eventType",t).isNotMissing().isNotEmpty(),s("callback",e).isNotMissing();const r=new Map;for(const s of o.toArray())r.set(s,s.on(t,e));const n=o.on("change",(o=>{for(const s of o.added)r.set(s,s.on(t,e));for(const t of o.removed){const o=r.get(t);o&&o.remove(),r.delete(t)}}));return{remove:()=>{n.remove(),r.forEach((o=>o.remove()))}}}export function watchEach(t,...n){let c;if(s("collection",t).isNotMissing(),"function"==typeof n[0]){const[t,e,r=!1]=n;s("getValue",t).isNotMissing(),s("callback",e).isNotMissing(),c=s=>o.watch((()=>t(s)),((o,t)=>e(o,t,s)),{sync:r})}else{const[o,t,i=!1]=n;s("path",o).isNotMissing().isNotEmpty(),s("callback",t).isNotMissing(),c=s=>{const n=[];for(const e of Array.isArray(o)?o:[o])n.push(r(s,e,((o,r,s)=>t(o,r,e,s)),{sync:i}));return e(n)}}const i=new Map;for(const o of"function"==typeof t.toArray?t.toArray():[...t.values()])i.set(o,c(o));const a=t.on("change",(o=>{for(const t of o.added){const o=Array.isArray(t)?t[1]:t;i.set(o,c(o))}for(const t of o.removed){const o=Array.isArray(t)?t[1]:t,e=i.get(o);e&&e.remove(),i.delete(o)}}));return{remove:()=>{a.remove(),i.forEach((o=>o.remove()))}}}export function watchCollectionPropertyEach(o,e,n,c,i=!1){s("obj",o).isNotMissing(),s("collectionProperty",e).isNotMissing().isNotEmpty(),s("path",n).isNotMissing().isNotEmpty(),s("callback",c).isNotMissing();const a=new Map,f=t(o,e);if(f)for(const o of f.toArray())for(const t of Array.isArray(n)?n:[n])a.set(o,r(o,t,((o,e,r)=>c(o,e,t,r)),{sync:i}));const l=onCollectionPropertyChange(o,e,(o=>{for(const t of o.added)for(const o of Array.isArray(n)?n:[n])a.set(t,r(t,o,((t,e,r)=>c(t,e,o,r)),{sync:i}));for(const t of o.removed){const o=a.get(t);o&&o.remove(),a.delete(t)}}),i);return{remove:()=>{l.remove(),a.forEach((o=>o.remove()))}}}export function onCollectionPropertyChange(o,e,c,i=!1){let a;s("obj",o).isNotMissing(),s("property",e).isNotMissing().isNotEmpty(),s("callback",c).isNotMissing();const f=t(o,e);f&&(a=f.on("change",c));const l=r(o,e,((o,t)=>{a&&(a.remove(),a=void 0),o&&(a=o.on("change",c));const e=n(t,o);(e?.added.length||e?.removed.length||e?.moved.length)&&c(e)}),{sync:i});return{remove:()=>{a&&a.remove(),l.remove()}}}export function onOnce(o,t,e){const r=o.on(t,(o=>{e(o),r.remove()}));return r}
|
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="
|
|
1
|
+
export const version="50.0.0";
|