@vertigis/arcgis-extensions 48.9.2 → 49.1.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 +63 -47
- package/data/Feature.d.ts +4 -4
- package/data/Feature.js +1 -1
- package/data/_TableExtension.d.ts +1 -1
- package/data/support/attachments.js +1 -1
- package/declarations/arcgis-js-api-extensions/index.d.ts +4 -6
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/Entity.EntityBase.html +3 -3
- package/docs/html/classes/data_ArcGISServiceTableExtension.ArcGISServiceTableExtension.html +3 -3
- package/docs/html/classes/data_Attachment.Attachment.html +3 -3
- package/docs/html/classes/data_Feature.Feature.html +5 -5
- package/docs/html/classes/data_FeatureList.FeatureList.html +3 -9
- package/docs/html/classes/data_FeatureSet.FeatureSet.html +0 -1
- package/docs/html/classes/data_FeatureSourceBase.FeatureSourceBase.html +3 -3
- package/docs/html/classes/data_FeatureSourceBase.RelationshipCollection.html +3 -9
- package/docs/html/classes/data_FeatureStream.FeatureStream.html +3 -3
- package/docs/html/classes/data_FieldExtension.FieldExtension.html +3 -3
- package/docs/html/classes/data_PopupContentExtension.PopupContentExtension.html +3 -3
- package/docs/html/classes/data_RelationshipBase.RelationshipBase.html +3 -3
- package/docs/html/classes/data__TableExtension.TableExtension.html +3 -3
- package/docs/html/classes/data__TableExtension.TableSchema.html +2 -2
- package/docs/html/classes/layer_preset_LayerPreset.LayerPreset.html +3 -3
- package/docs/html/classes/mapping_ArcGISSublayerExtension.ArcGISSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_ArcGISSublayerExtension.ArcGISSublayerRelationshipCollection.html +3 -9
- package/docs/html/classes/mapping_BasemapExtension.BasemapExtension.html +3 -3
- package/docs/html/classes/mapping_Bookmark.Bookmark.html +3 -3
- package/docs/html/classes/mapping_BuildingComponentSublayerExtension.BuildingComponentSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_BuildingGroupSublayerExtension.BuildingGroupSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_BuildingSceneLayerExtension.BuildingSceneLayerExtension.html +11 -5
- package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_CSVLayerExtension.CSVLayerExtension.html +13 -7
- package/docs/html/classes/mapping_ElevationLayerExtension.ElevationLayerExtension.html +11 -5
- package/docs/html/classes/mapping_FeatureCollectionLayerExtension.FeatureCollectionLayerExtension.html +11 -5
- package/docs/html/classes/mapping_FeatureLayerExtension.FeatureLayerExtension.html +13 -7
- package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerExtensionBase.html +11 -5
- package/docs/html/classes/mapping_GeoJSONLayerExtension.GeoJSONLayerExtension.html +13 -7
- package/docs/html/classes/mapping_GeoRSSLayerExtension.GeoRSSLayerExtension.html +11 -5
- package/docs/html/classes/mapping_GraphicsLayerExtension.GraphicsLayerExtension.html +11 -5
- package/docs/html/classes/mapping_GroundExtension.GroundExtension.html +3 -3
- package/docs/html/classes/mapping_GroupLayerExtension.GroupLayerExtension.html +11 -5
- package/docs/html/classes/mapping_GroupLayerExtension.GroupLayerExtensionCollection.html +7 -11
- package/docs/html/classes/mapping_ImageryLayerExtension.ImageryLayerExtension.html +11 -5
- package/docs/html/classes/mapping_ImageryTileLayerExtension.ImageryTileLayerExtension.html +11 -5
- package/docs/html/classes/mapping_IntegratedMeshLayerExtension.IntegratedMeshLayerExtension.html +11 -5
- package/docs/html/classes/mapping_KMLLayerExtension.KMLLayerExtension.html +11 -5
- package/docs/html/classes/mapping_KMLSublayerExtension.KMLSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_MapExtension.MapExtension.html +3 -3
- package/docs/html/classes/mapping_MapImageLayerExtension.MapImageLayerExtension.html +11 -5
- package/docs/html/classes/mapping_MapImageSublayerExtension.MapImageSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_MapNotesLayerExtension.MapNotesLayerExtension.html +11 -5
- package/docs/html/classes/mapping_MapNotesSublayerExtension.MapNotesSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_OpenStreetMapLayerExtension.OpenStreetMapLayerExtension.html +11 -5
- package/docs/html/classes/mapping_PointCloudLayerExtension.PointCloudLayerExtension.html +11 -5
- package/docs/html/classes/mapping_RouteLayerExtension.RouteLayerExtension.html +11 -5
- package/docs/html/classes/mapping_SceneLayerExtension.SceneLayerExtension.html +11 -5
- package/docs/html/classes/mapping_StreamLayerExtension.StreamLayerExtension.html +11 -5
- package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerExtension.html +11 -5
- package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerRelationshipCollection.html +3 -9
- package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerRelationshipCollection.html +3 -9
- package/docs/html/classes/mapping_TileLayerExtension.TileLayerExtension.html +11 -5
- package/docs/html/classes/mapping_TileSublayerExtension.TileSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_UnsupportedLayerExtension.UnsupportedLayerExtension.html +11 -5
- package/docs/html/classes/mapping_VectorTileLayerExtension.VectorTileLayerExtension.html +11 -5
- package/docs/html/classes/mapping_WFSLayerExtension.WFSLayerExtension.html +11 -5
- package/docs/html/classes/mapping_WMSLayerExtension.WMSLayerExtension.html +11 -5
- package/docs/html/classes/mapping_WMSSublayerExtension.WMSSublayerExtension.html +11 -5
- package/docs/html/classes/mapping_WMTSLayerExtension.WMTSLayerExtension.html +11 -5
- package/docs/html/classes/mapping_WebTileLayerExtension.WebTileLayerExtension.html +11 -5
- package/docs/html/classes/mapping__LayerExtension.LayerExtension.html +11 -5
- package/docs/html/classes/mapping__LayerExtensionCollectionImpl.LayerExtensionCollectionImpl.html +7 -11
- package/docs/html/classes/mapping__SublayerExtension.SubSublayerExtensionCollection.html +7 -11
- package/docs/html/classes/mapping__SublayerExtension.SublayerExtension.html +11 -5
- package/docs/html/classes/mapping_support_ArrayWrappedCollection.ArrayWrappedCollection.html +3 -9
- package/docs/html/classes/mapping_support__LayerExtensionCollection.LayerExtensionCollectionBase.html +7 -11
- package/docs/html/classes/mapping_support__SublayerExtensionCollection.SublayerExtensionCollectionBase.html +7 -11
- package/docs/html/classes/menus_Menu.Menu.html +3 -3
- package/docs/html/classes/menus_MenuItem.MenuItem.html +3 -3
- package/docs/html/classes/support_InitializableBase.InitializableBase.html +3 -3
- package/docs/html/classes/support_InitializableCollectionProxy.InitializableCollectionProxy.html +3 -9
- package/docs/html/classes/support_ReadOnlyInitializableCollection.ReadOnlyInitializableCollection.html +3 -9
- package/docs/html/classes/support__ArcGISRelationshipCollection.ArcGISRelationshipCollection.html +3 -9
- package/docs/html/classes/tasks_geocoding_ArcGISGeocoder.ArcGISGeocoder.html +3 -3
- package/docs/html/classes/tasks_geocoding_Geocoder.Geocoder.html +3 -3
- package/docs/html/classes/tasks_identify_ArcGISSublayerQueryIdentifyProvider.ArcGISSublayerQueryIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_BuildingComponentSublayerClientSideIdentifyProvider.BuildingComponentSublayerClientSideIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_BuildingComponentSublayerHitTestIdentifyProvider.BuildingComponentSublayerHitTestIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_CSVLayer3DHitTestIdentifyProvider.CSVLayer3DHitTestIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_CSVLayerClientSideQueryIdentifyProvider.CSVLayerClientSideQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_ClientSideIdentifyProvider.ClientSideIdentifyProvider.html +8 -8
- package/docs/html/classes/tasks_identify_FeatureLayer3DHitTestIdentifyProvider.FeatureLayer3DHitTestIdentifyProvider.html +10 -10
- package/docs/html/classes/tasks_identify_FeatureLayerClientSideIdentifyProvider.FeatureLayerClientSideIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_FeatureLayerQueryIdentifyProvider.FeatureLayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_GeoJSONLayer3DHitTestIdentifyProvider.GeoJSONLayer3DHitTestIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_GeoJSONLayerClientSideQueryIdentifyProvider.GeoJSONLayerClientSideQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_GeoRSSLayerIdentifyProvider.GeoRSSLayerIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_GraphicsLayerQueryIdentifyProvider.GraphicsLayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_HitTestIdentifyProvider.HitTestIdentifyProvider.html +10 -10
- package/docs/html/classes/tasks_identify_IdentifyProviderBase.IdentifyProviderBase.html +9 -9
- package/docs/html/classes/tasks_identify_IdentifyService.IdentifyService.html +10 -10
- package/docs/html/classes/tasks_identify_ImageryLayerIdentifyProvider.ImageryLayerIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_KMLLayerQueryIdentifyProvider.KMLLayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_MapNotesSublayerQueryIdentifyProvider.MapNotesSublayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_PointCloudLayerHitTestIdentifyProvider.PointCloudLayerHitTestIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_RouteLayerQueryIdentifyProvider.RouteLayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_SceneLayerClientSideIdentifyProvider.SceneLayerClientSideIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_SceneLayerHitTestIdentifyProvider.SceneLayerHitTestIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_SceneLayerQueryIdentifyProvider.SceneLayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_StreamLayerClientSideQueryIdentifyProvider.StreamLayerClientSideQueryIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_SubtypeSublayerClientSideIdentifyProvider.SubtypeSublayerClientSideIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_SubtypeSublayerQueryIdentifyProvider.SubtypeSublayerQueryIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_WFSLayerClientSideIdentifyProvider.WFSLayerClientSideIdentifyProvider.html +7 -7
- package/docs/html/classes/tasks_identify_WFSLayerQueryIdentifyProvider.WFSLayerQueryIdentifyProvider.html +6 -6
- package/docs/html/classes/tasks_identify_WMSLayerFeatureInfoIdentifyProvider.WMSLayerFeatureInfoIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_identify_WMSSublayerIdentifyProvider.WMSSublayerIdentifyProvider.html +9 -9
- package/docs/html/classes/tasks_query_ArcGISRelationship.ArcGISRelationship.html +3 -3
- package/docs/html/classes/tasks_query_QueryBasedRelationship.QueryBasedRelationship.html +3 -3
- package/docs/html/classes/tasks_query_QueryService.QueryService.html +3 -3
- package/docs/html/classes/tasks_search_SearchService.SearchService.html +3 -3
- package/docs/html/classes/utilities_CaseInsensitiveObservableMap.CaseInsensitiveObservableMap.html +0 -1
- package/docs/html/classes/utilities_CollectionProxy.CollectionProxy.html +3 -9
- package/docs/html/classes/utilities_CopyOnWriteCollection.CopyOnWriteCollection.html +3 -9
- package/docs/html/classes/utilities_MapTransformCollection.MapTransformCollection.html +3 -9
- package/docs/html/classes/utilities_ObservableMap.ObservableMap.html +0 -1
- package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +0 -1
- package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +0 -1
- package/docs/html/classes/utilities_ReadOnlyCollection.ReadOnlyCollection.html +3 -9
- package/docs/html/classes/utilities_ReadOnlyMap.ReadOnlyMap.html +4 -3
- package/docs/html/functions/utilities__geoJson.esriToGeoJSON.html +1 -1
- package/docs/html/functions/utilities__geoJson.geoJSONToEsri.html +2 -2
- package/docs/html/functions/utilities__gml.esriToGml.html +1 -1
- package/docs/html/functions/utilities__gml.gmlToEsri.html +2 -2
- package/docs/html/functions/utilities__project.project.html +4 -4
- package/docs/html/functions/utilities__wkt.esriToWKT.html +1 -1
- package/docs/html/functions/utilities__wkt.wktToEsri.html +2 -2
- package/docs/html/functions/utilities_esri.isGeometry.html +2 -2
- package/docs/html/functions/utilities_geometry.buffer.html +2 -2
- package/docs/html/functions/utilities_geometry.createCrossTypeUnion.html +3 -3
- package/docs/html/functions/utilities_geometry.esriToGeoJSON.html +1 -1
- package/docs/html/functions/utilities_geometry.esriToGml.html +1 -1
- package/docs/html/functions/utilities_geometry.esriToWKT.html +1 -1
- package/docs/html/functions/utilities_geometry.geoJSONToEsri.html +2 -2
- package/docs/html/functions/utilities_geometry.getScreenExtent.html +1 -1
- package/docs/html/functions/utilities_geometry.gmlToEsri.html +2 -2
- package/docs/html/functions/utilities_geometry.project.html +4 -4
- package/docs/html/functions/utilities_geometry.removeZValues.html +3 -3
- package/docs/html/functions/utilities_geometry.wktToEsri.html +2 -2
- package/docs/html/functions/utilities_query.spatialFilter.html +1 -1
- package/docs/html/functions/utilities_symbol.isPointGeometrySymbol.html +2 -2
- package/docs/html/functions/utilities_symbol.isPolygonGeometrySymbol.html +2 -2
- package/docs/html/functions/utilities_symbol.isPolylineGeometrySymbol.html +2 -2
- package/docs/html/functions/utilities_symbol.isSymbol.html +2 -2
- package/docs/html/functions/utilities_symbol.isVolumetric.html +1 -1
- package/docs/html/interfaces/data_Feature.FeatureProperties.html +2 -2
- package/docs/html/interfaces/data_Feature.PresentableAttributes.html +4 -3
- package/docs/html/interfaces/data_support_attachments.AttachmentEnabledLayer.html +8 -4
- package/docs/html/interfaces/json_RendererJson.SizeInfoJson.html +3 -3
- package/docs/html/interfaces/json_SymbolJson.ObjectSymbol3DLayerJson.html +2 -2
- package/docs/html/interfaces/json_WebSceneJson.WebSceneJson.html +2 -2
- package/docs/html/interfaces/support_ArcGISRequestHelper.ArcGISRequestOptions.html +2 -2
- package/docs/html/interfaces/tasks_query_QueryOptions.QueryOptions-1.html +2 -2
- package/docs/html/interfaces/tasks_search_SearchOptions.SearchOptions-1.html +2 -2
- package/docs/html/interfaces/tasks_search_support__querySearchProviderUtils.ExpandSearchAreaResult.html +2 -2
- package/docs/html/interfaces/utilities_transformation.Transformation.html +2 -2
- package/docs/html/modules/support_esri.html +5 -2
- package/docs/html/types/support_esri.FeatureIdentifier.html +1 -0
- package/docs/html/types/support_esri.FeatureLayerApplyEdits.html +1 -1
- package/docs/html/types/support_esri.FeatureLayerApplyEditsEdits.html +1 -0
- package/docs/html/types/support_esri.FeatureLayerApplyEditsOptions.html +1 -0
- package/docs/html/types/support_esri.ItemCallback.html +1 -1
- package/docs/html/types/support_esri.ItemTestCallback.html +1 -1
- package/docs/html/types/support_esri.LengthUnit.html +3 -0
- package/docs/html/types/support_esri.LinearUnits.html +4 -0
- package/docs/html/variables/version.version.html +1 -1
- package/json/GeometryJson.d.ts +1 -1
- package/json/LayerJson.js +1 -1
- package/mapping/CSVLayerExtension.d.ts +2 -2
- package/mapping/FeatureLayerExtension.d.ts +2 -2
- package/mapping/GeoJSONLayerExtension.d.ts +2 -2
- package/mapping/ImageryLayerExtension.js +1 -1
- package/mapping/_LayerExtension.d.ts +12 -0
- package/mapping/_LayerExtension.js +1 -1
- package/mapping/_SublayerExtension.d.ts +12 -0
- package/mapping/_SublayerExtension.js +1 -1
- package/mapping/support/featureService.js +1 -1
- package/package.json +2 -2
- package/portal/FeatureLayer.js +1 -1
- package/portal/FeatureReduction.d.ts +1 -1
- package/portal/FeatureReduction.js +1 -1
- package/portal/Lighting.d.ts +1 -1
- package/portal/Symbol.d.ts +2 -1
- package/portal/Widgets.d.ts +1 -1
- package/support/esri.d.ts +21 -6
- package/tasks/identify/BuildingComponentSublayerHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/CSVLayer3DHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/CSVLayer3DHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/CSVLayerClientSideQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/ClientSideIdentifyProvider.d.ts +1 -1
- package/tasks/identify/FeatureLayer3DHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/FeatureLayer3DHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/FeatureLayerClientSideIdentifyProvider.d.ts +3 -3
- package/tasks/identify/FeatureLayerClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/FeatureLayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/GeoJSONLayer3DHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/GeoJSONLayer3DHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/GeoJSONLayerClientSideQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/GeoRSSLayerIdentifyProvider.d.ts +4 -4
- package/tasks/identify/GraphicsLayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/HitTestIdentifyProvider.d.ts +6 -8
- package/tasks/identify/IdentifyProviderBase.d.ts +8 -8
- package/tasks/identify/IdentifyService.d.ts +8 -8
- package/tasks/identify/ImageryLayerIdentifyProvider.d.ts +4 -4
- package/tasks/identify/ImageryLayerIdentifyProvider.js +1 -1
- package/tasks/identify/KMLLayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/MapNotesSublayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/PointCloudLayerHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/RouteLayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/SceneLayerHitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/SceneLayerQueryIdentifyProvider.d.ts +4 -4
- package/tasks/identify/StreamLayerClientSideQueryIdentifyProvider.js +1 -1
- package/tasks/identify/SubtypeSublayerQueryIdentifyProvider.d.ts +5 -5
- package/tasks/identify/WMSLayerFeatureInfoIdentifyProvider.d.ts +4 -4
- package/tasks/identify/WMSSublayerIdentifyProvider.d.ts +4 -4
- package/tasks/identify/_utilities.js +1 -1
- package/tasks/query/QueryOptions.d.ts +3 -3
- package/tasks/query/StreamLayerClientSideQueryProvider.js +1 -1
- package/tasks/search/QuerySearchProvider.js +1 -1
- package/tasks/search/SearchOptions.d.ts +3 -3
- package/tasks/search/SubtypeSublayerQuerySearchProvider.js +1 -1
- package/tasks/search/support/_querySearchProviderUtils.d.ts +2 -2
- package/utilities/CollectionProxy.d.ts +9 -9
- package/utilities/CollectionProxy.js +1 -1
- package/utilities/CopyOnWriteCollection.d.ts +2 -2
- package/utilities/_geoJson.d.ts +3 -3
- package/utilities/_gml.d.ts +3 -3
- package/utilities/_project.d.ts +2 -2
- package/utilities/_wkt.d.ts +3 -3
- package/utilities/basemaps.js +1 -1
- package/utilities/esri.d.ts +2 -2
- package/utilities/geometry.d.ts +13 -14
- package/utilities/geometry.js +1 -1
- package/utilities/query.d.ts +2 -2
- package/utilities/query.js +1 -1
- package/utilities/symbol.d.ts +3 -3
- package/utilities/watch.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/docs/html/types/support_esri.FeatureLayerBaseApplyEditsEdits.html +0 -1
- package/docs/html/types/support_esri.FeatureLayerBaseApplyEditsOptions.html +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
2
1
|
import type Point from "@arcgis/core/geometry/Point";
|
|
3
2
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
3
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
4
4
|
import type { FeatureSource } from "../../data/FeatureSource.js";
|
|
5
5
|
import type { CancelToken } from "../../support/Cancellable.js";
|
|
6
6
|
import type { TaskResult } from "../TaskResult.js";
|
|
@@ -24,7 +24,7 @@ export interface SearchOptions {
|
|
|
24
24
|
* Initial search area. If possible the search area will be expanded until
|
|
25
25
|
* the maximum number of results are fulfilled.
|
|
26
26
|
*/
|
|
27
|
-
initialSearchArea?:
|
|
27
|
+
initialSearchArea?: GeometryUnion | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Indicates the current scale of the supplied search area. If not provided
|
|
30
30
|
* the search area is limited to the initial search area.
|
|
@@ -42,7 +42,7 @@ export interface SearchOptions {
|
|
|
42
42
|
/**
|
|
43
43
|
* The spatial reference for the returned geometry.
|
|
44
44
|
*/
|
|
45
|
-
outSpatialReference?: SpatialReference;
|
|
45
|
+
outSpatialReference?: SpatialReference | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* The maximum allowable offset used for generalizing geometries returned by
|
|
48
48
|
* the query operation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SCORE_FIELD as e,SCORE_FIELD_ORIGINAL as t}from"../../data/Feature.js";import{isSubtypeSublayer as r}from"../../utilities/_layers.js";import{AsyncQueue as s}from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension as o}from"../../utilities/extensions.js";import{QueryError as
|
|
1
|
+
import{SCORE_FIELD as e,SCORE_FIELD_ORIGINAL as t}from"../../data/Feature.js";import{isSubtypeSublayer as r}from"../../utilities/_layers.js";import{AsyncQueue as s}from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension as o}from"../../utilities/extensions.js";import{QueryError as i}from"../query/QueryError.js";import{SearchError as n}from"./SearchError.js";import{SearchOptions as u}from"./SearchOptions.js";import{SearchProviderBase as a}from"./SearchProviderBase.js";import{getSearchableValue as c}from"./_utilities.js";import{expandSearchArea as l,getSearchableFields as f,getWhereClause as d,initializeElasticlunrIndex as p,normalizeScores as y,separatorRegex as m}from"./support/_querySearchProviderUtils.js";export class SubtypeSublayerQuerySearchProvider extends a{_queryProvider;constructor(e){super(),this._queryProvider=e}isSupported(e){return o(e)&&r(e.sublayer)&&e.sublayer.layer&&e.layerExtension?.capabilities.supportsQuery}_search(r,a,h){const x=new s,g=new Map,w="__id",S=[],q=new Map,R=new Set,_=async()=>{let e=[a];if(h?.tokenizeSearchString??1){const{index:t,tokenizer:r}=await p(m);t.setRef(w),e=t.pipeline.run(this._queryProvider.getSearchTerms(a,r))}if(e.length)for(const t of r){const r={...u.DEFAULTS,...u.fromFeatureSource(t.layerExtension),spatialFilter:h?.initialSearchArea,tokenizeSearchString:!0,...h},s=f(t),o=d(t,e,s,r);if(!s.length||!o)continue;if(q.has(t.layerExtension)){q.get(t.layerExtension).sources.set(t,{fields:s,where:o});continue}const{index:i}=await p(m);i.setRef(w);for(const e of s)i.addField(e.name.toLowerCase());let{maxResults:n}=r;null!=r.maxQueryResults&&null!=r.maxResults&&(n=Math.max(r.maxQueryResults,r.maxResults));const a={...r,maxResults:n};R.add(t.layerExtension),q.set(t.layerExtension,{searchOptions:r,queryOptions:a,index:i,results:{count:0,lookup:new Map},sources:new Map([[t,{fields:s,where:o}]])})}},b=async e=>{const t=q.get(e),r=[];for(const[e,s]of t.sources)r.push({source:e,where:s.where,options:t.queryOptions});try{const e=this._queryProvider.queryService.query(r);for await(const t of e){if(x.isDone)return;const{source:e}=t;if(!o(e))continue;const{index:r,sources:s,results:{lookup:i}}=q.get(e.layerExtension),{fields:n}=s.get(e),u={};for(const e of n)u[e.name.toLowerCase()]=c(t,e);const a=`${e.id}-${t.primaryKey}`;!0!==g.get(a)?.queued&&(u[w]=a,r.addDoc(u),i.set(a,t),g.set(a,{feature:t,queued:!1}))}}catch(e){e instanceof i?S.push(e):S.push(new n([[[...t.sources.keys()],e]]))}},v=r=>{const{index:s,searchOptions:o,results:i}=q.get(r),n=s.search(a,{expand:!0});y(n);for(const s of n){const{feature:n,queued:u}=g.get(s.ref);if(n&&!u&&i.lookup.has(s.ref)&&(n.attributes.set(e,s.score),n.attributes.set(t,s.score),g.get(s.ref).queued=!0,x.add(n),i.lookup.delete(s.ref),i.count++),null!=o.maxResults&&i.count>=o.maxResults){R.delete(r);break}}for(const[s,n]of i.lookup){if(null!=o.maxResults&&i.count>=o.maxResults){R.delete(r);break}n.attributes.set(e,50),n.attributes.set(t,50),g.get(s).queued||(g.get(s).queued=!0,x.add(n),i.count++)}},j=async e=>{const{queryOptions:t,searchOptions:r,results:{count:s}}=q.get(e);if(null!=r.maxResults&&s>=r.maxResults)return void R.delete(e);const{scale:o,geometry:i}=await l(t.spatialFilter?.extent??void 0,e.getFullExtent(),r.currentScale,0===s?3:1);i?(t.spatialFilter=i,r.currentScale=o):R.delete(e)},k=async e=>{for(;R.size>0;){if(x.isDone)return;if(await b(e),x.isDone)return;v(e),await j(e)}};return(async()=>{await _();const e=[];for(const[t]of q)e.push(k(t));await Promise.all(e),S.length>0?x.reject(new n(S)):x.done()})(),x}async _count(e,t,r){return this._queryProvider.count(e,t,r)}_suggest(e,t,r){return this._queryProvider.suggest(e,t,r)}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
2
2
|
/**
|
|
3
3
|
* The expanded search area and scale.
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export interface ExpandSearchAreaResult {
|
|
|
6
6
|
/**
|
|
7
7
|
* The new expanded geometry.
|
|
8
8
|
*/
|
|
9
|
-
geometry?:
|
|
9
|
+
geometry?: GeometryUnion;
|
|
10
10
|
/**
|
|
11
11
|
* The new scale for the returned geometry.
|
|
12
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type Collection from "@arcgis/core/core/Collection";
|
|
2
2
|
import { Observable } from "../support/Observable.js";
|
|
3
3
|
import type { ItemCallback, ItemCompareCallback, ItemMapCallback, ItemReduceCallback, ItemTestCallback, CollectionAfterAddEventHandler, CollectionChangeEventHandler, CollectionAfterChangesEventHandler, CollectionAfterRemoveEventHandler, CollectionBeforeAddEventHandler, CollectionBeforeChangesEventHandler, CollectionBeforeRemoveEventHandler, EventHandler, WatchCallback } from "../support/esri.js";
|
|
4
|
-
interface CollectionCompatibleObservable<T> extends Omit<Observable, "notifyChange" | "set" | "on" | "watch" | "emit"> {
|
|
4
|
+
interface CollectionCompatibleObservable<T> extends Omit<Observable, "notifyChange" | "set" | "on" | "watch" | "emit" | "get"> {
|
|
5
5
|
on(type: string | string[], listener: EventHandler): IHandle;
|
|
6
6
|
watch(path: string | string[], callback: WatchCallback<T>, sync: boolean | undefined): IHandle;
|
|
7
7
|
}
|
|
@@ -121,7 +121,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
121
121
|
* Collection. Returns true if an item passes the test and false if it
|
|
122
122
|
* fails.
|
|
123
123
|
*/
|
|
124
|
-
find(callback: ItemTestCallback<T>): T;
|
|
124
|
+
find(callback: ItemTestCallback<T>): T | undefined;
|
|
125
125
|
/**
|
|
126
126
|
* Returns the index of an item in the Collection if that item passes a test
|
|
127
127
|
* as defined in the callback function. Each item is passed into the
|
|
@@ -157,7 +157,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
157
157
|
* @param index Zero-based index of the item in the Collection to retrieve.
|
|
158
158
|
* @returns The item in the Collection stored at the specified index.
|
|
159
159
|
*/
|
|
160
|
-
getItemAt(index: number): T;
|
|
160
|
+
getItemAt(index: number): T | undefined;
|
|
161
161
|
/**
|
|
162
162
|
* Tests if an item is present in the Collection.
|
|
163
163
|
*
|
|
@@ -214,7 +214,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
214
214
|
/**
|
|
215
215
|
* Removes the last item from the collection and returns it.
|
|
216
216
|
*/
|
|
217
|
-
pop(): T;
|
|
217
|
+
pop(): T | undefined;
|
|
218
218
|
/**
|
|
219
219
|
* Adds an item to the end of the collection.
|
|
220
220
|
*
|
|
@@ -246,7 +246,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
246
246
|
*
|
|
247
247
|
* @param item The item to remove.
|
|
248
248
|
*/
|
|
249
|
-
remove(item: T): T;
|
|
249
|
+
remove(item: T): T | undefined;
|
|
250
250
|
/**
|
|
251
251
|
* Removes all items from the collection.
|
|
252
252
|
*/
|
|
@@ -256,7 +256,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
256
256
|
*
|
|
257
257
|
* @param index The index of the element to remove.
|
|
258
258
|
*/
|
|
259
|
-
removeAt(index: number): T;
|
|
259
|
+
removeAt(index: number): T | undefined;
|
|
260
260
|
/**
|
|
261
261
|
* Removes each item in the input array. If an item is present multiple
|
|
262
262
|
* times in the collection, only the first occurrence is removed.
|
|
@@ -271,7 +271,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
271
271
|
* @param item The item to move.
|
|
272
272
|
* @param index The index to move the item to.
|
|
273
273
|
*/
|
|
274
|
-
reorder(item: T, index: number): T;
|
|
274
|
+
reorder(item: T, index: number): T | undefined;
|
|
275
275
|
/**
|
|
276
276
|
* Reverses the collection in place.
|
|
277
277
|
*/
|
|
@@ -281,7 +281,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
281
281
|
* The remaining items of the collection are then shifted down one index
|
|
282
282
|
* from their previous location.
|
|
283
283
|
*/
|
|
284
|
-
shift(): T;
|
|
284
|
+
shift(): T | undefined;
|
|
285
285
|
/**
|
|
286
286
|
* Creates a new Collection comprised of a portion of the original
|
|
287
287
|
* Collection.
|
|
@@ -298,7 +298,7 @@ export declare abstract class CollectionProxy<T> extends CollectionProxy_base {
|
|
|
298
298
|
* @param callback The function that defines the test for each Collection
|
|
299
299
|
* item.
|
|
300
300
|
*/
|
|
301
|
-
some(callback:
|
|
301
|
+
some(callback: ItemTestCallback<T>): boolean;
|
|
302
302
|
/**
|
|
303
303
|
* Sorts the Collection in place.
|
|
304
304
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Observable as e}from"../support/Observable.js";import{_generateChangeEvent as t}from"./watch.js";export class CollectionProxy extends e{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){const t=this._collectionField;this._collectionField=e,this.emit("collection-changed",{newValue:e,oldValue:t}),this.emit("after-add"),this.emit("after-changes"),this.emit("after-remove"),this.emit("before-add"),this.emit("before-changes"),this.emit("before-remove"),this.notifyChange("length")}_destroyed=!1;_initialized=!0;_collectionField;_collectionChangeHandle;constructor(e){super(),this._collectionField=e}*[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 o=t;for(let t=0;t<e.length;t++)"function"==typeof e.getItemAt?this.add(e.getItemAt(t),o++):this.add(e[t],o++)}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(){}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)}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,o){if("collection-changed"===e)return super.on(e,o);{let r=this._collection.on(e,o);const i=[super.on(e,o),super.on("collection-changed",(({newValue:i,oldValue:n})=>{if(r.remove(),r=i.on(e,o),"change"===e){const e=t(n,i);(e?.added.length||e?.removed.length||e?.moved.length)&&o(e)}}))];return{remove:()=>{r.remove();for(const e of i)e.remove()}}}}watch(e,t,o){if((Array.isArray(e)?e:[e]).includes("length")){let r=this._collection.watch(e,t,o);const i=[super.watch(e,t,o),super.on("collection-changed",(({newValue:i})=>{r.remove(),r=i.watch(e,t,o)}))];return{remove:()=>{r.remove();for(const e of i)e.remove()}}}return super.watch(e,t,o)}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;)
|
|
1
|
+
import{Observable as e}from"../support/Observable.js";import{_generateChangeEvent as t}from"./watch.js";export class CollectionProxy extends e{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){const t=this._collectionField;this._collectionField=e,this.emit("collection-changed",{newValue:e,oldValue:t}),this.emit("after-add"),this.emit("after-changes"),this.emit("after-remove"),this.emit("before-add"),this.emit("before-changes"),this.emit("before-remove"),this.notifyChange("length")}_destroyed=!1;_initialized=!0;_collectionField;_collectionChangeHandle;constructor(e){super(),this._collectionField=e}*[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 o=t;for(let t=0;t<e.length;t++)"function"==typeof e.getItemAt?this.add(e.getItemAt(t),o++):this.add(e[t],o++)}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(){}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)}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,o){if("collection-changed"===e)return super.on(e,o);{let r=this._collection.on(e,o);const i=[super.on(e,o),super.on("collection-changed",(({newValue:i,oldValue:n})=>{if(r.remove(),r=i.on(e,o),"change"===e){const e=t(n,i);(e?.added.length||e?.removed.length||e?.moved.length)&&o(e)}}))];return{remove:()=>{r.remove();for(const e of i)e.remove()}}}}watch(e,t,o){if((Array.isArray(e)?e:[e]).includes("length")){let r=this._collection.watch(e,t,o);const i=[super.watch(e,t,o),super.on("collection-changed",(({newValue:i})=>{r.remove(),r=i.watch(e,t,o)}))];return{remove:()=>{r.remove();for(const e of i)e.remove()}}}return super.watch(e,t,o)}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 o=0;o<e.length;o++){const r="function"==typeof e.getItemAt?e.getItemAt(o):e[o],i=this.indexOf(r);if(i>=0){const e=this.removeAt(i);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,...o){const r=[];for(let o=t;o>0;o--){const t=this.removeAt(e);t&&r.push(t)}let i=e;return o.forEach((e=>{this.add(e,i),i++})),r}toArray(){return this._collection.toArray()}unshift(e){return this.add(e,0),this.length}_get(e){throw Error()}_set(e,t){throw Error()}}
|
|
@@ -20,8 +20,8 @@ export declare class CopyOnWriteCollection<T> extends CollectionProxy<T> {
|
|
|
20
20
|
constructor(collection: Collection<T>);
|
|
21
21
|
clone(): CopyOnWriteCollection<T>;
|
|
22
22
|
add(item: T, index?: number): this;
|
|
23
|
-
removeAt(index: number): T;
|
|
24
|
-
reorder(item: T, index: number): T;
|
|
23
|
+
removeAt(index: number): T | undefined;
|
|
24
|
+
reorder(item: T, index: number): T | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Undoes all local modifications and resets the collection to the original.
|
|
27
27
|
*/
|
package/utilities/_geoJson.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
2
2
|
/**
|
|
3
3
|
* A GeoJSON geometry.
|
|
4
4
|
*/
|
|
@@ -86,11 +86,11 @@ export interface GeoJSONMultiPolygon {
|
|
|
86
86
|
*
|
|
87
87
|
* @param geometry Geometry to convert.
|
|
88
88
|
*/
|
|
89
|
-
export declare function esriToGeoJSON(geometry:
|
|
89
|
+
export declare function esriToGeoJSON(geometry: GeometryUnion): GeoJSON;
|
|
90
90
|
/**
|
|
91
91
|
* Converts a GeoJSON geometry to an esri geometry. Assigns a spatial reference
|
|
92
92
|
* of WGS84.
|
|
93
93
|
*
|
|
94
94
|
* @param geometry Geometry to convert.
|
|
95
95
|
*/
|
|
96
|
-
export declare function geoJSONToEsri(geometry: GeoJSON):
|
|
96
|
+
export declare function geoJSONToEsri(geometry: GeoJSON): GeometryUnion;
|
package/utilities/_gml.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
2
2
|
/**
|
|
3
3
|
* Converts a GML markup geometry to an Esri geometry.
|
|
4
4
|
*
|
|
5
5
|
* @param geometry The geometry to be converted.
|
|
6
6
|
*/
|
|
7
|
-
export declare function gmlToEsri(geometry: Element):
|
|
7
|
+
export declare function gmlToEsri(geometry: Element): GeometryUnion;
|
|
8
8
|
/**
|
|
9
9
|
* Options used when converting from an Esri to GML geometry.
|
|
10
10
|
*/
|
|
@@ -29,4 +29,4 @@ export interface GmlOptions {
|
|
|
29
29
|
* @param geometry The geometry to be converted.
|
|
30
30
|
* @param options Options to be used during the conversion.
|
|
31
31
|
*/
|
|
32
|
-
export declare function esriToGml(geometry:
|
|
32
|
+
export declare function esriToGml(geometry: GeometryUnion, options: GmlOptions): Element;
|
package/utilities/_project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
2
1
|
import SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
3
2
|
import type GeographicTransformation from "@arcgis/core/geometry/support/GeographicTransformation.js";
|
|
3
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Projects a set of geometries to a new spatial reference.
|
|
6
6
|
*
|
|
@@ -8,4 +8,4 @@ import type GeographicTransformation from "@arcgis/core/geometry/support/Geograp
|
|
|
8
8
|
* @param outSpatialReference The target spatial reference.
|
|
9
9
|
* @param geographicTransformation The optional transformation.
|
|
10
10
|
*/
|
|
11
|
-
export declare function project(geometries: Iterable<
|
|
11
|
+
export declare function project(geometries: Iterable<GeometryUnion>, outSpatialReference: SpatialReference, geographicTransformation?: GeographicTransformation): Promise<GeometryUnion[]>;
|
package/utilities/_wkt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
2
1
|
import SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
2
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Converts a WKT geometry to an esri geometry.
|
|
5
5
|
*
|
|
@@ -7,13 +7,13 @@ import SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
|
7
7
|
* @param outSpatialReference The spatial reference to assign to the geometries.
|
|
8
8
|
* If not specified, WGS84 will be applied.
|
|
9
9
|
*/
|
|
10
|
-
export declare function wktToEsri(geometry: string, outSpatialReference?: SpatialReference):
|
|
10
|
+
export declare function wktToEsri(geometry: string, outSpatialReference?: SpatialReference): GeometryUnion;
|
|
11
11
|
/**
|
|
12
12
|
* Converts an esri geometry to a WKT geometry.
|
|
13
13
|
*
|
|
14
14
|
* @param geometry Geometry to convert.
|
|
15
15
|
*/
|
|
16
|
-
export declare function esriToWKT(geometry:
|
|
16
|
+
export declare function esriToWKT(geometry: GeometryUnion): string;
|
|
17
17
|
/**
|
|
18
18
|
* Attempts to convert a WKID to a WKT spatial reference.
|
|
19
19
|
*
|
package/utilities/basemaps.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import a from"@arcgis/core/Basemap";import{WellKnownBasemap as e,wellKnownBasemapTitles as r}from"../support/esri.js";import{basemapsAreEquivalent as t,standardBasemaps as s}from"./_layers.js";import{checkArg as o}from"./checkArg.js";export{basemapsAreEquivalent,standardBasemaps}from"./_layers.js";export async function createStandardBasemap(t){o("id",t).satisfies((a=>s.hasOwnProperty(a)),`Invalid basemap ID "${t}".`);const i=a.fromJSON(s[t]);let m;switch(i.id=t,t){case e.HYBRID_VECTOR:case e.TERRAIN_VECTOR:case e.OCEANS_VECTOR:case e.OPEN_STREET_MAP_VECTOR:m=a.fromId(t.replace("-vector",""));break;default:m=a.fromId(t)}return await Promise.all([i.load(),m
|
|
1
|
+
import a from"@arcgis/core/Basemap";import{WellKnownBasemap as e,wellKnownBasemapTitles as r}from"../support/esri.js";import{basemapsAreEquivalent as t,standardBasemaps as s}from"./_layers.js";import{checkArg as o}from"./checkArg.js";export{basemapsAreEquivalent,standardBasemaps}from"./_layers.js";export async function createStandardBasemap(t){o("id",t).satisfies((a=>s.hasOwnProperty(a)),`Invalid basemap ID "${t}".`);const i=a.fromJSON(s[t]);let m;switch(i.id=t,t){case e.HYBRID_VECTOR:case e.TERRAIN_VECTOR:case e.OCEANS_VECTOR:case e.OPEN_STREET_MAP_VECTOR:m=a.fromId(t.replace("-vector",""));break;default:m=a.fromId(t)}return await Promise.all([i.load(),m?.load()]),i.title=m?.title||r[t],i.thumbnailUrl=m?.thumbnailUrl,i}export function isStandardBasemap(a){return Object.values(s).some((e=>t(e,a)))}export function getStandardBasemapId(a){return Object.entries(s).find((([e,r])=>t(a,r)))?.[0]}
|
package/utilities/esri.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type Graphic from "@arcgis/core/Graphic";
|
|
|
3
3
|
import type EsriPopupTemplate from "@arcgis/core/PopupTemplate";
|
|
4
4
|
import type Viewpoint from "@arcgis/core/Viewpoint";
|
|
5
5
|
import type Extent from "@arcgis/core/geometry/Extent.js";
|
|
6
|
-
import type Geometry from "@arcgis/core/geometry/Geometry.js";
|
|
7
6
|
import type Mesh from "@arcgis/core/geometry/Mesh.js";
|
|
8
7
|
import type Multipoint from "@arcgis/core/geometry/Multipoint.js";
|
|
9
8
|
import type Point from "@arcgis/core/geometry/Point.js";
|
|
@@ -25,6 +24,7 @@ import type EsriRelationshipContent from "@arcgis/core/popup/content/Relationshi
|
|
|
25
24
|
import type EsriTextContent from "@arcgis/core/popup/content/TextContent";
|
|
26
25
|
import type PortalItem from "@arcgis/core/portal/PortalItem";
|
|
27
26
|
import type FeatureSet from "@arcgis/core/rest/support/FeatureSet";
|
|
27
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
28
28
|
import type { PopupTemplateProperties } from "../support/esri.js";
|
|
29
29
|
/**
|
|
30
30
|
* Loads the given Esri API object and returns a promise that is fulfilled when
|
|
@@ -182,7 +182,7 @@ export declare function isEsriObject(esriObject: unknown): boolean;
|
|
|
182
182
|
*
|
|
183
183
|
* @param geometry The geometry to check.
|
|
184
184
|
*/
|
|
185
|
-
export declare function isGeometry(geometry: unknown): geometry is
|
|
185
|
+
export declare function isGeometry(geometry: unknown): geometry is GeometryUnion;
|
|
186
186
|
/**
|
|
187
187
|
* Returns true if the argument is an ESRI Point geometry.
|
|
188
188
|
*
|
package/utilities/geometry.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Extent from "@arcgis/core/geometry/Extent";
|
|
2
|
-
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
3
2
|
import Polygon from "@arcgis/core/geometry/Polygon";
|
|
4
3
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference";
|
|
5
4
|
import type GeographicTransformation from "@arcgis/core/geometry/support/GeographicTransformation";
|
|
6
|
-
import type {
|
|
5
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
7
6
|
import type { GeoJSON, GeoJSONPoint, GeoJSONMultiPoint, GeoJSONLineString, GeoJSONMultiLineString, GeoJSONPolygon, GeoJSONMultiPolygon } from "./_geoJson.js";
|
|
8
7
|
import type { GmlOptions } from "./_gml.js";
|
|
9
8
|
import { isExtent, isGeometry, isMesh, isMultipoint, isPoint, isPolygon, isPolyline } from "./esri.js";
|
|
@@ -48,7 +47,7 @@ export declare function getBounds(spatialReference: SpatialReference): Coordinat
|
|
|
48
47
|
*
|
|
49
48
|
* @param geometries The geometries to get the screen extent from.
|
|
50
49
|
*/
|
|
51
|
-
export declare function getScreenExtent(geometries:
|
|
50
|
+
export declare function getScreenExtent(geometries: GeometryUnion[]): Extent | undefined;
|
|
52
51
|
/**
|
|
53
52
|
* Denormalizes an extent so that coordinates increase continuously from xmin to
|
|
54
53
|
* xmax. This may result in some vertices of the extent having values outside of
|
|
@@ -95,7 +94,7 @@ export interface GeographicTransformationStepJson {
|
|
|
95
94
|
*
|
|
96
95
|
* @param geometry Geometry to convert.
|
|
97
96
|
*/
|
|
98
|
-
export declare function esriToWKT(geometry:
|
|
97
|
+
export declare function esriToWKT(geometry: GeometryUnion): Promise<string>;
|
|
99
98
|
/**
|
|
100
99
|
* Converts a WKT geometry to an esri geometry.
|
|
101
100
|
*
|
|
@@ -103,33 +102,33 @@ export declare function esriToWKT(geometry: Geometry): Promise<string>;
|
|
|
103
102
|
* @param outSpatialReference The spatial reference to assign to the geometries.
|
|
104
103
|
* If not specified, WGS84 will be applied.
|
|
105
104
|
*/
|
|
106
|
-
export declare function wktToEsri(geometry: string, outSpatialReference?: SpatialReference): Promise<
|
|
105
|
+
export declare function wktToEsri(geometry: string, outSpatialReference?: SpatialReference): Promise<GeometryUnion>;
|
|
107
106
|
/**
|
|
108
107
|
* Converts an esri geometry to a GeoJSON geometry.
|
|
109
108
|
*
|
|
110
109
|
* @param geometry Geometry to convert.
|
|
111
110
|
*/
|
|
112
|
-
export declare function esriToGeoJSON(geometry:
|
|
111
|
+
export declare function esriToGeoJSON(geometry: GeometryUnion): Promise<GeoJSON>;
|
|
113
112
|
/**
|
|
114
113
|
* Converts a GeoJSON geometry to an esri geometry. Assigns a spatial reference
|
|
115
114
|
* of WGS84.
|
|
116
115
|
*
|
|
117
116
|
* @param geometry Geometry to convert.
|
|
118
117
|
*/
|
|
119
|
-
export declare function geoJSONToEsri(geometry: GeoJSON): Promise<
|
|
118
|
+
export declare function geoJSONToEsri(geometry: GeoJSON): Promise<GeometryUnion>;
|
|
120
119
|
/**
|
|
121
120
|
* Converts a GML markup geometry to an Esri geometry.
|
|
122
121
|
*
|
|
123
122
|
* @param geometry The geometry to be converted.
|
|
124
123
|
*/
|
|
125
|
-
export declare function gmlToEsri(geometry: Element): Promise<
|
|
124
|
+
export declare function gmlToEsri(geometry: Element): Promise<GeometryUnion>;
|
|
126
125
|
/**
|
|
127
126
|
* Converts an Esri geometry to a GML markup representation.
|
|
128
127
|
*
|
|
129
128
|
* @param geometry The geometry to be converted.
|
|
130
129
|
* @param options Options to be used during the conversion.
|
|
131
130
|
*/
|
|
132
|
-
export declare function esriToGml(geometry:
|
|
131
|
+
export declare function esriToGml(geometry: GeometryUnion, options: GmlOptions): Promise<Element>;
|
|
133
132
|
/**
|
|
134
133
|
* Attempts to convert a WKID to a WKT spatial reference.
|
|
135
134
|
*
|
|
@@ -148,7 +147,7 @@ export declare function esriWktToWkid(wkt: string): Promise<number>;
|
|
|
148
147
|
*
|
|
149
148
|
* @param geometries A list of geometries.
|
|
150
149
|
*/
|
|
151
|
-
export declare function createCrossTypeUnion(geometries:
|
|
150
|
+
export declare function createCrossTypeUnion(geometries: GeometryUnion[]): Promise<GeometryUnion[]>;
|
|
152
151
|
/**
|
|
153
152
|
* Projects a set of geometries to a new spatial reference.
|
|
154
153
|
*
|
|
@@ -156,7 +155,7 @@ export declare function createCrossTypeUnion(geometries: Geometry[]): Promise<Ge
|
|
|
156
155
|
* @param outSpatialReference The target spatial reference.
|
|
157
156
|
* @param geographicTransformation The optional transformation.
|
|
158
157
|
*/
|
|
159
|
-
export declare function project(geometries: Iterable<
|
|
158
|
+
export declare function project(geometries: Iterable<GeometryUnion>, outSpatialReference: SpatialReference, geographicTransformation?: GeographicTransformation): Promise<GeometryUnion[]>;
|
|
160
159
|
/**
|
|
161
160
|
* Creates buffer polygons at a specified distances around the given geometries.
|
|
162
161
|
* The original geometry will not be modified.
|
|
@@ -168,11 +167,11 @@ export declare function project(geometries: Iterable<Geometry>, outSpatialRefere
|
|
|
168
167
|
* @param unionResults If true, the returned buffers will be combined into a
|
|
169
168
|
* single polygon. Defaults to false.
|
|
170
169
|
*/
|
|
171
|
-
export declare function buffer(geometries:
|
|
172
|
-
export declare function buffer(geometries:
|
|
170
|
+
export declare function buffer(geometries: GeometryUnion, distances: number, unit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards", unionResults?: boolean): Promise<Polygon | Polygon[]>;
|
|
171
|
+
export declare function buffer(geometries: GeometryUnion[], distances: number[], unit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards", unionResults?: boolean): Promise<Polygon | Polygon[]>;
|
|
173
172
|
/**
|
|
174
173
|
* Removes Z values from a geometry. Mesh geometry is returned unaffected.
|
|
175
174
|
*
|
|
176
175
|
* @param geometry The geometry from which to remove z values.
|
|
177
176
|
*/
|
|
178
|
-
export declare function removeZValues(geometry:
|
|
177
|
+
export declare function removeZValues(geometry: GeometryUnion): GeometryUnion;
|
package/utilities/geometry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@arcgis/core/geometry/Extent";import e from"@arcgis/core/geometry/Multipoint";import o from"@arcgis/core/geometry/Point";import r from"@arcgis/core/geometry/Polygon";import n from"@arcgis/core/geometry/Polyline";import{buffer as s,difference as i,geodesicBuffer as a,union as c}from"@arcgis/core/geometry/geometryEngineAsync";import p from"@arcgis/core/rest/support/BufferParameters";import{config as h}from"../config.js";import{groupBy as m}from"./array.js";import{checkArg as f}from"./checkArg.js";import{isExtent as u,isGeometry as y,isMesh as g,isMultipoint as l,isPoint as M,isPolygon as x,isPolyline as d}from"./esri.js";const b=e.prototype.clone;Object.defineProperty(e.prototype,"clone",{value:function(){const t=b.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const P=o.prototype.clone;Object.defineProperty(o.prototype,"clone",{value:function(){const t=P.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const
|
|
1
|
+
import t from"@arcgis/core/geometry/Extent";import e from"@arcgis/core/geometry/Multipoint";import o from"@arcgis/core/geometry/Point";import r from"@arcgis/core/geometry/Polygon";import n from"@arcgis/core/geometry/Polyline";import{buffer as s,difference as i,geodesicBuffer as a,union as c}from"@arcgis/core/geometry/geometryEngineAsync";import p from"@arcgis/core/rest/support/BufferParameters";import{config as h}from"../config.js";import{groupBy as m}from"./array.js";import{checkArg as f}from"./checkArg.js";import{isExtent as u,isGeometry as y,isMesh as g,isMultipoint as l,isPoint as M,isPolygon as x,isPolyline as d}from"./esri.js";const b=e.prototype.clone;Object.defineProperty(e.prototype,"clone",{value:function(){const t=b.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const P=o.prototype.clone;Object.defineProperty(o.prototype,"clone",{value:function(){const t=P.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const v=n.prototype.clone;Object.defineProperty(n.prototype,"clone",{value:function(){const t=v.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const j=r.prototype.clone;Object.defineProperty(r.prototype,"clone",{value:function(){const t=j.bind(this)();return t.hasZ=this.hasZ,t.hasM=this.hasM,t}});const O=n.prototype.insertPoint;Object.defineProperty(n.prototype,"insertPoint",{value:function(t,e,o){const{hasM:r,hasZ:n}=this,s=O.bind(this)(t,e,o);return s.hasZ=n,s.hasM=r,s}});const k=r.prototype.insertPoint;Object.defineProperty(r.prototype,"insertPoint",{value:function(t,e,o){const{hasM:r,hasZ:n}=this,s=k.bind(this)(t,e,o);return s.hasZ=n,s.hasM=r,s}});const E=n.prototype.setPoint;Object.defineProperty(n.prototype,"setPoint",{value:function(t,e,o){const{hasM:r,hasZ:n}=this,s=E.bind(this)(t,e,o);return s.hasZ=n,s.hasM=r,s}});const N=r.prototype.setPoint;Object.defineProperty(r.prototype,"setPoint",{value:function(t,e,o){const{hasM:r,hasZ:n}=this,s=N.bind(this)(t,e,o);return s.hasZ=n,s.hasM=r,s}});const T=n.prototype.removePoint;Object.defineProperty(n.prototype,"removePoint",{value:function(t,e){const{hasM:o,hasZ:r}=this,n=T.bind(this)(t,e);return this.hasZ=r,this.hasM=o,n??void 0}});const Z=r.prototype.removePoint;Object.defineProperty(r.prototype,"removePoint",{value:function(t,e){const{hasM:o,hasZ:r}=this,n=Z.bind(this)(t,e);return this.hasZ=r,this.hasM=o,n??void 0}});export{y as isGeometry,M as isPoint,l as isMultipoint,d as isPolyline,x as isPolygon,u as isExtent,g as isMesh};const w="https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer";export class CoordinateSystemBounds{limit;get min(){return-this.limit}get max(){return this.limit}get range(){return 2*this.limit}constructor(t){this.limit=t}}export const WEB_MERCATOR_BOUNDS=new CoordinateSystemBounds(20037508.342788905);export const GEOGRAPHIC_BOUNDS=new CoordinateSystemBounds(180);export function getBounds(t){return t.isWebMercator?WEB_MERCATOR_BOUNDS:t.isGeographic?GEOGRAPHIC_BOUNDS:void 0}export function getScreenExtent(e){if(!e||0===e.length)return;let o,n,s,i;const{spatialReference:a}=e[0];let c;a.isWebMercator?c=WEB_MERCATOR_BOUNDS:a.isGeographic&&(c=GEOGRAPHIC_BOUNDS);const p=(t,e)=>{(!n||t>n)&&(n=t),(!o||t<o)&&(o=t),(!i||e>i)&&(i=e),(!s||e<s)&&(s=e)},h=t=>null!=c&&Math.sign(t.extent?.xmax??0)!==Math.sign(t.extent?.xmin??0),m=t=>{const e=h(t)?S([t.points],c)[0]:t.points;for(const t of e)p(t[0],t[1])},f=t=>{const e=h(t)?S(t.rings,c):t.rings;for(const t of e)for(const e of t)p(e[0],e[1])},u=t=>{const e=h(t)?S(t.paths,c):t.paths;for(const t of e)for(const e of t)p(e[0],e[1])};for(const t of e.filter((t=>t.spatialReference.equals(a))))switch(t.type){case"point":p(t.x,t.y);break;case"multipoint":m(t);break;case"extent":f(r.fromExtent(t));break;case"polyline":u(t);break;case"polygon":f(t);break;default:throw new Error(`Cannot determine a valid screen extent for geometry type ${t.type}`)}return new t({xmin:o>n?n:o,xmax:n<o?o:n,ymin:s,ymax:i,spatialReference:a})}function S(t,e){if(!e)return t;const o=[...t];let r=-1/0,n=1/0;for(let t of o){let o=-1/0,s=1/0;for(const r of t){for(;r[0]<e.min;)r[0]+=e.range;for(;r[0]>e.max;)r[0]-=e.range;s=Math.min(s,r[0]),o=Math.max(o,r[0])}let i=Math.min(n,s),a=Math.max(r,o);if(a-i>e.limit){o=-1/0,s=1/0;const c=[...t];for(const t of c)t[0]<0?t[0]+=e.range:t[0]-=e.range,s=Math.min(s,t[0]),o=Math.max(o,t[0]);const p=Math.min(n,s),h=Math.max(r,o);h-p<a-i&&(t=c,i=p,a=h)}n=Math.min(i,s),r=Math.max(a,o)}return o}export function denormalizeExtent(t,e){if(!e)return t;const o=r.fromExtent(t);return o.rings=S(o.rings,e),o.extent}export function esriToWKT(t){return f("geometry",t).isNotMissing(),import("./_wkt.js").then((({esriToWKT:e})=>e(t)))}export function wktToEsri(t,e){return f("geometry",t).isNotMissing(),import("./_wkt.js").then((({wktToEsri:o})=>o(t,e)))}export function esriToGeoJSON(t){return f("geometry",t).isNotMissing(),import("./_geoJson.js").then((({esriToGeoJSON:e})=>e(t)))}export function geoJSONToEsri(t){return f("geometry",t).isNotMissing(),f("geometry.type",t.type).isNotMissing(),import("./_geoJson.js").then((({geoJSONToEsri:e})=>e(t)))}export function gmlToEsri(t){return f("geometry",t).isNotMissing(),import("./_gml.js").then((({gmlToEsri:e})=>e(t)))}export function esriToGml(t,e){return f("geometry",t).isNotMissing(),f("geometry type",t.type).isNotMissing(),f("gmlVersion",e.gmlVersion).isNotMissing(),import("./_gml.js").then((({esriToGml:o})=>o(t,e)))}export function esriWkidToWkt(t){return f("wkid",t).isNotMissing(),import("./_wkt.js").then((({esriWkidToWkt:e})=>e(t)))}export function esriWktToWkid(t){return f("wkt",t).isNotMissing(),import("./_wkt.js").then((({esriWktToWkid:e})=>e(t)))}export async function createCrossTypeUnion(t){const e=[],o=m(t,(t=>t.type));for(const t of R){const r=o.get(t);let n;if(r?.length){n=r.length>1?await c(r):r[0];for(const t of e)n=await i(n,t);n&&e.push(n)}}return e}const R=["mesh","extent","polygon","polyline","multipoint","point"];export async function project(t,e,o){return f("geometries",t).isNotMissing().satisfies(_,"All geometries must have the same type and spatial reference."),f("outSpatialReference",e).isNotMissing(),(await import("./_project.js")).project(t,e,o)}export async function buffer(t,e,o,r=!1){const n=Array.isArray(t),i=Array.isArray(e),c=n?t[0].spatialReference:t.spatialReference;if(c.isWebMercator||c.isWGS84)return a(t,e,o,r);if(c.isGeographic){const s=new p({geometries:n?t:[t],distances:i?e:[e],unit:o,unionResults:r}),{buffer:a}=await import("@arcgis/core/rest/geometryService");return a(h.geometryServiceUrl??w,s)}return s(t,e,o,r)}export function removeZValues(t){const e=t;switch(e.type){case"point":e.z=void 0;break;case"polyline":case"polygon":{const t=function(t,e=!1){const o=e?3:2;return t.map((t=>t.map((t=>t.slice(0,o)))))}(e.paths||e.rings,e.hasM);t.forEach(((t,o)=>t.forEach(((t,r)=>e.setPoint(o,r,t)))));break}case"extent":e.zmax=void 0,e.zmin=void 0}return e}function _(t){const e=[...t];if(!(e.length>0))return!0;const o=e[0].type,r=e[0].spatialReference;return e.every((t=>t.type===o&&t.spatialReference.equals(r)))}
|
package/utilities/query.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type Graphic from "@arcgis/core/Graphic";
|
|
2
|
-
import type
|
|
2
|
+
import type { GeometryUnion } from "@arcgis/core/unionTypes.js";
|
|
3
3
|
import { Feature } from "../data/Feature.js";
|
|
4
4
|
import type { FeatureSource } from "../data/FeatureSource.js";
|
|
5
5
|
import type { QueryOptions } from "../tasks/query/QueryOptions.js";
|
|
@@ -30,4 +30,4 @@ export declare function count<T extends Graphic | Feature>(where: string, querya
|
|
|
30
30
|
* intersecting geometry.
|
|
31
31
|
* @param spatialFilter The geometry with which to filter the queryable items.
|
|
32
32
|
*/
|
|
33
|
-
export declare function spatialFilter<T extends Graphic | Feature>(queryable: T[], spatialFilter:
|
|
33
|
+
export declare function spatialFilter<T extends Graphic | Feature>(queryable: T[], spatialFilter: GeometryUnion): Promise<T[]>;
|
package/utilities/query.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{filter as t}from"@arcgis/core/core/promiseUtils.js";import{intersects as e}from"@arcgis/core/geometry/geometryEngineAsync";import{Feature as r}from"../data/Feature.js";import{project as a}from"../utilities/geometry.js";import{isGraphic as i}from"./esri.js";const o="alasql-id",s={outFields:["*"],returnGeometry:!0};export async function query(t,e,r,a){if(!r?.length)return[];const{spatialFilter:l,returnGeometry:u,outFields:p}={...s,...a},c=l?await spatialFilter(r,l):r,m=!i(c[0]);if(t){const r=new Map,a=c.map(((t,e)=>{r.set(e,t);let a={};return m?Array.from(t.attributes.entries()).forEach((([t,e])=>{a[t]=e})):a={...t.attributes},a[o]=e,a}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[a]).map((t=>m?r.get(t[o]):n(t,r.get(t[o]),e,u,p)))}return m?c:c.map((t=>n(t.attributes,t,e,u,p)))}export async function count(t,e,r){if(!e?.length)return 0;const{spatialFilter:a}=r??{},s=a?await spatialFilter(e,a):e,n=!i(s[0]);if(t){const e=s.map(((t,e)=>{let r={};return n?Array.from(t.attributes.entries()).forEach((([t,e])=>r[t]=e)):r={...t.attributes},r[o]=e,r}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[e]).length}return s.length}export async function spatialFilter(r,i){if(!r?.length)return[];const o=r[0]
|
|
1
|
+
import{filter as t}from"@arcgis/core/core/promiseUtils.js";import{intersects as e}from"@arcgis/core/geometry/geometryEngineAsync";import{Feature as r}from"../data/Feature.js";import{project as a}from"../utilities/geometry.js";import{isGraphic as i}from"./esri.js";const o="alasql-id",s={outFields:["*"],returnGeometry:!0};export async function query(t,e,r,a){if(!r?.length)return[];const{spatialFilter:l,returnGeometry:u,outFields:p}={...s,...a},c=l?await spatialFilter(r,l):r,m=!i(c[0]);if(t){const r=new Map,a=c.map(((t,e)=>{r.set(e,t);let a={};return m?Array.from(t.attributes.entries()).forEach((([t,e])=>{a[t]=e})):a={...t.attributes},a[o]=e,a}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[a]).map((t=>m?r.get(t[o]):n(t,r.get(t[o]),e,u,p)))}return m?c:c.map((t=>n(t.attributes,t,e,u,p)))}export async function count(t,e,r){if(!e?.length)return 0;const{spatialFilter:a}=r??{},s=a?await spatialFilter(e,a):e,n=!i(s[0]);if(t){const e=s.map(((t,e)=>{let r={};return n?Array.from(t.attributes.entries()).forEach((([t,e])=>r[t]=e)):r={...t.attributes},r[o]=e,r}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[e]).length}return s.length}export async function spatialFilter(r,i){if(!r?.length)return[];const o=r[0]?.geometry?.spatialReference;let s=i.clone();return o&&!o.equals(s.spatialReference)&&(s=(await a([s],o))[0]),t(r,(async t=>!!t.geometry&&e(s,t.geometry)))}function n(t,e,a,i,s){const n=new r({source:a});for(const e of Object.keys(t))e!==o&&(s.includes("*")||s.includes(e))&&n.attributes.set(e,t[e]);return i&&(n.geometry=e.geometry??void 0),e.popupTemplate&&(n.settings.popupTemplate=e.popupTemplate),n}
|
package/utilities/symbol.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ import type PolygonSymbol3D from "@arcgis/core/symbols/PolygonSymbol3D";
|
|
|
15
15
|
import type SimpleFillSymbol from "@arcgis/core/symbols/SimpleFillSymbol";
|
|
16
16
|
import type SimpleLineSymbol from "@arcgis/core/symbols/SimpleLineSymbol";
|
|
17
17
|
import type SimpleMarkerSymbol from "@arcgis/core/symbols/SimpleMarkerSymbol";
|
|
18
|
-
import type Symbol from "@arcgis/core/symbols/Symbol";
|
|
19
18
|
import type Symbol3D from "@arcgis/core/symbols/Symbol3D";
|
|
20
19
|
import type TextSymbol from "@arcgis/core/symbols/TextSymbol";
|
|
21
20
|
import type WebStyleSymbol from "@arcgis/core/symbols/WebStyleSymbol";
|
|
21
|
+
import type { SymbolUnion } from "@arcgis/core/unionTypes";
|
|
22
22
|
/**
|
|
23
23
|
* Returns whether a symbol is rendered as a 3D object. ESRI's Symbol3D can
|
|
24
24
|
* contain flat or volumetric symbol layers; this function will return true if
|
|
@@ -26,13 +26,13 @@ import type WebStyleSymbol from "@arcgis/core/symbols/WebStyleSymbol";
|
|
|
26
26
|
*
|
|
27
27
|
* @param symbol The symbol to test for volume.
|
|
28
28
|
*/
|
|
29
|
-
export declare function isVolumetric(symbol:
|
|
29
|
+
export declare function isVolumetric(symbol: SymbolUnion | nullish): boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Is the Symbol an Esri Symbol instance.
|
|
32
32
|
*
|
|
33
33
|
* @param symbol The Symbol.
|
|
34
34
|
*/
|
|
35
|
-
export declare function isSymbol(symbol: unknown): symbol is
|
|
35
|
+
export declare function isSymbol(symbol: unknown): symbol is SymbolUnion;
|
|
36
36
|
/**
|
|
37
37
|
* Is the Symbol of type CIMSymbol.
|
|
38
38
|
*
|
package/utilities/watch.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function watchEach<T extends AccessorLike, U = unknown>(collectio
|
|
|
33
33
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
34
34
|
* `false`.
|
|
35
35
|
*/
|
|
36
|
-
export declare function watchEach<T extends AccessorLike, U = unknown>(collection: Collection<T> | ObservableMap<unknown, T>, getValue: (item: T) => U, callback: (newValue: U, oldValue: U, item: T) => void, sync?: boolean): IHandle;
|
|
36
|
+
export declare function watchEach<T extends AccessorLike, 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
37
|
/**
|
|
38
38
|
* Watches a property on each item in a collection property.
|
|
39
39
|
*
|
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="
|
|
1
|
+
export const version="49.1.0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>FeatureLayerBaseApplyEditsEdits | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@vertigis/arcgis-extensions</a></li><li><a href="../modules/support_esri.html">support/esri</a></li><li><a href="support_esri.FeatureLayerBaseApplyEditsEdits.html">FeatureLayerBaseApplyEditsEdits</a></li></ul><h1>Type Alias FeatureLayerBaseApplyEditsEdits</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Feature<wbr/>Layer<wbr/>Base<wbr/>Apply<wbr/>Edits<wbr/>Edits</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__esri.FeatureLayerBaseApplyEditsEdits</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@vertigis/arcgis-extensions</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>FeatureLayerBaseApplyEditsOptions | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@vertigis/arcgis-extensions</a></li><li><a href="../modules/support_esri.html">support/esri</a></li><li><a href="support_esri.FeatureLayerBaseApplyEditsOptions.html">FeatureLayerBaseApplyEditsOptions</a></li></ul><h1>Type Alias FeatureLayerBaseApplyEditsOptions</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Feature<wbr/>Layer<wbr/>Base<wbr/>Apply<wbr/>Edits<wbr/>Options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__esri.FeatureLayerBaseApplyEditsOptions</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@vertigis/arcgis-extensions</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|