@arcgis/core 5.2.0-next.125 → 5.2.0-next.126
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/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +3 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
- package/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{fe9582bc2244667e40ab.js → 05afa8c2b5929ce0545a.js} +1 -1
- package/assets/esri/core/workers/chunks/0a20f84b5f004a77a9f9.js +1 -0
- package/assets/esri/core/workers/chunks/{cfd56e0a716baf95e17b.js → 0a2b7c691a577cb3d189.js} +1 -1
- package/assets/esri/core/workers/chunks/{6cf34cfdd063a1b6fe3e.js → 0ccd4200c5a2a5de6e16.js} +1 -1
- package/assets/esri/core/workers/chunks/{bdf012e591a8476db467.js → 1406a884241809b62bff.js} +1 -1
- package/assets/esri/core/workers/chunks/17218d714cb07b607c2f.js +1 -0
- package/assets/esri/core/workers/chunks/1d040aa8951fff3141d9.js +1 -0
- package/assets/esri/core/workers/chunks/30604a29df320d7a4c6b.js +1 -0
- package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +1 -0
- package/assets/esri/core/workers/chunks/{5b9b76e180cf206a8a0c.js → 4327d2c39a660bd89da7.js} +1 -1
- package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +1 -0
- package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +1 -0
- package/assets/esri/core/workers/chunks/{f05becec0952a61bc654.js → 4d18451e0ea6ca54101a.js} +1 -1
- package/assets/esri/core/workers/chunks/{26bc509a031788bfa678.js → 4f464047c6f6c9486efd.js} +1 -1
- package/assets/esri/core/workers/chunks/{58528ccb7f72ae76d52b.js → 540f60e31b19d85e9371.js} +1 -1
- package/assets/esri/core/workers/chunks/{44857a76be2c0ac65bb9.js → 55a560fd872f7463b33d.js} +1 -1
- package/assets/esri/core/workers/chunks/56acda1eed3a013430e2.js +1 -0
- package/assets/esri/core/workers/chunks/{1f55701d23a5e5a0c70c.js → 57ab87e70ef85b9405f9.js} +122 -122
- package/assets/esri/core/workers/chunks/{f0901f9c7135b708434f.js → 5adf2792416b22cd602f.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe5ef5ccf480634d159.js +1 -0
- package/assets/esri/core/workers/chunks/67678054342178b601cf.js +1 -0
- package/assets/esri/core/workers/chunks/67dcf9b873cb037b2647.js +1 -0
- package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +1 -0
- package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +1 -0
- package/assets/esri/core/workers/chunks/7dd94567833386dc74de.js +1 -0
- package/assets/esri/core/workers/chunks/806f96ad09e882be41af.js +1 -0
- package/assets/esri/core/workers/chunks/{bbaaebe1774a22dba39b.js → 97602019a1ccad22a03a.js} +1 -1
- package/assets/esri/core/workers/chunks/{378bdb4e5cd1ebada1f4.js → 9ca98fffd43e63d5ade3.js} +1 -1
- package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +1 -0
- package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +1 -0
- package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +1 -0
- package/assets/esri/core/workers/chunks/{e22a013ec38989caf9de.js → a790fc6b22acf651574b.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f52ad525744b8793d49.js → a8258636096416c837a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{813dd84933b407c8fe86.js → b34305474a861aaf6ccb.js} +1 -1
- package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +1 -0
- package/assets/esri/core/workers/chunks/{f0709c48daca93e759c8.js → c692e583e87af58f6d91.js} +1 -1
- package/assets/esri/core/workers/chunks/{4f7e8e4ddf52b5245ea4.js → c77496c350004ee66eb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{0fba5c0e89b057da548d.js → cb7cb7d57c4e7f76600f.js} +1 -1
- package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +1 -0
- package/assets/esri/core/workers/chunks/d5f0fed415b5b155d57c.js +1 -0
- package/assets/esri/core/workers/chunks/{3f082329a544c2c1d62d.js → d5f72670634e73c0b53a.js} +1 -1
- package/assets/esri/core/workers/chunks/d6e914f6ed45ea59034e.js +1 -0
- package/assets/esri/core/workers/chunks/{5afc12671a9a1bb6c56c.js → dc52e036547612949d32.js} +1 -1
- package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +1 -0
- package/assets/esri/core/workers/chunks/e1ae83ff3e0225708d4d.js +1 -0
- package/assets/esri/core/workers/chunks/{df79c00b5ddbef7148a0.js → eaa7cb3ffa8c11706a09.js} +1 -1
- package/assets/esri/core/workers/chunks/eebbc86a15ae3adb5f38.js +1 -0
- package/assets/esri/core/workers/chunks/fdbda3d2afea25142b86.js +1 -0
- package/assets/esri/libs/pdfjs/pdf.worker.mjs +4 -63051
- package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +9 -9
- package/chunks/GlobalIlluminationBlur.glsl.js +8 -8
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +30 -30
- package/chunks/RibbonLine.glsl.js +19 -19
- package/config.js +1 -1
- package/core/accessorSupport/types.d.ts +5 -1
- package/interfaces.d.ts +3 -0
- package/kernel.js +1 -1
- package/layers/ParquetLayer.d.ts +3 -2
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +2 -0
- package/layers/geospatialPDF/projectionToWKTUtils.js +2 -0
- package/layers/geospatialPDF/renderExtentUtils.js +1 -1
- package/layers/geospatialPDF/sharedUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/types.d.ts +6 -0
- package/layers/support/TimeSeriesCalculation.d.ts +32 -0
- package/layers/support/TimeSeriesCalculation.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +19 -0
- package/layers/support/TimeSeriesInfo.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +25 -1
- package/layers/support/timeSeriesUtils.js +1 -1
- package/layers/types.d.ts +1 -0
- package/package.json +2 -2
- package/popup/FeatureContentCollection.d.ts +4 -1
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/types.d.ts +14 -3
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/renderers/support/AuthoringInfo.d.ts +8 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +8 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/rest/knowledgeGraph/DataModel.js +1 -1
- package/smartMapping/renderers/color.d.ts +12 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +6 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +12 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/rendererUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/renderers/type.d.ts +6 -0
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +6 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +3 -2
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +3 -2
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/input/handlers/DragRotate.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/state/Constraints.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/planarDistanceToGroundRatio.js +2 -0
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/LengthDimensionResult.d.ts +4 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +4 -2
- package/views/interactive/options/SnappingOptions.js +1 -1
- package/views/interactive/options/ViewOptions.d.ts +18 -0
- package/views/interactive/options/bindViewToolOptions.js +2 -0
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/overlay/FocusRegionOverlayItem.js +1 -1
- package/views/selection/SelectionOperation.d.ts +27 -1
- package/views/selection/types.d.ts +8 -20
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -0
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -0
- package/widgets/BasemapLayerList.d.ts +1 -0
- package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
- package/widgets/BatchAttributeForm/types.d.ts +5 -1
- package/widgets/BatchAttributeForm.d.ts +1 -0
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -0
- package/widgets/Bookmarks.d.ts +1 -0
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -0
- package/widgets/CatalogLayerList.d.ts +1 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor.d.ts +1 -0
- package/widgets/FeatureForm.d.ts +1 -0
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +14 -0
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +14 -0
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +1 -0
- package/widgets/FeatureTemplates.d.ts +1 -0
- package/widgets/Features/FeaturesViewModel.d.ts +1 -0
- package/widgets/Features.d.ts +2 -1
- package/widgets/HistogramRangeSlider.d.ts +1 -0
- package/widgets/Home/HomeViewModel.d.ts +1 -0
- package/widgets/Home.d.ts +1 -0
- package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
- package/widgets/LayerList.d.ts +1 -0
- package/widgets/Locate/LocateViewModel.d.ts +1 -0
- package/widgets/Locate.d.ts +1 -0
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
- package/widgets/OrientedImageryViewer/types.d.ts +4 -1
- package/widgets/OrientedImageryViewer.d.ts +4 -1
- package/widgets/Popup.d.ts +1 -0
- package/widgets/Print/PrintViewModel.d.ts +1 -0
- package/widgets/Print.d.ts +1 -0
- package/widgets/Search.d.ts +1 -0
- package/widgets/Sketch.d.ts +1 -0
- package/widgets/Slider.d.ts +4 -0
- package/widgets/TimeSlider.d.ts +1 -0
- package/widgets/Track/TrackViewModel.d.ts +1 -0
- package/widgets/Track.d.ts +1 -0
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -0
- package/widgets/UtilityNetworkTrace.d.ts +1 -0
- package/widgets/ValuePicker/types.d.ts +1 -0
- package/widgets/ValuePicker.d.ts +1 -0
- package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -0
- package/widgets/support/SelectionList/types.d.ts +2 -0
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +2 -1
- package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +0 -1
- package/assets/esri/core/workers/chunks/0a4a5ed831a4e4d8e0fc.js +0 -1
- package/assets/esri/core/workers/chunks/0acc754907395e83bbc6.js +0 -1
- package/assets/esri/core/workers/chunks/0f8ff964461cf8e0673b.js +0 -1
- package/assets/esri/core/workers/chunks/1e46703cb566c25458ad.js +0 -1
- package/assets/esri/core/workers/chunks/25c90092def215949db9.js +0 -1
- package/assets/esri/core/workers/chunks/2a34760b3f0c134898ec.js +0 -1
- package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +0 -1
- package/assets/esri/core/workers/chunks/3b4ceaf21be540cb3499.js +0 -1
- package/assets/esri/core/workers/chunks/4c4ba466e23159991322.js +0 -1
- package/assets/esri/core/workers/chunks/606ac9358f508bda94f2.js +0 -1
- package/assets/esri/core/workers/chunks/6c4def0faaef861a09c9.js +0 -1
- package/assets/esri/core/workers/chunks/7285a37cd5359aa4bac5.js +0 -1
- package/assets/esri/core/workers/chunks/753d1ff177ecee8e2377.js +0 -1
- package/assets/esri/core/workers/chunks/8a8e94b5d7d153361b0b.js +0 -1
- package/assets/esri/core/workers/chunks/923c45ebcf45d9ce8ae0.js +0 -1
- package/assets/esri/core/workers/chunks/9af36ee6a0df224859bc.js +0 -1
- package/assets/esri/core/workers/chunks/a7ce5b958dfeb240c4a5.js +0 -1
- package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +0 -1
- package/assets/esri/core/workers/chunks/be52c319a0a81ce1ba36.js +0 -1
- package/assets/esri/core/workers/chunks/c0ec87800faf99cbd8bd.js +0 -1
- package/assets/esri/core/workers/chunks/ca5a4f62b09cc8579dc0.js +0 -1
- package/assets/esri/core/workers/chunks/d090baaa974e1e83fa44.js +0 -1
- package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +0 -1
- package/assets/esri/core/workers/chunks/ed7d4e8725aaa0ca4589.js +0 -1
- package/assets/esri/core/workers/chunks/f4572ad25712d204f258.js +0 -1
- package/layers/geospatialPDF/GeospatialPDFParserUtils.js +0 -2
- package/layers/geospatialPDF/Projection.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{min as o}from"../../../core/arrayUtils.js";import{createTask as i}from"../../../core/asyncUtils.js";import s from"../../../core/CollectionFlattener.js";import{dedupeResult as r}from"../../../core/dedupeResult.js";import{destroyHandle as a,makeHandle as n}from"../../../core/handleUtils.js";import{equalsShallow as l}from"../../../core/lang.js";import{LRUCache as p}from"../../../core/LRUCache.js";import{mapCollection as u}from"../../../core/mapCollectionUtils.js";import{destroyMaybe as c,abortMaybe as m,equalsMaybe as h}from"../../../core/maybe.js";import{throwIfAborted as _,throwIfAbortError as d}from"../../../core/promiseUtils.js";import{watch as f,syncAndInitial as
|
|
2
|
+
import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{min as o}from"../../../core/arrayUtils.js";import{createTask as i}from"../../../core/asyncUtils.js";import s from"../../../core/CollectionFlattener.js";import{dedupeResult as r}from"../../../core/dedupeResult.js";import{destroyHandle as a,makeHandle as n}from"../../../core/handleUtils.js";import{equalsShallow as l}from"../../../core/lang.js";import{LRUCache as p}from"../../../core/LRUCache.js";import{mapCollection as u}from"../../../core/mapCollectionUtils.js";import{destroyMaybe as c,abortMaybe as m,equalsMaybe as h}from"../../../core/maybe.js";import{throwIfAborted as _,throwIfAbortError as d}from"../../../core/promiseUtils.js";import{watch as f,syncAndInitial as v,on as y}from"../../../core/reactiveUtils.js";import{throttle as g}from"../../../core/throttle.js";import{adaptiveVerticalLengthUnit as C,adaptiveLengthUnit as P}from"../../../core/units.js";import{property as j,subclass as T}from"../../../core/accessorSupport/decorators.js";import{ElevationQueryTileCache as U}from"../../../layers/support/ElevationQueryTileCache.js";import{absoluteHeightElevationInfo as w}from"../../../support/elevationInfoUtils.js";import{getDefaultUnitForView as b}from"../../../support/getDefaultUnitForView.js";import R from"../../../symbols/support/ElevationInfo.js";import{getConfig as I}from"./constants.js";import S from"./ElevationProfileError.js";import{InvalidGeometryError as E,UnknownError as D}from"./elevationProfileErrors.js";import{createProfileQueue as q,sanitizeProgress as x,generateProfiles as F}from"./elevationProfileGenerationUtils.js";import{mergeStatistics as O,getBoundsInMeters as V}from"./elevationProfileStatisticsUtils.js";let k=class extends e{constructor(t){super(t),this.error=null,this._getStableEffectiveUnits=r(()=>{const t=V(this._activeComputations.map(t=>t.result.rawResult)),e=this.analysis.displayUnits,o=this.view.options.displayUnits,i=b(this.view);return{distance:P(t.maxDistance,"meters",e.distance??o.length??i),elevation:C(t.maxElevation,"meters",e.elevation??o.verticalLength??i)}},l),this._updateTask=null,this._queue=null,this._currentTileCache=null,this._parametersPerComputation=new Map,this._getStableUpdateParameters=r(()=>({stationary:this.view.stationary??!0,activeComputations:this._activeComputations,generationParameters:this._generationParameters}),l),this._getStableGenerationParameters=r(()=>{const{view:t,analysis:e}=this;return t?.ready&&this._queue?{view:t,geometry:e.geometry,geometryIsValid:e.valid,elevationInfo:this.elevationInfo,queue:this._queue,cache:this._tileCache,options:this._options,slicePlane:"3d"===t.type?t.slice.plane:null}:null},l),this._getStableElevationInfo=r(()=>this.analysis.elevationInfo??M,h),this._getStableOptions=r(()=>{const{densificationMaxSamples:t,defaultDemResolution:e,maxTotalSamples:o}=I();let i=this._minDemResolution??e;return i=parseFloat(i.toFixed(2)),{samplingDistance:i,densificationMaxSamples:Math.round(t/this._activeComputations.length),maxTotalSamples:o}},l),this._updateThrottled=g(t=>this._update(t),I().updateThrottleMillis)}initialize(){this._flatProfilesCollection=new s({getCollections:()=>[this.analysis.profiles],getChildrenFunction:t=>"group"===t.type?t.profiles:null,itemFilterFunction:t=>"group"!==t.type}),this._computationsCollection=u(()=>this._flatProfilesCollection,t=>this.computationFactory.create({controller:this,profile:t,onInvalidate:t=>this._invalidateComputation(t)}),{recycleItems:!0}),this.addHandles([a(this._flatProfilesCollection),this._computationsCollection.on("change",()=>{this._parametersPerComputation.clear(),this._updateThrottled(this._updateParameters)}),f(()=>this._updateParameters,t=>this._updateThrottled(t),v),this._updateThrottled]);const t="3d"===this.view.type?this.view.resourceController:void 0;this._queue=q(t?.scheduler),t?.addUpdatingObject(this)}destroy(){this._abortUpdate(),this._parametersPerComputation.clear(),this._computationsCollection?.destroy(),this._queue=c(this._queue),this._currentTileCache=c(this._currentTileCache)}get effectiveDisplayUnits(){return this._getStableEffectiveUnits()}get progress(){let t=0,e=0;for(const o of this._activeComputations)t++,e+=o.progress;return x(t>0?e/t:0)}get updating(){const{progress:t}=this,e=!!this._queue?.updating,o=this._updateThrottled.hasPendingUpdates(),i=null!=this._updateTask&&!this._updateTask.finished;return e||o||i||t>0&&t<1}get results(){return this._computations.map(t=>t.result)}get statistics(){return O(this._activeComputations.map(t=>t.result.statistics))}get indicatorPoints(){return this._computations.map(t=>t.indicatorPoint)}get flatProfiles(){return this._flatProfilesCollection}onElevationChange(t){const{view:e}=this;return"3d"===e?.type?y(()=>e.elevationProvider,"elevation-change",t,{onListenerAdd:t,onListenerRemove:t}):n()}get _tileCache(){this._currentTileCache=c(this._currentTileCache);const t=this.view;if("3d"===t?.type){const e=t.groundView?.elevationQueryCache;if(null!=e)return e}return null==this._currentTileCache&&(this._currentTileCache=new U(new p(20971520))),this._currentTileCache}get _computations(){return this._computationsCollection?.toArray()??[]}get _activeComputations(){return this._computations.filter(t=>t.profile.enabled&&t.available)}get _minDemResolution(){const t=this._minDemResolutions;return t.length>0?o(t):null}get _minDemResolutions(){const t=[];for(const{minDemResolution:e}of this._activeComputations)null!=e&&t.push(e);return t}get _updateParameters(){return this._getStableUpdateParameters()}get _generationParameters(){return this._getStableGenerationParameters()}get elevationInfo(){return this._getStableElevationInfo()}get _options(){return this._getStableOptions()}_update({stationary:t,activeComputations:e,generationParameters:o}){this._abortUpdate(),t&&(null!=o?this._updateTask=i(async t=>{this.error=null;const i=e.filter(t=>!this._isComputationValid(t,o));try{if(!o.geometryIsValid)throw new E;const e=F({...o,providers:i},{signal:t});let s=!1;for await(const r of e){_(t),s||(this._clearInvalidResults(o),s=!0);for(let t=0;t<i.length;t++)i[t].setResult(r[t])}for(const t of i)this._parametersPerComputation.set(t,o)}catch(s){d(s),this._abortUpdate(),this.error=s instanceof S?s:s instanceof E?null:new D,i.forEach(t=>t.clearResult())}}):this._clearResults())}_abortUpdate(){this._updateTask=m(this._updateTask)}_isComputationValid(t,e){return this._parametersPerComputation.has(t)&&this._parametersPerComputation.get(t)===e}_invalidateComputation(t){this._parametersPerComputation.delete(t),this._updateThrottled(this._updateParameters)}_clearInvalidResults(t){for(const e of this._computations)this._isComputationValid(e,t)||(e.clearResult(),this._parametersPerComputation.delete(e))}_clearResults(){for(const t of this._computations)t.clearResult(),this._parametersPerComputation.delete(t)}};t([j({constructOnly:!0})],k.prototype,"analysis",void 0),t([j({constructOnly:!0})],k.prototype,"analysisViewData",void 0),t([j({constructOnly:!0})],k.prototype,"computationFactory",void 0),t([j({constructOnly:!0})],k.prototype,"view",void 0),t([j()],k.prototype,"error",void 0),t([j({readOnly:!0})],k.prototype,"effectiveDisplayUnits",null),t([j()],k.prototype,"progress",null),t([j()],k.prototype,"updating",null),t([j()],k.prototype,"results",null),t([j()],k.prototype,"statistics",null),t([j()],k.prototype,"indicatorPoints",null),t([j()],k.prototype,"flatProfiles",null),t([j()],k.prototype,"_updateTask",void 0),t([j()],k.prototype,"_queue",void 0),t([j()],k.prototype,"_tileCache",null),t([j()],k.prototype,"_flatProfilesCollection",void 0),t([j()],k.prototype,"_computationsCollection",void 0),t([j()],k.prototype,"_computations",null),t([j()],k.prototype,"_activeComputations",null),t([j({readOnly:!0})],k.prototype,"_minDemResolution",null),t([j()],k.prototype,"_minDemResolutions",null),t([j()],k.prototype,"_updateParameters",null),t([j()],k.prototype,"_generationParameters",null),t([j()],k.prototype,"elevationInfo",null),t([j()],k.prototype,"_options",null),k=t([T("esri.views.analysis.ElevationProfile.ElevationProfileController")],k);const M=new R({...w});export{k as ElevationProfileController};
|
|
@@ -21,6 +21,9 @@ export default class LengthDimensionResult extends Accessor {
|
|
|
21
21
|
constructor(properties: LengthDimensionResultProperties);
|
|
22
22
|
/** The [LengthDimension](https://developers.arcgis.com/javascript/latest/references/core/analysis/LengthDimension/) that this result corresponds to. */
|
|
23
23
|
get dimension(): LengthDimension;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The length currently being measured by the [dimension](https://developers.arcgis.com/javascript/latest/references/core/views/analysis/LengthDimensionResult/#dimension), using the
|
|
26
|
+
* [display length unit](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits) when configured.
|
|
27
|
+
*/
|
|
25
28
|
get length(): Length | null | undefined;
|
|
26
29
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import e from"../../../../core/Accessor.js";import{createTask as o}from"../../../../core/asyncUtils.js";import i from"../../../../core/Error.js";import{getOrCreateMapValue as n}from"../../../../core/MapUtils.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import s from"../../../../core/ReactiveMap.js";import{watch as l,syncAndInitial as a,initial as p}from"../../../../core/reactiveUtils.js";import{property as d}from"../../../../core/accessorSupport/decorators.js";import{subclass as c}from"../../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as u}from"../../../../core/support/UpdatingHandles.js";import{isLoaded as m,load as
|
|
2
|
+
import{__decorate as t}from"tslib";import e from"../../../../core/Accessor.js";import{createTask as o}from"../../../../core/asyncUtils.js";import i from"../../../../core/Error.js";import{getOrCreateMapValue as n}from"../../../../core/MapUtils.js";import{destroyMaybe as r}from"../../../../core/maybe.js";import s from"../../../../core/ReactiveMap.js";import{watch as l,syncAndInitial as a,initial as p}from"../../../../core/reactiveUtils.js";import{property as d}from"../../../../core/accessorSupport/decorators.js";import{subclass as c}from"../../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as u}from"../../../../core/support/UpdatingHandles.js";import{isLoaded as m,load as h}from"../../../../geometry/coordinateFormatter.js";import{absoluteHeightElevationInfo as f}from"../../../../support/elevationInfoUtils.js";import{ManagedTooltipField as g}from"../ManagedTooltipField.js";import{getConstraintContext as v}from"../../../interactive/sketch/constraintUtils.js";import{makeTooltip as y}from"../../../interactive/tooltip/tooltipCommonUtils.js";import{makeScalarField as _,makeOrientationField as H,makeAreaField as F,makeLengthField as T,makeRadiusField as I,makeTotalLengthField as x,makeSizeField as w,makeScaleField as M,makeYField as b,makeXField as j,makeLongitudeField as A,makeLatitudeField as k,makeElevationField as E,makeDistanceField as C,makeDirectionField as O}from"../../../interactive/tooltip/fields/fields.js";import{TooltipField as L}from"../../../interactive/tooltip/fields/TooltipField.js";import{DynamicTooltipInfo as P,isKnownConstraintField as S}from"../../../interactive/tooltip/infos/DynamicTooltipInfo.js";let R=class extends e{constructor(t){super(t),this._pluginTooltipFieldRegistry=new s,this._updatingHandles=new u,this._coordinateFormatterLoadTask=null,this._constraintSnapshot=null,this.constraintsEnabled=!0,this.keepTooltipAliveEvenWhenTooltipsAreNotEnabled=!1,this.enabled=!0}initialize(){this.addHandles([l(()=>[this.effectiveEnabled,this.context?.view,this.context?.toolOptions],([t,e,o])=>{const{context:i}=this;t&&e&&o?(this._tooltipInfo??=new P({toolOptions:o,getAllFields:()=>this.allFields,getActiveHandle:()=>this.effectiveActiveHandle,getHelpMessageKey:()=>this.context?.getHelpMessageKey(),viewType:e.type}),this._tooltip||this._setupTooltip(i)):(this._tooltip=r(this._tooltip),this._tooltipInfo=r(this._tooltipInfo),this.inputModeHandle=null)},a)])}destroy(){this._tooltip=r(this._tooltip),this._tooltipInfo=r(this._tooltipInfo)}get context(){return this.getDependencies?.()}get focusedHandle(){return this.context?.getActiveHandle?.()}get allHandles(){return this.context?.getAllHandles?.()}get effectiveActiveHandle(){return this._tooltip?.isInInputMode?this.inputModeHandle:this.focusedHandle}get updating(){return this._updatingHandles.updating}get tooltip(){return this._tooltip}get tooltipInfo(){return this._tooltipInfo}get elevationConstraint(){return this.getConstraints(this.focusedHandle)?.elevation}get allFields(){return Array.from(this._pluginTooltipFieldRegistry.values()).flatMap(t=>Array.from(t.values()))}get effectiveEnabled(){return this.enabled&&(this.context?.toolOptions.tooltips.effectiveEnabled||this.keepTooltipAliveEvenWhenTooltipsAreNotEnabled)}getConstraints(t){const{tooltipInfo:e,context:o}=this,{view:i,editGeometryOperations:n,elevationInfo:r,toolOptions:s}=o??{},l=this.getLastScreenPosition?.();if(!(l&&i&&e&&n&&s))return null;const{coordinateHelper:a,spatialReference:p}=n.data,d=i.toMap(l);if(!d)return null;const c=v(d,i,p,r??f,a.hasZ(),s.values.effectiveDirectionMode);return{...V(e.getConstraintFieldsForHandle(t)),context:c}}storeConstraintSnapshot(){const t=this.tooltipInfo?.allFields.filter(t=>t.locked&&!t.unlockOnVertexPlacement).filter(S);this._constraintSnapshot=t?.length?V(t):null}unlockOnVertexPlacement(){this.tooltipInfo?.allFields.forEach(t=>{t.unlockOnVertexPlacement&&(t.committed=null)})}unregisterPluginFields(t){const e=this._pluginTooltipFieldRegistry.get(t);e?.forEach(t=>t.destroy()),e?.clear(),this._pluginTooltipFieldRegistry.delete(t)}createMeasuredField(t,{id:e,preset:o,getMeasurementInput:i,measure:n,fieldProperties:r,fieldFilters:s}){const a=this._getOrCreateField(t,e,o,r,s);return a.registerMeasurement(i,n,()=>this.tooltipInfo?.renderContext),a.addHandles(l(()=>this.tooltipInfo?.isEffectiveVisibleField(a.field),t=>a.enabled=!!t,p)),a}createCustomField(t,{id:e,preset:o,fieldProperties:i,fieldFilters:n}){return this._getOrCreateField(t,e,o,i,n)}_setupTooltip(t){const e=this._tooltip=y(()=>({view:t.view,options:t.toolOptions.tooltips,info:this.tooltipInfo}));e.addHandles([l(()=>this.focusedHandle,t=>{(t&&(!e.isInInputMode||null==this.inputModeHandle)||this.inputModeHandle&&!this.allHandles?.includes(this.inputModeHandle))&&(this.inputModeHandle=t)},a),l(()=>this.focusedHandle?.screenPosition,t=>{t?(e.position=t,e.hidden=!1):e.hidden=!0},a),e.on("commit",()=>{this.context?.notifyTooltipsChanged()})]),this._coordinateFormatterLoadTask||m()||(this._coordinateFormatterLoadTask=o(()=>h()),this.addHandles(this._coordinateFormatterLoadTask),this._updatingHandles.addPromise(this._coordinateFormatterLoadTask.promise))}_getOrCreateField(t,e,o,i,r){const l=n(this._pluginTooltipFieldRegistry,t,()=>new s);if(l.has(e))return l.get(e);const a=G(o,i),p=new g({field:a,displayGroup:i?.displayGroup,...r});l.set(e,p);const d=S(a)?this._constraintSnapshot?.[a.name]:void 0;return d&&a.lock(d),p}};function U(t){return null!=t&&"unit"in t&&"rotationType"in t?t:null}function D(t){return null==t||"rotationType"in t?null:t}function G(t,e){const o=e?{...e}:{};switch(delete o.displayGroup,t){case"area":return F({...o,name:"area"});case"direction":return O({...o,name:"direction"});case"distance":return C({...o,name:"distance"});case"elevation":{const t=E({...o,name:"elevation"});return t.showAsZ=!0,t}case"latitude":return k({...o,name:"y"});case"longitude":return A({...o,name:"x"});case"x":return j({...o,name:"x"});case"y":return b({...o,name:"y"});case"orientation":return H({...o,name:"orientation"});case"scale":return M({...o,name:"scale"});case"size":return w({...o,name:"size"});case"totalLength":return x({...o,name:"totalLength"});case"radius":return I({...o,name:"radius"});case"generic-length":return T({...o,name:null});case"generic-area":return F({...o,name:null});case"generic-angle":return H({...o,name:null});case"generic-scalar":return _({...o,name:null});default:if(!o)throw new i("draw-tool:tooltips:invalid-field-config","Attempted to create a tooltip without a preset definition and without tooltip configuration.");return new L(o)}}function V(t){const e={};for(const o of t)switch(o.name){case"direction":case"distance":case"elevation":e[o.name]=o.committed;break;case"x":e[o.name]=D(o.committed),e.longitude=U(o.committed);break;case"y":e[o.name]=D(o.committed),e.latitude=U(o.committed)}return e}t([d()],R.prototype,"_updatingHandles",void 0),t([d()],R.prototype,"_tooltip",void 0),t([d()],R.prototype,"_tooltipInfo",void 0),t([d()],R.prototype,"_coordinateFormatterLoadTask",void 0),t([d()],R.prototype,"_constraintSnapshot",void 0),t([d()],R.prototype,"getDependencies",void 0),t([d()],R.prototype,"getLastScreenPosition",void 0),t([d()],R.prototype,"context",null),t([d()],R.prototype,"inputModeHandle",void 0),t([d()],R.prototype,"focusedHandle",null),t([d()],R.prototype,"allHandles",null),t([d()],R.prototype,"effectiveActiveHandle",null),t([d()],R.prototype,"updating",null),t([d()],R.prototype,"tooltip",null),t([d()],R.prototype,"tooltipInfo",null),t([d()],R.prototype,"constraintsEnabled",void 0),t([d()],R.prototype,"elevationConstraint",null),t([d()],R.prototype,"allFields",null),t([d()],R.prototype,"keepTooltipAliveEvenWhenTooltipsAreNotEnabled",void 0),t([d()],R.prototype,"enabled",void 0),t([d()],R.prototype,"effectiveEnabled",null),R=t([c("esri.views.draw.support.managers.TooltipManager")],R);export{R as TooltipManager};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type Accessor from "../../../core/Accessor.js";
|
|
2
2
|
import type Collection from "../../../core/Collection.js";
|
|
3
3
|
import type FeatureSnappingLayerSource from "../snapping/FeatureSnappingLayerSource.js";
|
|
4
|
+
import type { MultiOriginJSONSupportMixin } from "../../../core/MultiOriginJSONSupport.js";
|
|
4
5
|
import type { FeatureSnappingLayerSourceProperties } from "../snapping/FeatureSnappingLayerSource.js";
|
|
5
6
|
import type { ReadonlyArrayOrCollection } from "../../../core/Collection.js";
|
|
6
7
|
|
|
@@ -75,7 +76,7 @@ export interface SnappingOptionsProperties extends Partial<Pick<SnappingOptions,
|
|
|
75
76
|
* }
|
|
76
77
|
* });
|
|
77
78
|
*/
|
|
78
|
-
export default class SnappingOptions extends
|
|
79
|
+
export default class SnappingOptions extends SnappingOptionsSuperclass {
|
|
79
80
|
/** @since 5.2 */
|
|
80
81
|
constructor(properties?: SnappingOptionsProperties);
|
|
81
82
|
/**
|
|
@@ -154,4 +155,5 @@ export default class SnappingOptions extends Accessor {
|
|
|
154
155
|
* @since 5.2
|
|
155
156
|
*/
|
|
156
157
|
accessor selfEnabled: boolean;
|
|
157
|
-
}
|
|
158
|
+
}
|
|
159
|
+
declare const SnappingOptionsSuperclass: typeof Accessor & typeof MultiOriginJSONSupportMixin
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{difference as r}from"../../../core/arrayUtils.js";import o from"../../../core/Collection.js";import i from"../../../core/Logger.js";import{property as a,subclass as
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{difference as r}from"../../../core/arrayUtils.js";import o from"../../../core/Collection.js";import i from"../../../core/Logger.js";import{MultiOriginJSONSupportMixin as s}from"../../../core/MultiOriginJSONSupport.js";import{on as n}from"../../../core/reactiveUtils.js";import{property as a,subclass as l}from"../../../core/accessorSupport/decorators.js";import u from"../snapping/FeatureSnappingLayerSource.js";import{defaults as c}from"../snapping/Settings.js";let d=class extends(s(t)){constructor(e){super(e),this.enabled=!1,this.enabledToggled=!1,this.forceDisabled=!1,this.selfEnabled=!0,this.featureEnabled=!0,this.gridEnabled=!1,this.attributeRulesEnabled=!1,this.featureSources=new o,this.distance=c.distance,this.touchSensitivityMultiplier=c.touchSensitivityMultiplier}initialize(){this.addHandles(n(()=>this.featureSources,"after-changes",()=>this.setAtOrigin("featureSources",this.featureSources,"user")))}get effectiveEnabled(){return!this.forceDisabled&&(this.enabledToggled?!this.enabled:this.enabled)}get effectiveGridEnabled(){return this.effectiveEnabled&&this.gridEnabled}get effectiveSelfEnabled(){return this.effectiveEnabled&&this.selfEnabled}get effectiveFeatureEnabled(){return this.effectiveEnabled&&this.featureEnabled}get _effectiveFeatureSources(){const e=this.featureSources;e.some(p)&&i.getLogger(this).warnOnce("Do not configure SubtypeGroupLayer sources in SnappingOptions.featureSources directly. Create a FeatureSnappingLayerSource for each SubtypeSublayer.");const t=e.filter(y),s=this._get("_effectiveFeatureSources")?.filter(p)??new o;for(const r of t){const e=s.find(e=>e.layer===r.layer.parent);if(e)e.sublayerSources.includes(r)||e.sublayerSources.add(r);else if(r.layer.parent){const e=new u({layer:r.layer.parent});e.sublayerSources.add(r),s.add(e)}}for(const r of s){const e=r.sublayerSources.filter(e=>!t.includes(e));r.sublayerSources.removeMany(e)}s.removeMany(s.filter(e=>0===e.sublayerSources.length));const n=e.filter(f),a=this._get("_effectiveFeatureSources")??new o,{added:l,removed:c}=r(a.toArray(),[...n,...s]);return a.removeMany(c),a.addMany(l),a}};function p(e){return"subtype-group"===e.layer.type}function f(e){return"subtype-group"!==e.layer.type}function y(e){return"subtype-sublayer"===e.layer.type}e([a({json:{write:!0}})],d.prototype,"enabled",void 0),e([a()],d.prototype,"enabledToggled",void 0),e([a()],d.prototype,"forceDisabled",void 0),e([a({json:{write:!0}})],d.prototype,"selfEnabled",void 0),e([a({json:{write:!0}})],d.prototype,"featureEnabled",void 0),e([a({json:{write:!0}})],d.prototype,"gridEnabled",void 0),e([a({json:{write:!0}})],d.prototype,"attributeRulesEnabled",void 0),e([a({type:o.ofType(u)})],d.prototype,"featureSources",void 0),e([a({json:{write:!0}})],d.prototype,"distance",void 0),e([a({json:{write:!0}})],d.prototype,"touchSensitivityMultiplier",void 0),e([a({readOnly:!0})],d.prototype,"effectiveEnabled",null),e([a({readOnly:!0})],d.prototype,"effectiveGridEnabled",null),e([a({readOnly:!0})],d.prototype,"effectiveSelfEnabled",null),e([a({readOnly:!0})],d.prototype,"effectiveFeatureEnabled",null),e([a({readOnly:!0})],d.prototype,"_effectiveFeatureSources",null),d=e([l("esri.views.interactive.options.SnappingOptions")],d);export{d as default};
|
|
@@ -33,6 +33,15 @@ export interface ViewOptionsProperties {
|
|
|
33
33
|
* Snapping is disabled by default in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) and enabled by default in a
|
|
34
34
|
* [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
35
35
|
*
|
|
36
|
+
* > [!WARNING]
|
|
37
|
+
* >
|
|
38
|
+
* > **Known Limitations**
|
|
39
|
+
* >
|
|
40
|
+
* > These options currently do not apply to [AreaMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/references/core/views/2d/analysis/AreaMeasurementAnalysisView2D/) or
|
|
41
|
+
* > [DistanceMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/references/core/views/2d/analysis/DistanceMeasurementAnalysisView2D/), including their measurement components.
|
|
42
|
+
* > Configure `snappingOptions` on the analysis view or component instead. Tooltip and unit settings configured through
|
|
43
|
+
* > `view.options` still apply. Support for `view.options.snapping` in these analyses and components is planned for a future release.
|
|
44
|
+
*
|
|
36
45
|
* @since 5.2
|
|
37
46
|
*/
|
|
38
47
|
snapping?: SnappingOptionsProperties;
|
|
@@ -82,6 +91,15 @@ export default class ViewOptions extends Accessor {
|
|
|
82
91
|
* Snapping is disabled by default in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) and enabled by default in a
|
|
83
92
|
* [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
84
93
|
*
|
|
94
|
+
* > [!WARNING]
|
|
95
|
+
* >
|
|
96
|
+
* > **Known Limitations**
|
|
97
|
+
* >
|
|
98
|
+
* > These options currently do not apply to [AreaMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/references/core/views/2d/analysis/AreaMeasurementAnalysisView2D/) or
|
|
99
|
+
* > [DistanceMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/references/core/views/2d/analysis/DistanceMeasurementAnalysisView2D/), including their measurement components.
|
|
100
|
+
* > Configure `snappingOptions` on the analysis view or component instead. Tooltip and unit settings configured through
|
|
101
|
+
* > `view.options` still apply. Support for `view.options.snapping` in these analyses and components is planned for a future release.
|
|
102
|
+
*
|
|
85
103
|
* @since 5.2
|
|
86
104
|
*/
|
|
87
105
|
get snapping(): SnappingOptions;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{watch as t,syncAndInitial as i}from"../../../core/reactiveUtils.js";function s(s,n){return t(()=>{const{tooltips:t,displayUnits:i,inputUnits:s}=n();return{tooltips:t,displayUnits:i,inputUnits:s}},({tooltips:t,displayUnits:i,inputUnits:n})=>{s.tooltips=t,s.values.displayUnits=i,s.values.inputUnits=n},i)}export{s as bindViewToolOptions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{makeHandle as e}from"../../../core/handleUtils.js";import{nextTick as
|
|
2
|
+
import{makeHandle as e}from"../../../core/handleUtils.js";import{nextTick as r}from"../../../core/nextTick.js";import{watch as n,syncAndInitial as o}from"../../../core/reactiveUtils.js";import{makeAllLayerSnappingOptions as t}from"./allLayerSnapping.js";import{SnappingManager as s}from"./SnappingManager.js";import i from"./SnappingOptions.js";const a=new Map;function p(r){if(!a.has(r)){const e=t(r,{distance:10}),p=new i,c=n(()=>{const n=r.options.snapping,o=e.options,t=n.featureSources;return{...o.toJSON(),...n.toJSON({origin:"service"}),featureSources:"defaults"===n.originOf("featureSources")?o.featureSources:t}},e=>p.set(e),o),f=new s({view:r,options:p});a.set(r,{referenceCount:0,snappingManager:f,remove:()=>{c.remove(),e.remove(),f.destroy()}})}const p=a.get(r);p.referenceCount++;const f=e(()=>c(r,p));return{snappingManager:p.snappingManager,...f}}function c(e,n){n.referenceCount--,n.referenceCount>0||r(()=>{0===n.referenceCount&&(n.remove(),a.delete(e))})}export{p as acquire};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"../../../core/Collection.js";import{destroyHandle as
|
|
2
|
+
import e from"../../../core/Collection.js";import{makeHandle as t,destroyHandle as r}from"../../../core/handleUtils.js";import{mapCollection as i}from"../../../core/mapCollectionUtils.js";import{watch as o,syncAndInitial as n}from"../../../core/reactiveUtils.js";import s from"./FeatureSnappingLayerSource.js";import{defaults as l}from"./Settings.js";import a from"./SnappingOptions.js";const c=e.ofType(s);function p(e,p){const u=i(p?.excludeInternal?()=>e.map?.allLayers.filter(e=>!("internal"in e)||!e.internal):()=>e.map?.allLayers,e=>new s({layer:e}),{recycleItems:!0,createCollection:()=>new c}),m=new a({enabled:!0,selfEnabled:p?.selfEnabled??!1,featureEnabled:!0,featureSources:u,distance:p?.distance??l.distance,touchSensitivityMultiplier:p?.touchSensitivityMultiplier??l.touchSensitivityMultiplier}),f=new a,S=o(()=>{const t=e.options.snapping;return{...m.toJSON(),...t.toJSON({origin:"service"}),featureSources:"defaults"===t.originOf("featureSources")?u:t.featureSources}},e=>f.set(e),n);return{...t(()=>{S.remove(),r(u).remove()}),options:f}}export{p as makeAllLayerSnappingOptions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{property as i,subclass as
|
|
2
|
+
import{__decorate as t}from"tslib";import e from"../../core/Accessor.js";import{property as i,subclass as o}from"../../core/accessorSupport/decorators.js";import{tsx as s}from"../../widgets/support/widget.js";const r=250,h=50,n=32;function c(t,e){const i=Math.min(t,e);return i-Math.min(2*n,Math.max(0,i-h))}function d(t,e,i=r){const o=c(t,e),s=Math.min(h,o);return Math.min(o,Math.max(s,i))}let a=class extends e{constructor(t){super(t),this.backgroundHeight=0,this.backgroundWidth=0,this.boxSize=0,this.isDecoration=!0,this.padding={left:0,top:0,right:0,bottom:0},this.visible=!1}updateBoxSize(t){this.boxSize=this.getBoxSize(t)}_getContentRect(){const{backgroundWidth:t,backgroundHeight:e,padding:i}=this,{left:o,top:s,right:r,bottom:h}=i;return{x:o,y:s,width:Math.max(0,t-o-r),height:Math.max(0,e-s-h)}}resizeBoxSize(t){this.updateBoxSize(this.getBoxSize()+t)}getBoxSize(t=this.boxSize||r){const{width:e,height:i}=this._getContentRect();return d(e,i,t)}getScreenRect(){const{x:t,y:e,width:i,height:o}=this._getContentRect(),s=this.getBoxSize();return{x:t+i/2-s/2,y:e+o/2-s/2,width:s,height:s}}render(){const{x:t,y:e,width:i}=this.getScreenRect();return s("div",{classes:{"esri-box-overlay-item":!0},styles:{left:"0px",top:"0px",width:"100%",height:"100%",visibility:this.visible?"visible":"hidden"}},s("svg",{styles:{width:"100%",height:"100%"}},s("rect",{classes:{"esri-focus-region-outer-stroke":!0},fill:"none",height:i,width:i,x:t,y:e}),s("rect",{classes:{"esri-focus-region-inner-stroke":!0},fill:"none",height:i,width:i,x:t,y:e})))}renderCanvas(){}};t([i()],a.prototype,"backgroundHeight",void 0),t([i()],a.prototype,"backgroundWidth",void 0),t([i()],a.prototype,"boxSize",void 0),t([i()],a.prototype,"isDecoration",void 0),t([i()],a.prototype,"padding",void 0),t([i()],a.prototype,"visible",void 0),a=t([o("esri.views.overlay.FocusRegionOverlayItem")],a);const g=a;export{g as default};
|
|
@@ -3,7 +3,7 @@ import type Collection from "../../core/Collection.js";
|
|
|
3
3
|
import type SelectionManager from "../SelectionManager.js";
|
|
4
4
|
import type { EventedAccessor } from "../../core/Evented.js";
|
|
5
5
|
import type { DrawingMode } from "../draw/types.js";
|
|
6
|
-
import type { SelectableViewUnion, SelectionOperationCreateTool, SelectionOperationType, SelectionSource, SelectionToolName } from "./types.js";
|
|
6
|
+
import type { SelectableViewUnion, SelectionChangeEventInfo, SelectionCompleteEventInfo, SelectionOperationCreateTool, SelectionOperationType, SelectionSource, SelectionToolName } from "./types.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Construction properties for a selection operation.
|
|
@@ -54,6 +54,26 @@ export interface SelectionOperationProperties extends Partial<Pick<SelectionOper
|
|
|
54
54
|
view?: SelectableViewUnion;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Types of events emitted by a selection operation.
|
|
59
|
+
*
|
|
60
|
+
* @since 5.1
|
|
61
|
+
*/
|
|
62
|
+
export interface SelectionOperationEvents {
|
|
63
|
+
/**
|
|
64
|
+
* Fires when a selection operation is completed or cancelled.
|
|
65
|
+
*
|
|
66
|
+
* @since 5.1
|
|
67
|
+
*/
|
|
68
|
+
complete: SelectionCompleteEventInfo;
|
|
69
|
+
/**
|
|
70
|
+
* Fires when a selection change is determined by the selection operation.
|
|
71
|
+
*
|
|
72
|
+
* @since 5.1
|
|
73
|
+
*/
|
|
74
|
+
"selection-change": SelectionChangeEventInfo;
|
|
75
|
+
}
|
|
76
|
+
|
|
57
77
|
/**
|
|
58
78
|
* The selection operation is responsible for creating and using an interactive drawing tool to maintain
|
|
59
79
|
* an interactively updated graphics selection set while a selection area is being drawn. The interactive
|
|
@@ -64,6 +84,12 @@ export interface SelectionOperationProperties extends Partial<Pick<SelectionOper
|
|
|
64
84
|
* @since 5.1
|
|
65
85
|
*/
|
|
66
86
|
export default class SelectionOperation extends EventedAccessor {
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated
|
|
89
|
+
* Do not directly reference this property.
|
|
90
|
+
* Use EventNames and EventTypes helpers from \@arcgis/core/Evented
|
|
91
|
+
*/
|
|
92
|
+
"@eventTypes": SelectionOperationEvents;
|
|
67
93
|
/** @since 5.1 */
|
|
68
94
|
constructor(properties: SelectionOperationProperties);
|
|
69
95
|
/**
|
|
@@ -30,6 +30,7 @@ import type { RendererUnion } from "../../renderers/types.js";
|
|
|
30
30
|
import type { RequestOptions } from "../../request/types.js";
|
|
31
31
|
import type { MapViewOrSceneView } from "../MapViewOrSceneView.js";
|
|
32
32
|
import type { ObjectId } from "../types.js";
|
|
33
|
+
import type { SelectionOperationEvents as OperationEvents } from "./SelectionOperation.js";
|
|
33
34
|
import type { CreateTool } from "../../widgets/Sketch/types.js";
|
|
34
35
|
|
|
35
36
|
/**
|
|
@@ -89,6 +90,13 @@ export type SelectionIdentifier = Graphic | ObjectId;
|
|
|
89
90
|
*/
|
|
90
91
|
export type SelectionOperationType = "add" | "remove" | "replace";
|
|
91
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Types of events emitted by a selection operation.
|
|
95
|
+
*
|
|
96
|
+
* @deprecated since 5.2. Use [SelectionOperationEvents](https://developers.arcgis.com/javascript/latest/references/core/views/selection/SelectionOperation/#SelectionOperationEvents) instead.
|
|
97
|
+
*/
|
|
98
|
+
export type SelectionOperationEvents = OperationEvents;
|
|
99
|
+
|
|
92
100
|
/**
|
|
93
101
|
* A simple object representing the selected features in a layer.
|
|
94
102
|
*
|
|
@@ -294,26 +302,6 @@ export interface SelectableLayerViewWithObjectIds extends SelectableLayerViewBas
|
|
|
294
302
|
*/
|
|
295
303
|
export type SelectableLayerView = SelectableLayerViewWithObjectIds | SelectableLayerViewWithGraphics;
|
|
296
304
|
|
|
297
|
-
/**
|
|
298
|
-
* Types of events emitted by a selection operation.
|
|
299
|
-
*
|
|
300
|
-
* @since 5.1
|
|
301
|
-
*/
|
|
302
|
-
export interface SelectionOperationEvents {
|
|
303
|
-
/**
|
|
304
|
-
* Fires when a selection operation is completed or cancelled.
|
|
305
|
-
*
|
|
306
|
-
* @since 5.1
|
|
307
|
-
*/
|
|
308
|
-
complete: SelectionCompleteEventInfo;
|
|
309
|
-
/**
|
|
310
|
-
* Fires when a selection change is determined by the selection operation.
|
|
311
|
-
*
|
|
312
|
-
* @since 5.1
|
|
313
|
-
*/
|
|
314
|
-
"selection-change": SelectionChangeEventInfo;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
305
|
/** @since 5.1 */
|
|
318
306
|
export interface SelectionCompleteEventInfo {
|
|
319
307
|
/**
|
|
@@ -49,6 +49,7 @@ export interface AreaMeasurement2DViewModelProperties extends Partial<Pick<AreaM
|
|
|
49
49
|
/**
|
|
50
50
|
* Provides the logic for the [AreaMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/AreaMeasurement2D/) widget and [component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/).
|
|
51
51
|
*
|
|
52
|
+
* @deprecated since version 5.2. Use the [Area Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/) directly or [AreaMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/AreaMeasurementAnalysis/) instead.
|
|
52
53
|
* @since 4.10
|
|
53
54
|
* @see [AreaMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/AreaMeasurement2D/) widget
|
|
54
55
|
* @see [Area Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-2d/)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{deprecateUnnecessaryViewModel as i}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{destroyMaybe as s}from"../../core/maybe.js";import{watch as r,initial as a,syncAndInitial as o,whenOnce as p}from"../../core/reactiveUtils.js";import{measurementAreaUnits as l}from"../../core/units.js";import{property as u,subclass as m}from"../../core/accessorSupport/decorators.js";import{defaultUnitPropertyMetadata as g}from"../../properties/defaultUnit.js";import{SnappingManager as d}from"../../views/interactive/snapping/SnappingManager.js";import h from"../../views/interactive/snapping/SnappingOptions.js";import{isSupported as c,loadGeometryOperators as v,AreaMeasurement2DTool as f}from"./AreaMeasurement2DTool.js";import{InteractiveToolViewModelMixin as w}from"../support/InteractiveToolViewModelMixin.js";let M=class extends(w(t)){constructor(e){super(e),this.supportedViewType="2d",this.unsupportedErrorMessage="AreaMeasurement2DViewModel is only supported in 2D views.",this._snappingManager=null,this.snappingOptions=new h,e?.suppressDeprecationWarning||i(n.getLogger(this),"Area Measurement 2D","arcgis-area-measurement-2d",{version:"5.2"})}normalizeCtorArgs(e){const{suppressDeprecationWarning:t,...i}=e??{};return i}initialize(){this.addHandles([r(()=>this.view?.spatialReference,()=>this.clear()),r(()=>this.unit,e=>{null!=this.tool&&(this.tool.unit=e)},a),r(()=>this.view,e=>{this._snappingManager=s(this._snappingManager),e&&(this._snappingManager=new d({view:e,options:this.snappingOptions}))},o),r(()=>this.snappingOptions,e=>{this._snappingManager&&e&&(this._snappingManager.options=e)})])}destroy(){this._snappingManager=s(this._snappingManager)}get measurement(){return this.tool?.measurement??null}get measurementLabel(){return this.tool?.measurementLabel??null}get state(){return this.disabled||null==this.view||!c(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 l}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 p(()=>e.ready),await v(e.spatialReference)),this.createTool({interactive:!0})}clear(){this.removeTool()}constructTool(){return new f({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=>l.includes(e));return 0===t.length?l.slice():t}};e([u()],M.prototype,"_snappingManager",void 0),e([u(g)],M.prototype,"defaultUnit",void 0),e([u({readOnly:!0})],M.prototype,"measurement",null),e([u({readOnly:!0})],M.prototype,"measurementLabel",null),e([u({type:h,nonNullable:!0})],M.prototype,"snappingOptions",void 0),e([u({readOnly:!0})],M.prototype,"state",null),e([u({type:String})],M.prototype,"unit",null),e([u({type:[String]})],M.prototype,"unitOptions",null),M=e([m("esri.widgets.AreaMeasurement2D.AreaMeasurement2DViewModel")],M);const y=M;export{y as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import s from"../core/Logger.js";import{ignoreAbortErrors as i}from"../core/promiseUtils.js";import{property as o,subclass as r}from"../core/accessorSupport/decorators.js";import n from"../views/interactive/snapping/SnappingOptions.js";import a from"./Widget.js";import p from"./AreaMeasurement2D/AreaMeasurement2DViewModel.js";import{globalCss as l}from"./support/globalCss.js";import{MeasurementWidgetContent as
|
|
2
|
+
import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import s from"../core/Logger.js";import{ignoreAbortErrors as i}from"../core/promiseUtils.js";import{property as o,subclass as r}from"../core/accessorSupport/decorators.js";import n from"../views/interactive/snapping/SnappingOptions.js";import a from"./Widget.js";import p from"./AreaMeasurement2D/AreaMeasurement2DViewModel.js";import{globalCss as l}from"./support/globalCss.js";import{MeasurementWidgetContent as u}from"./support/MeasurementWidgetContent.js";import{messageBundle as m,tsx as g}from"./support/widget.js";const v="esri-area-measurement-2d",d={base:v,newMeasurementButton:`${v}__clear-button`};let c=class extends a{constructor(e,i){super(e,i),this.messages=null,this.messagesUnits=null,this.messagesCommon=null,this.viewModel=new p({suppressDeprecationWarning:!0}),t(s.getLogger(this),"Area Measurement 2D","arcgis-area-measurement-2d",{version:"5.0"})}get active(){return this.viewModel.active}get icon(){return"measure-area"}set icon(e){this._overrideIfSome("icon",e)}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get snappingOptions(){return this.viewModel.snappingOptions}set snappingOptions(e){this.viewModel.snappingOptions=e}get unit(){return this.viewModel.unit}set unit(e){this.viewModel.unit=e}get unitOptions(){return this.viewModel.unitOptions}set unitOptions(e){this.viewModel.unitOptions=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}render(){const{messages:e,messagesCommon:t,messagesUnits:s,unit:o,unitOptions:r,viewModel:n,visible:a}=this,{active:p,measurementLabel:m,state:v,supported:c}=n;return g("div",{"aria-label":e.widgetLabel,class:this.classes(d.base,l.widget,l.panel),key:this,role:"region"},a?g(u,{active:p,measurementItems:[{key:"area",title:s?.measures.area,value:m?.area},{key:"perimeter",title:e.perimeter,value:m?.perimeter}],messages:{...e,notApplicable:t.notApplicable},newMeasurementButtonClass:d.newMeasurementButton,state:v,supported:c,unit:o,unitOptions:r,onNewMeasurementClick:()=>{i(n.start())},onUnitChange:e=>{this.unit=e}}):null)}};e([o({readOnly:!0})],c.prototype,"active",null),e([o()],c.prototype,"icon",null),e([o()],c.prototype,"label",null),e([o(),m("esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D")],c.prototype,"messages",void 0),e([o(),m("esri/core/t9n/Units")],c.prototype,"messagesUnits",void 0),e([o(),m("esri/t9n/common")],c.prototype,"messagesCommon",void 0),e([o({type:n})],c.prototype,"snappingOptions",null),e([o()],c.prototype,"uiStrings",void 0),e([o()],c.prototype,"unit",null),e([o()],c.prototype,"unitOptions",null),e([o()],c.prototype,"view",null),e([o({type:p})],c.prototype,"viewModel",void 0),e([o({type:Boolean})],c.prototype,"visible",null),c=e([r("esri.widgets.AreaMeasurement2D")],c);const w=c;export{w as default};
|
|
@@ -8,6 +8,7 @@ import type { Action, ListItemModifier } from "../LayerList/types.js";
|
|
|
8
8
|
|
|
9
9
|
export interface BasemapLayerListViewModelProperties extends Partial<Pick<BasemapLayerListViewModel, "baseListItemCreatedFunction" | "basemapTitle" | "checkPublishStatusEnabled" | "listModeDisabled" | "referenceListItemCreatedFunction" | "view">> {}
|
|
10
10
|
|
|
11
|
+
/** @deprecated since 5.2. Use the [Basemap Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-basemap-layer-list-next/) component instead. */
|
|
11
12
|
export interface BasemapLayerListViewModelEvents extends LayerListViewModelEvents {}
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -68,6 +68,7 @@ export interface BasemapLayerListProperties extends WidgetProperties, Identifiab
|
|
|
68
68
|
visibleElements?: BasemapLayerListVisibleElementsProperties;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/** @deprecated since version 5.0. Use the [Basemap Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-basemap-layer-list-next/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
71
72
|
export interface BasemapLayerListEvents extends BasemapLayerListViewModelEvents {}
|
|
72
73
|
|
|
73
74
|
/**
|
|
@@ -244,13 +244,17 @@ export interface AttachmentsChangeEvent {
|
|
|
244
244
|
/**
|
|
245
245
|
* Selected attachment reference information.
|
|
246
246
|
*
|
|
247
|
+
* @deprecated since 5.2. Only for internal use
|
|
247
248
|
* @since 5.1
|
|
248
249
|
*/
|
|
249
250
|
export interface SelectedAttachmentIdentifier {}
|
|
250
251
|
|
|
251
252
|
export type ValueChangeActor = "user" | "expression";
|
|
252
253
|
|
|
253
|
-
/**
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated since 5.1. Use `"values-change"` instead, as it provides more comprehensive information about changes to field values.
|
|
256
|
+
* @since 5.0
|
|
257
|
+
*/
|
|
254
258
|
export interface ValueChangeEvent {
|
|
255
259
|
/**
|
|
256
260
|
* The features affected by the value change.
|
|
@@ -34,6 +34,7 @@ export interface BatchAttributeFormProperties extends WidgetProperties, Partial<
|
|
|
34
34
|
visibleElements?: VisibleElementsProperties;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/** @deprecated since version 5.0. Use the [Editor](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/) component to edit attributes of multiple features instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
37
38
|
export interface BatchAttributeFormEvents extends BatchAttributeFormViewModelEvents {}
|
|
38
39
|
|
|
39
40
|
/**
|
|
@@ -31,6 +31,7 @@ export interface BookmarksViewModelProperties extends GoToProperties, Partial<Pi
|
|
|
31
31
|
|
|
32
32
|
export type BookmarksViewModelState = "ready" | "loading";
|
|
33
33
|
|
|
34
|
+
/** @deprecated since version 5.0. Use the [Bookmarks component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/) directly instead. */
|
|
34
35
|
export interface BookmarksViewModelEvents {
|
|
35
36
|
/**
|
|
36
37
|
* Fires when a [Bookmark](https://developers.arcgis.com/javascript/latest/references/core/webmap/Bookmark/) is edited.
|
package/widgets/Bookmarks.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export interface BookmarksProperties extends WidgetProperties, IdentifiableMixin
|
|
|
132
132
|
visibleElements?: BookmarksVisibleElementsProperties;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/** @deprecated since version 4.34. Use the [Bookmarks component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
135
136
|
export interface BookmarksEvents extends BookmarksViewModelEvents {}
|
|
136
137
|
|
|
137
138
|
/**
|
|
@@ -9,6 +9,7 @@ import type { Action, ListItemModifier } from "../LayerList/types.js";
|
|
|
9
9
|
|
|
10
10
|
export interface CatalogLayerListViewModelProperties extends Partial<Pick<CatalogLayerListViewModel, "catalogLayer" | "checkPublishStatusEnabled" | "listItemCreatedFunction" | "listModeDisabled" | "view">> {}
|
|
11
11
|
|
|
12
|
+
/** @deprecated since version 5.2. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. */
|
|
12
13
|
export interface CatalogLayerListViewModelEvents extends LayerListViewModelEvents {}
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -66,6 +66,7 @@ export interface CatalogLayerListProperties extends WidgetProperties, Identifiab
|
|
|
66
66
|
visibleElements?: CatalogLayerListVisibleElementsProperties;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
/** @deprecated since version 5.0. Use the [Catalog Layer List (Next)](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
69
70
|
export interface CatalogLayerListEvents extends CatalogLayerListViewModelEvents {}
|
|
70
71
|
|
|
71
72
|
/**
|
|
@@ -49,6 +49,7 @@ export interface DistanceMeasurement2DViewModelProperties extends Partial<Pick<D
|
|
|
49
49
|
/**
|
|
50
50
|
* Provides the logic for the [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/DistanceMeasurement2D/) widget and [component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/).
|
|
51
51
|
*
|
|
52
|
+
* @deprecated since version 5.2. Use the [Distance Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/) directly or [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DistanceMeasurementAnalysis/) instead.
|
|
52
53
|
* @since 4.10
|
|
53
54
|
* @see [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/references/core/widgets/DistanceMeasurement2D/) widget
|
|
54
55
|
* @see [Distance Measurement 2D component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{deprecateUnnecessaryViewModel as i}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{destroyMaybe as s}from"../../core/maybe.js";import{watch as r,initial as a,syncAndInitial as o,whenOnce as p}from"../../core/reactiveUtils.js";import{measurementLengthUnits as l}from"../../core/units.js";import{property as u,subclass as m}from"../../core/accessorSupport/decorators.js";import{defaultUnitPropertyMetadata as g}from"../../properties/defaultUnit.js";import{SnappingManager as c}from"../../views/interactive/snapping/SnappingManager.js";import d from"../../views/interactive/snapping/SnappingOptions.js";import{isSupported as h,loadGeometryOperators as v,DistanceMeasurement2DTool as f}from"./DistanceMeasurement2DTool.js";import{InteractiveToolViewModelMixin as w}from"../support/InteractiveToolViewModelMixin.js";let M=class extends(w(t)){constructor(e){super(e),this.supportedViewType="2d",this.unsupportedErrorMessage="DistanceMeasurement2DViewModel is only supported in 2D views.",this._snappingManager=null,this.snappingOptions=new d,e?.suppressDeprecationWarning||i(n.getLogger(this),"Distance Measurement 2D","arcgis-distance-measurement-2d",{version:"5.2"})}normalizeCtorArgs(e){const{suppressDeprecationWarning:t,...i}=e??{};return i}initialize(){this.addHandles([r(()=>this.view?.spatialReference,()=>this.clear()),r(()=>this.unit,e=>{this.tool&&(this.tool.unit=e)},a),r(()=>this.view,e=>{this._snappingManager=s(this._snappingManager),e&&(this._snappingManager=new c({view:e,options:this.snappingOptions}))},o),r(()=>this.snappingOptions,e=>{this._snappingManager&&e&&(this._snappingManager.options=e)})])}destroy(){this._snappingManager=s(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":null!=this.tool&&this.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 l}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 p(()=>e.ready),await v(e.spatialReference)),this.createTool({interactive:!0})}clear(){this.removeTool()}constructTool(){return new f({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=>l.includes(e));return 0===t.length?l.slice():t}};e([u()],M.prototype,"_snappingManager",void 0),e([u(g)],M.prototype,"defaultUnit",void 0),e([u({readOnly:!0})],M.prototype,"measurement",null),e([u({readOnly:!0})],M.prototype,"measurementLabel",null),e([u({type:d,nonNullable:!0})],M.prototype,"snappingOptions",void 0),e([u({readOnly:!0})],M.prototype,"state",null),e([u({type:String})],M.prototype,"unit",null),e([u({type:[String]})],M.prototype,"unitOptions",null),M=e([m("esri.widgets.DistanceMeasurement2D.DistanceMeasurement2DViewModel")],M);const y=M;export{y as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import s from"../core/Logger.js";import{ignoreAbortErrors as i}from"../core/promiseUtils.js";import{property as o,subclass as n}from"../core/accessorSupport/decorators.js";import r from"../views/interactive/snapping/SnappingOptions.js";import p from"./Widget.js";import a from"./DistanceMeasurement2D/DistanceMeasurement2DViewModel.js";import{globalCss as l}from"./support/globalCss.js";import{MeasurementWidgetContent as u}from"./support/MeasurementWidgetContent.js";import{messageBundle as m,tsx as d}from"./support/widget.js";const c="esri-distance-measurement-2d",
|
|
2
|
+
import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import s from"../core/Logger.js";import{ignoreAbortErrors as i}from"../core/promiseUtils.js";import{property as o,subclass as n}from"../core/accessorSupport/decorators.js";import r from"../views/interactive/snapping/SnappingOptions.js";import p from"./Widget.js";import a from"./DistanceMeasurement2D/DistanceMeasurement2DViewModel.js";import{globalCss as l}from"./support/globalCss.js";import{MeasurementWidgetContent as u}from"./support/MeasurementWidgetContent.js";import{messageBundle as m,tsx as d}from"./support/widget.js";const c="esri-distance-measurement-2d",g={base:c,newMeasurementButton:`${c}__clear-button`};let v=class extends p{constructor(e,i){super(e,i),this.messages=null,this.messagesCommon=null,this.viewModel=new a({suppressDeprecationWarning:!0}),t(s.getLogger(this),"Distance Measurement 2D","arcgis-distance-measurement-2d",{version:"5.0"})}get active(){return this.viewModel.active}get icon(){return"measure-line"}set icon(e){this._overrideIfSome("icon",e)}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get snappingOptions(){return this.viewModel.snappingOptions}set snappingOptions(e){this.viewModel.snappingOptions=e}get unit(){return this.viewModel.unit}set unit(e){this.viewModel.unit=e}get unitOptions(){return this.viewModel.unitOptions}set unitOptions(e){this.viewModel.unitOptions=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}render(){const{messages:e,messagesCommon:t,unit:s,unitOptions:o,viewModel:n}=this,{active:r,measurementLabel:p,state:a,supported:m}=n;return d("div",{"aria-label":this.messages.widgetLabel,class:this.classes(g.base,l.widget,l.panel),key:this,role:"presentation"},this.visible?d(u,{active:r,measurementItems:[{key:"distance",title:e.distance,value:p}],messages:{...e,notApplicable:t.notApplicable},newMeasurementButtonClass:g.newMeasurementButton,state:a,supported:m,unit:s,unitOptions:o,onNewMeasurementClick:()=>{i(this.viewModel.start())},onUnitChange:e=>{this.unit=e}}):null)}};e([o({readOnly:!0})],v.prototype,"active",null),e([o()],v.prototype,"icon",null),e([o()],v.prototype,"label",null),e([o(),m("esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D")],v.prototype,"messages",void 0),e([o(),m("esri/t9n/common")],v.prototype,"messagesCommon",void 0),e([o({type:r})],v.prototype,"snappingOptions",null),e([o()],v.prototype,"uiStrings",void 0),e([o()],v.prototype,"unit",null),e([o()],v.prototype,"unitOptions",null),e([o()],v.prototype,"view",null),e([o({type:a})],v.prototype,"viewModel",void 0),e([o({type:Boolean})],v.prototype,"visible",null),v=e([n("esri.widgets.DistanceMeasurement2D")],v);const w=v;export{w as default};
|
package/widgets/Editor.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export interface EditorProperties extends WidgetProperties, Partial<Pick<Editor,
|
|
|
100
100
|
visibleElements?: VisibleElementsProperties;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
/** @deprecated since version 5.0. Use the [Editor](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
103
104
|
export interface EditorEvents extends EditorViewModelEvents {}
|
|
104
105
|
|
|
105
106
|
/**
|
package/widgets/FeatureForm.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export interface FeatureFormProperties extends WidgetProperties, Partial<Pick<Fe
|
|
|
75
75
|
visibleElements?: VisibleElementsProperties;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/** @deprecated since version 5.0. Use the [Feature Form](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-form/) component instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
|
|
78
79
|
export interface FeatureFormEvents extends FeatureFormViewModelEvents {}
|
|
79
80
|
|
|
80
81
|
/**
|
|
@@ -402,6 +402,12 @@ export default class FeatureTableViewModel extends GridViewModel {
|
|
|
402
402
|
* @since 5.0
|
|
403
403
|
*/
|
|
404
404
|
accessor autoSaveEnabled: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* Indicates the number of pages currently cached in the store.
|
|
407
|
+
*
|
|
408
|
+
* @internal
|
|
409
|
+
*/
|
|
410
|
+
get cachedPageCount(): number;
|
|
405
411
|
/**
|
|
406
412
|
* Indicates whether the table supports adding a related record based on the current relationship
|
|
407
413
|
* configuration. This accounts for whether table is currently configured to show related features.
|
|
@@ -1166,6 +1172,14 @@ export default class FeatureTableViewModel extends GridViewModel {
|
|
|
1166
1172
|
* @since 4.31
|
|
1167
1173
|
*/
|
|
1168
1174
|
exportSelectionToCSV(includeGeometry?: boolean): Promise<void>;
|
|
1175
|
+
/**
|
|
1176
|
+
* Returns cached features for a specific page index.
|
|
1177
|
+
*
|
|
1178
|
+
* @param pageIndex - The index of the page for which to retrieve cached features.
|
|
1179
|
+
* @returns An array of FeatureStoreItem objects representing the cached features for the specified page, or undefined if no cached features are found for that page.
|
|
1180
|
+
* @internal
|
|
1181
|
+
*/
|
|
1182
|
+
getCachedFeaturesByPageIndex(pageIndex: number): FeatureStoreItem[] | undefined;
|
|
1169
1183
|
/**
|
|
1170
1184
|
* Returns information about the feature with the provided object ID.
|
|
1171
1185
|
*
|