@arcgis/core 5.0.0-next.69 → 5.0.0-next.70
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/Map.d.ts +3 -1
- package/analysis/Analysis.d.ts +1 -0
- package/analysis/Dimension/types.d.ts +1 -0
- package/analysis/DimensionAnalysis.d.ts +10 -10
- package/analysis/DimensionSimpleStyle.d.ts +14 -13
- package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
- package/analysis/DistanceMeasurementAnalysis.d.ts +2 -1
- package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +3 -3
- package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +1 -1
- package/analysis/ElevationProfile/types.d.ts +2 -0
- package/analysis/LengthDimension.d.ts +22 -21
- package/analysis/LineOfSightAnalysis.d.ts +2 -2
- package/analysis/ShadowCast/MinDurationOptions.d.ts +2 -2
- package/analysis/ShadowCast/types.d.ts +6 -2
- package/analysis/Slice/types.d.ts +1 -0
- package/analysis/Viewshed.d.ts +22 -20
- package/analysis/ViewshedAnalysis.d.ts +13 -13
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -2
- package/analysis/VolumeMeasurement/types.d.ts +1 -0
- package/analysis/VolumeMeasurementAnalysis.d.ts +1 -0
- package/analysis/types.d.ts +5 -0
- package/arcade.d.ts +2 -2
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/04364f3dd7578c2acb71.js +1 -0
- package/assets/esri/core/workers/chunks/18ed69d563986dc2eb21.js +1 -0
- package/assets/esri/core/workers/chunks/{4c04c54330b693892cfc.js → 1a45b4b4803337f4b99f.js} +2 -2
- package/assets/esri/core/workers/chunks/{60c7f896f2246a8aa6d7.js → 244006d4b0547d574401.js} +53 -53
- package/assets/esri/core/workers/chunks/329b10897c6965948b84.js +1 -0
- package/assets/esri/core/workers/chunks/4387aaf9d5e8f6d1833d.js +1 -0
- package/assets/esri/core/workers/chunks/{944dfa9309da8f49a616.js → 6a3d66d7c92f90cc2a17.js} +1 -1
- package/assets/esri/core/workers/chunks/760a759f9697adde6dd4.js +1 -0
- package/assets/esri/core/workers/chunks/798d227205bd958de6a7.js +1 -0
- package/assets/esri/core/workers/chunks/{9d88b4ba8e511da64583.js → 98d68b145226e7527c84.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ad6595ad44c2d60c1ce.js → a79fad422d41019c8232.js} +1 -1
- package/assets/esri/core/workers/chunks/{10e474d664b20adcd917.js → db4661fd82dc61162115.js} +1 -1
- package/assets/esri/core/workers/chunks/{1d1e25bb61eeeee8ee94.js → df2ba5f9d57080fca183.js} +1 -1
- package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +5 -3
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +15 -11
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ComponentShader.glsl.js +43 -43
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/config.js +1 -1
- package/form/elements/inputs/attachments/Input.d.ts +6 -6
- package/geometry/Mesh.d.ts +20 -21
- package/geometry/Polygon.d.ts +1 -8
- package/geometry/Polygon.js +1 -1
- package/geometry/geometryEngine.d.ts +19 -19
- package/geometry/support/MeshComponent.d.ts +3 -3
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -2
- package/geometry/support/MeshLocalVertexSpace.d.ts +2 -2
- package/geometry/support/MeshMaterial.d.ts +8 -8
- package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
- package/geometry/support/MeshTexture.d.ts +3 -3
- package/geometry/support/MeshTextureTransform.d.ts +3 -3
- package/geometry/support/MeshTransform.d.ts +1 -1
- package/geometry/support/MeshVertexAttributes.d.ts +13 -5
- package/geometry/support/intersects.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshUtils/types.d.ts +44 -52
- package/geometry/support/meshUtils.d.ts +6 -50
- package/geometry/support/meshUtils.js +1 -1
- package/interfaces.d.ts +5 -151
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +2 -2
- package/layers/BaseElevationLayer.d.ts +2 -2
- package/layers/BuildingSceneLayer.d.ts +2 -2
- package/layers/CSVLayer.d.ts +2 -2
- package/layers/CatalogLayer.d.ts +2 -2
- package/layers/DimensionLayer.d.ts +2 -2
- package/layers/ElevationLayer.d.ts +2 -2
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/GeoJSONLayer.d.ts +2 -2
- package/layers/GeoRSSLayer.d.ts +2 -2
- package/layers/GraphicsLayer.d.ts +2 -2
- package/layers/GroupLayer.d.ts +2 -2
- package/layers/ImageryLayer.d.ts +2 -2
- package/layers/ImageryTileLayer.d.ts +2 -2
- package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -2
- package/layers/IntegratedMeshLayer.d.ts +2 -2
- package/layers/KMLLayer.d.ts +2 -2
- package/layers/Layer.d.ts +9 -7
- package/layers/LineOfSightLayer.d.ts +3 -3
- package/layers/MapImageLayer.d.ts +2 -2
- package/layers/MapNotesLayer.d.ts +2 -2
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OGCFeatureLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +2 -2
- package/layers/ParquetLayer.d.ts +2 -2
- package/layers/PointCloudLayer.d.ts +2 -2
- package/layers/RouteLayer.d.ts +2 -2
- package/layers/SceneLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/TileLayer.d.ts +2 -2
- package/layers/UnknownLayer.d.ts +2 -2
- package/layers/UnsupportedLayer.d.ts +2 -2
- package/layers/VectorTileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +2 -2
- package/layers/ViewshedLayer.d.ts +2 -2
- package/layers/VoxelLayer.d.ts +2 -2
- package/layers/WCSLayer.d.ts +2 -2
- package/layers/WFSLayer.d.ts +2 -2
- package/layers/WMSLayer.d.ts +2 -2
- package/layers/WMTSLayer.d.ts +2 -2
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -2
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/types.d.ts +8 -1
- package/layers/support/PixelBlock.d.ts +7 -7
- package/layers/support/RasterInfo.d.ts +2 -9
- package/layers/types.d.ts +77 -2
- package/networks/support/CircuitSection.d.ts +20 -2
- package/networks/support/CircuitSection.js +1 -1
- package/networks/support/Subcircuit.d.ts +12 -10
- package/networks/support/Subcircuit.js +1 -1
- package/networks/support/typeUtils.d.ts +2 -0
- package/networks/support/typeUtils.js +1 -1
- package/package.json +2 -2
- package/rest/support/AttributeBinsQuery.d.ts +7 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +29 -9
- package/support/revision.js +1 -1
- package/symbols/patterns/LinePattern3D.d.ts +3 -3
- package/symbols/patterns/Pattern3D.d.ts +3 -3
- package/unionTypes.d.ts +17 -17
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +6 -5
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +7 -6
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/types.d.ts +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +2 -2
- package/views/3d/analysis/DirectLineMeasurement/types.d.ts +1 -0
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/types.d.ts +1 -0
- package/views/3d/analysis/types.d.ts +2 -0
- package/views/3d/constraints/Constraints.d.ts +2 -2
- package/views/3d/environment/ChapmanApproximation.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/layers/DimensionLayerView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
- package/views/3d/layers/ViewshedLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/support/LayerPerformanceInfo.d.ts +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ViewingModeConfiguration.js +5 -0
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +2 -2
- package/views/BreakpointsOwner.d.ts +9 -10
- package/views/MapView.d.ts +18 -17
- package/views/SceneView.d.ts +30 -89
- package/views/SceneView.js +1 -1
- package/views/View2D.d.ts +0 -37
- package/views/View2D.js +1 -1
- package/views/ViewAnimation.d.ts +2 -3
- package/views/analysis/ElevationProfile/types.d.ts +7 -6
- package/views/analysis/types.d.ts +1 -0
- package/views/animation/types.d.ts +3 -1
- package/views/layers/DimensionLayerView.d.ts +97 -4
- package/views/layers/DimensionLayerView.js +1 -1
- package/views/layers/HighlightLayerViewMixin.d.ts +1 -59
- package/views/layers/HighlightLayerViewMixin.js +1 -1
- package/views/layers/ImageryLayerViewMixin.d.ts +1 -55
- package/views/layers/LineOfSightLayerView.d.ts +77 -4
- package/views/layers/LineOfSightLayerView.js +1 -1
- package/views/layers/ViewshedLayerView.d.ts +96 -5
- package/views/layers/ViewshedLayerView.js +1 -1
- package/views/navigation/Navigation.d.ts +1 -22
- package/views/navigation/Navigation.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/types.d.ts +75 -5
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +4 -4
- package/widgets/AreaMeasurement3D.d.ts +2 -2
- package/widgets/BasemapGallery.d.ts +1 -1
- package/widgets/BasemapToggle.d.ts +1 -1
- package/widgets/Bookmarks.d.ts +1 -1
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingLevel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingPhase.d.ts +2 -2
- package/widgets/BuildingExplorer.d.ts +3 -3
- package/widgets/Compass.d.ts +1 -1
- package/widgets/CoordinateConversion.d.ts +1 -1
- package/widgets/Daylight/DaylightViewModel.d.ts +3 -3
- package/widgets/Daylight/VisibleElements.d.ts +2 -2
- package/widgets/Daylight/types.d.ts +2 -2
- package/widgets/Daylight.d.ts +3 -3
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +4 -4
- package/widgets/DirectLineMeasurement3D.d.ts +2 -2
- package/widgets/DirectionalPad.d.ts +1 -1
- package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +3 -3
- package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +2 -2
- package/widgets/ElevationProfile/types.d.ts +9 -9
- package/widgets/ElevationProfile.d.ts +2 -2
- package/widgets/Expand/ExpandViewModel.d.ts +1 -1
- package/widgets/Expand.d.ts +1 -1
- package/widgets/Feature.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
- package/widgets/Features.d.ts +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +1 -1
- package/widgets/Fullscreen.d.ts +1 -1
- package/widgets/Home.d.ts +1 -1
- package/widgets/LayerList.d.ts +12 -0
- package/widgets/Legend.d.ts +1 -1
- package/widgets/LineOfSight/LineOfSightTarget.d.ts +2 -2
- package/widgets/LineOfSight/LineOfSightViewModel.d.ts +2 -2
- package/widgets/LineOfSight.d.ts +2 -2
- package/widgets/Locate/LocateViewModel.d.ts +1 -1
- package/widgets/Locate.d.ts +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
- package/widgets/NavigationToggle.d.ts +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/Arrow.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
- package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +5 -0
- package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
- package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +1 -1
- package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +5 -0
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Print/CustomTemplate.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +1 -1
- package/widgets/Print.d.ts +1 -1
- package/widgets/ScaleBar.d.ts +1 -1
- package/widgets/Search.d.ts +1 -1
- package/widgets/ShadowCast/DiscreteOptions.d.ts +2 -2
- package/widgets/ShadowCast/DurationOptions.d.ts +2 -2
- package/widgets/ShadowCast/ShadowCastViewModel.d.ts +3 -3
- package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +2 -2
- package/widgets/ShadowCast/ThresholdOptions.d.ts +2 -2
- package/widgets/ShadowCast/types.d.ts +2 -2
- package/widgets/ShadowCast.d.ts +1 -1
- package/widgets/Slice/SliceViewModel.d.ts +2 -2
- package/widgets/Slice.d.ts +2 -2
- package/widgets/Swipe.d.ts +1 -1
- package/widgets/TimeZoneLabel.d.ts +1 -1
- package/widgets/Track.d.ts +1 -1
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/VideoPlayer.d.ts +1 -1
- package/widgets/VideoPlayer.js +1 -1
- package/widgets/Weather/VisibleElements.d.ts +2 -2
- package/widgets/Weather/WeatherViewModel.d.ts +2 -2
- package/widgets/Weather/types.d.ts +1 -1
- package/widgets/Weather.d.ts +2 -2
- package/widgets/Zoom.d.ts +1 -1
- package/widgets/support/GridControls.d.ts +1 -1
- package/assets/esri/core/workers/chunks/35961e71f69ae1d24b9e.js +0 -1
- package/assets/esri/core/workers/chunks/3cce8e894bf37c3e598e.js +0 -1
- package/assets/esri/core/workers/chunks/7ee68f67f9cc48a328f0.js +0 -1
- package/assets/esri/core/workers/chunks/a931515a2569713e743b.js +0 -1
- package/assets/esri/core/workers/chunks/bb4574a87ca21e719f0d.js +0 -1
- package/assets/esri/core/workers/chunks/c9f868f85d740ee32715.js +0 -1
- package/geometry.d.ts +0 -136
- package/geometry.js +0 -5
- package/pointCloudRenderers.d.ts +0 -112
- package/pointCloudRenderers.js +0 -5
- package/rasterRenderers.d.ts +0 -151
- package/rasterRenderers.js +0 -5
- package/renderers.d.ts +0 -166
- package/renderers.js +0 -5
- package/views/layers/DimensionLayerViewMixin.d.ts +0 -1
- package/views/layers/DimensionLayerViewMixin.js +0 -5
- package/views/layers/LineOfSightLayerViewMixin.d.ts +0 -1
- package/views/layers/LineOfSightLayerViewMixin.js +0 -5
- package/views/layers/ViewshedLayerViewMixin.d.ts +0 -98
- package/views/layers/ViewshedLayerViewMixin.js +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{__decorate as e}from"tslib";import{smoothstep as r}from"../../../../core/mathUtils.js";import{set as t}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as o}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{D as a}from"../../../../chunks/vec32.js";import{radiusModifier as s}from"../../../../geometry/ellipsoidUtils.js";import{moon as i,mars as n,earth as c}from"../../../../geometry/support/Ellipsoid.js";import{Float2BindUniform as l}from"../core/shaderModules/Float2BindUniform.js";import{Float3BindUniform as m}from"../core/shaderModules/Float3BindUniform.js";import{glsl as p}from"../core/shaderModules/glsl.js";import{parameter as h,ShaderTechniqueConfiguration as d}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{SphereIntersect as f}from"./SphereIntersect.glsl.js";class u extends d{constructor(){super(...arguments),this.ellipsoidMode=1}}function y(e,o){e.fragment.uniforms.add(new l("cameraHeights",e=>{const i=e.camera,n=a(i.eye),c=Math.sqrt(n),l=j(o)*s,m=n-l*l;let p=r(4e6,5e6,c-l);return p=Math.min(p,.98),t(g,p,m)}),new m("cameraPosition",e=>e.camera.eye)),e.fragment.include(f),e.fragment.code.add(p`float sphereFade() {return cameraHeights[0];}
|
|
6
6
|
float sphereDepthInterpolate(vec3 worldRay, vec3 viewRay, float currentLinearDepth) {
|
|
7
7
|
vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, worldRay, cameraHeights[1]);
|
|
8
8
|
bool hitsPlanet = (rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.x > 0.0;
|
|
@@ -14,4 +14,4 @@ float sphereFade = cameraHeights[0];
|
|
|
14
14
|
return (-linearDepth) * sphereFade + currentLinearDepth * (1.0 - sphereFade);
|
|
15
15
|
}
|
|
16
16
|
return currentLinearDepth;
|
|
17
|
-
}`)}const
|
|
17
|
+
}`)}e([h({count:4})],u.prototype,"ellipsoidMode",void 0);const g=o();function j({ellipsoidMode:e}){switch(e){case 4:case 1:return c.radius;case 2:return n.radius;case 3:return i.radius}}export{u as SphereDepthInterpolateConfiguration,j as getPlanetRadius,y as sphereDepthInterpolate};
|
|
@@ -11,17 +11,18 @@ export interface BreakpointsOwnerProperties extends Partial<Pick<BreakpointsOwne
|
|
|
11
11
|
export abstract class BreakpointsOwner {
|
|
12
12
|
constructor(...args: any[]);
|
|
13
13
|
/**
|
|
14
|
+
*
|
|
14
15
|
* A convenience property used for defining the breakpoints on the [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View2D.html#height)
|
|
15
16
|
* and [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View2D.html#width) of the view. The sizes specified here determine the values of
|
|
16
17
|
* the [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint)
|
|
17
18
|
* properties depending on the view's size.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
20
|
+
* Setting up breakpoints can aid in responsive app design. It does this
|
|
21
|
+
* by watching width and height breakpoints. This is helpful as it removes
|
|
22
|
+
* the need for multiple [`@media` calls](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries).
|
|
23
|
+
* Instead of listening for the view's size and/or resizes property,
|
|
24
|
+
* you can set up a watch handler for either the [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) or
|
|
25
|
+
* [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint) properties of the view.
|
|
25
26
|
*
|
|
26
27
|
* > [!WARNING]
|
|
27
28
|
* >
|
|
@@ -89,14 +90,12 @@ export abstract class BreakpointsOwner {
|
|
|
89
90
|
*/
|
|
90
91
|
accessor heightBreakpoint: BreakpointSize;
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
-
* for a list of possible values.
|
|
94
|
-
*
|
|
93
|
+
*
|
|
94
|
+
* A convenience property indicating the view's orientation. See the table below for a list of possible values.
|
|
95
95
|
* > [!WARNING]
|
|
96
96
|
* >
|
|
97
97
|
* > Please refer to the [styling guide](https://developers.arcgis.com/javascript/latest/styling/#view-size-css-classes) for additional
|
|
98
98
|
* > information on working with this.
|
|
99
|
-
*
|
|
100
99
|
* Possible Value | Description
|
|
101
100
|
* ---------------|------------
|
|
102
101
|
* landscape | The [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View2D.html#width) of the view is greater than its [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View2D.html#height).
|
package/views/MapView.d.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface MapViewProperties extends View2DProperties {}
|
|
|
29
29
|
* // Create a MapView instance (for 2D viewing)
|
|
30
30
|
* const view = new MapView({
|
|
31
31
|
* map: myMap, // References a Map instance
|
|
32
|
-
* container: "viewDiv" // References the ID of a DOM element
|
|
32
|
+
* container: "viewDiv", // References the ID of a DOM element
|
|
33
|
+
* center: [-100, 35], // Sets the center point of the view at a specified lon/lat
|
|
33
34
|
* });
|
|
34
35
|
* ```
|
|
35
36
|
*
|
|
@@ -40,7 +41,7 @@ export interface MapViewProperties extends View2DProperties {}
|
|
|
40
41
|
* For example, the traditional map scale isn't set on the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html); it's set on the MapView.
|
|
41
42
|
*
|
|
42
43
|
* ```js
|
|
43
|
-
* view.scale = 24000; // Sets a 1:24,
|
|
44
|
+
* view.scale = 24000; // Sets a 1:24,000 scale on the view
|
|
44
45
|
* ```
|
|
45
46
|
*
|
|
46
47
|
* A MapView may not be immediately ready for display after it has been constructed.
|
|
@@ -50,7 +51,7 @@ export interface MapViewProperties extends View2DProperties {}
|
|
|
50
51
|
* [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) or [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo)) need the view to be ready before they
|
|
51
52
|
* can be used.
|
|
52
53
|
*
|
|
53
|
-
* `.when()` method on the MapView instance can be called to execute processes that may only run after
|
|
54
|
+
* The `.when()` method on the MapView instance can be called to execute processes that may only run after
|
|
54
55
|
* the map has loaded.
|
|
55
56
|
*
|
|
56
57
|
* ```js
|
|
@@ -69,7 +70,7 @@ export interface MapViewProperties extends View2DProperties {}
|
|
|
69
70
|
* });
|
|
70
71
|
* ```
|
|
71
72
|
*
|
|
72
|
-
* For live examples of `view.when()`, see
|
|
73
|
+
* For live examples of `view.when()`, see the [Add 2D overview map in SceneView](https://developers.arcgis.com/javascript/latest/sample-code/overview-map/) sample.
|
|
73
74
|
*
|
|
74
75
|
* <span id="programmatic-navigation"></span>
|
|
75
76
|
* ## Programmatic navigation
|
|
@@ -128,7 +129,7 @@ export interface MapViewProperties extends View2DProperties {}
|
|
|
128
129
|
* // to project the center to match the spatial reference of the view
|
|
129
130
|
* const view = new MapView({
|
|
130
131
|
* map: map, // References a Map instance
|
|
131
|
-
* container: "viewDiv" // References the ID of a DOM element
|
|
132
|
+
* container: "viewDiv", // References the ID of a DOM element
|
|
132
133
|
* center: [-100, 35], // Sets the center point of the view at a specified lon/lat
|
|
133
134
|
* zoom: 3 // MapView converts this to its corresponding scale which is 112823780.660964
|
|
134
135
|
* });
|
|
@@ -357,7 +358,7 @@ export default class MapView extends View2D {
|
|
|
357
358
|
* return results when the fill is clicked. However, it will return results when the outline is clicked. To get results when clicking the fill, set the
|
|
358
359
|
* [SimpleFillSymbol#color](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#color) to a transparent color instead.
|
|
359
360
|
*
|
|
360
|
-
* Release
|
|
361
|
+
* Release-specific changes:
|
|
361
362
|
* * At version 4.34, the [ParquetLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ParquetLayer.html) hit result returns only the topmost feature when the hit occurs on overlapping features in a ParquetLayer.
|
|
362
363
|
* * At version 4.29, [ViewHitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#ViewHitTestResult) returns a result for all style layers from [VectorTileLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html) that intersect the hit location.
|
|
363
364
|
* In prior releases, only the top most style layer result was returned.
|
|
@@ -384,17 +385,17 @@ export default class MapView extends View2D {
|
|
|
384
385
|
* if (graphicHits?.length > 0) {
|
|
385
386
|
* // do something with the myLayer features returned from hittest
|
|
386
387
|
* graphicHits.forEach((graphicHit) => {
|
|
387
|
-
*
|
|
388
|
+
* console.log(graphicHit.graphic.attributes);
|
|
388
389
|
* });
|
|
389
390
|
* }
|
|
390
391
|
* });
|
|
391
392
|
* });
|
|
392
393
|
* @example
|
|
393
|
-
* //
|
|
394
|
+
* // Get the screen point from the view's pointer-move event
|
|
394
395
|
* view.on("pointer-move", (event) => {
|
|
395
396
|
* // Search for graphics on layers at the hovered location
|
|
396
|
-
* //
|
|
397
|
-
* view.hitTest(event, {exclude: view.graphics}).then((response) => {
|
|
397
|
+
* // Exclude view.graphics from the hitTest
|
|
398
|
+
* view.hitTest(event, { exclude: view.graphics }).then((response) => {
|
|
398
399
|
* // if graphics are returned, do something with results
|
|
399
400
|
* const graphicHits = response.results?.filter(
|
|
400
401
|
* (hitResult) => hitResult.type === "graphic"
|
|
@@ -405,24 +406,24 @@ export default class MapView extends View2D {
|
|
|
405
406
|
* });
|
|
406
407
|
* });
|
|
407
408
|
* @example
|
|
408
|
-
* //
|
|
409
|
+
* // Get the screen point from the view's click event
|
|
409
410
|
* view.on("click", (event) => {
|
|
410
411
|
* // Search for all features only on included layers at the clicked location
|
|
411
|
-
* view.hitTest(event, {include: featureLayer}).then((response) => {
|
|
412
|
+
* view.hitTest(event, { include: featureLayer }).then((response) => {
|
|
412
413
|
* // if features are returned from the featureLayer, do something with results
|
|
413
|
-
* if (response.results.length){
|
|
414
|
+
* if (response.results.length) {
|
|
414
415
|
* // do something
|
|
415
416
|
* console.log(response.results.length, "features returned");
|
|
416
417
|
* }
|
|
417
418
|
* })
|
|
418
419
|
* });
|
|
419
420
|
* @example
|
|
420
|
-
* //
|
|
421
|
+
* // Get the screen point from the view's click event
|
|
421
422
|
* view.on("click", (event) => {
|
|
422
423
|
* // Search for all media elements only on included mediaLayer at the clicked location
|
|
423
|
-
* view.hitTest(event, {include: mediaLayer}).then((response) => {
|
|
424
|
+
* view.hitTest(event, { include: mediaLayer }).then((response) => {
|
|
424
425
|
* // if media elements are returned from the mediaLayer, do something with results
|
|
425
|
-
* if (response.results.length){
|
|
426
|
+
* if (response.results.length) {
|
|
426
427
|
* // do something
|
|
427
428
|
* console.log(response.results.length, "elements returned");
|
|
428
429
|
* }
|
|
@@ -432,7 +433,7 @@ export default class MapView extends View2D {
|
|
|
432
433
|
hitTest(screenPoint: ScreenPoint | MouseEvent, options?: HitTestOptions): Promise<ViewHitTestResult>;
|
|
433
434
|
/**
|
|
434
435
|
* Create a screenshot of the current view. Screenshots include only elements
|
|
435
|
-
* that are rendered on the canvas (all geographical elements), but excludes
|
|
436
|
+
* that are rendered on the canvas (all geographical elements), but excludes overlaid
|
|
436
437
|
* DOM elements (UI, popups, measurement labels, etc.). By default, a screenshot of the whole view
|
|
437
438
|
* is created. Different options allow for creating different types of screenshots,
|
|
438
439
|
* including taking screenshots at different aspect ratios, different resolutions
|
package/views/SceneView.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import type Constraints from "./3d/constraints/Constraints.js";
|
|
|
15
15
|
import type SceneViewEnvironment from "./3d/environment/SceneViewEnvironment.js";
|
|
16
16
|
import type SceneViewPerformanceInfo from "./3d/support/SceneViewPerformanceInfo.js";
|
|
17
17
|
import type LayerView from "./layers/LayerView.js";
|
|
18
|
-
import type HighlightOptions from "./support/HighlightOptions.js";
|
|
19
18
|
import type { CameraProperties } from "../Camera.js";
|
|
20
19
|
import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
|
|
21
20
|
import type { EventNames } from "../core/Evented.js";
|
|
@@ -33,7 +32,6 @@ import type { ExtentProperties } from "../geometry/Extent.js";
|
|
|
33
32
|
import type { ConstraintsProperties } from "./3d/constraints/Constraints.js";
|
|
34
33
|
import type { SpatialReferenceProperties } from "../geometry/SpatialReference.js";
|
|
35
34
|
import type { ViewpointProperties } from "../Viewpoint.js";
|
|
36
|
-
import type { HighlightOptionsProperties } from "./support/HighlightOptions.js";
|
|
37
35
|
import type { ViewProperties } from "./View.js";
|
|
38
36
|
|
|
39
37
|
export interface SceneViewProperties extends ViewProperties, DOMContainerProperties, PopupViewProperties, BreakpointsOwnerProperties, Partial<Pick<SceneView, "alphaCompositingEnabled" | "qualityProfile" | "scale" | "zoom">> {
|
|
@@ -122,7 +120,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
122
120
|
/**
|
|
123
121
|
* Represents the view's center point; when setting the center you may pass a
|
|
124
122
|
* [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing
|
|
125
|
-
*
|
|
123
|
+
* a longitude/latitude pair (`[-100.4593, 36.9014]`).
|
|
126
124
|
* Setting the center immediately changes the current view. For animating
|
|
127
125
|
* the view, see [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo).
|
|
128
126
|
*
|
|
@@ -176,7 +174,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
176
174
|
* a local scene. The clipping area cannot have z-values.
|
|
177
175
|
*
|
|
178
176
|
* If defined, only features that intersect the area will be displayed. The clipping area applies
|
|
179
|
-
* to all
|
|
177
|
+
* to all layer types, including the ground and the basemap. The clipping area will not increase the area beyond
|
|
180
178
|
* the union of the extents of all layers, including the ground and the basemap. To do so, add a GraphicsLayer
|
|
181
179
|
* with a custom fullExtent to the scene.
|
|
182
180
|
*
|
|
@@ -204,7 +202,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
204
202
|
constraints?: ConstraintsProperties;
|
|
205
203
|
/**
|
|
206
204
|
* Specifies various properties of the environment's visualization in the view.
|
|
207
|
-
* The SceneView will redraw automatically when any property of environment changes.
|
|
205
|
+
* The SceneView will redraw automatically when any property of the environment changes.
|
|
208
206
|
*
|
|
209
207
|
* Modifying the lighting:
|
|
210
208
|
* ```js
|
|
@@ -246,7 +244,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
246
244
|
* ```
|
|
247
245
|
*
|
|
248
246
|
* Changing the weather in the scene:
|
|
249
|
-
* ```
|
|
247
|
+
* ```js
|
|
250
248
|
* let view = new SceneView({
|
|
251
249
|
* container: "viewDiv",
|
|
252
250
|
*
|
|
@@ -267,7 +265,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
267
265
|
* The extent represents the visible portion of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as
|
|
268
266
|
* an instance of an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
|
|
269
267
|
* Setting the extent immediately changes the view without animation. To animate
|
|
270
|
-
* the view, see [
|
|
268
|
+
* the view, see [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo).
|
|
271
269
|
*
|
|
272
270
|
* Rather than using extent to change the visible portion of the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html)
|
|
273
271
|
* in a SceneView, you should use [camera](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#camera) since it easily allows you to define the
|
|
@@ -294,39 +292,11 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
294
292
|
*/
|
|
295
293
|
extent?: ExtentProperties;
|
|
296
294
|
/**
|
|
297
|
-
* Applies a display filter on the view for a specific set of floor levels. It
|
|
295
|
+
* Applies a display filter on the view for a specific set of floor levels. It filters the scene display on floor-aware layers by zero or more level IDs.
|
|
298
296
|
*
|
|
299
297
|
* @since 4.19
|
|
300
298
|
*/
|
|
301
299
|
floors?: ReadonlyArrayOrCollection<string>;
|
|
302
|
-
/**
|
|
303
|
-
* Options for configuring the highlight. Use the highlight method on the
|
|
304
|
-
* appropriate [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) to highlight a feature.
|
|
305
|
-
*
|
|
306
|
-
* Release-specific changes:
|
|
307
|
-
* * As of 4.32, it is recommended to use the [highlights](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlights) property instead. These two properties should
|
|
308
|
-
* not be used simultaneously.
|
|
309
|
-
* * As of 4.19, highlighting a feature influences the shadow of the feature as well. By default, the shadow of the
|
|
310
|
-
* highlighted feature is displayed in a darker shade.
|
|
311
|
-
*
|
|
312
|
-
* @deprecated since version 4.32. Use the [highlights](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlights) property instead.
|
|
313
|
-
* @since 4.4
|
|
314
|
-
* @see [FeatureLayerView#highlight()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight)
|
|
315
|
-
* @see [Sample: Highlight SceneLayer](https://developers.arcgis.com/javascript/latest/sample-code/highlight-scenelayer/)
|
|
316
|
-
* @example
|
|
317
|
-
* const view = new SceneView({
|
|
318
|
-
* map: map,
|
|
319
|
-
* highlightOptions: {
|
|
320
|
-
* color: [255, 255, 0, 1],
|
|
321
|
-
* haloColor: "white",
|
|
322
|
-
* haloOpacity: 0.9,
|
|
323
|
-
* fillOpacity: 0.2,
|
|
324
|
-
* shadowColor: "black",
|
|
325
|
-
* shadowOpacity: 0.5
|
|
326
|
-
* }
|
|
327
|
-
* });
|
|
328
|
-
*/
|
|
329
|
-
highlightOptions?: HighlightOptionsProperties;
|
|
330
300
|
/**
|
|
331
301
|
* The spatial reference of the view.
|
|
332
302
|
*
|
|
@@ -488,8 +458,8 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
488
458
|
* ## SceneView navigation
|
|
489
459
|
*
|
|
490
460
|
* The view can be navigated programmatically via [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) and the view properties or interactively with mouse, keyboard or touch inputs.
|
|
491
|
-
* SceneView navigation is enabled by
|
|
492
|
-
* interactions
|
|
461
|
+
* SceneView navigation is enabled by default, and includes the mouse, keyboard and touch interactions as described in the table below. Touch
|
|
462
|
+
* interactions work on any touch-enabled monitor or laptop screen.
|
|
493
463
|
*
|
|
494
464
|
* <details>
|
|
495
465
|
* <summary>Read More</summary>
|
|
@@ -527,7 +497,7 @@ export interface SceneViewProperties extends ViewProperties, DOMContainerPropert
|
|
|
527
497
|
* <span id="gamepad-navigation"></span>
|
|
528
498
|
* ## SceneView navigation with Gamepad and 3DConnexion devices
|
|
529
499
|
* Gamepad and 3Dconnexion devices, like the SpaceMouse, can be used for navigation when `view.navigation.gamepad.enabled`
|
|
530
|
-
* is set to `true`(default). Please see [GamepadInputDevice](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadInputDevice.html) for supported devices.
|
|
500
|
+
* is set to `true` (default). Please see [GamepadInputDevice](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadInputDevice.html) for supported devices.
|
|
531
501
|
*
|
|
532
502
|
* <details>
|
|
533
503
|
* <summary>Read More</summary>
|
|
@@ -935,7 +905,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
935
905
|
/**
|
|
936
906
|
* Represents the view's center point; when setting the center you may pass a
|
|
937
907
|
* [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing
|
|
938
|
-
*
|
|
908
|
+
* a longitude/latitude pair (`[-100.4593, 36.9014]`).
|
|
939
909
|
* Setting the center immediately changes the current view. For animating
|
|
940
910
|
* the view, see [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo).
|
|
941
911
|
*
|
|
@@ -990,7 +960,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
990
960
|
* a local scene. The clipping area cannot have z-values.
|
|
991
961
|
*
|
|
992
962
|
* If defined, only features that intersect the area will be displayed. The clipping area applies
|
|
993
|
-
* to all
|
|
963
|
+
* to all layer types, including the ground and the basemap. The clipping area will not increase the area beyond
|
|
994
964
|
* the union of the extents of all layers, including the ground and the basemap. To do so, add a GraphicsLayer
|
|
995
965
|
* with a custom fullExtent to the scene.
|
|
996
966
|
*
|
|
@@ -1020,7 +990,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1020
990
|
set constraints(value: ConstraintsProperties);
|
|
1021
991
|
/**
|
|
1022
992
|
* Specifies various properties of the environment's visualization in the view.
|
|
1023
|
-
* The SceneView will redraw automatically when any property of environment changes.
|
|
993
|
+
* The SceneView will redraw automatically when any property of the environment changes.
|
|
1024
994
|
*
|
|
1025
995
|
* Modifying the lighting:
|
|
1026
996
|
* ```js
|
|
@@ -1062,7 +1032,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1062
1032
|
* ```
|
|
1063
1033
|
*
|
|
1064
1034
|
* Changing the weather in the scene:
|
|
1065
|
-
* ```
|
|
1035
|
+
* ```js
|
|
1066
1036
|
* let view = new SceneView({
|
|
1067
1037
|
* container: "viewDiv",
|
|
1068
1038
|
*
|
|
@@ -1084,7 +1054,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1084
1054
|
* The extent represents the visible portion of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as
|
|
1085
1055
|
* an instance of an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
|
|
1086
1056
|
* Setting the extent immediately changes the view without animation. To animate
|
|
1087
|
-
* the view, see [
|
|
1057
|
+
* the view, see [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo).
|
|
1088
1058
|
*
|
|
1089
1059
|
* Rather than using extent to change the visible portion of the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html)
|
|
1090
1060
|
* in a SceneView, you should use [camera](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#camera) since it easily allows you to define the
|
|
@@ -1112,7 +1082,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1112
1082
|
get extent(): Extent;
|
|
1113
1083
|
set extent(value: ExtentProperties);
|
|
1114
1084
|
/**
|
|
1115
|
-
* Applies a display filter on the view for a specific set of floor levels. It
|
|
1085
|
+
* Applies a display filter on the view for a specific set of floor levels. It filters the scene display on floor-aware layers by zero or more level IDs.
|
|
1116
1086
|
*
|
|
1117
1087
|
* @since 4.19
|
|
1118
1088
|
*/
|
|
@@ -1124,35 +1094,6 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1124
1094
|
* @since 4.7
|
|
1125
1095
|
*/
|
|
1126
1096
|
get groundView(): GroundView;
|
|
1127
|
-
/**
|
|
1128
|
-
* Options for configuring the highlight. Use the highlight method on the
|
|
1129
|
-
* appropriate [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) to highlight a feature.
|
|
1130
|
-
*
|
|
1131
|
-
* Release-specific changes:
|
|
1132
|
-
* * As of 4.32, it is recommended to use the [highlights](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlights) property instead. These two properties should
|
|
1133
|
-
* not be used simultaneously.
|
|
1134
|
-
* * As of 4.19, highlighting a feature influences the shadow of the feature as well. By default, the shadow of the
|
|
1135
|
-
* highlighted feature is displayed in a darker shade.
|
|
1136
|
-
*
|
|
1137
|
-
* @deprecated since version 4.32. Use the [highlights](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlights) property instead.
|
|
1138
|
-
* @since 4.4
|
|
1139
|
-
* @see [FeatureLayerView#highlight()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight)
|
|
1140
|
-
* @see [Sample: Highlight SceneLayer](https://developers.arcgis.com/javascript/latest/sample-code/highlight-scenelayer/)
|
|
1141
|
-
* @example
|
|
1142
|
-
* const view = new SceneView({
|
|
1143
|
-
* map: map,
|
|
1144
|
-
* highlightOptions: {
|
|
1145
|
-
* color: [255, 255, 0, 1],
|
|
1146
|
-
* haloColor: "white",
|
|
1147
|
-
* haloOpacity: 0.9,
|
|
1148
|
-
* fillOpacity: 0.2,
|
|
1149
|
-
* shadowColor: "black",
|
|
1150
|
-
* shadowOpacity: 0.5
|
|
1151
|
-
* }
|
|
1152
|
-
* });
|
|
1153
|
-
*/
|
|
1154
|
-
get highlightOptions(): HighlightOptions;
|
|
1155
|
-
set highlightOptions(value: HighlightOptionsProperties);
|
|
1156
1097
|
/**
|
|
1157
1098
|
* This property contains performance information in a SceneView like global memory usage and additional details for
|
|
1158
1099
|
* layers about memory consumption and number of features.
|
|
@@ -1176,7 +1117,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1176
1117
|
* > In most scenarios it is therefore recommended to not set qualityProfile, but let it be evaluated automatically.
|
|
1177
1118
|
* > `qualityProfile` should only be set when the target devices and their capabilities that the application runs on
|
|
1178
1119
|
* > are clear, and are known to work well with the chosen profile.
|
|
1179
|
-
* > Applications should also consider
|
|
1120
|
+
* > Applications should also consider providing an option to change the quality profile, such that users can select the
|
|
1180
1121
|
* > profile that works best with their specific devices.
|
|
1181
1122
|
*
|
|
1182
1123
|
* The `low` quality profile significantly increases performance on slower browsers and devices by reducing the
|
|
@@ -1424,10 +1365,10 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1424
1365
|
*/
|
|
1425
1366
|
goTo(target: GoToTarget3D, options?: GoToOptions3D): Promise<void>;
|
|
1426
1367
|
/**
|
|
1427
|
-
* Returns
|
|
1428
|
-
* The results are organized as an array of objects containing different
|
|
1368
|
+
* Returns [hit test results](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewHitTestResult) from each layer that intersects the specified screen coordinates.
|
|
1369
|
+
* The results are organized as an array of objects containing different [result types](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewHit).
|
|
1429
1370
|
*
|
|
1430
|
-
* The following layer types will return all
|
|
1371
|
+
* The following layer types will return all [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewGraphicHit) if a hit is made on intersecting features:
|
|
1431
1372
|
* [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html),
|
|
1432
1373
|
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html),
|
|
1433
1374
|
* [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html),
|
|
@@ -1438,25 +1379,25 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1438
1379
|
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html),
|
|
1439
1380
|
* [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), and [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#graphics).
|
|
1440
1381
|
*
|
|
1441
|
-
* The [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) hit test
|
|
1442
|
-
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) hit test
|
|
1382
|
+
* The [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) hit test [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewMediaHit) contains all media elements if the hit is made on intersecting elements.
|
|
1383
|
+
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) hit test [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewRouteHit) contains all route elements if the hit is made on intersecting elements.
|
|
1443
1384
|
*
|
|
1444
|
-
* The [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html) hit test
|
|
1385
|
+
* The [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html) hit test [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewGraphicHit) contains information about the intersecting voxel if a hit is made.
|
|
1445
1386
|
*
|
|
1446
1387
|
* If no options are specified, graphics that are behind the ground surface will not be returned unless the ground surface is
|
|
1447
1388
|
* semi-transparent. Otherwise, using the [Map#ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#ground) in the include and exclude options determines
|
|
1448
1389
|
* whether the ground surface prevents hit testing graphics that are under it.
|
|
1449
1390
|
*
|
|
1450
|
-
* Release
|
|
1451
|
-
* * At version 4.24,
|
|
1452
|
-
*
|
|
1391
|
+
* Release-specific changes:
|
|
1392
|
+
* * At version 4.24, [SceneViewHitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewHitTestResult) returns an array of objects containing [graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewGraphicHit),
|
|
1393
|
+
* [media element](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewMediaHit), and [route](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewRouteHit).
|
|
1453
1394
|
* * Starting with version 4.11, if a label intersects the specified screen coordinates then the result of the hitTest will
|
|
1454
|
-
*
|
|
1395
|
+
* contain the graphic associated with that label.
|
|
1455
1396
|
*
|
|
1456
1397
|
* @param screenPoint - The screen coordinates (or native mouse event) of the click on the view.
|
|
1457
1398
|
* @param options - Intersection test options. By default the [Map#ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#ground) is excluded if its opacity
|
|
1458
1399
|
* is smaller than one.
|
|
1459
|
-
* @returns When resolved, returns an array of objects containing different
|
|
1400
|
+
* @returns When resolved, returns an array of objects containing different [result types](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-types.html#SceneViewHit).
|
|
1460
1401
|
* @see [Sample: Access features with click events](https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/)
|
|
1461
1402
|
* @see [Sample: SceneView - hitTest](https://developers.arcgis.com/javascript/latest/sample-code/sceneview-hittest/)
|
|
1462
1403
|
* @example
|
|
@@ -1502,7 +1443,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1502
1443
|
* // Fires `pointer-move` event when user clicks on "Shift"
|
|
1503
1444
|
* // key and moves the pointer on the view.
|
|
1504
1445
|
* view.on("pointer-move", ["Shift"], function(event){
|
|
1505
|
-
* let point =
|
|
1446
|
+
* let point = view.toMap({x: event.x, y: event.y});
|
|
1506
1447
|
* bufferPoint(point);
|
|
1507
1448
|
* });
|
|
1508
1449
|
* @example
|
|
@@ -1538,7 +1479,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1538
1479
|
on<Type extends EventNames<this>>(type: Type, modifiers: string[], listener: (event: this["@eventTypes"][Type]) => void): ResourceHandle;
|
|
1539
1480
|
/**
|
|
1540
1481
|
* Create a screenshot of the current view. Screenshots include only elements
|
|
1541
|
-
* that are rendered on the canvas (all geographical elements), but excludes
|
|
1482
|
+
* that are rendered on the canvas (all geographical elements), but excludes overlaid
|
|
1542
1483
|
* DOM elements (UI, popups, etc.). By default, a screenshot of the whole view
|
|
1543
1484
|
* is created. Different options allow for creating different types of screenshots,
|
|
1544
1485
|
* including taking screenshots at different aspect ratios, different resolutions
|
|
@@ -1636,7 +1577,7 @@ export default class SceneView extends SceneViewSuperclass {
|
|
|
1636
1577
|
/**
|
|
1637
1578
|
* Gets the analysis view created for the given analysis object. The returned promise resolves when
|
|
1638
1579
|
* the view for the given analysis has been created, or rejects with an error (for example
|
|
1639
|
-
* if the analysis does not belong
|
|
1580
|
+
* if the analysis does not belong to [analyses](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#analyses).
|
|
1640
1581
|
*
|
|
1641
1582
|
* @param analysis - The analysis for which to obtain the analysis view.
|
|
1642
1583
|
* @returns Resolves to an instance of the analysis view for the
|