@arcgis/core 5.0.0-next.68 → 5.0.0-next.69
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/Ground.d.ts +3 -4
- package/WebDocument2D.d.ts +1 -1
- package/WebLinkChart.d.ts +2 -0
- package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +3 -4
- package/analysis/types.d.ts +1 -0
- package/applications/Components/analysisUtils.d.ts +1 -3
- package/applications/Components/arcadeFeatureUtils.d.ts +1 -1
- package/applications/ExperienceBuilder/sketchUtils.d.ts +2 -2
- package/applications/KnowledgeStudio/reshape.d.ts +2 -2
- package/applications/SceneViewer/sceneViewerUtils.d.ts +11 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c623918e289a09905cd1.js → 01d7542d85a453384cf1.js} +1 -1
- package/assets/esri/core/workers/chunks/{168ec8fca2702617a543.js → 09dfec3e097ebbef6a89.js} +1 -1
- package/assets/esri/core/workers/chunks/{794960ec36e11f4416c2.js → 1d1e25bb61eeeee8ee94.js} +1 -1
- package/assets/esri/core/workers/chunks/2e2c47f8a80ee9234350.js +1 -0
- package/assets/esri/core/workers/chunks/{b2a1e5e9182b643909eb.js → 4c04c54330b693892cfc.js} +47 -49
- package/assets/esri/core/workers/chunks/563933a84fc9b0e021f6.js +1 -0
- package/assets/esri/core/workers/chunks/58b3a776ef129f7f86dc.js +1 -0
- package/assets/esri/core/workers/chunks/58e8d41dcc450e6427c9.js +1 -0
- package/assets/esri/core/workers/chunks/6c9dac4a869742cc2718.js +1 -0
- package/assets/esri/core/workers/chunks/{e5aac523c37d906eece6.js → 827277e5da652bcecaf2.js} +1 -1
- package/assets/esri/core/workers/chunks/9f34cf024231f574009c.js +1 -0
- package/assets/esri/core/workers/chunks/a10c6dd3bb8b3602de68.js +1 -0
- package/assets/esri/core/workers/chunks/a64cd02ca959d511101c.js +1 -0
- package/assets/esri/core/workers/chunks/{0f8149fdcf0adeca268e.js → b28e0b89603d8b03f9e1.js} +1 -1
- package/assets/esri/core/workers/chunks/b5e4a36784d598ae6679.js +1 -0
- package/assets/esri/core/workers/chunks/{204d738c8b651314ae64.js → b899b4e7979c13b99526.js} +1 -1
- package/assets/esri/core/workers/chunks/bf05164b7a3e4f31e9db.js +1 -0
- package/assets/esri/core/workers/chunks/d0ae8752419d5b761190.js +1 -0
- package/assets/esri/core/workers/chunks/dbfb00fb28b8b9f687a1.js +1 -0
- package/assets/esri/core/workers/chunks/e071b912539304564b69.js +1 -0
- package/assets/esri/core/workers/chunks/{ab71865b94022e78035c.js → f92845eb7df1804fcd6d.js} +1 -1
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +108 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GaussianSplatDepthComposition.glsl.js +4 -5
- package/chunks/HUDMaterial.glsl.js +45 -47
- package/chunks/LineMarker.glsl.js +33 -34
- package/chunks/PointRenderer.glsl.js +6 -6
- package/chunks/RibbonLine.glsl.js +62 -54
- package/chunks/libtess-f32.js +1 -1
- package/chunks/libtess-f64.js +1 -1
- package/config.js +1 -1
- package/core/Collection.d.ts +3 -2
- package/core/Identifiable.d.ts +1 -3
- package/core/accessorSupport/types.d.ts +0 -8
- package/core/promiseUtils.d.ts +1 -1
- package/core/reactiveUtils.d.ts +2 -2
- package/core/units.d.ts +8 -2
- package/geometry/HeightModelInfo.d.ts +3 -3
- package/geometry/SpatialReference.d.ts +2 -2
- package/geometry/libtess.js +1 -1
- package/geometry/support/meshUtils/types.d.ts +2 -2
- package/geometry/types.d.ts +2 -0
- package/identity/IdentityManagerBase.d.ts +4 -4
- package/interfaces.d.ts +2937 -2954
- package/kernel.js +1 -1
- package/layers/BaseElevationLayer.d.ts +3 -4
- package/layers/ElevationLayer.d.ts +3 -4
- package/layers/FeatureLayer.d.ts +12 -11
- package/layers/FeatureLayer.js +1 -1
- package/layers/GroupLayer.d.ts +3 -3
- package/layers/ImageryLayer.d.ts +3 -3
- package/layers/ImageryTileLayer.d.ts +3 -4
- package/layers/Layer.d.ts +4 -4
- package/layers/LineOfSightLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +7 -8
- package/layers/MediaLayer.d.ts +3 -3
- package/layers/OrientedImageryLayer.d.ts +3 -3
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/RouteLayer.d.ts +2 -3
- package/layers/SceneLayer.d.ts +167 -3
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.d.ts +3 -3
- package/layers/SubtypeGroupLayer.d.ts +3 -3
- package/layers/WCSLayer.d.ts +3 -3
- package/layers/graphics/sources/ParquetSource.d.ts +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/SceneService.d.ts +2 -2
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.d.ts +2 -2
- package/layers/orientedImagery/transformations/types.d.ts +1 -1
- package/layers/raster/datasets/pixelReader.d.ts +1 -7
- package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +29 -29
- package/layers/support/BuildingFilterMode.d.ts +3 -1
- package/layers/support/BuildingFilterMode.js +1 -1
- package/layers/support/BuildingFilterModeSolid.js +1 -1
- package/layers/support/BuildingFilterModeWireFrame.js +1 -1
- package/layers/support/BuildingFilterModeXRay.js +1 -1
- package/layers/support/CodedValue.d.ts +1 -1
- package/layers/support/ControlPoint.d.ts +6 -20
- package/layers/support/ControlPointsGeoreference.d.ts +2 -1
- package/layers/support/ElevationSampler.d.ts +2 -2
- package/layers/support/FeatureReductionBinning.d.ts +4 -4
- package/layers/support/FeatureReductionBinning.js +1 -1
- package/layers/support/FeatureReductionSelection.d.ts +3 -3
- package/layers/support/FeatureReductionSelection.js +1 -1
- package/layers/support/Field.d.ts +1 -2
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +6 -4
- package/layers/support/ParquetGeometryEncodingLocation.js +1 -1
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +6 -4
- package/layers/support/ParquetGeometryEncodingWkb.js +1 -1
- package/layers/support/PixelBlock.d.ts +11 -3
- package/layers/support/RangeDomain.d.ts +2 -1
- package/layers/support/SceneServiceTimeInfo.js +5 -0
- package/layers/support/SpriteSource.d.ts +1 -0
- package/layers/support/Sublayer.d.ts +17 -16
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/featureReductionUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +30 -30
- package/layers/support/types.d.ts +101 -1
- package/layers/types.d.ts +12 -1
- package/layers/wms/types.d.ts +0 -4
- package/networks/CircuitManager.d.ts +5 -5
- package/networks/Network.d.ts +5 -5
- package/networks/UtilityNetwork.d.ts +2 -2
- package/package.json +2 -2
- package/popup/content/types.d.ts +1 -3
- package/portal/PortalItem.d.ts +8 -8
- package/portal/PortalItemResource.d.ts +2 -2
- package/portal/PortalUser.d.ts +3 -3
- package/portal/support/resourceUtils.d.ts +3 -3
- package/portal/types.d.ts +6 -6
- package/renderers/support/pointCloud/types.d.ts +1 -0
- package/renderers/support/raster/types.d.ts +1 -0
- package/renderers/types.d.ts +2 -0
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +0 -2
- package/rest/layerSources/DynamicDataLayer.d.ts +102 -0
- package/rest/layerSources/DynamicDataLayer.js +5 -0
- package/{layers/support/source/MapLayerSource.d.ts → rest/layerSources/DynamicMapLayer.d.ts} +4 -4
- package/rest/layerSources/DynamicMapLayer.js +5 -0
- package/rest/layerSources/JoinTableDataSource.d.ts +75 -0
- package/rest/layerSources/JoinTableDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/QueryTableDataSource.d.ts +8 -7
- package/rest/layerSources/QueryTableDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/RasterDataSource.d.ts +2 -2
- package/rest/layerSources/RasterDataSource.js +5 -0
- package/{layers/support/source → rest/layerSources}/TableDataSource.d.ts +2 -2
- package/rest/layerSources/TableDataSource.js +5 -0
- package/rest/layerSources/utils.js +5 -0
- package/rest/print.js +1 -1
- package/rest/query/executeQuery.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/rest/support/types.d.ts +0 -4
- package/smartMapping/heuristics/binLevel.d.ts +2 -2
- package/smartMapping/heuristics/scaleRange.d.ts +2 -2
- package/smartMapping/heuristics/sizeRange.d.ts +2 -2
- package/smartMapping/heuristics/types.d.ts +3 -3
- package/smartMapping/labels/bins.d.ts +2 -2
- package/smartMapping/labels/clusters.d.ts +2 -2
- package/smartMapping/renderers/color.d.ts +14 -14
- package/smartMapping/renderers/dotDensity.d.ts +2 -2
- package/smartMapping/renderers/heatmap.d.ts +4 -4
- package/smartMapping/renderers/location.d.ts +2 -2
- package/smartMapping/renderers/opacity.d.ts +2 -2
- package/smartMapping/renderers/pieChart.d.ts +4 -4
- package/smartMapping/renderers/predominance.d.ts +2 -2
- package/smartMapping/renderers/relationship.d.ts +4 -4
- package/smartMapping/renderers/size.d.ts +15 -15
- package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
- package/smartMapping/renderers/type.d.ts +4 -4
- package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
- package/smartMapping/statistics/classBreaks.d.ts +2 -2
- package/smartMapping/statistics/heatmapStatistics.d.ts +2 -2
- package/smartMapping/statistics/histogram.d.ts +2 -2
- package/smartMapping/statistics/predominantCategories.d.ts +2 -2
- package/smartMapping/statistics/summaryStatistics.d.ts +2 -2
- package/smartMapping/statistics/summaryStatisticsForAge.d.ts +2 -2
- package/smartMapping/statistics/support/ageUtils.d.ts +2 -2
- package/smartMapping/statistics/types.d.ts +7 -7
- package/smartMapping/statistics/uniqueValues.d.ts +2 -2
- package/smartMapping/symbology/color.d.ts +8 -8
- package/smartMapping/symbology/dotDensity.d.ts +6 -6
- package/smartMapping/symbology/flow.d.ts +6 -6
- package/smartMapping/symbology/heatmap.d.ts +6 -6
- package/smartMapping/symbology/location.d.ts +2 -2
- package/smartMapping/symbology/pieChart.d.ts +6 -6
- package/smartMapping/symbology/predominance.d.ts +6 -6
- package/smartMapping/symbology/relationship.d.ts +6 -6
- package/smartMapping/symbology/size.d.ts +2 -2
- package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
- package/smartMapping/symbology/type.d.ts +6 -6
- package/support/popupUtils.d.ts +2 -2
- package/support/revision.js +1 -1
- package/symbols/LineSymbol3D.d.ts +2 -2
- package/symbols/PointSymbol3D.d.ts +2 -2
- package/symbols/PolygonSymbol3D.d.ts +2 -2
- package/symbols/patterns/LinePattern3D.d.ts +8 -0
- package/symbols/patterns/LineStylePattern3D.d.ts +1 -2
- package/symbols/patterns/Pattern3D.d.ts +9 -0
- package/symbols/patterns/StylePattern3D.d.ts +1 -2
- package/symbols/types.d.ts +7 -0
- package/unionTypes.d.ts +13 -13
- package/views/2d/analysis/types.d.ts +1 -0
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +0 -5
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/support/MediaLayerInteractionOptions.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +0 -2
- package/views/3d/analysis/types.d.ts +1 -0
- package/views/3d/environment/SunLighting.d.ts +1 -3
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionOptions.d.ts +4 -0
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Transform.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js +5 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/LegacyTransform.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/analysis/types.d.ts +4 -0
- package/views/input/types.d.ts +2 -4
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/layers/CatalogLayerView.d.ts +1 -4
- package/views/layers/DimensionLayerView.d.ts +4 -6
- package/views/layers/DimensionLayerViewMixin.d.ts +0 -97
- package/views/layers/LineOfSightLayerView.d.ts +4 -6
- package/views/layers/LineOfSightLayerViewMixin.d.ts +0 -77
- package/views/layers/StreamLayerView.d.ts +31 -2
- package/views/support/WebAssemblyRequirements.js +5 -0
- package/views/support/WebGLRequirements.js +1 -1
- package/webdoc/support/SlideThumbnail.d.ts +6 -3
- package/webdoc/support/SlideThumbnail.js +1 -1
- package/webscene/spec-certification/api.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -2
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +2 -2
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +7 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/textInputElementUtils.js +5 -0
- package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +2 -2
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +20 -4
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Directions.d.ts +2 -3
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -2
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +2 -2
- package/widgets/Editor.d.ts +2 -2
- package/widgets/ElevationProfile/support/HoveredPoints.js +1 -1
- package/widgets/ElevationProfile/types.d.ts +3 -4
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Feature/types.d.ts +1 -5
- package/widgets/FeatureTable/Grid/types.d.ts +0 -2
- package/widgets/FeatureTable/support/types.d.ts +8 -8
- package/widgets/Features/FeaturesViewModel.d.ts +3 -3
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.d.ts +2 -2
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
- package/widgets/Popup/types.d.ts +0 -2
- package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +2 -0
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/types.d.ts +2 -2
- package/widgets/Slice/SliceViewModel.d.ts +2 -2
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Spinner/SpinnerViewModel.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +5 -0
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +5 -0
- package/assets/esri/core/workers/chunks/3c3d311b88f5400951ef.js +0 -1
- package/assets/esri/core/workers/chunks/4a060147d25929680ec8.js +0 -1
- package/assets/esri/core/workers/chunks/4d0eaeb4cd6cd55e25fd.js +0 -1
- package/assets/esri/core/workers/chunks/61801bb8c7be8fe77086.js +0 -1
- package/assets/esri/core/workers/chunks/62b28f73f814413c10fc.js +0 -1
- package/assets/esri/core/workers/chunks/6925f09d44cc38480d53.js +0 -1
- package/assets/esri/core/workers/chunks/98f4b44eca91c42ca08e.js +0 -1
- package/assets/esri/core/workers/chunks/990341f7c47bd656c782.js +0 -1
- package/assets/esri/core/workers/chunks/ba7f57788847cc0f68df.js +0 -1
- package/assets/esri/core/workers/chunks/bf06250be7a7a36306b1.js +0 -1
- package/assets/esri/core/workers/chunks/cd2708fb7636b3ace229.js +0 -1
- package/assets/esri/core/workers/chunks/f7d93aae350796b88562.js +0 -1
- package/assets/esri/core/workers/chunks/f95e488d2b86e320624f.js +0 -1
- package/layers/mixins/TemporalSceneLayer.d.ts +0 -177
- package/layers/mixins/TemporalSceneLayer.js +0 -5
- package/layers/mixins/properties/ILayerWithSave.d.ts +0 -11
- package/layers/support/ContingencyConstraintViolation.d.ts +0 -2
- package/layers/support/ContingentValue.d.ts +0 -2
- package/layers/support/ContingentValuesResult.d.ts +0 -2
- package/layers/support/ElevationQuery.d.ts +0 -35
- package/layers/support/ElevationQueryContext.d.ts +0 -37
- package/layers/support/FeatureReduction.d.ts +0 -3
- package/layers/support/FeatureReduction.js +0 -5
- package/layers/support/FieldGroup.d.ts +0 -2
- package/layers/support/FieldValueType.d.ts +0 -2
- package/layers/support/I3SLayer.d.ts +0 -9
- package/layers/support/ParquetGeometryEncodingBase.d.ts +0 -9
- package/layers/support/ParquetGeometryEncodingBase.js +0 -5
- package/layers/support/SimpleBandStatistics.d.ts +0 -10
- package/layers/support/source/DataLayerSource.d.ts +0 -171
- package/layers/support/source/DataLayerSource.js +0 -5
- package/layers/support/source/MapLayerSource.js +0 -5
- package/layers/support/source/QueryTableDataSource.js +0 -5
- package/layers/support/source/RasterDataSource.js +0 -5
- package/layers/support/source/TableDataSource.js +0 -5
- package/layers/support/source/types.d.ts +0 -4
- package/views/2d/layers/features/FeaturePipelineWorkerProxy.d.ts +0 -32
- package/views/3d/webgl-engine/shaders/GaussianSplatColorTechnique.js +0 -5
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +0 -5
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +0 -5
- package/widgets/support/AnalysisViewModel.d.ts +0 -5
- package/widgets/support/AnalysisViewModel.js +0 -5
- package/widgets/support/AnchorElementViewModel.d.ts +0 -3
- package/widgets/support/InteractiveToolViewModel.d.ts +0 -4
- package/widgets/support/InteractiveToolViewModel.js +0 -5
- /package/webdoc/support/{thumbnailUtils.d.ts → types.d.ts} +0 -0
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
import type { AnalysisView2DUnion } from "../2d/analysis/types.js";
|
|
7
7
|
import type { AnalysisView3DUnion } from "../3d/analysis/types.js";
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Union of all possible analysis views that can be added to a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or
|
|
11
|
+
* [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
|
|
12
|
+
*/
|
|
9
13
|
export type AnalysisViewUnion = AnalysisView2DUnion | AnalysisView3DUnion;
|
|
10
14
|
|
|
11
15
|
export type MeasurementMode = "euclidean" | "geodesic";
|
package/views/input/types.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import type LayerView from "../layers/LayerView.js";
|
|
|
4
4
|
|
|
5
5
|
export type PointerType = "mouse" | "touch" | "pen";
|
|
6
6
|
|
|
7
|
-
export type PointerEventType = "pointer-down" | "pointer-move" | "pointer-up" | "pointer-drag" | "pointer-enter" | "pointer-leave";
|
|
8
|
-
|
|
9
7
|
/**
|
|
10
8
|
* Indicates which mouse button was clicked.
|
|
11
9
|
* See [MouseEvent.button](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button).
|
|
@@ -53,7 +51,7 @@ export interface ViewEvent<T extends Event = Event> {
|
|
|
53
51
|
* });
|
|
54
52
|
* });
|
|
55
53
|
*/
|
|
56
|
-
export type EventDefer = <T>(operation:
|
|
54
|
+
export type EventDefer = <T>(operation: EventDeferredOperation<T>) => Promise<T>;
|
|
57
55
|
|
|
58
56
|
/**
|
|
59
57
|
* Aynchronous function passed to the defer method of an event.
|
|
@@ -62,7 +60,7 @@ export type EventDefer = <T>(operation: () => Promise<T>) => Promise<T>;
|
|
|
62
60
|
* @since 4.33
|
|
63
61
|
* @see {@link views/input/IViewEvents!EventDefer}
|
|
64
62
|
*/
|
|
65
|
-
export type EventDeferredOperation<T
|
|
63
|
+
export type EventDeferredOperation<T> = () => Promise<T>;
|
|
66
64
|
|
|
67
65
|
export type PointerId = number;
|
|
68
66
|
|
package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import t from"../../../../../core/Accessor.js";import{equals as i}from"../../../../../core/arrayUtils.js";import{createTask as s}from"../../../../../core/asyncUtils.js";import r from"../../../../../core/Logger.js";import{throwIfAbortError as o}from"../../../../../core/promiseUtils.js";import{when as n}from"../../../../../core/reactiveUtils.js";import{union as a,equals as l,isSubsetOf as u,difference as d}from"../../../../../core/SetUtils.js";import{normalizeGlobalID as c}from"../../../../../core/uuid.js";import{property as h,subclass as p}from"../../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as y}from"../../../../../core/support/UpdatingHandles.js";import f from"../../../../../geometry/Extent.js";import{toExtent as m}from"../../../../../geometry/support/aaBoundingRect.js";import{unquantizeOptimizedFeatureSet as _}from"../../../../../layers/graphics/featureConversionUtils.js";import{FlatFeatureSet as g,convertOptimizedFeatureSetToFlat as F,convertFeatureSetToFlat as T}from"../../../../../layers/graphics/FlatFeatureSet.js";import{isHostedAgolService as b}from"../../../../../layers/support/arcgisLayerUrl.js";import{OptimizedFeatureSetParserContext as P}from"../../../../../rest/query/operations/pbfOptimizedFeatureSet.js";import{executeQueryForExtent as v,executeQueryPBF as I,executeQuery as O}from"../../../../../rest/query/operations/query.js";import S from"../../../../../rest/support/Query.js";import{PendingFeatureTile as w}from"./PendingFeatureTile.js";let j=class extends t{get _minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}get _mandatoryOutFields(){const e=new Set;return this.objectIdField&&e.add(this.objectIdField),this.globalIdField&&e.add(this.globalIdField),e}set outFields(e){const t=this._get("outFields"),i=a(e,this._mandatoryOutFields);l(i,t)||(this._set("outFields",i),u(i,t)||this.refresh())}get outFields(){return this._get("outFields")??this._mandatoryOutFields}set filter(e){const t=this._get("filter"),i=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(i)&&this._set("filter",i)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get _configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&(null!=e&&null!=t&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this._updatingHandles.updating}get hasZ(){return this.store.featureStore.hasZ}constructor(e){super(e),this.suspended=!0,this._historicMoment=null,this.tilesOfInterest=new Array,this.availability=0,this._pendingTiles=new Map,this._updatingHandles=new y}initialize(){this._initializeFetchExtent(),this._updatingHandles.add(()=>this._configuration,()=>this.refresh()),this._updatingHandles.add(()=>this.tilesOfInterest,()=>{this._updatePriorities(),this._process()},{sync:!0,initial:!0,equals:(e,t)=>i(e,t,({id:e},{id:t})=>e===t)}),this.addHandles(n(()=>!this.suspended,()=>this._process()))}_updatePriorities(){this.store.setPriorityOrderByKey(this.tilesOfInterest.map(({id:e})=>e)??[])}destroy(){this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this._updatingHandles.destroy()}refresh(){this.store.refresh(),this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._process()}async handleEdits(e){if(e.historicMoment&&(this._historicMoment=e.historicMoment),!e.addedFeatures.length&&!e.updatedFeatures.length&&!e.deletedFeatures.length)return;for(const s of this._pendingTiles.values())s.reset();const t={...e,deletedFeatures:e.deletedFeatures.map(({objectId:e,globalId:t})=>e&&-1!==e?e:this._lookupObjectIdByGlobalId(t))},i=s(async e=>{try{await this.store.processEdits(t,(e,t)=>this._queryFeaturesById(e,t),e),this._processPendingTiles()}catch(i){o(i),r.getLogger(this).warn("Failed to apply edits",i)}});this.addHandles(i),await this._updatingHandles.addPromise(i.promise)}setHistoricMoment(e){e?.getTime()!==this._historicMoment?.getTime()&&(this._historicMoment=e,this.refresh())}_initializeFetchExtent(){if(!this.capabilities.query.supportsExtent||!b(this.url))return;const e=s(async e=>{try{const t=await v(this.url,new S({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:this.capabilities.query.supportsCacheHint??void 0}),{query:this._configuration.customParameters,signal:e});this.store.extent=f.fromJSON(t?.extent)}catch(t){o(t),r.getLogger(this).warn("Failed to fetch data extent",t)}});this._updatingHandles.addPromise(e.promise.then(()=>this._process())),this.addHandles(e)}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this._pendingTiles.values()).map(e=>e.debugInfo),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const e of this._pendingTiles.values())e.alive=!1}_createPendingTiles(){if(this.suspended)return;const e=this._collectMissingTilesInfo();if(this._setAvailability(null==e?1:e.coveredArea/e.fullArea),null!=e)for(const{data:t,resolution:i}of e.missingTiles){const e=this._pendingTiles.get(t.id);e?(e.resolution=i,e.alive=!0):this._createPendingTile(t,i)}}_collectMissingTilesInfo(){let e=null;for(const t of this.tilesOfInterest){const i=this.store.process(t,(e,t)=>this._verifyTileComplexity(e,t),this.outFields);null==e?e=i:e.prepend(i)}return e}_deletePendingTiles(){for(const e of this._pendingTiles.values())e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(e,t)=>this._fetchCount(e,t),fetchFeatures:(e,t,i)=>this._fetchFeatures(e,t,i),finish:(e,t)=>this._finishPendingTile(e,t),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const t of this._pendingTiles.values())this._verifyTileComplexity(this.store.getFeatureCount(t.key),t.resolution)&&this._updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this._minimumVerticesPerFeature<q}_verifyFeatureDensity(e,t){if(null==this.tileInfo)return!1;const i=this.tileSize*t;return e*(M/(i*i))<A}_ensureFetchAllCounts(e){let t=!0;for(const i of this._pendingTiles.values())i.state.type<2&&this._updatingHandles.addPromise(i.process(e)),i.state.type<=1&&(t=!1);return t}_finishPendingTile(e,t){this.store.add(e.key,t),this._deletePendingTile(e),this._updateAvailability()}_updateAvailability(){const e=this._collectMissingTilesInfo();this._setAvailability(null==e?1:e.coveredArea/e.fullArea)}_setAvailability(e){this._set("availability",e)}_createPendingTile(e,t){const i=new w(e,t);return this._pendingTiles.set(e.id,i),i}_deletePendingTile(e){e.reset(),this._pendingTiles.delete(e.key.id)}async _fetchCount(e,t){return this.store.fetchCount(e.key,this.url,this._createCountQuery(e),{query:this.customParameters,timeout:C,signal:t})}async _fetchFeatures(e,t,i){let s=0;const r=[];let o=0,n=t;for(;;){const a=this._createFeaturesQuery(e),l=this._setPagingParameters(a,s,n),{features:u,exceededTransferLimit:d}=await this._queryFeatures(a,i);l&&(s+=a.num),o+=u.length;for(const e of u)r.push(e);if(n=t-o,!l||!d||n<=0)return r}}_filterProperties(e){return null==e?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}_lookupObjectIdByGlobalId(e){const t=this.globalIdField,i=this.objectIdField;if(null==t)throw new Error("Expected globalIdField to be defined");let s=null;const r=e?c(e):e;if(this.store.featureStore.forEach(e=>{r===c(e.attributes[t])&&(s=e.objectId??e.attributes[i])}),null==s)throw new Error(`Expected to find a feature with globalId ${e}`);return s}_queryFeaturesById(e,t){const i=this._createFeaturesQuery();return i.objectIds=e,this._queryFeatures(i,t)}async _queryFeatures(e,t){return 0===e.num?new g:this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}async _queryFeaturesPBF(e,t){const{sourceSpatialReference:i}=this,s=await I(this.url,e,new P({sourceSpatialReference:i}),{query:this._configuration.customParameters,timeout:C,signal:t});return F(_(s))}async _queryFeaturesJSON(e,t){const{sourceSpatialReference:i}=this,s=await O(this.url,e,i,{query:this._configuration.customParameters,timeout:C,signal:t});return T(s,{type:"object-id",fieldName:this.objectIdField})}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e=null){const t=this._createBaseQuery(e),i=null!=e?.key?this.store.getAttributesForTile(e?.key?.id):null,s=a(d(this.outFields,i??new Set),this._mandatoryOutFields);return t.outFields=Array.from(s),t.returnGeometry=!0,null!=e&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new S({returnZ:this.hasZ,returnM:!1,historicMoment:this._historicMoment,geometry:null!=this.tileInfo&&null!=e?m(e.key.extent,this.tileInfo.spatialReference):void 0}),i=this._configuration.filter;return null!=i&&(t.where=i.where,t.gdbVersion=i.gdbVersion,t.timeExtent=i.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,i){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:s,supportsCacheHint:r,tileMaxRecordCount:o,maxRecordCount:n,supportsResultType:a}=this.capabilities.query,l=s?S.MAX_MAX_RECORD_COUNT_FACTOR:1,u=l*((a||r)&&o?o:n||x);return e.start=t,s?(e.maxRecordCountFactor=Math.min(l,Math.ceil(i/u)),e.num=Math.min(i,e.maxRecordCountFactor*u)):e.num=Math.min(i,u),!0}};e([h({constructOnly:!0})],j.prototype,"url",void 0),e([h({constructOnly:!0})],j.prototype,"objectIdField",void 0),e([h({constructOnly:!0})],j.prototype,"globalIdField",void 0),e([h({constructOnly:!0})],j.prototype,"capabilities",void 0),e([h({constructOnly:!0})],j.prototype,"sourceSpatialReference",void 0),e([h({constructOnly:!0})],j.prototype,"spatialReference",void 0),e([h({constructOnly:!0})],j.prototype,"store",void 0),e([h({readOnly:!0})],j.prototype,"_minimumVerticesPerFeature",null),e([h()],j.prototype,"_mandatoryOutFields",null),e([h()],j.prototype,"outFields",null),e([h()],j.prototype,"suspended",void 0),e([h()],j.prototype,"_historicMoment",void 0),e([h()],j.prototype,"filter",null),e([h()],j.prototype,"customParameters",null),e([h({readOnly:!0})],j.prototype,"_configuration",null),e([h()],j.prototype,"tileInfo",null),e([h()],j.prototype,"tileSize",null),e([h()],j.prototype,"tilesOfInterest",void 0),e([h({readOnly:!0})],j.prototype,"updating",null),e([h({readOnly:!0})],j.prototype,"availability",void 0),e([h()],j.prototype,"hasZ",null),j=e([p("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],j);const x=2e3,C=6e5,q=1e6,M=25,A=1;export{j as FeatureServiceTiledFetcher};
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../../../../../core/Accessor.js";import{equals as i}from"../../../../../core/arrayUtils.js";import{createTask as s}from"../../../../../core/asyncUtils.js";import r from"../../../../../core/Logger.js";import{throwIfAbortError as o}from"../../../../../core/promiseUtils.js";import{when as n}from"../../../../../core/reactiveUtils.js";import{union as a,equals as l,isSubsetOf as u,difference as d}from"../../../../../core/SetUtils.js";import{normalizeGlobalID as c}from"../../../../../core/uuid.js";import{property as h,subclass as p}from"../../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as y}from"../../../../../core/support/UpdatingHandles.js";import f from"../../../../../geometry/Extent.js";import{toExtent as m}from"../../../../../geometry/support/aaBoundingRect.js";import{unquantizeOptimizedFeatureSet as _}from"../../../../../layers/graphics/featureConversionUtils.js";import{FlatFeatureSet as g,convertOptimizedFeatureSetToFlat as F,convertFeatureSetToFlat as T}from"../../../../../layers/graphics/FlatFeatureSet.js";import{isHostedAgolService as b}from"../../../../../layers/support/arcgisLayerUrl.js";import{OptimizedFeatureSetParserContext as v}from"../../../../../rest/query/operations/pbfOptimizedFeatureSet.js";import{executeQueryForExtent as P,executeQueryPBF as I,executeQuery as O}from"../../../../../rest/query/operations/query.js";import S from"../../../../../rest/support/Query.js";import{PendingFeatureTile as w}from"./PendingFeatureTile.js";let j=class extends t{get _minimumVerticesPerFeature(){switch(this.store?.featureStore.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":return 1;case"esriGeometryPolygon":return 4;case"esriGeometryPolyline":return 2}}get _mandatoryOutFields(){const e=new Set;return this.objectIdField&&e.add(this.objectIdField),this.globalIdField&&e.add(this.globalIdField),e}set outFields(e){const t=this._get("outFields"),i=a(e,this._mandatoryOutFields);l(i,t)||(this._set("outFields",i),u(i,t)||this.refresh())}get outFields(){return this._get("outFields")??this._mandatoryOutFields}set filter(e){const t=this._get("filter"),i=this._filterProperties(e);JSON.stringify(t)!==JSON.stringify(i)&&this._set("filter",i)}set customParameters(e){const t=this._get("customParameters");JSON.stringify(t)!==JSON.stringify(e)&&this._set("customParameters",e)}get _configuration(){return{filter:this.filter,customParameters:this.customParameters,tileInfo:this.tileInfo,tileSize:this.tileSize}}set tileInfo(e){const t=this._get("tileInfo");t!==e&&(null!=e&&null!=t&&JSON.stringify(e)===JSON.stringify(t)||(this._set("tileInfo",e),this.store.tileInfo=e))}set tileSize(e){this._get("tileSize")!==e&&this._set("tileSize",e)}get updating(){return this._updatingHandles.updating}get hasZ(){return this.store.featureStore.hasZ}constructor(e){super(e),this.suspended=!0,this._historicMoment=null,this.tilesOfInterest=new Array,this.availability=0,this._pendingTiles=new Map,this._updatingHandles=new y}initialize(){this._initializeFetchExtent(),this._updatingHandles.add(()=>this._configuration,()=>this.refresh()),this._updatingHandles.add(()=>this.tilesOfInterest,()=>{this._updatePriorities(),this._process()},{sync:!0,initial:!0,equals:(e,t)=>i(e,t,({id:e},{id:t})=>e===t)}),this.addHandles(n(()=>!this.suspended,()=>this._process()))}_updatePriorities(){this.store.setPriorityOrderByKey(this.tilesOfInterest.map(({id:e})=>e)??[])}destroy(){this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._pendingTiles.clear(),this.store.destroy(),this.tilesOfInterest.length=0,this._updatingHandles.destroy()}refresh(){this.store.refresh(),this._pendingTiles.forEach(e=>this._deletePendingTile(e)),this._process()}async handleEdits(e){if(e.historicMoment&&(this._historicMoment=e.historicMoment),!e.addedFeatures.length&&!e.updatedFeatures.length&&!e.deletedFeatures.length)return;for(const s of this._pendingTiles.values())s.reset();const t={...e,deletedFeatures:e.deletedFeatures.map(({objectId:e,globalId:t})=>e&&-1!==e?e:this._lookupObjectIdByGlobalId(t))},i=s(async e=>{try{await this.store.processEdits(t,(e,t)=>this._queryFeaturesById(e,t),e),this._processPendingTiles()}catch(i){o(i),r.getLogger(this).warn("Failed to apply edits",i)}});this.addHandles(i),await this._updatingHandles.addPromise(i.promise)}setHistoricMoment(e){e?.getTime()!==this._historicMoment?.getTime()&&(this._historicMoment=e,this.refresh())}_initializeFetchExtent(){if(!this.capabilities.query.supportsExtent||!b(this.url))return;const e=s(async e=>{try{const t=await P(this.url,new S({where:"1=1",outSpatialReference:this.spatialReference,cacheHint:this.capabilities.query.supportsCacheHint??void 0}),{query:this._configuration.customParameters,signal:e});this.store.extent=f.fromJSON(t?.extent)}catch(t){o(t),r.getLogger(this).warn("Failed to fetch data extent",t)}});this._updatingHandles.addPromise(e.promise.then(()=>this._process())),this.addHandles(e)}get debugInfo(){return{numberOfFeatures:this.store.featureStore.numFeatures,tilesOfInterest:this.tilesOfInterest,pendingTiles:Array.from(this._pendingTiles.values()).map(e=>e.debugInfo),storedTiles:this.store.debugInfo}}_process(){this._markTilesNotAlive(),this._createPendingTiles(),this._deletePendingTiles(),this._processPendingTiles()}_markTilesNotAlive(){for(const e of this._pendingTiles.values())e.alive=!1}_createPendingTiles(){if(this.suspended)return;const e=this._collectMissingTilesInfo();if(this._setAvailability(null==e?1:e.coveredArea/e.fullArea),null!=e)for(const{data:t,resolution:i}of e.missingTiles){const e=this._pendingTiles.get(t.id);e?(e.resolution=i,e.alive=!0):this._createPendingTile(t,i)}}_collectMissingTilesInfo(){let e=null;for(const t of this.tilesOfInterest){const i=this.store.process(t,(e,t)=>this._verifyTileComplexity(e,t),this.outFields);null==e?e=i:e.prepend(i)}return e}_deletePendingTiles(){for(const e of this._pendingTiles.values())e.alive||this._deletePendingTile(e)}_processPendingTiles(){const e={fetchCount:(e,t)=>this._fetchCount(e,t),fetchFeatures:(e,t,i)=>this._fetchFeatures(e,t,i),finish:(e,t)=>this._finishPendingTile(e,t),resume:()=>this._processPendingTiles()};if(this._ensureFetchAllCounts(e))for(const t of this._pendingTiles.values())this._verifyTileComplexity(this.store.getFeatureCount(t.key),t.resolution)&&this._updatingHandles.addPromise(t.process(e))}_verifyTileComplexity(e,t){return this._verifyVertexComplexity(e)&&this._verifyFeatureDensity(e,t)}_verifyVertexComplexity(e){return e*this._minimumVerticesPerFeature<q}_verifyFeatureDensity(e,t){if(null==this.tileInfo)return!1;const i=this.tileSize*t;return e*(M/(i*i))<A}_ensureFetchAllCounts(e){let t=!0;for(const i of this._pendingTiles.values())i.state.type<2&&this._updatingHandles.addPromise(i.process(e)),i.state.type<=1&&(t=!1);return t}_finishPendingTile(e,t){this.store.add(e.key,t),this._deletePendingTile(e),this._updateAvailability()}_updateAvailability(){const e=this._collectMissingTilesInfo();this._setAvailability(null==e?1:e.coveredArea/e.fullArea)}_setAvailability(e){this._set("availability",e)}_createPendingTile(e,t){const i=new w(e,t);return this._pendingTiles.set(e.id,i),i}_deletePendingTile(e){e.reset(),this._pendingTiles.delete(e.key.id)}async _fetchCount(e,t){return this.store.fetchCount(e.key,this.url,this._createCountQuery(e),{query:this.customParameters,timeout:C,signal:t})}async _fetchFeatures(e,t,i){let s=0;const r=[];let o=0,n=t;for(;;){const a=this._createFeaturesQuery(e),l=this._setPagingParameters(a,s,n),{features:u,exceededTransferLimit:d}=await this._queryFeatures(a,i);l&&(s+=a.num),o+=u.length;for(const e of u)r.push(e);if(n=t-o,!l||!d||n<=0)return r}}_filterProperties(e){return null==e?{where:"1=1",gdbVersion:void 0,timeExtent:void 0}:{where:e.where||"1=1",timeExtent:e.timeExtent,gdbVersion:e.gdbVersion}}_lookupObjectIdByGlobalId(e){const t=this.globalIdField,i=this.objectIdField;if(null==t)throw new Error("Expected globalIdField to be defined");let s=null;const r=e?c(e):e;if(this.store.featureStore.forEach(e=>{r===c(e.attributes[t])&&(s=e.objectId??e.attributes[i])}),null==s)throw new Error(`Expected to find a feature with globalId ${e}`);return s}_queryFeaturesById(e,t){const i=this._createFeaturesQuery();return i.objectIds=e,this._queryFeatures(i,t)}async _queryFeatures(e,t){return 0===e.num?new g:this.capabilities.query.supportsFormatPBF?this._queryFeaturesPBF(e,t):this._queryFeaturesJSON(e,t)}async _queryFeaturesPBF(e,t){const{sourceSpatialReference:i}=this,s=await I(this.url,e,new v({sourceSpatialReference:i}),{query:this._configuration.customParameters,timeout:C,signal:t});return F(_(s))}async _queryFeaturesJSON(e,t){const{sourceSpatialReference:i}=this,s=await O(this.url,e,i,{query:this._configuration.customParameters,timeout:C,signal:t});return T(s,{type:"object-id",fieldName:this.objectIdField})}_createCountQuery(e){const t=this._createBaseQuery(e);return this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0),t}_createFeaturesQuery(e=null){const t=this._createBaseQuery(e),i=null!=e?.key?this.store.getAttributesForTile(e?.key?.id):null,s=a(d(this.outFields,i??new Set),this._mandatoryOutFields);return t.outFields=Array.from(s),t.returnGeometry=!0,t.returnTrueCurves??=this.capabilities.data.supportsTrueCurve,null!=e&&(this.capabilities.query.supportsResultType?t.resultType="tile":this.capabilities.query.supportsCacheHint&&(t.cacheHint=!0)),t}_createBaseQuery(e){const t=new S({returnZ:this.hasZ,returnM:!1,historicMoment:this._historicMoment,geometry:null!=this.tileInfo&&null!=e?m(e.key.extent,this.tileInfo.spatialReference):void 0}),i=this._configuration.filter;return null!=i&&(t.where=i.where,t.gdbVersion=i.gdbVersion,t.timeExtent=i.timeExtent),t.outSpatialReference=this.spatialReference,t}_setPagingParameters(e,t,i){if(!this.capabilities.query.supportsPagination)return!1;const{supportsMaxRecordCountFactor:s,supportsCacheHint:r,tileMaxRecordCount:o,maxRecordCount:n,supportsResultType:a}=this.capabilities.query,l=s?S.MAX_MAX_RECORD_COUNT_FACTOR:1,u=l*((a||r)&&o?o:n||x);return e.start=t,s?(e.maxRecordCountFactor=Math.min(l,Math.ceil(i/u)),e.num=Math.min(i,e.maxRecordCountFactor*u)):e.num=Math.min(i,u),!0}};e([h({constructOnly:!0})],j.prototype,"url",void 0),e([h({constructOnly:!0})],j.prototype,"objectIdField",void 0),e([h({constructOnly:!0})],j.prototype,"globalIdField",void 0),e([h({constructOnly:!0})],j.prototype,"capabilities",void 0),e([h({constructOnly:!0})],j.prototype,"sourceSpatialReference",void 0),e([h({constructOnly:!0})],j.prototype,"spatialReference",void 0),e([h({constructOnly:!0})],j.prototype,"store",void 0),e([h({readOnly:!0})],j.prototype,"_minimumVerticesPerFeature",null),e([h()],j.prototype,"_mandatoryOutFields",null),e([h()],j.prototype,"outFields",null),e([h()],j.prototype,"suspended",void 0),e([h()],j.prototype,"_historicMoment",void 0),e([h()],j.prototype,"filter",null),e([h()],j.prototype,"customParameters",null),e([h({readOnly:!0})],j.prototype,"_configuration",null),e([h()],j.prototype,"tileInfo",null),e([h()],j.prototype,"tileSize",null),e([h()],j.prototype,"tilesOfInterest",void 0),e([h({readOnly:!0})],j.prototype,"updating",null),e([h({readOnly:!0})],j.prototype,"availability",void 0),e([h()],j.prototype,"hasZ",null),j=e([p("esri.views.interactive.snapping.featureSources.featureServiceSource.FeatureServiceTiledFetcher")],j);const x=2e3,C=6e5,q=1e6,M=25,A=1;export{j as FeatureServiceTiledFetcher};
|
|
@@ -25,7 +25,4 @@ export abstract class CatalogLayerViewMixin {
|
|
|
25
25
|
get footprintLayerView(): CatalogFootprintLayerView | null | undefined;
|
|
26
26
|
/** A collection of [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) instances associated with this layer. */
|
|
27
27
|
get layerViews(): Collection<LayerView>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export abstract class CatalogLayerView extends CatalogLayerViewSuperclass {}
|
|
31
|
-
declare const CatalogLayerViewSuperclass: & typeof LayerView & typeof CatalogLayerViewMixin
|
|
28
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type LayerView from "./LayerView.js";
|
|
2
|
-
import type { DimensionLayerViewMixin, DimensionLayerViewMixinProperties } from "./DimensionLayerViewMixin.js";
|
|
3
2
|
import type { LayerViewProperties } from "./LayerView.js";
|
|
4
3
|
|
|
5
|
-
export interface DimensionLayerViewProperties extends LayerViewProperties
|
|
4
|
+
export interface DimensionLayerViewProperties extends LayerViewProperties {}
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [DimensionLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html)
|
|
@@ -11,8 +10,8 @@ export interface DimensionLayerViewProperties extends LayerViewProperties, Dimen
|
|
|
11
10
|
* The dimension layer view controls whether the dimensions in its associated
|
|
12
11
|
* [DimensionLayer#source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source) can be created or edited interactively.
|
|
13
12
|
*
|
|
14
|
-
* It allows to create new dimensions interactively using the
|
|
15
|
-
* or to make existing dimensions selectable and editable by enabling the
|
|
13
|
+
* It allows to create new dimensions interactively using the {@link views/layers/DimensionLayerView#place} method, query measured {@link views/layers/DimensionLayerView#results},
|
|
14
|
+
* or to make existing dimensions selectable and editable by enabling the {@link views/layers/DimensionLayerView#interactive} property.
|
|
16
15
|
* To select a dimension, hover and click on its offset manipulator.
|
|
17
16
|
*
|
|
18
17
|
* The view for the layer can be retrieved using [SceneView#whenLayerView()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenLayerView).
|
|
@@ -42,5 +41,4 @@ export interface DimensionLayerViewProperties extends LayerViewProperties, Dimen
|
|
|
42
41
|
* @see [DimensionAnalysisView3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DimensionAnalysisView3D.html)
|
|
43
42
|
* @see [Sample - Length dimensioning](https://developers.arcgis.com/javascript/latest/sample-code/layers-dimension/)
|
|
44
43
|
*/
|
|
45
|
-
export default abstract class DimensionLayerView extends
|
|
46
|
-
declare const DimensionLayerViewSuperclass: typeof LayerView & typeof DimensionLayerViewMixin
|
|
44
|
+
export default abstract class DimensionLayerView extends LayerView {}
|
|
@@ -1,98 +1 @@
|
|
|
1
|
-
import type LengthDimension from "../../analysis/LengthDimension.js";
|
|
2
|
-
import type DimensionLayer from "../../layers/DimensionLayer.js";
|
|
3
|
-
import type LengthDimensionResult from "../analysis/LengthDimensionResult.js";
|
|
4
|
-
import type { ReadonlyCollection } from "../../core/Collection.js";
|
|
5
|
-
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
6
|
-
import type { DimensionPlacementResult } from "../3d/analysis/Dimension/types.js";
|
|
7
1
|
|
|
8
|
-
export interface DimensionLayerViewMixinProperties extends Partial<Pick<DimensionLayerViewMixin, "interactive" | "selectedDimension">> {}
|
|
9
|
-
|
|
10
|
-
export abstract class DimensionLayerViewMixin {
|
|
11
|
-
constructor(...args: any[]);
|
|
12
|
-
/**
|
|
13
|
-
* Enables interactivity for the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#layer). When set to `true` and the layer's
|
|
14
|
-
* [DimensionLayer#source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source) includes any
|
|
15
|
-
* valid [DimensionAnalysis#dimensions](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#dimensions), they become selectable and editable.
|
|
16
|
-
*
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
accessor interactive: boolean;
|
|
20
|
-
/** The layer being viewed. */
|
|
21
|
-
get layer(): DimensionLayer;
|
|
22
|
-
/**
|
|
23
|
-
* Results for each dimension in the layer [DimensionLayer#source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source).
|
|
24
|
-
*
|
|
25
|
-
* Given a [dimension](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html) object, the results collection can be searched:
|
|
26
|
-
*
|
|
27
|
-
* ```js
|
|
28
|
-
* const result = dimensionLayerView.results.find((result) => result.dimension === dimensionObject);
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
get results(): ReadonlyCollection<LengthDimensionResult>;
|
|
32
|
-
/**
|
|
33
|
-
* The selected dimension. If [interactive](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#interactive) is `true`, any dimension in the
|
|
34
|
-
* [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#layer) can be selected by clicking on it in the view. As long as [interactive](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#interactive)
|
|
35
|
-
* remains `true`, the properties of the selected dimension can be edited by interacting with
|
|
36
|
-
* manipulators in the view.
|
|
37
|
-
*/
|
|
38
|
-
accessor selectedDimension: LengthDimension | null | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Starts the interactive creation of new dimensions and adds them to the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#layer)'s
|
|
41
|
-
* [DimensionLayer#source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source).
|
|
42
|
-
*
|
|
43
|
-
* The creation process will finish when the user double-clicks the mouse or presses the escape key.
|
|
44
|
-
* To stop the creation programmatically, pass an abort signal as an argument when calling the method.
|
|
45
|
-
*
|
|
46
|
-
* This method is similar to the [place()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#place) method, but it allows to create multiple dimensions in a row.
|
|
47
|
-
*
|
|
48
|
-
* Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#interactive) to `true`.
|
|
49
|
-
*
|
|
50
|
-
* @param options - An object specifying additional options.
|
|
51
|
-
* @returns A promise which resolves when creation is completed successfully or rejected if it is
|
|
52
|
-
* canceled.
|
|
53
|
-
* @example
|
|
54
|
-
* const abortController = new AbortController();
|
|
55
|
-
*
|
|
56
|
-
* try {
|
|
57
|
-
* await layerView.createLengthDimensions({ signal: abortController.signal });
|
|
58
|
-
* } catch (error) {
|
|
59
|
-
* if (error.name === "AbortError") {
|
|
60
|
-
* console.log("Creation operation was cancelled.");
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
64
|
-
* // cancel the placement operation at some later point
|
|
65
|
-
* abortController.abort();
|
|
66
|
-
*/
|
|
67
|
-
createLengthDimensions(options?: AbortOptions | null | undefined): Promise<void>;
|
|
68
|
-
/**
|
|
69
|
-
* Starts the interactive placement of a single dimension, adding it to the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#layer)'s
|
|
70
|
-
* [DimensionLayer#source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source).
|
|
71
|
-
*
|
|
72
|
-
* The first click places start point and the second sets end point.
|
|
73
|
-
*
|
|
74
|
-
* The placement operation will finish when the user presses the escape key.
|
|
75
|
-
* To stop the placing programmatically, pass an abort signal as an argument when calling the method.
|
|
76
|
-
*
|
|
77
|
-
* Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerViewMixin.html#interactive) to `true`.
|
|
78
|
-
*
|
|
79
|
-
* @param options - An object specifying additional options.
|
|
80
|
-
* @returns A promise which
|
|
81
|
-
* resolves when the operation is completed successfully or rejected if it is canceled.
|
|
82
|
-
* @since 4.33
|
|
83
|
-
* @example
|
|
84
|
-
* const abortController = new AbortController();
|
|
85
|
-
*
|
|
86
|
-
* try {
|
|
87
|
-
* await layerView.place({ signal: abortController.signal });
|
|
88
|
-
* } catch (error) {
|
|
89
|
-
* if (error.name === "AbortError") {
|
|
90
|
-
* console.log("Placement operation was cancelled.");
|
|
91
|
-
* }
|
|
92
|
-
* }
|
|
93
|
-
*
|
|
94
|
-
* // cancel the placement operation at some later point
|
|
95
|
-
* abortController.abort();
|
|
96
|
-
*/
|
|
97
|
-
place(options?: AbortOptions | null | undefined): Promise<DimensionPlacementResult>;
|
|
98
|
-
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type LayerView from "./LayerView.js";
|
|
2
|
-
import type { LineOfSightLayerViewMixin, LineOfSightLayerViewMixinProperties } from "./LineOfSightLayerViewMixin.js";
|
|
3
2
|
import type { LayerViewProperties } from "./LayerView.js";
|
|
4
3
|
|
|
5
|
-
export interface LineOfSightLayerViewProperties extends LayerViewProperties
|
|
4
|
+
export interface LineOfSightLayerViewProperties extends LayerViewProperties {}
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [LineOfSightLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html)
|
|
@@ -11,8 +10,8 @@ export interface LineOfSightLayerViewProperties extends LayerViewProperties, Lin
|
|
|
11
10
|
* The line of sight layer view controls whether the [LineOfSightLayer#analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis) in its associated
|
|
12
11
|
* [LineOfSightLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html) can be created or edited interactively.
|
|
13
12
|
*
|
|
14
|
-
* It allows to create an observer and/or targets interactively using the
|
|
15
|
-
* or make an existing analysis editable by enabling the
|
|
13
|
+
* It allows to create an observer and/or targets interactively using the {@link views/layers/LineOfSightLayerView#place} method, query the {@link views/layers/LineOfSightLayerView#results},
|
|
14
|
+
* or make an existing analysis editable by enabling the {@link views/layers/LineOfSightLayerView#interactive} property.
|
|
16
15
|
*
|
|
17
16
|
* The view for the layer can be retrieved using [SceneView#whenLayerView()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenLayerView).
|
|
18
17
|
*
|
|
@@ -32,5 +31,4 @@ export interface LineOfSightLayerViewProperties extends LayerViewProperties, Lin
|
|
|
32
31
|
* @see [LineOfSightAnalysisView3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html)
|
|
33
32
|
* @see [Line Of Sight component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-line-of-sight/)
|
|
34
33
|
*/
|
|
35
|
-
export default abstract class LineOfSightLayerView extends
|
|
36
|
-
declare const LineOfSightLayerViewSuperclass: typeof LayerView & typeof LineOfSightLayerViewMixin
|
|
34
|
+
export default abstract class LineOfSightLayerView extends LayerView {}
|
|
@@ -1,78 +1 @@
|
|
|
1
|
-
import type LineOfSightLayer from "../../layers/LineOfSightLayer.js";
|
|
2
|
-
import type LineOfSightAnalysisView3D from "../3d/analysis/LineOfSightAnalysisView3D.js";
|
|
3
|
-
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
4
|
-
import type { LineOfSightPlacementResult } from "../3d/analysis/LineOfSight/types.js";
|
|
5
1
|
|
|
6
|
-
export interface LineOfSightLayerViewMixinProperties extends Partial<Pick<LineOfSightLayerViewMixin, "interactive">> {}
|
|
7
|
-
|
|
8
|
-
export abstract class LineOfSightLayerViewMixin {
|
|
9
|
-
constructor(...args: any[]);
|
|
10
|
-
/**
|
|
11
|
-
* Enables interactivity for the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LineOfSightLayerViewMixin.html#layer). When set to `true`, manipulators will be displayed,
|
|
12
|
-
* allowing users to click and drag to edit the layer's
|
|
13
|
-
* [LineOfSightLayer#analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis) if it has a valid
|
|
14
|
-
* [LineOfSightAnalysis#observer](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#observer) and
|
|
15
|
-
* [LineOfSightAnalysis#targets](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#targets). Right-clicking a target will remove it.
|
|
16
|
-
*
|
|
17
|
-
* This property is automatically set to `true` when the analysis is assigned to a
|
|
18
|
-
* [Line Of Sight component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-line-of-sight/).
|
|
19
|
-
*
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
accessor interactive: boolean;
|
|
23
|
-
/** The layer being viewed. */
|
|
24
|
-
get layer(): LineOfSightLayer;
|
|
25
|
-
/**
|
|
26
|
-
* Analysis results for each target.
|
|
27
|
-
*
|
|
28
|
-
* The order of results matches the order of targets, so if the index of the target is known the collection can be
|
|
29
|
-
* indexed directly:
|
|
30
|
-
*
|
|
31
|
-
* ```js
|
|
32
|
-
* const layerView = await view.whenLayerView(lineOfSightLayer);
|
|
33
|
-
* const result = layerView.results.at(targetIdx);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* Given a [target](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html) object, the results collection can also be
|
|
37
|
-
* searched:
|
|
38
|
-
*
|
|
39
|
-
* ```js
|
|
40
|
-
* const result = layerView.results.find((result) => result.target === targetObject);
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
get results(): LineOfSightAnalysisView3D["results"];
|
|
44
|
-
/**
|
|
45
|
-
* Starts the interactive placement of an observer and/or targets on the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LineOfSightLayerViewMixin.html#layer)'s
|
|
46
|
-
* [LineOfSightLayer#analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis).
|
|
47
|
-
*
|
|
48
|
-
* If the analysis does not have a valid observer yet, this method will allow placing an observer, which can be followed
|
|
49
|
-
* by zero or more targets. Otherwise, if it already has a valid observer, it will allow placing targets.
|
|
50
|
-
*
|
|
51
|
-
* The placement operation will finish when the user presses the escape key.
|
|
52
|
-
* To stop the placing programmatically, pass an abort signal as an argument when calling the method.
|
|
53
|
-
* The promise resolves when the operation is productive, i.e. an oberver or any targets were added.
|
|
54
|
-
* Otherwise, if nothing was added or signal was aborted, the promise is rejected.
|
|
55
|
-
*
|
|
56
|
-
* Calling this method sets [interactive](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LineOfSightLayerViewMixin.html#interactive) to `true`.
|
|
57
|
-
*
|
|
58
|
-
* @param options - An object specifying additional options.
|
|
59
|
-
* @returns A promise
|
|
60
|
-
* which resolves when the operation is completed successfully - i.e. the user places an observer and/or target(s),
|
|
61
|
-
* leaving the analysis in a valid state. Otherwise, the promise is rejected.
|
|
62
|
-
* @since 4.33
|
|
63
|
-
* @example
|
|
64
|
-
* const abortController = new AbortController();
|
|
65
|
-
*
|
|
66
|
-
* try {
|
|
67
|
-
* await layerView.place({ signal: abortController.signal });
|
|
68
|
-
* } catch (error) {
|
|
69
|
-
* if (error.name === "AbortError") {
|
|
70
|
-
* console.log("Placement operation was cancelled.");
|
|
71
|
-
* }
|
|
72
|
-
* }
|
|
73
|
-
*
|
|
74
|
-
* // cancel the placement operation at some later point
|
|
75
|
-
* abortController.abort();
|
|
76
|
-
*/
|
|
77
|
-
place(options?: AbortOptions | null | undefined): Promise<LineOfSightPlacementResult>;
|
|
78
|
-
}
|
|
@@ -6,8 +6,9 @@ import type FeatureSet from "../../rest/support/FeatureSet.js";
|
|
|
6
6
|
import type Query from "../../rest/support/Query.js";
|
|
7
7
|
import type LayerView from "./LayerView.js";
|
|
8
8
|
import type { AbortOptions } from "../../core/promiseUtils.js";
|
|
9
|
+
import type { Message } from "../../layers/support/StreamConnection.js";
|
|
10
|
+
import type { Feature } from "../../portal/jsonTypes.js";
|
|
9
11
|
import type { QueryProperties } from "../../rest/support/Query.js";
|
|
10
|
-
import type { IProxyClientEvents } from "../2d/layers/features/FeaturePipelineWorkerProxy.js";
|
|
11
12
|
import type { HighlightLayerViewMixin, HighlightLayerViewMixinProperties } from "./HighlightLayerViewMixin.js";
|
|
12
13
|
import type { FeatureEffectProperties } from "../../layers/support/FeatureEffect.js";
|
|
13
14
|
|
|
@@ -66,7 +67,35 @@ export interface StreamLayerViewMixinProperties extends HighlightLayerViewMixinP
|
|
|
66
67
|
featureEffect?: FeatureEffectProperties | null;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
export interface
|
|
70
|
+
export interface StreamUpdateRateEvent {
|
|
71
|
+
/** The client update rate per second. Returns number of features being processed on the client. */
|
|
72
|
+
client: number;
|
|
73
|
+
/** Update rate per second for websocket/service. Returns number of features being pushed from the server. */
|
|
74
|
+
websocket: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface StreamLayerViewMixinEvents {
|
|
78
|
+
/**
|
|
79
|
+
* Fires when the layer view receives features. The event payload contains
|
|
80
|
+
* the attributes and geometry of a feature received from the stream service.
|
|
81
|
+
*/
|
|
82
|
+
"data-received": Pick<Feature, "attributes" | "geometry">;
|
|
83
|
+
/**
|
|
84
|
+
* Fires when the layer view receives a message sent to the websocket connection.
|
|
85
|
+
*
|
|
86
|
+
* @since 4.26
|
|
87
|
+
*/
|
|
88
|
+
"message-received": Message;
|
|
89
|
+
/**
|
|
90
|
+
* Fires after the layer starts receiving updates from the stream service. It will return the websocket and the client update rates per second.
|
|
91
|
+
* The update rate indicates number of features are being pushed from the server and being processed on the client side.
|
|
92
|
+
* The client update rate will be approximately equal to the websocket update rate unless the service is pushing updates at a rate faster
|
|
93
|
+
* than the client can handle. In which case, the API will down-throttle the update rate and will cause the client update rate to be lower.
|
|
94
|
+
*
|
|
95
|
+
* @since 4.17
|
|
96
|
+
*/
|
|
97
|
+
"update-rate": StreamUpdateRateEvent;
|
|
98
|
+
}
|
|
70
99
|
|
|
71
100
|
/**
|
|
72
101
|
* Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [StreamLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import e from"../../core/Error.js";async function t(){try{return await WebAssembly.instantiate(new Uint8Array([0,97,115,109,1,0,0,0])),null}catch(t){return new e("webassembly:required","WebAssembly is not supported. Check the application's Content Security Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/script-src#unsafe_webassembly_execution")}}export{t as checkWebAssemblyRequirements};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../core/Error.js";import{getWebGLCapabilities as r}from"../webgl/capabilities.js";function t(t){const o=r();return o.available?"3d"===t&&o.majorPerformanceCaveat?new e("webgl:major-performance-caveat-detected",`Your WebGL implementation (${o.unmaskedRenderer}) doesn't seem to support hardware accelerated rendering. Check your browser settings or if your GPU is in a blocklist.`):o.supportsHighPrecisionFragment?o.supportsVertexShaderSamplers?null:new e("webgl:vertex-shader-samplers-required","WebGL support for vertex shader samplers is required but not supported."):new e("webgl:high-precision-fragment-required","WebGL support for high precision fragment shaders is required but not supported."):new e("webgl:required","WebGL2 is required but not supported.",(new Error).stack)}export{t as
|
|
5
|
+
import e from"../../core/Error.js";import{getWebGLCapabilities as r}from"../webgl/capabilities.js";function t(t){const o=r();return o.available?"3d"===t&&o.majorPerformanceCaveat?new e("webgl:major-performance-caveat-detected",`Your WebGL implementation (${o.unmaskedRenderer}) doesn't seem to support hardware accelerated rendering. Check your browser settings or if your GPU is in a blocklist.`):o.supportsHighPrecisionFragment?o.supportsVertexShaderSamplers?null:new e("webgl:vertex-shader-samplers-required","WebGL support for vertex shader samplers is required but not supported."):new e("webgl:high-precision-fragment-required","WebGL support for high precision fragment shaders is required but not supported."):new e("webgl:required","WebGL2 is required but not supported.",(new Error).stack)}export{t as checkWebGLRequirements};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ClonableMixin, ClonableMixinProperties } from "../../core/Clonable.js";
|
|
1
2
|
import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
|
|
2
3
|
|
|
3
|
-
export interface SlideThumbnailProperties extends JSONSupportMixinProperties, Partial<Pick<SlideThumbnail, "url">> {}
|
|
4
|
+
export interface SlideThumbnailProperties extends JSONSupportMixinProperties, ClonableMixinProperties, Partial<Pick<SlideThumbnail, "url">> {}
|
|
4
5
|
|
|
5
|
-
export default
|
|
6
|
+
export default class SlideThumbnail extends SlideThumbnailSuperclass {
|
|
7
|
+
constructor(properties?: SlideThumbnailProperties);
|
|
6
8
|
/**
|
|
7
9
|
* The URI pointing to the thumbnail image representing
|
|
8
10
|
* the slide.
|
|
@@ -10,4 +12,5 @@ export default abstract class SlideThumbnail extends JSONSupport {
|
|
|
10
12
|
* @default ""
|
|
11
13
|
*/
|
|
12
14
|
accessor url: string;
|
|
13
|
-
}
|
|
15
|
+
}
|
|
16
|
+
declare const SlideThumbnailSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as r}from"tslib";import{
|
|
5
|
+
import{__decorate as r}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{isHTTPSProtocol as e,isDataProtocol as s}from"../../core/urlUtils.js";import{property as i,subclass as l}from"../../core/accessorSupport/decorators.js";let p=class extends(t(o)){constructor(r){super(r),this.url=""}destroy(){this.url=""}get isSecureUrl(){return e(this.url)}get isDataURI(){return s(this.url)}};r([i({type:String,json:{write:{isRequired:!0}}})],p.prototype,"url",void 0),r([i({readOnly:!0})],p.prototype,"isSecureUrl",null),r([i({readOnly:!0})],p.prototype,"isDataURI",null),p=r([l("esri.webdoc.support.SlideThumbnail")],p);const u=p;export{u as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__addDisposableResource as e,__disposeResources as t}from"tslib";import r from"../../Basemap.js";import n from"../../Ground.js";import a from"../../WebScene.js";import{isLongFormType as s,Null as l,Integer as y}from"../../core/accessorSupport/ensureType.js";import{isCollection as
|
|
5
|
+
import{__addDisposableResource as e,__disposeResources as t}from"tslib";import r from"../../Basemap.js";import n from"../../Ground.js";import a from"../../WebScene.js";import{isLongFormType as s,Null as l,Integer as y}from"../../core/accessorSupport/ensureType.js";import{isCollection as i}from"../../core/accessorSupport/extensions/serializableProperty/type.js";import o from"../../layers/GroupLayer.js";import p from"../../layers/KMLLayer.js";import{typeModuleMap as u}from"../../layers/mixins/operationalLayerModuleMap.js";import{supportedTypes as c}from"../../layers/mixins/operationalLayers.js";import f from"../../layers/support/Sublayer.js";import m from"../../rest/layerSources/DynamicDataLayer.js";import d from"../../rest/layerSources/DynamicMapLayer.js";import b from"../../rest/layerSources/JoinTableDataSource.js";import w from"../InitialViewProperties.js";import{ScanContext as j,sorted as N}from"./utils.js";import{webSceneAnalysisRegistry as g}from"../support/analysisUtils.js";import v from"../support/SlideElements.js";async function T(r){const n={stack:[],error:void 0,hasError:!1};try{const t=e(n,new j,!1);return await P(null,{typeName:"json",type:r},void 0,t)}catch(a){n.error=a,n.hasError=!0}finally{t(n)}}async function q(e,t,r,n){switch(t.typeName){case"array":await S(e,t,r,n);break;case"union":await M(e,t,r,n);break;case"json":await P(e,t,r,n);break;case"native":await k(e,t,r,n);break;case"enum":await h(e,t,r,n)}}async function k(e,t,r,n){const a=r??t;n.addProperty({name:e,type:O(n,t),default:a.default,required:a.isRequired,nullable:a.nullable})}async function h(e,t,r,n){const a=r??t;n.currentClass?.typeValue&&"type"===e?n.addProperty({name:e,type:"string",enum:`"${n.currentClass.typeValue}"`,default:a.default,required:a.isRequired,nullable:a.nullable}):n.addProperty({name:e,type:O(n,t),enum:N(t.values).map(e=>"string"==typeof e?`"${e}"`:`${e}`).join("|"),default:a.default,required:a.isRequired,nullable:a.nullable})}async function S(e,t,r,n){t.elementType.isRequired=t.isRequired,await q(`${e}[]`,t.elementType,r??t.elementType,n)}function R(e,t){if("json"===e.typeName){const t=e.type.__accessorMetadata__,r=t?.type,n=r&&U(r),a=n?.type,s=a||r?.type;if(s&&Array.isArray(s)&&1===s.length&&"string"==typeof s[0])return a?s[0]:V(r,s[0])}return t}async function M(e,t,r,n){const a=[],s=r??t;for(const l of t.types)if("native"!==l.type.typeName&&t.key){const a=`${e}<${R(l.type,l.value)}>`;await q(a,l.type,r??t,n)}else a.push(l.type);if(a.length){const t=N(a.map(e=>O(n,e)));n.addProperty({type:t.join("|"),name:e,default:s.default,required:s.isRequired,nullable:s.nullable})}}async function C(e,t){return e.type===a&&"layers"===t?_("web-scene/operational-layers","operational-layers"):e.type===a&&"tables"===t?_("web-scene/tables","tables"):e.type!==r||"baseLayers"!==t&&"baseMapLayers"!==t?e.type===r&&"groundLayers"===t?_("web-scene/basemap-ground-layers","basemap-ground-layers"):e.type===r&&"elevationLayers"===t||e.type===n&&"layers"===t?_("web-scene/ground","ground"):e.type===o&&"layers"===t?_("web-scene/operational-layers","operational-layers",e=>e!==o):e.type!==v&&e.type!==w||"analyses"!==t?e.type!==b||"leftTableSource"!==t&&"rightTableSource"!==t?null:I({},{key:"type",base:null,typeMap:{"data-layer":m,"map-layer":d}}):{typeName:"array",elementType:{typeName:"union",key:"type",types:await Promise.all(Object.entries(g).map(async([e,t])=>({type:{typeName:"json",type:await t()},value:e})))}}:_("web-scene/basemap-base-layers","basemap-base-layers")}async function L(e,t,r){const n=E(r),a=await C(e,t);return a?(a.isRequired=n.isRequired,a.nullable=n.nullable,a.default=n.default,a):n}async function P(e,t,r,n){const a=t.type.__accessorMetadata__,s=n.getDeclaredClass(t.type);if(!a)return e&&n.addProperty({name:e,type:"unknown"}),null;let l=s,y=null;t.layerContainerType&&(l+=`--${t.layerContainerType}`);const i=e?.match(/<([^>]+)>$/);i&&(l+=`--${i[1]}`,y=i[1]);const o=r??t;t.type===f&&(l+=`--${n.currentClass?.name}`,y=n.currentClass?.name);const p=n.seen.get(l);if(p&&e)return n.addProperty({name:e,type:p,required:o.isRequired,default:o.default,nullable:o.nullable}),p;const u={type:t.type,name:s,id:l,properties:[]};e&&(n.addProperty({name:e,type:u,required:o.isRequired,default:o.default,nullable:o.nullable}),u.typeValue=y),n.push(e,u);for(const c in a){const e=a[c],r=F(e);if(!r?.enabled)continue;if(r.layerContainerTypes&&t.layerContainerType&&!r.layerContainerTypes.includes(t.layerContainerType))continue;if(t.type===f){const e="esri/layers/TileLayer"===n.stack[n.stack.length-2].klass.name;if(e&&f.test.isMapImageLayerOverridePolicy(r.overridePolicy)||!e&&f.test.isTileImageLayerOverridePolicy(r.overridePolicy))continue}const s=r.target;if("string"==typeof s||null==s){const r=await L(t,c,e);if(!r)continue;await q("string"==typeof s?s:c,r,void 0,n)}else await $(t,s,n)}return n.pop()}async function $(e,t,r){for(const n in t){let a=await C(e,n);if(!a){const e=t[n];a=e.types?I({default:e.default,write:e},e.types):G(e.type),a.default=e.default,a.isRequired=e.isRequired,a.nullable=e.allowNull,a=x(a)}await q(n,a,void 0,r)}}async function _(e,t,r){const n={typeName:"union",key:"layerType",types:[]};for(const a in c[e]){if("web-scene/operational-layers"===e&&"ArcGISTiledElevationServiceLayer"===a)continue;const s=await u[a]();s&&(r&&!r(s)||s!==p&&n.types.push({type:{typeName:"json",layerContainerType:t,type:s},value:a}))}if(0===n.types.length)return null;return{typeName:"array",elementType:1===n.types.length?n.types[0].type:n}}function O(e,t){switch(t.typeName){case"array":return`${O(e,t.elementType)}[]`;case"union":return`${N(t.types.map(t=>O(e,t.type))).join(" | ")}`;case"native":switch(t.type){case Number:return"number";case y:return"integer";case String:return"string";case Boolean:return"boolean";case Object:return"object";default:return"unknown"}case"json":return e.getDeclaredClass(t.type);case"enum":return"string"}}function A(e){const t=e.prototype.itemType?.Type;if(!t)return{typeName:"array",elementType:{typeName:"native",type:null}};if("function"==typeof t)return{typeName:"array",elementType:G(t)};if(t.typeMap){const e=[];for(const r in t.typeMap){const n=t.typeMap[r];e.push({type:G(n),value:K(n)?null:r})}return{typeName:"array",elementType:{typeName:"union",key:"string"==typeof t.key?t.key:"type",types:e}}}}function D(e){if("json"!==e.typeName)return null;const t=e.type.__accessorMetadata__,r=t?.type,n=r&&U(r),a=n?.type,s=a||r?.type;return s&&Array.isArray(s)&&"string"==typeof s[0]?a||r.type.map(e=>V(r,e)):null}function x(e){if("array"===e.typeName)return e.elementType=x(e.elementType),e;const t=D(e);return t?{typeName:"union",key:"type",nullable:e.nullable,isRequired:e.isRequired,types:t.map(t=>({value:t,type:e}))}:e}function E(e){const t=U(e);return t?.types?I(t,t.types):!t?.type&&e.types?I(t,e.types):x(B(e))}function I(e,t){if(Array.isArray(t))return{typeName:"array",elementType:I(e,t[0])};const r=[];for(const n in t.typeMap){const e=t.typeMap[n];r.push({type:G(e),value:K(e)?null:n})}return{typeName:"union",key:"string"==typeof t.key?t.key:"type",types:r,nullable:e?.write?.allowNull,isRequired:e?.write?.isRequired,default:e?.default}}function J(e){return null!=e&&e.isJSONMapWriter}function V(e,t){const r=F(e);if(r&&J(r.writer)){const e={value:""};return r.writer?.(t,e,"value"),e.value}return t}function B(e){const t=U(e),r=F(e),n=t?.type,a=G(n||e.type);return void 0!==t?.default&&"function"!=typeof t.default&&(a.default=V(e,t.default)),r?.allowNull&&(a.nullable=!0),r?.isRequired&&(a.isRequired=!0),a}function G(e){if(!e)return{typeName:"native",type:null};if(s(e))return W(e);if(Array.isArray(e)){if("string"==typeof e[0]||"number"==typeof e[0])return{typeName:"enum",values:e};if(e.length>1){const t=[];let r;for(const n of e)n!==l?t.push({type:G(n),value:null}):r=!0;return 1===t.length?{...t[0].type,nullable:r}:{typeName:"union",key:null,types:t,nullable:r}}return{typeName:"array",elementType:G(e[0])}}return i(e)?A(e):K(e)?{typeName:"native",type:e}:z(e)?{typeName:"json",type:e}:{typeName:"native",type:null}}function W(e){switch(e.type){case"native":return{typeName:"native",type:e.value};case"array":return{typeName:"array",elementType:G(e.value)};case"one-of":return{typeName:"union",key:null,types:e.values.map(e=>({type:W(e),value:null}))}}}function z(e){let t=e;for(;t;){if(t.prototype&&("esri.core.JSONSupport"===t.prototype.declaredClass||"esri.core.MultiOriginJSONSupport"===t.prototype.declaredClass))return!0;t=Object.getPrototypeOf(t)}return!1}function K(e){return e===String||e===Boolean||e===Number||e===y||e===Object||e===l}function U(e){if(!e.json)return null;const t=e.json.origins,r=e.json,n=t?.["web-scene"],a=t?.["web-document"];return n||a||r||null}function F(e){if(!e.json)return null;const t=e.json.origins,r=e.json.write,n=t?.["web-scene"]?.write,a=t?.["web-document"]?.write;return n||a||r||null}export{T as scan};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type Accessor from "../../core/Accessor.js";
|
|
1
2
|
import type MapView from "../../views/MapView.js";
|
|
2
3
|
import type SnappingOptions from "../../views/interactive/snapping/SnappingOptions.js";
|
|
3
|
-
import type InteractiveToolViewModel from "../support/InteractiveToolViewModel.js";
|
|
4
4
|
import type { SystemOrAreaUnit } from "../../core/units.js";
|
|
5
5
|
import type { AreaMeasurement, AreaMeasurementLabel, MeasurementState } from "../types.js";
|
|
6
6
|
import type { SnappingOptionsProperties } from "../../views/interactive/snapping/SnappingOptions.js";
|
|
@@ -55,7 +55,7 @@ export interface AreaMeasurement2DViewModelProperties extends Partial<Pick<AreaM
|
|
|
55
55
|
* @see [Area Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-2d/)
|
|
56
56
|
* @see [Programming patterns: Widget viewModel pattern](https://developers.arcgis.com/javascript/latest/programming-patterns/#widget-viewmodel-pattern)
|
|
57
57
|
*/
|
|
58
|
-
export default class AreaMeasurement2DViewModel extends
|
|
58
|
+
export default class AreaMeasurement2DViewModel extends Accessor {
|
|
59
59
|
constructor(properties?: AreaMeasurement2DViewModelProperties);
|
|
60
60
|
/**
|
|
61
61
|
* The area and perimeter of the measurement polygon in square meters and meters respectively.
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import{destroyMaybe as
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{destroyMaybe as i}from"../../core/maybe.js";import{watch as n,initial as s,syncAndInitial as r,whenOnce as a}from"../../core/reactiveUtils.js";import{measurementAreaUnits as o}from"../../core/units.js";import{property as p,subclass as l}from"../../core/accessorSupport/decorators.js";import{defaultUnitPropertyMetadata as u}from"../../properties/defaultUnit.js";import{SnappingManager as m}from"../../views/interactive/snapping/SnappingManager.js";import g from"../../views/interactive/snapping/SnappingOptions.js";import{isSupported as h,loadGeometryOperators as d,AreaMeasurement2DTool as c}from"./AreaMeasurement2DTool.js";import{InteractiveToolViewModelMixin as v}from"../support/InteractiveToolViewModelMixin.js";let w=class extends(v(t)){constructor(e){super(e),this.supportedViewType="2d",this.unsupportedErrorMessage="AreaMeasurement2DViewModel is only supported in 2D views.",this._snappingManager=null,this.snappingOptions=new g}initialize(){this.addHandles([n(()=>this.view?.spatialReference,()=>this.clear()),n(()=>this.unit,e=>{null!=this.tool&&(this.tool.unit=e)},s),n(()=>this.view,e=>{this._snappingManager=i(this._snappingManager),e&&(this._snappingManager=new m({view:e,options:this.snappingOptions}))},r),n(()=>this.snappingOptions,e=>{this._snappingManager&&e&&(this._snappingManager.options=e)})])}destroy(){this._snappingManager=i(this._snappingManager)}get measurement(){return this.tool?.measurement??null}get measurementLabel(){return this.tool?.measurementLabel??null}get state(){return this.disabled||null==this.view||!h(this.view.spatialReference)?"disabled":this.tool?.measurement?this.tool.active?"measuring":"measured":"ready"}get unit(){return this._validateUnit(this.defaultUnit)}set unit(e){this._overrideIfSome("unit",this._validateUnit(e))}get unitOptions(){return o}set unitOptions(e){this._overrideIfSome("unitOptions",this._validateUnits(e))}get view(){return super.view}set view(e){super.view=e}async start(){const{view:e}=this;e&&(await a(()=>e.ready),await d(e.spatialReference)),this.createTool({interactive:!0})}clear(){this.removeTool()}constructTool(){return new c({snappingManager:this._snappingManager,unit:this.unit,view:this.view,visible:this.visible})}_validateUnit(e){const{unitOptions:t,defaultUnit:i}=this;return null!=e&&t.includes(e)?e:t.includes(i)?i:t.length>0?t[0]:i}_validateUnits(e){if(null==e)return[];const t=e.filter(e=>o.includes(e));return 0===t.length?o.slice():t}};e([p()],w.prototype,"_snappingManager",void 0),e([p(u)],w.prototype,"defaultUnit",void 0),e([p({readOnly:!0})],w.prototype,"measurement",null),e([p({readOnly:!0})],w.prototype,"measurementLabel",null),e([p({type:g,nonNullable:!0})],w.prototype,"snappingOptions",void 0),e([p({readOnly:!0})],w.prototype,"state",null),e([p({type:String})],w.prototype,"unit",null),e([p({type:[String]})],w.prototype,"unitOptions",null),w=e([l("esri.widgets.AreaMeasurement2D.AreaMeasurement2DViewModel")],w);const f=w;export{f as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type AreaMeasurementAnalysis from "../../analysis/AreaMeasurementAnalysis.js";
|
|
2
|
+
import type Accessor from "../../core/Accessor.js";
|
|
2
3
|
import type SceneView from "../../views/SceneView.js";
|
|
3
|
-
import type AnalysisViewModel from "../support/AnalysisViewModel.js";
|
|
4
4
|
import type { SystemOrAreaUnit } from "../../core/units.js";
|
|
5
5
|
import type { MeasurementMode } from "../../views/analysis/types.js";
|
|
6
6
|
import type { AreaMeasurementAnalysisProperties } from "../../analysis/AreaMeasurementAnalysis.js";
|
|
@@ -63,7 +63,7 @@ export interface AreaMeasurement3DViewModelProperties extends Partial<Pick<AreaM
|
|
|
63
63
|
* @see [AreaMeasurement3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html) widget - _Deprecated since 4.33. Use the [Area Measurement 3D component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-3d/) instead._
|
|
64
64
|
* @see [Programming patterns: Widget viewModel pattern](https://developers.arcgis.com/javascript/latest/programming-patterns/#widget-viewmodel-pattern)
|
|
65
65
|
*/
|
|
66
|
-
export default class AreaMeasurement3DViewModel extends
|
|
66
|
+
export default class AreaMeasurement3DViewModel extends Accessor {
|
|
67
67
|
constructor(properties?: AreaMeasurement3DViewModelProperties);
|
|
68
68
|
/**
|
|
69
69
|
* The area measurement analysis object being created or modified by the view model.
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import t from"../../analysis/AreaMeasurementAnalysis.js";import{deprecateUnnecessaryViewModel as
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../../analysis/AreaMeasurementAnalysis.js";import s from"../../core/Accessor.js";import{deprecateUnnecessaryViewModel as i}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{watch as n,syncAndInitial as o}from"../../core/reactiveUtils.js";import{measurementAreaUnits as l}from"../../core/units.js";import{property as a,subclass as u}from"../../core/accessorSupport/decorators.js";import{defaultUnitPropertyMetadata as p}from"../../properties/defaultUnit.js";import{AnalysisViewModelMixin as d}from"../support/AnalysisViewModelMixin.js";let m=class extends(d(s)){constructor(e){super(e),this.analysis=null,this._userUnitOptions=null,this._userUnit=null,this.supportedViewType="3d",this.unsupportedErrorMessage="AreaMeasurement3DViewModel is only supported in 3D views.",e?.isDefaultViewModel||i(r.getLogger(this),"Area Measurement 3D","arcgis-area-measurement-3d",{version:"4.33"})}initialize(){this.addHandles(n(()=>({analysis:this.analysis,unit:this.unit}),({analysis:e,unit:t})=>{null!=e&&(e.unit=t)},o))}get state(){return this.disabled||!this.ready?"disabled":null==this.tool?"ready":this.tool.state}get measurement(){if(null==this.tool||this.disabled||this.tool.destroyed)return null;const{analysisView:e}=this;if(null==e)return null;const{viewData:t,areaLabel:s,perimeterLengthLabel:i}=e,r=t.validMeasurement,n="euclidean"===t.mode,o=0===t.intersectingSegments.size,l=o?r?"available":"unavailable":"invalid";return{mode:n?"euclidean":"geodesic",area:{text:o&&r?s:null,state:l},perimeterLength:{text:o&&r?i:null,state:l}}}get unitOptions(){const e=this._userUnitOptions?.filter(e=>l.includes(e));return e&&e.length>0?e:l.slice()}set unitOptions(e){this._userUnitOptions=e}get unit(){const e=this._userUnit,t=this.unitOptions;if(e&&t.includes(e))return e;const s=this.defaultUnit;return s&&t.includes(s)?s:t[0]}set unit(e){this._userUnit=e}constructAnalysis(){return new t}};e([a({type:t})],m.prototype,"analysis",void 0),e([a({readOnly:!0})],m.prototype,"state",null),e([a({readOnly:!0})],m.prototype,"measurement",null),e([a()],m.prototype,"unitOptions",null),e([a()],m.prototype,"_userUnitOptions",void 0),e([a()],m.prototype,"unit",null),e([a()],m.prototype,"_userUnit",void 0),e([a(p)],m.prototype,"defaultUnit",void 0),m=e([u("esri.widgets.AreaMeasurement3D.AreaMeasurement3DViewModel")],m);const c=m;export{c as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import i from"../../../core/Collection.js";import{property as s,subclass as r}from"../../../core/accessorSupport/decorators.js";import{isAttributeFormSupportedLayerUnion as o}from"../batchAttributeFormUtils.js";import{visibilityCodeToBoolean as l,makeUseId as a}from"./support/inputUtils.js";let n=class extends t{constructor(e){super(e),this.existsInAllLayers=!0,this.features=new i}get description(){return this.template.description}get featuresHaveSameCalculatedVisibility(){const e=new Set;for(const t of this.features){if(null==this.template.getExpressionExecutorsForLayer(t.layer)?.visibilityExpression){e.add(!0);continue}const i=this._lookupEvaluatedExpression(t,"visibility");if("success"===i?.status){if(e.add(!0===i.result),e.size>1)return!1}else e.add(!1)}return e.size<=1}get label(){return this.template.label}get layers(){return Array.from(new Set(this.features.map(e=>e.layer).filter(o)))}get visibilityCode(){return this._baseVisibilityCode}get visible(){return l(this.visibilityCode)}get _baseVisibilityCode(){return this.existsInAllLayers?this.featuresHaveSameCalculatedVisibility?!1===this._evaluatedVisibilityExpression?"hidden:visibility-expression:all-features":"visible":"hidden:visibility-expression:some-features":"hidden:not-in-all-layers"}get _evaluatedVisibilityExpression(){let e=!0,t=!0;for(const i of this.features){if(null==this.template.getExpressionExecutorsForLayer(i.layer)?.visibilityExpression){e=e&&!0;continue}t=!1;const s=this._lookupEvaluatedExpression(i,"visibility");"success"===s?.status?e=e&&!0===s.result:e=!1}return t?null:e}_lookupEvaluatedExpression(e,t){return this.expressionsManager.evaluatedExpressions.get(e)?.get(a(this.template.elementId,t))}};e([s({constructOnly:!0})],n.prototype,"expressionsManager",void 0),e([s()],n.prototype,"description",null),e([s()],n.prototype,"existsInAllLayers",void 0),e([s()],n.prototype,"features",void 0),e([s()],n.prototype,"featuresHaveSameCalculatedVisibility",null),e([s()],n.prototype,"label",null),e([s()],n.prototype,"layers",null),e([s({constructOnly:!0})],n.prototype,"template",void 0),e([s()],n.prototype,"visibilityCode",null),e([s()],n.prototype,"visible",null),e([s()],n.prototype,"_baseVisibilityCode",null),e([s()],n.prototype,"_evaluatedVisibilityExpression",null),n=e([r("esri.widgets.BatchAttributeForm.inputs.InputBase")],n);const p=n;export{p as default};
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import i from"../../../core/Collection.js";import{property as s,subclass as r}from"../../../core/accessorSupport/decorators.js";import{isAttributeFormSupportedLayerUnion as o}from"../batchAttributeFormUtils.js";import{visibilityCodeToBoolean as l,makeUseId as a}from"./support/inputUtils.js";let n=class extends t{constructor(e){super(e),this.existsInAllLayers=!0,this.features=new i}get description(){return this.template.description}get featuresHaveSameCalculatedVisibility(){const e=new Set;for(const t of this.features){if(null==this.template.getExpressionExecutorsForLayer(t.layer)?.visibilityExpression){e.add(!0);continue}const i=this._lookupEvaluatedExpression(t,"visibility");if("success"===i?.status){if(e.add(!0===i.result),e.size>1)return!1}else e.add(!1)}return e.size<=1}get updating(){return!1}get label(){return this.template.label}get layers(){return Array.from(new Set(this.features.map(e=>e.layer).filter(o)))}get visibilityCode(){return this._baseVisibilityCode}get visible(){return l(this.visibilityCode)}get _baseVisibilityCode(){return this.existsInAllLayers?this.featuresHaveSameCalculatedVisibility?!1===this._evaluatedVisibilityExpression?"hidden:visibility-expression:all-features":"visible":"hidden:visibility-expression:some-features":"hidden:not-in-all-layers"}get _evaluatedVisibilityExpression(){let e=!0,t=!0;for(const i of this.features){if(null==this.template.getExpressionExecutorsForLayer(i.layer)?.visibilityExpression){e=e&&!0;continue}t=!1;const s=this._lookupEvaluatedExpression(i,"visibility");"success"===s?.status?e=e&&!0===s.result:e=!1}return t?null:e}_lookupEvaluatedExpression(e,t){return this.expressionsManager.evaluatedExpressions.get(e)?.get(a(this.template.elementId,t))}};e([s({constructOnly:!0})],n.prototype,"expressionsManager",void 0),e([s()],n.prototype,"description",null),e([s()],n.prototype,"existsInAllLayers",void 0),e([s()],n.prototype,"features",void 0),e([s()],n.prototype,"featuresHaveSameCalculatedVisibility",null),e([s()],n.prototype,"updating",null),e([s()],n.prototype,"label",null),e([s()],n.prototype,"layers",null),e([s({constructOnly:!0})],n.prototype,"template",void 0),e([s()],n.prototype,"visibilityCode",null),e([s()],n.prototype,"visible",null),e([s()],n.prototype,"_baseVisibilityCode",null),e([s()],n.prototype,"_evaluatedVisibilityExpression",null),n=e([r("esri.widgets.BatchAttributeForm.inputs.InputBase")],n);const p=n;export{p as default};
|