@arcgis/core 5.2.0-next.6 → 5.2.0-next.7
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/WebLinkChart.d.ts +1 -1
- package/WebMap.d.ts +2 -2
- package/WebScene.d.ts +3 -3
- package/arcade.d.ts +9 -9
- package/arcgisGlobal.d.ts +4 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/03354ad3d74d858173b4.js +1 -0
- package/assets/esri/core/workers/chunks/{07a242ea908aa8e2ba28.js → 09a4139fc6d069ab6928.js} +1 -1
- package/assets/esri/core/workers/chunks/09d0e430c66788a2626f.js +640 -0
- package/assets/esri/core/workers/chunks/0a510acf50915e00c62b.js +1 -0
- package/assets/esri/core/workers/chunks/{829a0583b8a228c65379.js → 0b169bb1969f86232a1a.js} +1 -1
- package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1ac98f48bb6d43d97c8.js → 0f3654c8157ec8f22869.js} +3 -3
- package/assets/esri/core/workers/chunks/19dcae83be0fc0aced02.js +1 -0
- package/assets/esri/core/workers/chunks/1eabe746481e0b228498.js +1 -0
- package/assets/esri/core/workers/chunks/{c27cb2a83a1d2e004501.js → 238478cfe493fd4a6100.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 2413b383b7f2bdcd4ced.js} +1 -1
- package/assets/esri/core/workers/chunks/277718031c903da2b3b9.js +1 -0
- package/assets/esri/core/workers/chunks/{7ed5b669010db58845f8.js → 294f2803aac000c99693.js} +1 -1
- package/assets/esri/core/workers/chunks/{093f27e4e4781870b431.js → 297ae764445e6f73a5ea.js} +1 -1
- package/assets/esri/core/workers/chunks/2b36a54927f5a7281da3.js +1 -0
- package/assets/esri/core/workers/chunks/{be0eab592db0e651b023.js → 2b814bb51704a5b4fdc2.js} +6 -6
- package/assets/esri/core/workers/chunks/3172d7fc23787a287191.js +1 -0
- package/assets/esri/core/workers/chunks/{eedee0af459e6b8a6116.js → 33e0130e6a40fc768978.js} +1 -1
- package/assets/esri/core/workers/chunks/343ba5ea459e96ba79c6.js +1 -0
- package/assets/esri/core/workers/chunks/{a2159df718a7f2f59271.js → 38a2f34661563c7c29c1.js} +1 -1
- package/assets/esri/core/workers/chunks/3a5c1c501808352857bd.js +1 -0
- package/assets/esri/core/workers/chunks/{a96c7432ca97cbeef4b8.js → 3db898a38a7c5f0efb48.js} +1 -1
- package/assets/esri/core/workers/chunks/3fbb6ff940156a981983.js +1 -0
- package/assets/esri/core/workers/chunks/{24eaf1349ffe10e616e6.js → 40c4e14e7bb505ef10a3.js} +1 -1
- package/assets/esri/core/workers/chunks/4104fa1ede36bcee9be5.js +1 -0
- package/assets/esri/core/workers/chunks/{b002304a45856b024b46.js → 4714241189c13d0db897.js} +1 -1
- package/assets/esri/core/workers/chunks/485d20152495c27b8074.js +1 -0
- package/assets/esri/core/workers/chunks/{16b90d8f628a412ba4ba.js → 4894997bfa438f66da36.js} +1 -1
- package/assets/esri/core/workers/chunks/{0e774f14ba274832f390.js → 520e0e5307eef27becc6.js} +1 -1
- package/assets/esri/core/workers/chunks/53d165b4f30fd64e5d8a.js +1 -0
- package/assets/esri/core/workers/chunks/{c83fea0d0ebd0d8e43fd.js → 542f5469f7b42026b24f.js} +1 -1
- package/assets/esri/core/workers/chunks/5553279998ae07b60f5f.js +1 -0
- package/assets/esri/core/workers/chunks/{cda99b543a0e1979346c.js → 5cb1b950249d651f3837.js} +1 -1
- package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → 5e3e0d7b85dfd52d1c7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5a2c28dc26c065ea355.js → 62dfbdc847be4800e833.js} +22 -20
- package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js → 62e77e3c5ca9b4887923.js} +2 -2
- package/assets/esri/core/workers/chunks/{cc479daacd2cf715baa8.js → 62fc3c367f736c73b0d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1f1271434af302938e8.js → 643c33a98f2d30a92001.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c1515e020e32e177b54.js → 6a5356ebed70e0f8f979.js} +1 -1
- package/assets/esri/core/workers/chunks/{3402fb9c596b582311c7.js → 75839240022b280929f7.js} +1 -1
- package/assets/esri/core/workers/chunks/77a4f6f224d7ca4b69f4.js +1 -0
- package/assets/esri/core/workers/chunks/{6637f19b82555738a1d5.js → 78aa5bc6af2758da20d0.js} +1 -1
- package/assets/esri/core/workers/chunks/7df94cb985db41815fad.js +2 -0
- package/assets/esri/core/workers/chunks/{153dc2a0b08a0e44a881.js → 8419934bec7723b0feef.js} +1 -1
- package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js → 875cce0be4f6c89f80f3.js} +2 -2
- package/assets/esri/core/workers/chunks/{c319c3b85cdec73a9f45.js → 877c848beaf9a939862c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 90953a827bc89d0e6bd5.js} +1 -1
- package/assets/esri/core/workers/chunks/{14c6419568d8a7a15cd6.js → 92ab5886aa2d8b9b179f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4e676e888a935c507d90.js → 93d4bda22bde33fafa57.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb23db01f3cf629d32e.js → 992a90ecbab931198fd0.js} +1 -1
- package/assets/esri/core/workers/chunks/{1765042635084f75d2b3.js → 9b676606bf839b7aa433.js} +1 -1
- package/assets/esri/core/workers/chunks/a261f4c22224511fdfff.js +1 -0
- package/assets/esri/core/workers/chunks/{ea8f642b1db933d2c26f.js → a2ac139d0975085279a6.js} +1 -1
- package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +1 -0
- package/assets/esri/core/workers/chunks/a8ec5b85c2fa6fb4f391.js +1 -0
- package/assets/esri/core/workers/chunks/{6af77529c977d034d287.js → b23009d9f8eb7c20ce45.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f55d60d3adc31283296.js → b79428c5093614174e76.js} +1 -1
- package/assets/esri/core/workers/chunks/b9bdb1f05e904c3655e4.js +1 -0
- package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +1 -0
- package/assets/esri/core/workers/chunks/c983e5ce0ff952b65d7f.js +1 -0
- package/assets/esri/core/workers/chunks/{f79bd469b25099a31274.js → ca6907e14b1dde4d5c07.js} +1 -1
- package/assets/esri/core/workers/chunks/cbbd94c53e75efc99876.js +1 -0
- package/assets/esri/core/workers/chunks/{8f94c90fdb0333da2d0f.js → cfd28eba44cf5a296c6d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e9dcc3e9dbafe9bbed84.js → d21480b078ec9680d4c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{ace1899a8e5162b4018d.js → d6bb8db22ba85ad05fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js → d9d4754062758789f186.js} +2 -2
- package/assets/esri/core/workers/chunks/{d35c475f004367e333eb.js → e094364e54981c91e1b4.js} +1 -1
- package/assets/esri/core/workers/chunks/e33d2ede6c9f1527d51b.js +1 -0
- package/assets/esri/core/workers/chunks/{3e3134e4bc34d4e07179.js → e545df5ea7c0ced92cee.js} +1 -1
- package/assets/esri/core/workers/chunks/{49f6c9e9980b8c624fd7.js → f02fe24177e56a7e42b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js → f5731ad4cfbbf1cc569a.js} +2 -2
- package/assets/esri/themes/base/widgets/_DatePicker.scss +1 -1
- package/chunks/RealisticTree.glsl.js +17 -15
- package/config.d.ts +2 -2
- package/config.js +1 -1
- package/core/Collection.d.ts +25 -25
- package/core/Error.d.ts +1 -1
- package/core/JSONSupport.d.ts +1 -1
- package/core/promiseUtils.d.ts +3 -3
- package/core/reactiveUtils.d.ts +4 -4
- package/core/sql/WhereClause.d.ts +1 -1
- package/core/timeUtils.d.ts +1 -1
- package/core/workers/Connection.d.ts +9 -9
- package/core/workers.d.ts +1 -1
- package/editing/types.d.ts +3 -3
- package/geometry/Mesh.d.ts +9 -2
- package/geometry/Mesh.js +1 -1
- package/geometry/support/MeshMaterial.d.ts +5 -5
- package/geometry/support/MeshTexture.d.ts +19 -19
- package/geometry/support/jsonUtils.d.ts +1 -1
- package/geometry/support/meshUtils.d.ts +130 -2
- package/geometry/support/meshUtils.js +1 -1
- package/identity/Credential.d.ts +1 -1
- package/identity/IdentityManager.d.ts +1 -1
- package/identity/OAuthInfo.d.ts +1 -1
- package/identity/ServerInfo.d.ts +2 -2
- package/interfaces.d.ts +13 -0
- package/intl/number.d.ts +3 -3
- package/intl/substitute.d.ts +2 -2
- package/intl.d.ts +28 -28
- package/kernel.js +1 -1
- package/layers/AnnotationLayer.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +5 -5
- package/layers/BaseTileLayer.d.ts +4 -4
- package/layers/BuildingSceneLayer.d.ts +1 -1
- package/layers/CSVLayer.d.ts +7 -1
- package/layers/CatalogLayer.d.ts +6 -0
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +44 -7
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +7 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +5 -5
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +29 -2
- package/layers/ParquetLayer.d.ts +7 -1
- package/layers/SceneLayer.d.ts +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.d.ts +1 -1
- package/layers/SubtypeGroupLayer.d.ts +7 -1
- package/layers/TileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +1 -1
- package/layers/VoxelLayer.d.ts +4 -4
- package/layers/WCSLayer.d.ts +2 -2
- package/layers/WFSLayer.d.ts +6 -0
- package/layers/WebTileLayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +20 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
- package/layers/mixins/ArcGISImageService.d.ts +7 -1
- package/layers/mixins/BlendLayer.d.ts +1 -1
- package/layers/mixins/DataSeriesLayer.d.ts +161 -0
- package/layers/mixins/DataSeriesLayer.js +2 -0
- package/layers/mixins/FeatureLayerBase.d.ts +3 -3
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/DateTimeFieldFormat.d.ts +10 -10
- package/layers/support/FeatureEffect.d.ts +22 -22
- package/layers/support/FeatureReductionBinning.d.ts +12 -0
- package/layers/support/FeatureReductionCluster.d.ts +12 -0
- package/layers/support/Field.d.ts +2 -2
- package/layers/support/ImageElement.d.ts +1 -1
- package/layers/support/MosaicRule.d.ts +0 -2
- package/layers/support/NumberFieldFormat.d.ts +5 -5
- package/layers/support/StreamConnection.d.ts +1 -1
- package/layers/support/Sublayer.d.ts +2 -2
- package/layers/support/SubtypeSublayer.d.ts +14 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +30 -0
- package/layers/support/TimeSeriesFieldTimeMapping.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +149 -0
- package/layers/support/TimeSeriesInfo.js +2 -0
- package/layers/support/VideoElement.d.ts +1 -1
- package/layers/support/dataSeriesUtils.d.ts +18 -0
- package/layers/support/dataSeriesUtils.js +2 -0
- package/layers/support/kmlUtils.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +27 -0
- package/layers/support/timeSeriesUtils.js +2 -0
- package/layers/types.d.ts +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/networks/CircuitManager.d.ts +1 -1
- package/networks/Network.d.ts +1 -1
- package/networks/UnitIdentifierManager.d.ts +1 -1
- package/networks/support/NamedTraceConfiguration.d.ts +1 -1
- package/networks/support/TraceConfiguration.d.ts +2 -2
- package/networks/support/UNTraceConfiguration.d.ts +3 -3
- package/networks/support/jsonTypes.d.ts +7 -1
- package/networks/support/utils.js +1 -1
- package/package.json +3 -3
- package/popup/content/CustomContent.d.ts +1 -1
- package/portal/Portal.d.ts +2 -2
- package/portal/jsonTypes.d.ts +2 -2
- package/renderers/support/AuthoringInfo.d.ts +14 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +14 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/renderers/support/jsonUtils.d.ts +1 -1
- package/renderers/support/utils.d.ts +1 -1
- package/renderers/visualVariables/RotationVariable.d.ts +16 -1
- package/renderers/visualVariables/RotationVariable.js +1 -1
- package/request/types.d.ts +23 -23
- package/rest/geometryService.d.ts +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
- package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
- package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
- package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +2 -2
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/knowledgeGraphService.d.ts +13 -13
- package/rest/layerSources/DynamicDataLayer.d.ts +1 -1
- package/rest/print.d.ts +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +16 -2
- package/rest/support/ClosestFacilityParameters.d.ts +6 -6
- package/rest/support/LastMileDeliveryParameters.d.ts +4 -4
- package/rest/support/LocationToAddressParameters.d.ts +1 -1
- package/rest/support/PrintTemplate.d.ts +5 -5
- package/rest/support/Query.d.ts +18 -4
- package/rest/support/RouteParameters.d.ts +5 -5
- package/rest/support/ServiceAreaParameters.d.ts +6 -6
- package/rest/support/TopFeaturesQuery.d.ts +16 -2
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/renderers/color.d.ts +40 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +8 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +38 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +2 -0
- package/smartMapping/renderers/type.d.ts +20 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +19 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/support/timeUtils.d.ts +3 -3
- package/symbols/Font.d.ts +7 -7
- package/symbols/WebStyleSymbol.d.ts +11 -11
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/support/Symbol3DEmissive.d.ts +8 -2
- package/symbols/support/jsonUtils.d.ts +1 -1
- package/time/TimeExtent.d.ts +2 -2
- package/versionManagement/VersionManagementService.d.ts +8 -8
- package/versionManagement/VersionManager.d.ts +13 -3
- package/versionManagement/VersioningState.d.ts +4 -4
- package/views/2d/MapViewConstraints.d.ts +29 -25
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +4 -20
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +6 -22
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.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/VolumeMeasurementError.d.ts +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/webgl/RenderNode.d.ts +7 -7
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/BreakpointsOwner.d.ts +1 -1
- package/views/DOMContainer.d.ts +6 -6
- package/views/Magnifier.d.ts +1 -1
- package/views/MapView.d.ts +1 -1
- package/views/SceneView.d.ts +2 -2
- package/views/View2D.d.ts +62 -54
- package/views/Viewport2DMixin.d.ts +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
- package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
- package/views/input/types.d.ts +15 -15
- package/views/layers/FeatureLikeLayerView.d.ts +7 -4
- package/views/layers/GraphicsLayerView.d.ts +6 -3
- package/views/layers/ImageryLayerView.d.ts +4 -0
- package/views/navigation/Navigation.d.ts +1 -1
- package/views/support/WebAssemblyRequirements.js +1 -1
- package/views/types.d.ts +1 -1
- package/webscene/Glow.d.ts +0 -4
- package/widgets/BasemapGallery.d.ts +1 -1
- package/widgets/BasemapLayerList.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm.d.ts +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Bookmarks.d.ts +1 -1
- package/widgets/BuildingExplorer.d.ts +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.d.ts +2 -2
- package/widgets/Daylight.d.ts +1 -1
- package/widgets/Directions.d.ts +1 -1
- package/widgets/Editor.d.ts +1 -1
- package/widgets/Feature.d.ts +1 -1
- package/widgets/FeatureForm.d.ts +1 -1
- package/widgets/FeatureTable/FieldColumn.d.ts +1 -14
- package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
- package/widgets/FeatureTemplates.d.ts +1 -1
- package/widgets/FloorFilter.d.ts +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -3
- package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
- package/widgets/Fullscreen.d.ts +3 -3
- package/widgets/LayerList/ListItemPanel.d.ts +5 -5
- package/widgets/Legend.d.ts +1 -1
- package/widgets/Locate/LocateViewModel.d.ts +2 -2
- package/widgets/Locate.d.ts +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Popup.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -2
- package/widgets/Print/TemplateOptions.d.ts +4 -4
- package/widgets/Print.d.ts +6 -6
- package/widgets/Search/SearchViewModel.d.ts +5 -5
- package/widgets/Search.d.ts +4 -4
- package/widgets/ShadowCast.d.ts +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +1 -1
- package/widgets/Slice.d.ts +1 -1
- package/widgets/TableList/ListItemPanel.d.ts +5 -5
- package/widgets/Track/TrackViewModel.d.ts +3 -3
- package/widgets/Track.d.ts +3 -3
- package/widgets/UtilityNetworkTrace.d.ts +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.d.ts +2 -2
- package/widgets/Weather.d.ts +1 -1
- package/widgets/Widget.d.ts +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/widgets/support/types.d.ts +1 -1
- package/widgets/support/widget.d.ts +6 -6
- package/assets/esri/core/workers/chunks/1ddbf5f507ac153234be.js +0 -1
- package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
- package/assets/esri/core/workers/chunks/2bd334f9ab89334df713.js +0 -1
- package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +0 -2
- package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +0 -1
- package/assets/esri/core/workers/chunks/3b3986276e70297d573b.js +0 -1
- package/assets/esri/core/workers/chunks/46fbd519cc1a37923bfc.js +0 -1
- package/assets/esri/core/workers/chunks/4ef53455c8bc6efee80e.js +0 -1
- package/assets/esri/core/workers/chunks/51ee6102f5f4840a5b47.js +0 -1
- package/assets/esri/core/workers/chunks/58994b6bfcda5f2ada80.js +0 -1
- package/assets/esri/core/workers/chunks/6db274f6767102a39021.js +0 -1
- package/assets/esri/core/workers/chunks/77769663cd712822d33e.js +0 -1
- package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +0 -1
- package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +0 -640
- package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +0 -1
- package/assets/esri/core/workers/chunks/ca1b0cb14ea9ae1bf2a3.js +0 -1
- package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +0 -1
- package/assets/esri/core/workers/chunks/d3af51a6d9014ff46170.js +0 -1
- package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +0 -1
- package/assets/esri/core/workers/chunks/e38836bfcc7a15a2fd1f.js +0 -1
- package/assets/esri/core/workers/chunks/e645f992ec6f935ee3a5.js +0 -1
- package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +0 -1
- package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +0 -1
- /package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js.LICENSE.txt → 62e77e3c5ca9b4887923.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{319ff04282dc8ae38b56.js.LICENSE.txt → 7df94cb985db41815fad.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js.LICENSE.txt → 875cce0be4f6c89f80f3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js.LICENSE.txt → d9d4754062758789f186.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js.LICENSE.txt → f5731ad4cfbbf1cc569a.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{getAssetUrl as e}from"../../assets.js";import o from"../../Graphic.js";import{onLocaleChange as i,getLocale as s,fetchMessageBundle as r}from"../../intl.js";import n from"../../core/Collection.js";import a from"../../core/Error.js";import{EventedAccessor as h}from"../../core/Evented.js";import c from"../../core/Logger.js";import{watch as d,initial as l,when as m,whenOnce as v}from"../../core/reactiveUtils.js";import{property as p,subclass as u}from"../../core/accessorSupport/decorators.js";import{ensureType as f}from"../../core/accessorSupport/ensureType.js";import g from"../../geometry/Point.js";import{load as w}from"../../geometry/projectionUtils.js";import _ from"../../symbols/IconSymbol3DLayer.js";import y from"../../symbols/PictureMarkerSymbol.js";import C from"../../symbols/PointSymbol3D.js";import{pointSymbolTypes as b}from"../../symbols/support/typeUtils.js";import L from"./support/Conversion.js";import{isValidPoint as M,isSupportedNotation as P}from"./support/coordinateConversionUtils.js";import S from"./support/Format.js";import{generateDefaultFormats as F,setDefaultPatterns as j}from"./support/formatUtils.js";import{GoTo as H}from"../support/GoTo.js";const U=new g([0,0,500]),x="xy",G=["mgrs","utm","usng","dd","dms","ddm"],W="esri__coordinateConversionWidgetState",E={conversions:"conversions",formats:"formats",view:"view",viewChange:"view-change",cursor:"cursor"},A="esri/images/search/search-symbol-32.png";let T=class extends(H(h)){constructor(t){super(t),this._conversionPromise=null,this._locationGraphic=null,this._pointerCount=0,this.calculateCoordinatePrecision=!0,this.formats=new n,this.formatterAvailable=!1,this.formatterLoading=!0,this.messages=null,this.filteredFormats=new n,this.removeLeadingZeros=!1,this.storageEnabled=!0,this.storageType="session",this.view=null,this._saveWidgetState=this._saveWidgetState.bind(this),this._handleFormatChange=this._handleFormatChange.bind(this),this._handleConversionChange=this._handleConversionChange.bind(this),this._handleViewChange=this._handleViewChange.bind(this),this._onClick=this._onClick.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this.conversions=new n}initialize(){const t=async()=>this.messages=await r("esri/widgets/CoordinateConversion/t9n/CoordinateConversion");this.formats.addMany(F()),t().then(()=>{this.destroyed||(j(this.messages,this.formats),this.storageEnabled&&this._loadWidgetState(),this.formats.forEach(t=>{t.viewModel=this,this.addHandles(d(()=>t.currentPattern,this._saveWidgetState),t.name??"unnamed-format")}),this.addHandles(this.conversions.on("change",this._handleConversionChange),E.conversions),this.addHandles(this.formats.on("change",this._handleFormatChange),E.formats),this.addHandles(d(()=>this.verticalUnit,this._saveWidgetState)),this.addHandles(i(()=>{t().then(()=>{j(this.messages,this.formats)})})),w().then(()=>{this.formatterAvailable=!0}).catch(t=>{c.getLogger(this).error(new a("coordinate-conversion:projection-load-failed","Failed to load the projection module.",{error:t})),this.formatterAvailable=!1,this._filterFormatsAndConversions()}).then(()=>this.addHandles(d(()=>this.view,this._handleViewChange,l),E.viewChange)).finally(()=>this.formatterLoading=!1),0===this.conversions.length&&this._addDefaultConversion())})}destroy(){this.removeHandles(),this._cleanUpView(this.view),this.view=null}get conversions(){return this._get("conversions")}set conversions(t){const e=new n;t.forEach(t=>{let o=null;if("string"==typeof t){const e=this.formats.find(e=>e.name===t);e&&(o=new L({format:e}))}else o=f(L,t);o&&e.add(o)}),this._set("conversions",e)}set currentLocation(t){this._set("currentLocation",t),this._updateConversions()}get currentLocation(){return this._get("currentLocation")||null}set mode(t){switch(t){case"capture":this.currentLocation=null,this._startCaptureMode(),this._set("mode",t);break;case"live":this._startLiveMode(),this._set("mode",t);break;case"idle":this.removeHandles(E.view),this.removeHandles(E.cursor),this._set("mode",t)}}get mode(){return this._get("mode")||"live"}get state(){const{messages:t,view:e}=this,o=e?.ready;return t?o?"ready":e?"loading":"disabled":"disabled"}get locationSymbol(){const t=this._userLocationSymbol;if(t)return t;const o=e(A);return"3d"===this.view?.type?new C({symbolLayers:new n([new _({occludedVisibility:{mode:"visible"},resource:{href:o},size:24})])}):new y({url:o,width:24,height:24})}set locationSymbol(t){this._userLocationSymbol=t}get storage(){return"session"===this.storageType?sessionStorage:localStorage}get waitingForConversions(){return null!=this._conversionPromise}setLocation(t){this._locationGraphic&&this.view?.graphics.remove(this._locationGraphic),t&&(this._locationGraphic=new o({geometry:t.clone(),symbol:this.locationSymbol}),this.view?.graphics.add(this._locationGraphic))}async convert(t,e){if(!M(e))throw new a("coordinate-conversion:invalid-point","Invalid point cannot be converted.",{point:e});return await this._waitForFormatter(),Promise.resolve().then(()=>t.convert(e))}async goToLocation(t){const{view:e}=this;if(!e)throw new a("coordinate-conversion:go-to-failed","no view");const o="3d"===e.type?e.clippingArea:null,i=e.map?.basemap?.baseLayers;if(o||(i?.length??0)>0){const e=o??i?.at(0)?.fullExtent;if(null!=e&&!e.contains(t))throw new a("coordinate-conversion:go-to-failed","Point outside basemap extent.",{point:t})}return this.callGoTo({target:t})}pause(){this.currentLocation=null,this.removeHandles(E.view),this.view&&(this.removeHandles(E.cursor),this._locationGraphic&&this.view.graphics.remove(this._locationGraphic))}async previewConversion(t,e=this.currentLocation||U){return(await D(t,e)).displayCoordinate}resume(){const{mode:t}=this;"capture"===t?this._startCaptureMode():this._startLiveMode()}async reverseConvert(t,e){return await this._waitForFormatter(),e.reverseConvert(t)}async updateConversions(t,e){if(await this._waitForFormatter(),"point"!==e?.type)throw this._clearConversions(this.conversions),new a("coordinate-conversion:invalid-input-point","Point is invalid, conversions cannot be updated.",{point:e});return this._convertMany(t,e)}_addDefaultConversion(){const t=this.formats.find(t=>t.name===x)||this.formats.at(0);t&&this.conversions.add(new L({format:t}))}_cleanUpView(t){t&&(this._locationGraphic&&t.graphics.remove(this._locationGraphic),this.removeHandles(E.view),this.removeHandles(E.cursor))}_clearConversions(t){t.forEach(t=>{t.position={location:null,coordinate:null}})}async _convertMany(t,e){return Promise.all(t.map(t=>D(t,e)))}_handleConversionChange(t){for(const e of t.added){const{format:t}=e;t&&(t.viewModel=this,this.currentLocation&&(this._set("waitingForConversions",!0),this.convert(t,this.currentLocation).then(t=>{e.position=t,this._set("waitingForConversions",!1)})))}this._saveWidgetState()}_handleFormatChange(t){t.added.forEach(t=>{this.addHandles(d(()=>t.currentPattern,this._saveWidgetState),t.name??"unnamed-format"),t.viewModel=this}),t.removed.forEach(t=>{t.viewModel=null;const e=this.conversions.filter(e=>e.format===t);this.conversions.removeMany(e),t.name&&this.removeHandles(t.name)}),0===this.conversions.length&&this._addDefaultConversion()}_loadWidgetState(){try{const t=JSON.parse(this.storage.getItem(W));t&&this._setWidgetState(t)}catch(t){c.getLogger(this).error(new a("coordinate-conversion:invalid-session-storage-json","Could not read from storage.",{error:t}))}}_startCaptureMode(){this.removeHandles(E.view),this.view&&(this.currentLocation&&this.setLocation(this.currentLocation),this.removeHandles(E.cursor),this.addHandles(this.view.acquireCursor("crosshair","high"),E.cursor),this.addHandles(this.view.on("click",this._onClick),E.view))}_startIdleMode(){this.removeHandles(E.view),this.removeHandles(E.cursor),this.view&&this.currentLocation&&this.setLocation(this.currentLocation)}_startLiveMode(){this._pointerCount=0,this.removeHandles(E.view),this.view&&(this.removeHandles(E.cursor),this._locationGraphic&&this.view.graphics.remove(this._locationGraphic),this.addHandles([this.view.on("pointer-down",this._onPointerDown),this.view.on("pointer-up",this._onPointerUp),this.view.on("pointer-move",this._onPointerMove)],E.view))}_handleViewChange(t,e){if(e&&e!==t&&this._cleanUpView(e),t){const{mode:t}=this;"capture"===t?this._startCaptureMode():"live"===t?this._startLiveMode():"idle"===t&&this._startIdleMode(),e&&this._filterFormatsAndConversions()}}_onClick(t){if(0===t.button){const e=this.view?.toMap(t,{exclude:[]}),o=e?.normalize();this.setLocation(o),this.currentLocation=o}}_onPointerDown(t){const{pointerType:e}=t;if(this._pointerCount++,("touch"===e||"pen"===e)&&1===this._pointerCount){const e=this.view?.toMap(t,{exclude:[]});this.currentLocation=e?.normalize()}}_onPointerMove(t){const{pointerType:e}=t;if("mouse"===e||1===this._pointerCount){const e=this.view?.toMap(t,{exclude:[]});this.currentLocation=e?.normalize()}}_onPointerUp(){this._pointerCount--}_setWidgetState(t){try{this.verticalUnit=t.verticalUnit,t.formats.forEach(e=>{const o=this.formats.find(t=>t.name===e.name);o&&t.locale===s()&&e.currentPattern&&(o.currentPattern=e.currentPattern),o&&e.index>=0&&this.conversions.add(new L({format:o}))})}catch(e){c.getLogger(this).warn(new a("coordinate-conversion:session-storage-read-error","Could not get state from stored JSON.",{error:e}))}}_saveWidgetState(){if(!this.storageEnabled)return;const t=this._getFormatsJson();try{this.storage.setItem(W,JSON.stringify({formats:t,locale:s(),verticalUnit:this.verticalUnit}))}catch(e){c.getLogger(this).error(new a("coordinate-conversion:local-storage-write-error","Could not write to localStorage.",{error:e}))}}async _updateConversions(){try{await this.updateConversions(this.conversions.toArray(),this.currentLocation)}catch{}}_getFormatsJson(){return this.formats.filter(t=>{const e=t.name;return"xy"===e||"basemap"===e||P(e)}).map(t=>({name:t.name,currentPattern:t.currentPattern,defaultPattern:t.defaultPattern,index:this.conversions.findIndex(e=>e.format===t)})).sort((t,e)=>t.index-e.index).toArray()}_filterFormatsAndConversions(){const{formatterAvailable:t,conversions:e,formats:o}=this;t||this.addHandles(m(()=>this.view?.spatialReference,t=>{const i=t.isWebMercator||t.isWGS84,s=o.filter(t=>{const{name:e}=t;return!!V(e)||"xy"===e&&!i}),r=this.filteredFormats.filter(t=>"xy"===t.name&&i&&!this.formats.includes(t)),n=e.filter(t=>s.includes(t.format));o.removeMany(s),e.removeMany(n),this.filteredFormats.addMany(s.filter(t=>!this.filteredFormats.includes(t))),o.addMany(r)},{once:!0,initial:!0}),E.view)}async _waitForFormatter(){this.formatterLoading&&await v(()=>!1===this.formatterLoading)}};async function D(t,e){try{t.position=await(t.format?.convert(e))}catch(o){t.position=null}return t}function V(t){return G.includes(t)}t([p({types:b})],T.prototype,"_userLocationSymbol",void 0),t([p()],T.prototype,"calculateCoordinatePrecision",void 0),t([p()],T.prototype,"conversions",null),t([p({type:g})],T.prototype,"currentLocation",null),t([p({type:n.ofType(S)})],T.prototype,"formats",void 0),t([p()],T.prototype,"formatterLoading",void 0),t([p()],T.prototype,"messages",void 0),t([p()],T.prototype,"mode",null),t([p()],T.prototype,"filteredFormats",void 0),t([p({readOnly:!0})],T.prototype,"state",null),t([p({types:b})],T.prototype,"locationSymbol",null),t([p()],T.prototype,"removeLeadingZeros",void 0),t([p({readOnly:!0})],T.prototype,"storage",null),t([p()],T.prototype,"storageEnabled",void 0),t([p()],T.prototype,"storageType",void 0),t([p()],T.prototype,"verticalUnit",void 0),t([p({readOnly:!0})],T.prototype,"waitingForConversions",null),t([p()],T.prototype,"view",void 0),T=t([u("esri.widgets.CoordinateConversion.CoordinateConversionViewModel")],T);const k=T;export{k as default};
|
|
2
|
+
import{__decorate as t}from"tslib";import{getAssetUrl as e}from"../../assets.js";import o from"../../Graphic.js";import{onLocaleChange as i,getLocale as s,fetchMessageBundle as r}from"../../intl.js";import n from"../../core/Collection.js";import a from"../../core/Error.js";import{EventedAccessor as h}from"../../core/Evented.js";import c from"../../core/Logger.js";import{watch as d,initial as l,when as m,whenOnce as v}from"../../core/reactiveUtils.js";import{property as p,subclass as u}from"../../core/accessorSupport/decorators.js";import{ensureType as f}from"../../core/accessorSupport/ensureType.js";import g from"../../geometry/Point.js";import{load as w}from"../../geometry/projectionUtils.js";import _ from"../../symbols/IconSymbol3DLayer.js";import y from"../../symbols/PictureMarkerSymbol.js";import C from"../../symbols/PointSymbol3D.js";import{pointSymbolTypes as b}from"../../symbols/support/typeUtils.js";import L from"./support/Conversion.js";import{isValidPoint as M,isSupportedNotation as P}from"./support/coordinateConversionUtils.js";import S from"./support/Format.js";import{generateDefaultFormats as F,setDefaultPatterns as j}from"./support/formatUtils.js";import{GoTo as H}from"../support/GoTo.js";const x=new g([0,0,500]),U="xy",G=["mgrs","utm","usng","dd","dms","ddm"],W="esri__coordinateConversionWidgetState",E={conversions:"conversions",formats:"formats",view:"view",viewChange:"view-change",cursor:"cursor"},A="esri/images/search/search-symbol-32.png";let T=class extends(H(h)){constructor(t){super(t),this._conversionPromise=null,this._locationGraphic=null,this._pointerCount=0,this.calculateCoordinatePrecision=!0,this.formats=new n,this.formatterAvailable=!1,this.formatterLoading=!0,this.messages=null,this.filteredFormats=new n,this.removeLeadingZeros=!1,this.storageEnabled=!0,this.storageType="session",this.view=null,this._saveWidgetState=this._saveWidgetState.bind(this),this._handleFormatChange=this._handleFormatChange.bind(this),this._handleConversionChange=this._handleConversionChange.bind(this),this._handleViewChange=this._handleViewChange.bind(this),this._onClick=this._onClick.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this.conversions=new n}initialize(){const t=async()=>this.messages=await r("esri/widgets/CoordinateConversion/t9n/CoordinateConversion");this.formats.addMany(F()),t().then(()=>{this.destroyed||(j(this.messages,this.formats),this.storageEnabled&&this._loadWidgetState(),this.formats.forEach(t=>{t.viewModel=this,this.addHandles(d(()=>t.currentPattern,this._saveWidgetState),t.name??"unnamed-format")}),this.addHandles(this.conversions.on("change",this._handleConversionChange),E.conversions),this.addHandles(this.formats.on("change",this._handleFormatChange),E.formats),this.addHandles(d(()=>this.verticalUnit,this._saveWidgetState)),this.addHandles(i(()=>{t().then(()=>{j(this.messages,this.formats)})})),w().then(()=>{this.formatterAvailable=!0}).catch(t=>{c.getLogger(this).error(new a("coordinate-conversion:projection-load-failed","Failed to load the projection module.",{error:t})),this.formatterAvailable=!1,this._filterFormatsAndConversions()}).then(()=>this.addHandles(d(()=>this.view,this._handleViewChange,l),E.viewChange)).finally(()=>this.formatterLoading=!1),0===this.conversions.length&&this._addDefaultConversion())})}destroy(){this.removeHandles(),this._cleanUpView(this.view),this.view=null}get conversions(){return this._get("conversions")}set conversions(t){const e=new n;t.forEach(t=>{let o=null;if("string"==typeof t){const e=this.formats.find(e=>e.name===t);e&&(o=new L({format:e}))}else o=f(L,t);o&&e.add(o)}),this._set("conversions",e)}set currentLocation(t){this._set("currentLocation",t),this._updateConversions()}get currentLocation(){return this._get("currentLocation")||null}set mode(t){switch(t){case"capture":this.currentLocation=null,this._startCaptureMode(),this._set("mode",t);break;case"live":this._startLiveMode(),this._set("mode",t);break;case"idle":this.removeHandles(E.view),this.removeHandles(E.cursor),this._set("mode",t)}}get mode(){return this._get("mode")||"live"}get state(){const{messages:t,view:e}=this,o=e?.ready;return t?o?"ready":e?"loading":"disabled":"disabled"}get locationSymbol(){const t=this._userLocationSymbol;if(t)return t;const o=e(A);return"3d"===this.view?.type?new C({symbolLayers:new n([new _({occludedVisibility:{mode:"visible"},resource:{href:o},size:24})])}):new y({url:o,width:24,height:24})}set locationSymbol(t){this._userLocationSymbol=t}get storage(){return"session"===this.storageType?sessionStorage:localStorage}get waitingForConversions(){return null!=this._conversionPromise}setLocation(t){this._locationGraphic&&this.view?.graphics.remove(this._locationGraphic),t&&(this._locationGraphic=new o({geometry:t.clone(),symbol:this.locationSymbol}),this.view?.graphics.add(this._locationGraphic))}async convert(t,e){if(!M(e))throw new a("coordinate-conversion:invalid-point","Invalid point cannot be converted.",{point:e});return await this._waitForFormatter(),Promise.resolve().then(()=>t.convert(e))}async goToLocation(t){const{view:e}=this;if(!e)throw new a("coordinate-conversion:go-to-failed","no view");const o="3d"===e.type?e.clippingArea:null,i=e.map?.basemap?.baseLayers;if(o||(i?.length??0)>0){const e=o??i?.at(0)?.fullExtent;if(null!=e&&!e.contains(t))throw new a("coordinate-conversion:go-to-failed","Point outside basemap extent.",{point:t})}return this.callGoTo({target:t})}pause(){this.currentLocation=null,this.removeHandles(E.view),this.view&&(this.removeHandles(E.cursor),this._locationGraphic&&this.view.graphics.remove(this._locationGraphic))}async previewConversion(t,e=this.currentLocation||x){return(await D(t,e)).displayCoordinate}resume(){const{mode:t}=this;"capture"===t?this._startCaptureMode():this._startLiveMode()}async reverseConvert(t,e){return await this._waitForFormatter(),e.reverseConvert(t)}async updateConversions(t,e){if(await this._waitForFormatter(),"point"!==e?.type)throw this._clearConversions(this.conversions),new a("coordinate-conversion:invalid-input-point","Point is invalid, conversions cannot be updated.",{point:e});return this._convertMany(t,e)}_addDefaultConversion(){const t=this.formats.find(t=>t.name===U)||this.formats.at(0);t&&this.conversions.add(new L({format:t}))}_cleanUpView(t){t&&(this._locationGraphic&&t.graphics.remove(this._locationGraphic),this.removeHandles(E.view),this.removeHandles(E.cursor))}_clearConversions(t){t.forEach(t=>{t.position={location:null,coordinate:null}})}async _convertMany(t,e){return Promise.all(t.map(t=>D(t,e)))}_handleConversionChange(t){for(const e of t.added){const{format:t}=e;t&&(t.viewModel=this,this.currentLocation&&(this._set("waitingForConversions",!0),this.convert(t,this.currentLocation).then(t=>{e.position=t,this._set("waitingForConversions",!1)})))}this._saveWidgetState()}_handleFormatChange(t){t.added.forEach(t=>{this.addHandles(d(()=>t.currentPattern,this._saveWidgetState),t.name??"unnamed-format"),t.viewModel=this}),t.removed.forEach(t=>{t.viewModel=null;const e=this.conversions.filter(e=>e.format===t);this.conversions.removeMany(e),t.name&&this.removeHandles(t.name)}),0===this.conversions.length&&this._addDefaultConversion()}_loadWidgetState(){try{const t=JSON.parse(this.storage.getItem(W));t&&this._setWidgetState(t)}catch(t){c.getLogger(this).error(new a("coordinate-conversion:invalid-session-storage-json","Could not read from storage.",{error:t}))}}_startCaptureMode(){this.removeHandles(E.view),this.view&&(this.currentLocation&&this.setLocation(this.currentLocation),this.removeHandles(E.cursor),this.addHandles(this.view.acquireCursor("crosshair","high"),E.cursor),this.addHandles(this.view.on("click",this._onClick),E.view))}_startIdleMode(){this.removeHandles(E.view),this.removeHandles(E.cursor),this.view&&this.currentLocation&&this.setLocation(this.currentLocation)}_startLiveMode(){this._pointerCount=0,this.removeHandles(E.view),this.view&&(this.removeHandles(E.cursor),this._locationGraphic&&this.view.graphics.remove(this._locationGraphic),this.addHandles([this.view.on("pointer-down",this._onPointerDown),this.view.on("pointer-up",this._onPointerUp),this.view.on("pointer-move",this._onPointerMove)],E.view))}_handleViewChange(t,e){if(e&&e!==t&&this._cleanUpView(e),t){const{mode:t}=this;"capture"===t?this._startCaptureMode():"live"===t?this._startLiveMode():"idle"===t&&this._startIdleMode(),e&&this._filterFormatsAndConversions()}}_onClick(t){if(0===t.button){const e=this.view?.toMap(t,{exclude:[],excludeLabels:!0}),o=e?.normalize();this.setLocation(o),this.currentLocation=o}}_onPointerDown(t){const{pointerType:e}=t;if(this._pointerCount++,("touch"===e||"pen"===e)&&1===this._pointerCount){const e=this.view?.toMap(t,{exclude:[],excludeLabels:!0});this.currentLocation=e?.normalize()}}_onPointerMove(t){const{pointerType:e}=t;if("mouse"===e||1===this._pointerCount){const e=this.view?.toMap(t,{exclude:[],excludeLabels:!0});this.currentLocation=e?.normalize()}}_onPointerUp(){this._pointerCount--}_setWidgetState(t){try{this.verticalUnit=t.verticalUnit,t.formats.forEach(e=>{const o=this.formats.find(t=>t.name===e.name);o&&t.locale===s()&&e.currentPattern&&(o.currentPattern=e.currentPattern),o&&e.index>=0&&this.conversions.add(new L({format:o}))})}catch(e){c.getLogger(this).warn(new a("coordinate-conversion:session-storage-read-error","Could not get state from stored JSON.",{error:e}))}}_saveWidgetState(){if(!this.storageEnabled)return;const t=this._getFormatsJson();try{this.storage.setItem(W,JSON.stringify({formats:t,locale:s(),verticalUnit:this.verticalUnit}))}catch(e){c.getLogger(this).error(new a("coordinate-conversion:local-storage-write-error","Could not write to localStorage.",{error:e}))}}async _updateConversions(){try{await this.updateConversions(this.conversions.toArray(),this.currentLocation)}catch{}}_getFormatsJson(){return this.formats.filter(t=>{const e=t.name;return"xy"===e||"basemap"===e||P(e)}).map(t=>({name:t.name,currentPattern:t.currentPattern,defaultPattern:t.defaultPattern,index:this.conversions.findIndex(e=>e.format===t)})).sort((t,e)=>t.index-e.index).toArray()}_filterFormatsAndConversions(){const{formatterAvailable:t,conversions:e,formats:o}=this;t||this.addHandles(m(()=>this.view?.spatialReference,t=>{const i=t.isWebMercator||t.isWGS84,s=o.filter(t=>{const{name:e}=t;return!!V(e)||"xy"===e&&!i}),r=this.filteredFormats.filter(t=>"xy"===t.name&&i&&!this.formats.includes(t)),n=e.filter(t=>s.includes(t.format));o.removeMany(s),e.removeMany(n),this.filteredFormats.addMany(s.filter(t=>!this.filteredFormats.includes(t))),o.addMany(r)},{once:!0,initial:!0}),E.view)}async _waitForFormatter(){this.formatterLoading&&await v(()=>!1===this.formatterLoading)}};async function D(t,e){try{t.position=await(t.format?.convert(e))}catch(o){t.position=null}return t}function V(t){return G.includes(t)}t([p({types:b})],T.prototype,"_userLocationSymbol",void 0),t([p()],T.prototype,"calculateCoordinatePrecision",void 0),t([p()],T.prototype,"conversions",null),t([p({type:g})],T.prototype,"currentLocation",null),t([p({type:n.ofType(S)})],T.prototype,"formats",void 0),t([p()],T.prototype,"formatterLoading",void 0),t([p()],T.prototype,"messages",void 0),t([p()],T.prototype,"mode",null),t([p()],T.prototype,"filteredFormats",void 0),t([p({readOnly:!0})],T.prototype,"state",null),t([p({types:b})],T.prototype,"locationSymbol",null),t([p()],T.prototype,"removeLeadingZeros",void 0),t([p({readOnly:!0})],T.prototype,"storage",null),t([p()],T.prototype,"storageEnabled",void 0),t([p()],T.prototype,"storageType",void 0),t([p()],T.prototype,"verticalUnit",void 0),t([p({readOnly:!0})],T.prototype,"waitingForConversions",null),t([p()],T.prototype,"view",void 0),T=t([u("esri.widgets.CoordinateConversion.CoordinateConversionViewModel")],T);const k=T;export{k as default};
|
|
@@ -305,8 +305,8 @@ export default class CoordinateConversion extends Widget {
|
|
|
305
305
|
*
|
|
306
306
|
* @default "session"
|
|
307
307
|
* @since 4.23
|
|
308
|
-
* @see [Window.sessionStorage](https://developer.mozilla.org/
|
|
309
|
-
* @see [Window.localStorage](https://developer.mozilla.org/
|
|
308
|
+
* @see [Window.sessionStorage](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage)
|
|
309
|
+
* @see [Window.localStorage](https://developer.mozilla.org/docs/Web/API/Window/localStorage)
|
|
310
310
|
*/
|
|
311
311
|
accessor storageType: CoordinateConversionViewModel["storageType"];
|
|
312
312
|
/** A reference to the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) or [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/). Set this to link the widget to a specific view. */
|
package/widgets/Daylight.d.ts
CHANGED
|
@@ -185,7 +185,7 @@ export default class Daylight extends Widget<DaylightProperties> {
|
|
|
185
185
|
*
|
|
186
186
|
* @default 3
|
|
187
187
|
* @since 4.20
|
|
188
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
188
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
189
189
|
* @example daylight.headingLevel = 2;
|
|
190
190
|
*/
|
|
191
191
|
accessor headingLevel: HeadingLevel;
|
package/widgets/Directions.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ export default class Directions extends Widget {
|
|
|
303
303
|
*
|
|
304
304
|
* @default 2
|
|
305
305
|
* @since 4.20
|
|
306
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
306
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
307
307
|
* @example
|
|
308
308
|
* // address text will render as an <h3>
|
|
309
309
|
* directions.headingLevel = 3;
|
package/widgets/Editor.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ export default class Editor extends Widget {
|
|
|
396
396
|
*
|
|
397
397
|
* @default 4
|
|
398
398
|
* @since 4.20
|
|
399
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
399
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
400
400
|
* @example
|
|
401
401
|
* // "Editor" will render as an <h3>
|
|
402
402
|
* editor.headingLevel = 3;
|
package/widgets/Feature.d.ts
CHANGED
|
@@ -258,7 +258,7 @@ export default class Feature extends Widget {
|
|
|
258
258
|
*
|
|
259
259
|
* @default 2
|
|
260
260
|
* @since 4.20
|
|
261
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
261
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
262
262
|
* @example
|
|
263
263
|
* // feature title will render as an <h3>
|
|
264
264
|
* feature.headingLevel = 3;
|
package/widgets/FeatureForm.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ export default class FeatureForm extends Widget {
|
|
|
204
204
|
*
|
|
205
205
|
* @default 2
|
|
206
206
|
* @since 4.20
|
|
207
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
207
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
208
208
|
* @example
|
|
209
209
|
* // form title will render as an <h3>
|
|
210
210
|
* // group element labels will render as an <h4>
|
|
@@ -17,19 +17,6 @@ import type { FieldProperties } from "../../layers/support/Field.js";
|
|
|
17
17
|
export interface FieldColumnProperties extends EditorColumnProperties, Partial<Pick<FieldColumn, "editable" | "layer" | "required" | "template" | "view">> {
|
|
18
18
|
/** The [Field](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/) associated with this column. */
|
|
19
19
|
field?: FieldProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Custom function for rendering cell content that is called when the column is rendered in the table. The function should return the formatted content to display within a table's cell. This can be a string, number, an HTML element, or equivalent node type (e.g. a [Calcite component](https://developers.arcgis.com/calcite-design-system/components/)). If the content is an HTML element, it is appended to the root element. If the content is a string or number, it is set as the innerHTML of the root element. If the content is `null`, the root element is cleared. If the content is `undefined`, the root element is not modified. This property is useful when you want to customize the cell content. For example, you can use this property to create a custom cell renderer that displays a progress bar in the cell. The progress bar can be used to show the progress of a task.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // The following example demonstrates how to use the formatFunction property to create a custom cell renderer that displays a progress bar in the cell. The progress bar can be used to show the progress of a task.
|
|
25
|
-
* column.formatFunction = ({ column, feature, index, value })=> {
|
|
26
|
-
* const progress = document.createElement("progress");
|
|
27
|
-
* progress.max = 100;
|
|
28
|
-
* progress.value = value;
|
|
29
|
-
* return progress;
|
|
30
|
-
* };
|
|
31
|
-
*/
|
|
32
|
-
formatFunction?: FieldValueFormatFunction | null;
|
|
33
20
|
/**
|
|
34
21
|
* Indicates whether the column is sortable.
|
|
35
22
|
*
|
|
@@ -111,7 +98,7 @@ export default class FieldColumn extends EditorColumn {
|
|
|
111
98
|
* return progress;
|
|
112
99
|
* };
|
|
113
100
|
*/
|
|
114
|
-
|
|
101
|
+
get formatFunction(): FieldValueFormatFunction | null | undefined;
|
|
115
102
|
/**
|
|
116
103
|
* The associated [CatalogFootprintLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/catalog/CatalogFootprintLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/), [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/),
|
|
117
104
|
* [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/), [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/), or [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/) containing the fields and attributes to display within the widget.
|
|
@@ -69,7 +69,7 @@ export default class Column extends Accessor {
|
|
|
69
69
|
/** The unique field name as defined by the data source. */
|
|
70
70
|
get fieldName(): string;
|
|
71
71
|
/**
|
|
72
|
-
* Controls the [flex-grow](https://developer.mozilla.org/
|
|
72
|
+
* Controls the [flex-grow](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/flex-grow) property for the column. When set to `0`, cell width is fixed.
|
|
73
73
|
*
|
|
74
74
|
* @default 1
|
|
75
75
|
*/
|
|
@@ -57,7 +57,7 @@ export default abstract class ColumnTemplateBase extends ColumnTemplateBaseSuper
|
|
|
57
57
|
/** The unique field name as defined by the data source. */
|
|
58
58
|
accessor fieldName: string;
|
|
59
59
|
/**
|
|
60
|
-
* Controls the [flex-grow](https://developer.mozilla.org/
|
|
60
|
+
* Controls the [flex-grow](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/flex-grow) property for the column. When set to `0`, cell width is fixed.
|
|
61
61
|
*
|
|
62
62
|
* @default 1
|
|
63
63
|
* @since 4.30
|
|
@@ -183,7 +183,7 @@ export default class FeatureTemplates extends Widget {
|
|
|
183
183
|
*
|
|
184
184
|
* @default 4
|
|
185
185
|
* @since 4.20
|
|
186
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
186
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
187
187
|
* @example
|
|
188
188
|
* // Group label will render as an <h3>
|
|
189
189
|
* featureTemplates.headingLevel = 3;
|
package/widgets/FloorFilter.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export default class FloorFilter extends Widget {
|
|
|
74
74
|
*
|
|
75
75
|
* @default 2
|
|
76
76
|
* @since 4.20
|
|
77
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
77
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
78
78
|
* @example
|
|
79
79
|
* // building headings will render as an <h3>
|
|
80
80
|
* floorFilter.headingLevel = 3;
|
|
@@ -2,7 +2,7 @@ import type Accessor from "../../core/Accessor.js";
|
|
|
2
2
|
import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
|
|
3
3
|
|
|
4
4
|
export interface FullscreenViewModelProperties extends Partial<Pick<FullscreenViewModel, "view">> {
|
|
5
|
-
/** The [HTMLElement](https://developer.mozilla.org/
|
|
5
|
+
/** The [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) to present in fullscreen mode. */
|
|
6
6
|
element?: HTMLElement | null;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ export type FullscreenViewModelState = "active" | "disabled" | "feature-unsuppor
|
|
|
11
11
|
/**
|
|
12
12
|
* Provides the logic for the [Fullscreen](https://developers.arcgis.com/javascript/latest/references/core/widgets/Fullscreen/) widget.
|
|
13
13
|
*
|
|
14
|
-
* @deprecated since version 4.33. Use the JavaScript [Fullscreen API](https://developer.mozilla.org/
|
|
14
|
+
* @deprecated since version 4.33. Use the JavaScript [Fullscreen API](https://developer.mozilla.org/docs/Web/API/Fullscreen_API) directly instead.
|
|
15
15
|
* @since 4.6
|
|
16
16
|
* @see [Fullscreen](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) component
|
|
17
17
|
* @see [Fullscreen](https://developers.arcgis.com/javascript/latest/references/core/widgets/Fullscreen/) widget - _Deprecated since 4.32. Use the [Fullscreen component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) instead._
|
|
@@ -19,7 +19,7 @@ export type FullscreenViewModelState = "active" | "disabled" | "feature-unsuppor
|
|
|
19
19
|
*/
|
|
20
20
|
export default class FullscreenViewModel extends Accessor {
|
|
21
21
|
constructor(properties?: FullscreenViewModelProperties);
|
|
22
|
-
/** The [HTMLElement](https://developer.mozilla.org/
|
|
22
|
+
/** The [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) to present in fullscreen mode. */
|
|
23
23
|
get element(): HTMLElement | null;
|
|
24
24
|
set element(value: HTMLElement | null | undefined);
|
|
25
25
|
/**
|
|
@@ -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{deprecatedModule as r}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{property as s,subclass as l}from"../../core/accessorSupport/decorators.js";let o=class extends t{constructor(e){super(e),this._vendorInfo=null,this._fullscreenStyle="width: 100%; height: 100%;",this.view=null,this._errorHandler=this._errorHandler.bind(this),this._stateHandler=this._stateHandler.bind(this),e?.suppressDeprecationWarning||r(n.getLogger("esri.widgets.Fullscreen.FullscreenViewModel"),"esri.widgets.Fullscreen.FullscreenViewModel",{replacement:"Fullscreen API",version:"4.33",see:"https://developer.mozilla.org/
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{deprecatedModule as r}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{property as s,subclass as l}from"../../core/accessorSupport/decorators.js";let o=class extends t{constructor(e){super(e),this._vendorInfo=null,this._fullscreenStyle="width: 100%; height: 100%;",this.view=null,this._errorHandler=this._errorHandler.bind(this),this._stateHandler=this._stateHandler.bind(this),e?.suppressDeprecationWarning||r(n.getLogger("esri.widgets.Fullscreen.FullscreenViewModel"),"esri.widgets.Fullscreen.FullscreenViewModel",{replacement:"Fullscreen API",version:"4.33",see:"https://developer.mozilla.org/docs/Web/API/Fullscreen_API",warnOnce:!0})}normalizeCtorArgs(e={}){const{suppressDeprecationWarning:t,...r}=e;return r}destroy(){this._removeFullscreenListeners(),this.view=null}get element(){return this.view?.container??null}set element(e){this._override("element",e)}get state(){return this.element?this._isSupported()?this._isActive()?"active":"ready":"feature-unsupported":"disabled"}enter(){this._enterFullscreen()}exit(){this._exitFullscreen()}toggle(){this._isActive()?this._exitFullscreen():this._enterFullscreen()}_isSupported(){this._removeFullscreenListeners();const e=this._getVendorInfo(this.element);return this._addFullscreenListeners(e),this._vendorInfo=e,!!e}_isActive(){return!!this._vendorInfo&&!!document[this._vendorInfo.propertyName]}_stateHandler(){this.notifyChange("state"),"active"===this.state?this._addStyle():this._removeStyle()}_errorHandler(e){n.getLogger(this).error("fullscreen request failed",e)}_getVendorInfo(e){if(e)return e.requestFullscreen?{enterName:"requestFullscreen",exitName:"exitFullscreen",errorEventName:"fullscreenerror",changeEventName:"fullscreenchange",propertyName:"fullscreen"}:e.webkitRequestFullScreen?{enterName:"webkitRequestFullscreen",exitName:"webkitCancelFullScreen",errorEventName:"webkitfullscreenerror",changeEventName:"webkitfullscreenchange",propertyName:"webkitIsFullScreen"}:e.mozRequestFullScreen?{enterName:"mozRequestFullScreen",exitName:"mozCancelFullScreen",errorEventName:"mozfullscreenerror",changeEventName:"mozfullscreenchange",propertyName:"mozFullScreen"}:void 0}_enterFullscreen(){if("feature-unsupported"===this.state)return void n.getLogger(this).warn("The fullscreen API is not supported in this browser.");const{element:e}=this;e&&(this._vendorInfo&&e[this._vendorInfo.enterName].call(e),this.notifyChange("state"))}_addStyle(){const{element:e}=this;e&&e.setAttribute("style",this._fullscreenStyle)}_removeStyle(){const{element:e}=this;e&&e.removeAttribute("style")}_exitFullscreen(){if("feature-unsupported"===this.state)return;const{element:e}=this;e&&(this._vendorInfo&&document[this._vendorInfo.exitName].call(document),this.notifyChange("state"))}_addFullscreenListeners(e){e&&(document.addEventListener(e.changeEventName,this._stateHandler),document.addEventListener(e.errorEventName,this._errorHandler))}_removeFullscreenListeners(){const{_vendorInfo:e}=this;e&&(document.removeEventListener(e.changeEventName,this._stateHandler),document.removeEventListener(e.errorEventName,this._errorHandler))}};e([s()],o.prototype,"element",null),e([s({readOnly:!0})],o.prototype,"state",null),e([s()],o.prototype,"view",void 0),e([s()],o.prototype,"enter",null),e([s()],o.prototype,"exit",null),e([s()],o.prototype,"toggle",null),o=e([l("esri.widgets.Fullscreen.FullscreenViewModel")],o);const i=o;export{i as default};
|
package/widgets/Fullscreen.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface FullscreenProperties extends WidgetProperties, Partial<Pick<Ful
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Provides a simple widget to present the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/) or a user-defined [HTMLElement](https://developer.mozilla.org/
|
|
34
|
+
* Provides a simple widget to present the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/) or a user-defined [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) using the entire screen.
|
|
35
35
|
*
|
|
36
36
|
* > [!WARNING]
|
|
37
37
|
* >
|
|
@@ -46,7 +46,7 @@ export interface FullscreenProperties extends WidgetProperties, Partial<Pick<Ful
|
|
|
46
46
|
* > **Known Limitations**
|
|
47
47
|
* >
|
|
48
48
|
* > The Fullscreen widget only works with browsers that implement
|
|
49
|
-
* > the [Fullscreen API](https://developer.mozilla.org/
|
|
49
|
+
* > the [Fullscreen API](https://developer.mozilla.org/docs/Web/API/Fullscreen_API). Thus, iOS Safari is not supported.
|
|
50
50
|
*
|
|
51
51
|
* @deprecated since version 4.32. Use the [Fullscreen component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-fullscreen/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
|
|
52
52
|
* @since 4.6
|
|
@@ -62,7 +62,7 @@ export interface FullscreenProperties extends WidgetProperties, Partial<Pick<Ful
|
|
|
62
62
|
*/
|
|
63
63
|
export default class Fullscreen extends Widget {
|
|
64
64
|
constructor(properties?: FullscreenProperties);
|
|
65
|
-
/** The [HTMLElement](https://developer.mozilla.org/
|
|
65
|
+
/** The [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) to present in fullscreen mode. */
|
|
66
66
|
accessor element: HTMLElement | null | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* Icon displayed in the widget's button.
|
|
@@ -45,8 +45,8 @@ export interface ListItemPanelProperties extends WidgetProperties, IdentifiableM
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* The content displayed in the ListItem panel. This can be a [String](https://developer.mozilla.org/
|
|
49
|
-
* a [Widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/) instance, or an [HTMLElement](https://developer.mozilla.org/
|
|
48
|
+
* The content displayed in the ListItem panel. This can be a [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String),
|
|
49
|
+
* a [Widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/) instance, or an [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement).
|
|
50
50
|
* If the string `legend` is used, then an instance of the [Legend](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/) widget is placed in the content.
|
|
51
51
|
*
|
|
52
52
|
* @see [content](https://developers.arcgis.com/javascript/latest/references/core/widgets/LayerList/ListItemPanel/#content)
|
|
@@ -89,9 +89,9 @@ export type ListItemPanelContents = ListItemPanelContent | ListItemPanelContent[
|
|
|
89
89
|
export default class ListItemPanel extends ListItemPanelSuperclass {
|
|
90
90
|
constructor(properties?: ListItemPanelProperties);
|
|
91
91
|
/**
|
|
92
|
-
* The content displayed in the ListItem panel. This can be a [String](https://developer.mozilla.org/
|
|
93
|
-
* a [Widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/) instance, an [HTMLElement](https://developer.mozilla.org/
|
|
94
|
-
* or an [Array](https://developer.mozilla.org/
|
|
92
|
+
* The content displayed in the ListItem panel. This can be a [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String),
|
|
93
|
+
* a [Widget](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/) instance, an [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement),
|
|
94
|
+
* or an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) of any of those elements.
|
|
95
95
|
*
|
|
96
96
|
* If the string `legend` is used, then an instance of the [Legend](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/)
|
|
97
97
|
* widget is placed in the content.
|
package/widgets/Legend.d.ts
CHANGED
|
@@ -205,7 +205,7 @@ export default class Legend extends Widget {
|
|
|
205
205
|
*
|
|
206
206
|
* @default 3
|
|
207
207
|
* @since 4.20
|
|
208
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
208
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
209
209
|
* @example
|
|
210
210
|
* // legend title will render as an <h2>
|
|
211
211
|
* legend.headingLevel = 2;
|
|
@@ -42,10 +42,10 @@ export interface LocateViewModelLocateErrorEvent {
|
|
|
42
42
|
*
|
|
43
43
|
* > [!WARNING]
|
|
44
44
|
* >
|
|
45
|
-
* > The ([geolocation](https://developer.mozilla.org/
|
|
45
|
+
* > The ([geolocation](https://developer.mozilla.org/docs/Web/API/Geolocation/Using_geolocation)) functionality is not supported on insecure origins.
|
|
46
46
|
* > To use it, switch your application to a secure origin, such as HTTPS.
|
|
47
47
|
* > Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports
|
|
48
|
-
* > [Window.isSecureContext](https://developer.mozilla.org/
|
|
48
|
+
* > [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility)
|
|
49
49
|
* > (currently Chrome and Firefox).
|
|
50
50
|
* >
|
|
51
51
|
* > As of version 4.2, the Locate Button no longer displays in non-secure web apps. At version
|
package/widgets/Locate.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface LocateEvents extends LocateViewModelEvents {}
|
|
|
66
66
|
* > The Locate widget is not supported on insecure origins.
|
|
67
67
|
* > To use it, switch your application to a secure origin, such as HTTPS.
|
|
68
68
|
* > Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports
|
|
69
|
-
* > [Window.isSecureContext](https://developer.mozilla.org/
|
|
69
|
+
* > [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility).
|
|
70
70
|
* >
|
|
71
71
|
* > **Known Limitation**
|
|
72
72
|
* >
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import t from"../../Graphic.js";import r from"../../request.js";import
|
|
2
|
+
import t from"../../Graphic.js";import r from"../../request.js";import o from"../../core/Collection.js";import e from"../../core/Error.js";import{rad2deg as n,deg2rad as s}from"../../core/mathUtils.js";import{throwIfAborted as i}from"../../core/promiseUtils.js";import a from"../../geometry/support/MeshMaterial.js";import m from"../../geometry/support/MeshTexture.js";import{createSphere as c}from"../../geometry/support/meshUtils.js";import l from"../../symbols/FillSymbol3DLayer.js";import u from"../../symbols/MeshSymbol3D.js";import{defaultImageSphereCenter as p,defaultImageSphereSize as f}from"./constants.js";import{loadRasterFactory as h,loadPanoramicTilePyramid as w}from"./support/importUtils.js";function y({data:t,center:r=p,size:o=f,horizonPitch:e=0,horizonYaw:n=0,horizonRoll:s=0}){const i=r.clone();i.z=-o/2;const l=c(i,{size:o,densificationFactor:2,vertexSpace:"georeferenced",material:new a({colorTexture:new m({data:t})})});if(l.components[0].trustSourceNormals=!0,l.vertexAttributes.uv){const t=l.vertexAttributes.uv.length??0;for(let r=0;r<t;r++)l.vertexAttributes.uv[2*r+0]=1-l.vertexAttributes.uv[2*r+0]}return l.rotate(e,s,n,{origin:l.extent.center}),l.centerAt(i),l}function j(r){return new t({geometry:r,symbol:new u({symbolLayers:new o([new l])})})}function d(t,r){return 2*n(Math.atan(Math.tan(s(t/2))*Math.sqrt((1/r)**2+1)))}async function g(t,r){const o=await h(),e=await o.open({url:t,ioConfig:{skipExtensions:["jgw","aux.xml"],skipMapInfo:!0},...r});return i(r),x(e,{url:t})}const x=(t,r)=>{if(!t)throw new e("panoramic-viewer:missing-raster","Raster data could not be loaded",r);return t};async function b(t,r,o){const e=await w();return i(o),new e({raster:t,horizonPitch:r.pitch,horizonYaw:r.yaw,horizonRoll:r.roll})}async function v(t,r){return t?.length?await Promise.all(t.map(t=>t.loadMesh(r))):[]}async function z(t,o){try{const e=await r(t,{...o,method:"head"});return i(o),e?.getHeader?.("Content-Type")}catch{return null}}export{y as createImageSphere,d as findDiagonalFOV,z as getContentType,v as loadMeshes,b as loadPyramid,g as loadRaster,j as meshToGraphic};
|
package/widgets/Popup.d.ts
CHANGED
|
@@ -458,7 +458,7 @@ export default class Popup extends Widget {
|
|
|
458
458
|
*
|
|
459
459
|
* @default 2
|
|
460
460
|
* @since 4.20
|
|
461
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
461
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
462
462
|
* @example
|
|
463
463
|
* // popup title will render as an <h3>
|
|
464
464
|
* popup.headingLevel = 3;
|
|
@@ -34,7 +34,7 @@ export interface PrintViewModelProperties extends LoadableMixinProperties, Parti
|
|
|
34
34
|
*/
|
|
35
35
|
outSpatialReference?: SpatialReferenceProperties | null;
|
|
36
36
|
/**
|
|
37
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
37
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
38
38
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
39
39
|
* This is especially helpful when working with a [custom print template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
40
40
|
*
|
|
@@ -235,7 +235,7 @@ export default class PrintViewModel extends PrintViewModelSuperclass {
|
|
|
235
235
|
get outSpatialReference(): SpatialReference | null | undefined;
|
|
236
236
|
set outSpatialReference(value: SpatialReferenceProperties | null | undefined);
|
|
237
237
|
/**
|
|
238
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
238
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
239
239
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
240
240
|
* This is especially helpful when working with a [custom print template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
241
241
|
*
|
|
@@ -15,8 +15,8 @@ export interface TemplateOptionsProperties extends Partial<Pick<TemplateOptions,
|
|
|
15
15
|
* > This capability is only available with ArcGIS Enterprise 11.1 or later.
|
|
16
16
|
*
|
|
17
17
|
* @since 4.29
|
|
18
|
-
* @see [Share custom layouts for printing from ArcGIS Pro](https://
|
|
19
|
-
* @see [Federate an ArcGIS Server site with your portal](https://
|
|
18
|
+
* @see [Share custom layouts for printing from ArcGIS Pro](https://doc.esri.com/en/arcgis-enterprise/latest/administer/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.html)
|
|
19
|
+
* @see [Federate an ArcGIS Server site with your portal](https://doc.esri.com/en/arcgis-enterprise/latest/deploy/federate-an-arcgis-server-site-with-your-portal.html)
|
|
20
20
|
*/
|
|
21
21
|
layoutItem?: PortalItemProperties | null;
|
|
22
22
|
}
|
|
@@ -156,8 +156,8 @@ export default class TemplateOptions extends Accessor {
|
|
|
156
156
|
* > This capability is only available with ArcGIS Enterprise 11.1 or later.
|
|
157
157
|
*
|
|
158
158
|
* @since 4.29
|
|
159
|
-
* @see [Share custom layouts for printing from ArcGIS Pro](https://
|
|
160
|
-
* @see [Federate an ArcGIS Server site with your portal](https://
|
|
159
|
+
* @see [Share custom layouts for printing from ArcGIS Pro](https://doc.esri.com/en/arcgis-enterprise/latest/administer/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.html)
|
|
160
|
+
* @see [Federate an ArcGIS Server site with your portal](https://doc.esri.com/en/arcgis-enterprise/latest/deploy/federate-an-arcgis-server-site-with-your-portal.html)
|
|
161
161
|
*/
|
|
162
162
|
get layoutItem(): PortalItem | null | undefined;
|
|
163
163
|
set layoutItem(value: PortalItemProperties | null | undefined);
|
package/widgets/Print.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface PrintProperties extends WidgetProperties, Partial<Pick<Print, "
|
|
|
70
70
|
*/
|
|
71
71
|
label?: string | null;
|
|
72
72
|
/**
|
|
73
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
73
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
74
74
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
75
75
|
* This is especially helpful when working with a [custom print template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
76
76
|
*
|
|
@@ -111,7 +111,7 @@ export interface PrintProperties extends WidgetProperties, Partial<Pick<Print, "
|
|
|
111
111
|
export interface PrintEvents extends PrintViewModelEvents {}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* The Print widget connects your application with a [printing service](https://
|
|
114
|
+
* The Print widget connects your application with a [printing service](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-the-portal-to-print-maps.html) to allow the map to be printed.
|
|
115
115
|
* It takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,
|
|
116
116
|
* which can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.
|
|
117
117
|
* The Print widget works with the [print](https://developers.arcgis.com/javascript/latest/references/core/rest/print/) which generates a printer-ready version of the map.
|
|
@@ -141,8 +141,8 @@ export interface PrintEvents extends PrintViewModelEvents {}
|
|
|
141
141
|
* @since 4.2
|
|
142
142
|
* @see [Print component demo](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-print/#demo/)
|
|
143
143
|
* @see [PrintViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/PrintViewModel/)
|
|
144
|
-
* @see [Printing in web applications](https://
|
|
145
|
-
* @see [Configure the portal to print maps](https://
|
|
144
|
+
* @see [Printing in web applications](https://doc.esri.com/en/arcgis-enterprise/latest/administer/printing-in-web-applications.html)
|
|
145
|
+
* @see [Configure the portal to print maps](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-the-portal-to-print-maps.html)
|
|
146
146
|
* @see [Export Web Map Task (Geoprocessing service) [REST doc]](https://developers.arcgis.com/rest/services-reference/export-web-map-task.htm)
|
|
147
147
|
* @example
|
|
148
148
|
* const print = new Print({
|
|
@@ -264,7 +264,7 @@ export default class Print extends Widget<PrintProperties> {
|
|
|
264
264
|
*
|
|
265
265
|
* @default 3
|
|
266
266
|
* @since 4.20
|
|
267
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
267
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
268
268
|
* @example
|
|
269
269
|
* // "Exported files" will render as an <h4>
|
|
270
270
|
* print.headingLevel = 4;
|
|
@@ -317,7 +317,7 @@ export default class Print extends Widget<PrintProperties> {
|
|
|
317
317
|
get label(): string;
|
|
318
318
|
set label(value: string | null | undefined);
|
|
319
319
|
/**
|
|
320
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
320
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
321
321
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
322
322
|
* This is especially helpful when working with a [custom print template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
323
323
|
*
|
|
@@ -34,7 +34,7 @@ export interface SearchViewModelProperties extends GoToProperties, Partial<Pick<
|
|
|
34
34
|
*/
|
|
35
35
|
popupTemplate?: PopupTemplateProperties | null;
|
|
36
36
|
/**
|
|
37
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
37
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
38
38
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
39
39
|
*
|
|
40
40
|
* @since 4.8
|
|
@@ -299,7 +299,7 @@ export default class SearchViewModel extends SearchViewModelSuperclass {
|
|
|
299
299
|
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
300
300
|
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/). This property
|
|
301
301
|
* may contain [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/)
|
|
302
|
-
* [locators](https://
|
|
302
|
+
* [locators](https://doc.esri.com/en/arcgis-enterprise/latest/administer/geocode-services.html)
|
|
303
303
|
* and any web map or web scene [configurable search sources](https://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm).
|
|
304
304
|
* Web maps or web scenes may contain
|
|
305
305
|
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
@@ -365,7 +365,7 @@ export default class SearchViewModel extends SearchViewModelSuperclass {
|
|
|
365
365
|
* > The use of this property is only supported on secure origins.
|
|
366
366
|
* > To use it, switch your application to a secure origin, such as HTTPS.
|
|
367
367
|
* > Note that localhost is considered "potentially secure" and can be used
|
|
368
|
-
* > for easy testing in browsers that supports [Window.isSecureContext](https://developer.mozilla.org/
|
|
368
|
+
* > for easy testing in browsers that supports [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility)
|
|
369
369
|
* > (currently Chrome and Firefox).
|
|
370
370
|
*
|
|
371
371
|
* @since 4.8
|
|
@@ -418,7 +418,7 @@ export default class SearchViewModel extends SearchViewModelSuperclass {
|
|
|
418
418
|
get popupTemplate(): PopupTemplate | null | undefined;
|
|
419
419
|
set popupTemplate(value: PopupTemplateProperties | null | undefined);
|
|
420
420
|
/**
|
|
421
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
421
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
422
422
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
423
423
|
*
|
|
424
424
|
* @since 4.8
|
|
@@ -625,7 +625,7 @@ export default class SearchViewModel extends SearchViewModelSuperclass {
|
|
|
625
625
|
/**
|
|
626
626
|
* Returns search results near your current location. It checks whether
|
|
627
627
|
* [locationEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/SearchViewModel/#locationEnabled) is `true`. If so, and your browser
|
|
628
|
-
* supports [geolocation](https://developer.mozilla.org/
|
|
628
|
+
* supports [geolocation](https://developer.mozilla.org/docs/Web/API/Geolocation/Using_geolocation),
|
|
629
629
|
* it will return search results nearby your current location.
|
|
630
630
|
*
|
|
631
631
|
* @param options - An object containing an optional `signal` property that can be used to cancel the request.
|
package/widgets/Search.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface SearchProperties extends WidgetProperties, Partial<Pick<Search,
|
|
|
41
41
|
*/
|
|
42
42
|
popupTemplate?: PopupTemplateProperties | null;
|
|
43
43
|
/**
|
|
44
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
44
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
45
45
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
46
46
|
*
|
|
47
47
|
* @since 4.8
|
|
@@ -314,7 +314,7 @@ export default class Search extends Widget {
|
|
|
314
314
|
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
315
315
|
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/). This property
|
|
316
316
|
* may contain [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/)
|
|
317
|
-
* [locators](https://
|
|
317
|
+
* [locators](https://doc.esri.com/en/arcgis-enterprise/latest/administer/geocode-services.html)
|
|
318
318
|
* and any web map or web scene [configurable search sources](https://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm).
|
|
319
319
|
* Web maps or web scenes may contain
|
|
320
320
|
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
@@ -403,7 +403,7 @@ export default class Search extends Widget {
|
|
|
403
403
|
* > The use of this property is only supported on secure origins.
|
|
404
404
|
* > To use it, switch your application to a secure origin, such as HTTPS.
|
|
405
405
|
* > Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports
|
|
406
|
-
* > [Window.isSecureContext](https://developer.mozilla.org/
|
|
406
|
+
* > [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility)
|
|
407
407
|
* > (currently Chrome and Firefox).
|
|
408
408
|
*
|
|
409
409
|
* @default true
|
|
@@ -446,7 +446,7 @@ export default class Search extends Widget {
|
|
|
446
446
|
get popupTemplate(): PopupTemplate | null | undefined;
|
|
447
447
|
set popupTemplate(value: PopupTemplateProperties | null | undefined);
|
|
448
448
|
/**
|
|
449
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
449
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
450
450
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
451
451
|
*
|
|
452
452
|
* @since 4.8
|
package/widgets/ShadowCast.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export default class ShadowCast extends Widget {
|
|
|
123
123
|
* important for meeting accessibility standards.
|
|
124
124
|
*
|
|
125
125
|
* @default 4
|
|
126
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
126
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
127
127
|
* @example shadowCast.headingLevel = 3;
|
|
128
128
|
*/
|
|
129
129
|
accessor headingLevel: HeadingLevel;
|
|
@@ -993,7 +993,7 @@ export default class SketchViewModel extends EventedAccessor {
|
|
|
993
993
|
* @param geometry - Geometry to place when creating the graphic. Currently only [Mesh](https://developers.arcgis.com/javascript/latest/references/core/geometry/Mesh/) geometry is supported.
|
|
994
994
|
* @example
|
|
995
995
|
* // create mesh at the global origin
|
|
996
|
-
* const box =
|
|
996
|
+
* const box = meshUtils.createBox(new Point({x: 0, y: 0, z: 0, spatialReference: SpatialReference.WGS84});
|
|
997
997
|
*
|
|
998
998
|
* // Call place method to place a mesh - this will allow the user to place the mesh using the mouse
|
|
999
999
|
* sketchVM.place(box);
|
package/widgets/Slice.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export default class Slice extends Widget<SliceProperties> {
|
|
|
172
172
|
*
|
|
173
173
|
* @default 3
|
|
174
174
|
* @since 4.20
|
|
175
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
175
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements)
|
|
176
176
|
* @example slice.headingLevel = 2;
|
|
177
177
|
*/
|
|
178
178
|
accessor headingLevel: HeadingLevel;
|