@arcgis/core 6.0.0-next.44 → 6.0.0-next.46
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/Basemap.d.ts +2 -1
- package/Camera.d.ts +2 -1
- package/Graphic.d.ts +2 -1
- package/Ground.d.ts +2 -1
- package/Map.d.ts +2 -1
- package/PopupTemplate.d.ts +2 -1
- package/WebDocument2D.d.ts +2 -1
- package/WebScene.d.ts +2 -1
- package/analysis/Analysis.d.ts +2 -1
- package/analysis/DimensionSimpleStyle.d.ts +2 -1
- package/analysis/LengthDimension.d.ts +2 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +2 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +2 -1
- package/analysis/SlicePlane.d.ts +2 -1
- package/analysis/Viewshed.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -1
- package/arcgisGlobal.d.ts +1 -3
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d64054cd6865d3a1af78.js → 0ac38ca04285cd5ef1a0.js} +3 -3
- package/assets/esri/core/workers/chunks/{c420ab79d85e5dbddb0b.js → 3e67d50a2b2f8f837831.js} +1 -1
- package/assets/esri/core/workers/chunks/{0caaa03659f4f4e8df03.js → b3c0c9c91bcdbbb8e719.js} +1 -1
- package/basemapGallery/PortalBasemapsSource.d.ts +2 -1
- package/basemapGallery/support/BasemapItem.d.ts +2 -1
- package/chunks/AtmosphereCompositing.glsl.js +24 -6
- package/chunks/ChapmanAtmosphere.glsl.js +32 -25
- package/chunks/EmissionComposite.glsl.js +1 -1
- package/{portal/schemas → chunks}/definitions.js +1 -1
- package/chunks/webScene.js +2 -0
- package/config.js +1 -1
- package/core/Clonable.d.ts +2 -1
- package/core/Evented.d.ts +2 -1
- package/core/Identifiable.d.ts +2 -1
- package/core/JSONSupport.d.ts +2 -1
- package/core/Loadable.d.ts +2 -1
- package/core/MultiOriginJSONSupport.d.ts +2 -1
- package/core/Promise.d.ts +2 -1
- package/core/ReadOnlyMultiOriginJSONSupport.d.ts +2 -1
- package/editing/sharedTemplates/SharedTemplate.d.ts +2 -1
- package/effects/FocusArea.d.ts +2 -1
- package/effects/FocusAreaOutline.d.ts +2 -1
- package/effects/FocusAreas.d.ts +2 -1
- package/form/FormTemplate.d.ts +2 -1
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -1
- package/form/elements/inputs/attachments/Input.d.ts +2 -1
- package/geometry/Mesh.d.ts +2 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +2 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
- package/geometry/support/MeshComponent.d.ts +2 -1
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -1
- package/geometry/support/MeshLocalVertexSpace.d.ts +2 -1
- package/geometry/support/MeshMaterial.d.ts +2 -1
- package/geometry/support/MeshTexture.d.ts +2 -1
- package/geometry/support/MeshTextureTransform.d.ts +2 -1
- package/geometry/support/MeshTransform.d.ts +2 -1
- package/geometry/support/MeshVertexAttributes.d.ts +2 -1
- package/interfaces.d.ts +0 -82
- package/kernel.js +1 -1
- package/layerList/Item.d.ts +2 -1
- package/layerList/ItemPanel.d.ts +2 -1
- package/layerList/TableItem.d.ts +2 -1
- package/layerList/TableItemPanel.d.ts +2 -1
- package/layers/AnnotationFeatureLayer.d.ts +2 -1
- package/layers/BaseDynamicLayer.d.ts +2 -1
- package/layers/BaseElevationLayer.d.ts +2 -1
- package/layers/BaseTileLayer.d.ts +2 -1
- package/layers/BingMapsLayer.d.ts +2 -1
- package/layers/BuildingSceneLayer.d.ts +2 -1
- package/layers/CSVLayer.d.ts +2 -1
- package/layers/CatalogLayer.d.ts +2 -1
- package/layers/DimensionFeatureLayer.d.ts +2 -1
- package/layers/DimensionLayer.d.ts +2 -1
- package/layers/ElevationLayer.d.ts +2 -1
- package/layers/FeatureLayer.d.ts +2 -1
- package/layers/GaussianSplatLayer.d.ts +2 -1
- package/layers/GeoJSONLayer.d.ts +2 -1
- package/layers/GeoRSSLayer.d.ts +2 -1
- package/layers/GeospatialPDFLayer.d.ts +2 -1
- package/layers/GraphicsLayer.d.ts +2 -1
- package/layers/GroupLayer.d.ts +2 -1
- package/layers/ImageryLayer.d.ts +2 -1
- package/layers/ImageryTileLayer.d.ts +2 -1
- package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -1
- package/layers/IntegratedMeshLayer.d.ts +2 -1
- package/layers/KMLLayer.d.ts +2 -1
- package/layers/KnowledgeGraphLayer.d.ts +2 -1
- package/layers/Layer.d.ts +2 -1
- package/layers/LineOfSightLayer.d.ts +2 -1
- package/layers/LinkChartLayer.d.ts +2 -1
- package/layers/MapImageLayer.d.ts +2 -1
- package/layers/MapNotesLayer.d.ts +2 -1
- package/layers/MediaLayer.d.ts +2 -1
- package/layers/OGCFeatureLayer.d.ts +2 -1
- package/layers/ParquetLayer.d.ts +2 -1
- package/layers/PointCloudLayer.d.ts +2 -1
- package/layers/RouteLayer.d.ts +2 -1
- package/layers/SceneLayer.d.ts +2 -1
- package/layers/SketchLayer.d.ts +2 -1
- package/layers/StreamLayer.d.ts +2 -1
- package/layers/SubtypeGroupLayer.d.ts +2 -1
- package/layers/TileLayer.d.ts +2 -1
- package/layers/UnknownLayer.d.ts +2 -1
- package/layers/UnsupportedLayer.d.ts +2 -1
- package/layers/VectorTileLayer.d.ts +2 -1
- package/layers/VideoLayer.d.ts +2 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +2 -1
- package/layers/VoxelLayer.d.ts +2 -1
- package/layers/WCSLayer.d.ts +2 -1
- package/layers/WFSLayer.d.ts +3 -2
- package/layers/WMSLayer.d.ts +2 -1
- package/layers/WMTSLayer.d.ts +2 -1
- package/layers/WebTileLayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -1
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -1
- package/layers/mixins/APIKeyMixin.d.ts +2 -1
- package/layers/mixins/ArcGISCachedService.d.ts +2 -1
- package/layers/mixins/ArcGISImageService.d.ts +2 -1
- package/layers/mixins/ArcGISMapService.d.ts +2 -1
- package/layers/mixins/BlendLayer.d.ts +2 -1
- package/layers/mixins/CustomParametersMixin.d.ts +2 -1
- package/layers/mixins/DataSeriesLayer.d.ts +2 -1
- package/layers/mixins/DisplayFilteredLayer.d.ts +2 -1
- package/layers/mixins/EditBusLayer.d.ts +2 -1
- package/layers/mixins/FeatureEffectLayer.d.ts +2 -1
- package/layers/mixins/FeatureLayerBase.d.ts +2 -1
- package/layers/mixins/FeatureReductionLayer.d.ts +2 -1
- package/layers/mixins/OperationalLayer.d.ts +2 -1
- package/layers/mixins/OrderedLayer.d.ts +2 -1
- package/layers/mixins/PortalLayer.d.ts +2 -1
- package/layers/mixins/PublishableLayer.d.ts +2 -1
- package/layers/mixins/RasterPresetRendererMixin.d.ts +2 -1
- package/layers/mixins/RefreshableLayer.d.ts +2 -1
- package/layers/mixins/ReloadableLayer.d.ts +2 -1
- package/layers/mixins/ScaleRangeLayer.d.ts +2 -1
- package/layers/mixins/SceneService.d.ts +2 -1
- package/layers/mixins/SublayersOwner.d.ts +2 -1
- package/layers/mixins/TemporalLayer.d.ts +2 -1
- package/layers/mixins/TiledImagery.d.ts +2 -1
- package/layers/mixins/TrackableLayer.d.ts +2 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +2 -1
- package/layers/support/AnnotationFeatureSublayer.d.ts +2 -1
- package/layers/support/BuildingFilterMode.d.ts +2 -1
- package/layers/support/BuildingSummaryStatistics.d.ts +2 -1
- package/layers/support/ControlPointsGeoreference.d.ts +2 -1
- package/layers/support/DisplayFilter.d.ts +2 -1
- package/layers/support/DisplayFilterInfo.d.ts +2 -1
- package/layers/support/EditFieldsInfo.d.ts +2 -1
- package/layers/support/ExpressionInfo.d.ts +2 -1
- package/layers/support/FeatureReductionBinning.d.ts +2 -1
- package/layers/support/FeatureReductionCluster.d.ts +2 -1
- package/layers/support/FeatureTemplate.d.ts +2 -1
- package/layers/support/FeatureType.d.ts +2 -1
- package/layers/support/FieldConfiguration.d.ts +2 -1
- package/layers/support/FieldFormat.d.ts +2 -1
- package/layers/support/GeometryEncodingLocation.d.ts +2 -1
- package/layers/support/GeometryEncodingWkb.d.ts +2 -1
- package/layers/support/GeometryFieldsInfo.d.ts +2 -1
- package/layers/support/KMLSublayer.d.ts +2 -1
- package/layers/support/LocalMediaElementSource.d.ts +2 -1
- package/layers/support/MediaElementBase.d.ts +2 -1
- package/layers/support/ParquetFilesData.d.ts +2 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -1
- package/layers/support/PlaybackInfo.d.ts +2 -1
- package/layers/support/PortalItemData.d.ts +2 -1
- package/layers/support/Relationship.d.ts +2 -1
- package/layers/support/SceneModifications.d.ts +2 -1
- package/layers/support/Sublayer.d.ts +2 -1
- package/layers/support/Subtype.d.ts +2 -1
- package/layers/support/SubtypeSublayer.d.ts +2 -1
- package/layers/support/SymbolLayerDrawing.d.ts +2 -1
- package/layers/support/TelemetryData.d.ts +2 -1
- package/layers/support/TelemetryDisplay.d.ts +2 -1
- package/layers/support/TimeInfo.d.ts +2 -1
- package/layers/support/TimeSeriesCalculationMethod.d.ts +2 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +2 -1
- package/layers/support/TimeSeriesInfo.d.ts +2 -1
- package/layers/support/TrackInfo.d.ts +2 -1
- package/layers/support/TrackPartInfo.d.ts +2 -1
- package/layers/support/VideoTimeExtent.d.ts +2 -1
- package/layers/support/WMSSublayer.d.ts +2 -1
- package/layers/support/schemaValidator.js +1 -1
- package/layers/voxel/VoxelColorStop.d.ts +2 -1
- package/layers/voxel/VoxelDynamicSection.d.ts +2 -1
- package/layers/voxel/VoxelIsosurface.d.ts +2 -1
- package/layers/voxel/VoxelOpacityStop.d.ts +2 -1
- package/layers/voxel/VoxelRangeFilter.d.ts +2 -1
- package/layers/voxel/VoxelSlice.d.ts +2 -1
- package/layers/voxel/VoxelTransferFunctionStyle.d.ts +2 -1
- package/layers/voxel/VoxelUniqueValue.d.ts +2 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +2 -1
- package/linkChart/LayoutSettings.d.ts +2 -1
- package/linkChart/LinkChartProperties.d.ts +2 -1
- package/linkChart/NonspatialDataDisplay.d.ts +2 -1
- package/linkChart/OrganicLayoutSettings.d.ts +2 -1
- package/linkChart/RootedLayoutSettings.d.ts +2 -1
- package/networks/Network.d.ts +2 -1
- package/networks/support/Circuit.d.ts +2 -1
- package/networks/support/CircuitSection.d.ts +2 -1
- package/networks/support/NamedTraceConfiguration.d.ts +2 -1
- package/networks/support/Subcircuit.d.ts +2 -1
- package/networks/support/TraceConfiguration.d.ts +2 -1
- package/networks/support/UNTraceConfiguration.d.ts +2 -1
- package/package.json +5 -5
- package/parcelFabric/ParcelFabric.d.ts +2 -1
- package/popup/FeatureModel.d.ts +2 -1
- package/popup/FeaturesModel.d.ts +2 -1
- package/popup/FieldInfo.d.ts +2 -1
- package/popup/content/AttachmentsContent.d.ts +2 -1
- package/popup/content/RelationshipContent.d.ts +2 -1
- package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -1
- package/popup/support/AttachmentsOrderByInfo.d.ts +2 -1
- package/popup/support/FieldInfoFormat.d.ts +2 -1
- package/popup/support/UtilityNetworkAssociationType.d.ts +2 -1
- package/portal/Portal.d.ts +2 -1
- package/portal/PortalItem.d.ts +2 -1
- package/renderers/ClassBreaksRenderer.d.ts +2 -1
- package/renderers/DictionaryRenderer.d.ts +2 -1
- package/renderers/DotDensityRenderer.d.ts +2 -1
- package/renderers/FlowRenderer.d.ts +8 -6
- package/renderers/PieChartRenderer.d.ts +2 -1
- package/renderers/SimpleRenderer.d.ts +2 -1
- package/renderers/UniqueValueRenderer.d.ts +2 -1
- package/renderers/VectorFieldRenderer.d.ts +2 -1
- package/renderers/mixins/VisualVariablesMixin.d.ts +2 -1
- package/renderers/support/HeatmapLegendOptions.d.ts +2 -1
- package/renderers/support/OthersCategory.d.ts +2 -1
- package/renderers/support/RasterPresetRenderer.d.ts +2 -1
- package/renderers/support/RendererLegendOptions.d.ts +2 -1
- package/renderers/support/UniqueValue.d.ts +2 -1
- package/renderers/support/UniqueValueClass.d.ts +2 -1
- package/renderers/support/UniqueValueGroup.d.ts +2 -1
- package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +2 -1
- package/rest/featureService/FeatureService.d.ts +2 -1
- package/rest/layerSources/DynamicDataLayer.d.ts +2 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +2 -1
- package/rest/networks/support/TraceLocation.d.ts +2 -1
- package/rest/print.js +1 -1
- package/rest/support/AttributeBinsFeatureSet.d.ts +2 -1
- package/rest/support/AttributeBinsGrouping.d.ts +2 -1
- package/rest/support/AttributeBinsQuery.d.ts +2 -1
- package/rest/support/AutoIntervalBinParameters.d.ts +2 -1
- package/rest/support/BinParametersBase.d.ts +2 -1
- package/rest/support/CameraInfo.d.ts +2 -1
- package/rest/support/CameraInfoMixin.d.ts +2 -1
- package/rest/support/ClosestFacilityParameters.d.ts +2 -1
- package/rest/support/DataLayer.d.ts +2 -1
- package/rest/support/DateBinTimeInterval.d.ts +2 -1
- package/rest/support/DirectionLine.d.ts +2 -1
- package/rest/support/DirectionPoint.d.ts +2 -1
- package/rest/support/FindImagesParameters.d.ts +2 -1
- package/rest/support/FixedIntervalBinParameters.d.ts +2 -1
- package/rest/support/ImageBoundaryParameters.d.ts +2 -1
- package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
- package/rest/support/ImageInspectionInfo.d.ts +2 -1
- package/rest/support/ImageToMapMultirayParameters.d.ts +2 -1
- package/rest/support/ImageToMapParameters.d.ts +2 -1
- package/rest/support/ImageUrlParameters.d.ts +2 -1
- package/rest/support/ImageVolumeParameters.d.ts +2 -1
- package/rest/support/LastMileDeliveryParameters.d.ts +2 -1
- package/rest/support/LocateSettingBase.d.ts +2 -1
- package/rest/support/LocateSettingSource.d.ts +2 -1
- package/rest/support/LocateSettings.d.ts +2 -1
- package/rest/support/LocateSettingsOverrides.d.ts +2 -1
- package/rest/support/MapToImageParameters.d.ts +2 -1
- package/rest/support/NetworkUrl.d.ts +2 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +2 -1
- package/rest/support/OutDistance.d.ts +2 -1
- package/rest/support/PointBarrier.d.ts +2 -1
- package/rest/support/PolygonBarrier.d.ts +2 -1
- package/rest/support/PolylineBarrier.d.ts +2 -1
- package/rest/support/RouteInfo.d.ts +2 -1
- package/rest/support/RouteParameters.d.ts +2 -1
- package/rest/support/ServiceAreaParameters.d.ts +2 -1
- package/rest/support/Stop.d.ts +2 -1
- package/rest/support/TravelMode.d.ts +2 -1
- package/support/LayersMixin.d.ts +2 -1
- package/support/TablesMixin.d.ts +2 -1
- package/support/actions/ActionBase.d.ts +2 -1
- package/symbols/LineStyleMarker3D.d.ts +2 -1
- package/symbols/patterns/LinePattern3D.d.ts +2 -1
- package/symbols/patterns/Pattern3D.d.ts +2 -1
- package/symbols/support/ElevationInfo.d.ts +2 -1
- package/symbols/support/OccludedVisibility.d.ts +2 -1
- package/symbols/support/Symbol3DEmissive.d.ts +2 -1
- package/symbols/support/Symbol3DMaterial.d.ts +2 -1
- package/symbols/support/Symbol3DTextBackground.d.ts +2 -1
- package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -1
- package/tables/elements/AttributeTableFieldElement.d.ts +2 -1
- package/tables/elements/AttributeTableGroupElement.d.ts +2 -1
- package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -1
- package/tables/support/FieldOrder.d.ts +2 -1
- package/time/TimeInterval.d.ts +2 -1
- package/versionManagement/VersionManagementService.d.ts +2 -1
- package/versionManagement/VersioningState.d.ts +2 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
- package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/DragManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/utils.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +2 -1
- package/views/3d/environment/VirtualLighting.d.ts +2 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +3 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +14 -13
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +14 -4
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +2 -0
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionFader.js +2 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/IndexLayout.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/BreakpointsOwner.d.ts +2 -1
- package/views/DOMContainer.d.ts +2 -1
- package/views/PopupView.d.ts +2 -1
- package/views/SceneView.d.ts +2 -1
- package/views/Theme.d.ts +2 -1
- package/views/VideoView.d.ts +2 -1
- package/views/View.d.ts +2 -1
- package/views/View2D.d.ts +2 -1
- package/views/Viewport2DMixin.d.ts +2 -1
- package/views/analysis/AnalysisView.d.ts +2 -1
- package/views/draw/DrawAction.d.ts +2 -1
- package/views/interactive/GraphicManipulator.d.ts +4 -0
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +2 -1
- package/views/layers/FeatureLikeLayerView.d.ts +0 -32
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/GraphicsLayerView.d.ts +0 -32
- package/views/layers/GraphicsLayerView.js +1 -1
- package/views/layers/ImageryLayerView.d.ts +1 -62
- package/views/layers/LayerView.d.ts +2 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/PointCloudLayerView.d.ts +2 -1
- package/views/ui/UI.d.ts +1 -12
- package/views/webgl/Program.js +2 -2
- package/webdoc/GeotriggersInfo.d.ts +2 -1
- package/webdoc/IPSInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +2 -1
- package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFilter.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +2 -1
- package/webdoc/geotriggersInfo/Geotrigger.d.ts +2 -1
- package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +2 -1
- package/webdoc/ips/AppleIPSProperties.d.ts +2 -1
- package/webdoc/ips/Configuration.d.ts +2 -1
- package/webdoc/ips/GNSSProperties.d.ts +2 -1
- package/webdoc/ips/PathSnappingProperties.d.ts +2 -1
- package/webdoc/ips/PositioningService.d.ts +2 -1
- package/webdoc/ips/SmoothingProperties.d.ts +2 -1
- package/webdoc/support/SlideThumbnail.d.ts +2 -1
- package/webmap/Bookmark.d.ts +2 -1
- package/webmap/InitialViewProperties.d.ts +2 -1
- package/webscene/Glow.d.ts +2 -1
- package/webscene/InitialViewProperties.d.ts +2 -1
- package/webscene/Presentation.d.ts +2 -1
- package/webscene/Slide.d.ts +2 -1
- package/webscene/SlideLegendInfo.d.ts +2 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/webscene/support/Description.d.ts +2 -1
- package/webscene/support/FeatureReference.d.ts +2 -1
- package/webscene/support/FeatureReferenceId.d.ts +2 -1
- package/webscene/support/LayerReference.d.ts +2 -1
- package/webscene/support/SlideElements.d.ts +2 -1
- package/webscene/support/SlideEnvironment.d.ts +2 -1
- package/webscene/support/SlideGround.d.ts +2 -1
- package/webscene/support/SlidePopupInfo.d.ts +2 -1
- package/webscene/support/SlideVisibleLayer.d.ts +2 -1
- package/webscene/support/Title.d.ts +2 -1
- package/webscene/support/schemaValidator.js +1 -1
- package/webscene/version.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +2 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -1
- package/widgets/BasemapLayerList.d.ts +2 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -1
- package/widgets/Bookmarks.d.ts +2 -1
- package/widgets/CatalogLayerList.d.ts +2 -1
- package/widgets/Compass/CompassViewModel.d.ts +2 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +2 -1
- package/widgets/Feature/FeatureViewModel.d.ts +2 -1
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +2 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +2 -1
- package/widgets/FeatureTable/support/ColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +2 -1
- package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/TableTemplate.d.ts +2 -1
- package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +2 -1
- package/widgets/Features/FeaturesViewModel.d.ts +2 -1
- package/widgets/FloorFilter/FloorFilterViewModel.d.ts +2 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -1
- package/widgets/LayerList/ListItem.d.ts +2 -1
- package/widgets/LayerList/ListItemPanel.d.ts +2 -1
- package/widgets/LayerList.d.ts +2 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +2 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -1
- package/widgets/Search/SearchSource.d.ts +2 -1
- package/widgets/Search/SearchViewModel.d.ts +2 -1
- package/widgets/TableList/ListItem.d.ts +2 -1
- package/widgets/TableList/ListItemPanel.d.ts +2 -1
- package/widgets/TableList.d.ts +2 -1
- package/widgets/Widget.d.ts +2 -1
- package/widgets/support/GeolocationPositioning.d.ts +2 -1
- package/widgets/support/GoTo.d.ts +2 -1
- package/widgets/types.d.ts +0 -21
- package/assets/esri/widgets/Attribution/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-TW.json +0 -1
- package/chunks/CloudsComposition.glsl.js +0 -3
- package/popup/content.d.ts +0 -192
- package/popup/content.js +0 -2
- package/portal/schemas/buildingSceneLayerItem.js +0 -2
- package/portal/schemas/gaussianSplatLayerItem.js +0 -2
- package/portal/schemas/integratedMesh3DTilesLayerItem.js +0 -2
- package/portal/schemas/integratedMeshLayerItem.js +0 -2
- package/portal/schemas/pointCloudLayerItem.js +0 -2
- package/portal/schemas/sceneLayerItem.js +0 -2
- package/portal/schemas/webScene.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsCompositionTechnique.js +0 -2
- package/widgets/Attribution/AttributionViewModel.d.ts +0 -41
- package/widgets/Attribution/AttributionViewModel.js +0 -2
- package/widgets/Attribution.d.ts +0 -105
- package/widgets/Attribution.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import"../../core/has.js";import t from"../../core/Logger.js";import{getOrCreateMapValue as n}from"../../core/MapUtils.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import{watch as i,syncAndInitial as a,on as o,whenOnce as s}from"../../core/reactiveUtils.js";import{sqlOr as c,sqlIn as l,sqlAnd as u}from"../../core/sql.js";import{property as d,subclass as f}from"../../core/accessorSupport/decorators.js";import{getPopupProvider as p}from"../../graphic/getPopupProvider.js";import{getFeatureIdInfoFieldNames as m}from"../../layers/graphics/data/FeatureIdInfo.js";import{systemIsSpatialFieldName as h}from"../../layers/knowledgeGraph/constants.js";import{getEffectiveDisplayFilter as g}from"../../layers/support/displayFilterUtils.js";import _ from"../../layers/support/FeatureEffect.js";import v from"../../layers/support/FeatureFilter.js";import{getSignedInUser as y,layerRequiresGeometryZM as b}from"../../layers/support/featureLayerUtils.js";import{fetchFeaturePopupFeatures as x,loadFeaturePopupArcadeModules as S}from"../../layers/support/featurePopupQueryUtils.js";import{fixFields as C,unpackFieldNames as w,collectLabelingFields as T,collectElevationFields as E,collectFilterFields as D,collectFeatureReductionFields as O,collectOrderByInfos as k,collectFields as A,collectTrackInfoFields as j,collectDisplayFilterFields as M,collectField as N,featureHasFields as P}from"../../layers/support/fieldUtils.js";import{getFloorFilterClause as F}from"../../layers/support/floorFilterUtils.js";import{collectRelativeTimeFields as I}from"../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as L}from"../../networks/support/networkFieldUtils.js";import R from"../../rest/support/Query.js";import{createFeatureIdInfo as z}from"../2d/layers/features/layerAdapters/featureServiceUtils.js";import B from"./LayerView.js";import{getFetchPopupTemplate as V,getRequiredFields as H}from"./support/popupUtils.js";import{WhereClauseVisitor as U}from"./support/WhereClauseVisitor.js";let W=class extends B{constructor(){super(...arguments),this._updatingRequiredPromise=null,this._defaultReturnZ=!1,this.hasZ=!1,this.hasM=!1,this.filter=null,this.layer=null,this.requiresCurrentUser=!1,this.requiredFields=[],this.view=null}initialize(){this.addHandles([i(()=>{let e=this.layer,t=this.view;return[e&&`elevationInfo`in e?e.elevationInfo?.featureExpressionInfo:null,e&&`displayField`in e?e.displayField:null,e&&`timeInfo`in e&&e.timeInfo,e&&`renderer`in e&&e.renderer,e&&`returnZ`in e&&e.returnZ,e&&`returnM`in e&&e.returnM,e&&`capabilities`in e&&e.capabilities,e&&`labelingInfo`in e&&e.labelingInfo,e&&`floorInfo`in e&&e.floorInfo,t?.requiredFieldsOptions?.featureTitleFields&&e&&`featureTitleFields`in e&&e.featureTitleFields,t?.requiredFieldsOptions?.utilityNetworkFields&&L(t,e),e&&`displayFilterInfo`in e&&e.displayFilterInfo,this.displayFilterEnabled,this.filter,this.featureEffect,this.timeExtent,this._getHighlightFilterGroups(),e?.type===`knowledge-graph-sublayer`&&e.parentCompositeLayer?.type===`link-chart`&&e.parentCompositeLayer.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode]},()=>this._updateDataRequirements(),a),o(()=>this.view?.floors,`change`,()=>this._updateDataRequirements()),o(()=>(this.layer&&`displayFilterInfo`in this.layer?this.layer.displayFilterInfo:null)?.filters,`change`,()=>this._updateDataRequirements()),o(()=>this.layer&&`sublayers`in this.layer?this.layer.sublayers:null,`change`,()=>this._updateDataRequirements())])}get availableFields(){if(!this.layer)return[];let{layer:e,layer:{fieldsIndex:t},requiredFields:n}=this;return`outFields`in e&&e.outFields?C(t,[...w(t,e.outFields),...n]):C(t,n)}get displayFilterEnabled(){return(this.view?.displayFilterEnabled??!0)&&(!(`displayFilterEnabled`in this.layer)||(this.layer?.displayFilterEnabled??!0))}get effectiveDisplayFilter(){let e=this.layer;return!(`displayFilterInfo`in e)||!this.displayFilterEnabled||!e.displayFilterInfo?null:g(e.displayFilterInfo,this.view)}get effectiveDisplayFilterClause(){let e=this.effectiveDisplayFilter?.where??null;return e&&this.highlightIds.length>0?c(e,l(this.layer.objectIdField,this.highlightIds)):e}get featureEffect(){return this.layer&&`featureEffect`in this.layer?this.layer.featureEffect:null}set featureEffect(e){this._override(`featureEffect`,e)}get highlightOptions(){}set highlightOptions(e){}get maximumNumberOfFeatures(){return 0}set maximumNumberOfFeatures(e){t.getLogger(this).error(`#maximumNumberOfFeatures=`,`Setting maximum number of features is not supported`)}get maximumNumberOfFeaturesExceeded(){return!1}get signedInUser(){return this.layer?.url?y(this.layer.url):Promise.resolve(null)}createQuery(){let e={outFields:[`*`],returnGeometry:!0,outSpatialReference:this.view.spatialReference},t=this.filter==null?new R(e):this.filter.createQuery(e);if(`floorInfo`in this.layer&&this.layer.floorInfo&&(t.where=u(t.where,F(this))),this.displayFilterEnabled&&(t.where=u(t.where,this.effectiveDisplayFilter?.where)),this.timeExtent!=null&&(t.timeExtent=t.timeExtent==null?this.timeExtent.clone():t.timeExtent.intersection(this.timeExtent)),`capabilities`in this.layer){let e=this.layer.capabilities?.data;`returnZ`in this.layer&&e?.supportsZ&&this.layer.returnZ!=null&&(t.returnZ=this.layer.returnZ),`returnM`in this.layer&&e?.supportsM&&this.layer.returnM!=null&&(t.returnM=this.layer.returnM)}return`unplacedAnnotationsVisible`in this.layer&&!this.layer.unplacedAnnotationsVisible&&(t.where=u(t.where,`${this.layer.statusField} = 0`)),t}createAggregateQuery(){let e={outFields:[`*`],returnGeometry:!0,outSpatialReference:this.view.spatialReference};return new R(e)}async patchFeaturesForPopup(e,t){let r=[],i=new Set,a=new Map;for(let o of e){let e=n(a,o.origin,()=>{let e=p(o.origin);return V(e,{...t,checkPopupEnabled:!0})});e&&(r.push(o),i.add(e))}if(r.length===0||i.size===0)return[];let o=await this._createPopupQuery(i,t);return await x(this.layer,r,o,{hasRequiredFields:(e,t)=>this._popupFeatureHasRequiredFields(e,t),onExceededTransferLimit:e=>{let n=t?.diagnostics;if(n&&e.length){n.layerLimitExceeded??=new Set;for(let t of e)t.origin&&n.layerLimitExceeded.add(t.origin)}},...t})}_updateDataRequirements(){let e=Promise.all([s(()=>!(`reloading`in this.layer&&this.layer.reloading)),this._updateRequiredFields(),this._updateClientWhereClauseRequirements(),this._updateHasZM()]).then(()=>{});return this._updatingRequiredPromise=e,e.then(()=>{this._updatingRequiredPromise===e&&(this._updatingRequiredPromise=null)}),e}async _updateClientWhereClauseRequirements(){if(!this.layer||!this.view)return;let{layer:e}=this,n=new U(e.fieldsIndex);n.visitFilter(this.filter),`featureReduction`in e&&n.visitFeatureReduction(e.featureReduction),`labelingInfo`in e&&n.visitLabelingInfo(e.labelsVisible,e.labelingInfo),`trackInfo`in e&&n.visitTrackInfo(e.trackInfo),this.view.type===`2d`&&(n.visitFilter(this.featureEffect?.filter),`featureReduction`in e&&n.visitFeatureReduction(e.featureReduction),`displayFilterInfo`in e&&n.visitDisplayFilter(this.displayFilterEnabled,e.displayFilterInfo));for(let e of this._getHighlightFilterGroups())for(let t of e.filters)n.visitFilter(t);if(e.type===`subtype-group`)for(let t of e.sublayers)n.visitLabelingInfo(t.labelsVisible,t.labelingInfo);`definitionExpression`in e&&`capabilities`in e&&e.capabilities?.query.relativeTimeBinWindow&&n.visitRelativeTimeQuery(e.definitionExpression);try{let e=await n.finish();this._set(`requiresCurrentUser`,e.requiresCurrentUser)}catch(e){t.getLogger(this).error(e)}}async _updateRequiredFields(){if(!this.layer||!this.view)return;let e=this.view.type===`3d`,{layer:n,layer:{fieldsIndex:r}}=this,i=`renderer`in n&&n.renderer,a=`orderBy`in n&&n.orderBy,o=`featureReduction`in n?n.featureReduction:null,s=new Set,c=[i?i.collectRequiredFields(s,r):null,T(s,n),e&&`elevationInfo`in n?E(s,n):null,this.filter==null?null:D(s,n,this.filter),!e&&this.featureEffect!=null?D(s,n,this.featureEffect.filter):null,!e&&o?O(s,n,o):null,(!e||n.type===`catalog-footprint`)&&a?k(s,n,a):null,`definitionExpression`in n&&`capabilities`in n&&n.capabilities?.query.relativeTimeBinWindow?I(s,n.fieldsIndex,n.definitionExpression):null];for(let e of this._getHighlightFilterGroups())for(let t of e.filters)c.push(D(s,n,t));if(`timeInfo`in n&&n.timeInfo&&this.timeExtent&&A(s,n.fieldsIndex,[n.timeInfo.startField,n.timeInfo.endField]),`timeInfo`in n&&n.timeInfo&&`trackInfo`in n&&n.trackInfo){let{trackInfo:e}=n;A(s,n.fieldsIndex,[n.timeInfo.trackIdField]),(n.type===`feature`||e.timeField===`startTimeField`)&&A(s,n.fieldsIndex,[n.timeInfo.startField]),e.timeField===`endTimeField`&&A(s,n.fieldsIndex,[n.timeInfo.endField]),await j(s,n)}if(`floorInfo`in n&&n.floorInfo&&A(s,n.fieldsIndex,[n.floorInfo.floorField]),`featureTitleFields`in n&&this.view?.requiredFieldsOptions?.featureTitleFields&&n.featureTitleFields&&A(s,n.fieldsIndex,n.featureTitleFields),n.type===`feature`&&n.globalIdField&&this.view?.requiredFieldsOptions?.globalIdField&&A(s,n.fieldsIndex,[n.globalIdField]),(n.type===`feature`||n.type===`subtype-group`)&&this.view?.requiredFieldsOptions?.utilityNetworkFields&&A(s,n.fieldsIndex,L(this.view,n)),this.displayFilterEnabled&&`displayFilterInfo`in n&&c.push(M(s,n,n.displayFilterInfo)),n.type===`feature`&&e&&n.infoFor3D!=null&&(n.globalIdField??t.getLogger(this).error(`globalIdField missing on 3DObjectFeatureLayer`),A(s,n.fieldsIndex,[n.globalIdField])),n.type===`subtype-group`){N(s,r,n.subtypeField);let e=n.sublayers.map(e=>Promise.all([e.renderer?.collectRequiredFields(s,r),T(s,e)]));c.push(Promise.all(e))}if(n.type===`annotation-feature`&&A(s,r,[n.subtypeField,n.elementField,n.statusField]),n.type===`dimension-feature`&&A(s,r,n.symbolFields),n.type===`catalog-footprint`&&n.parent){let e=n.parent;A(s,r,[e.itemNameField,e.itemSourceField,e.itemTypeField,e.maxScaleField,e.minScaleField])}n.type===`knowledge-graph-sublayer`&&n.parentCompositeLayer?.type===`link-chart`&&N(s,r,h);let l=await Promise.allSettled(c);if(e)N(s,r,n.objectIdField);else for(let e of m(z(n)))N(s,r,e);e&&`displayField`in n&&n.displayField&&N(s,r,n.displayField);for(let e of l)e.status===`rejected`&&t.getLogger(this).error(e.reason);let u=Array.from(s).sort();this._set(`requiredFields`,u)}async _updateHasZM(){let{layer:e}=this;if(!e||!this.view)return;let t=!1,n=!1;if(`capabilities`in e&&e.capabilities){let{data:r}=e.capabilities;t=r.supportsZ,n=r.supportsM}this._set(`hasZ`,t),this._set(`hasM`,n);let{returnZ:r,returnM:i}=await b(e);t&&=r??this._defaultReturnZ,n&&=i??!1,this.hasZ!==t&&this._set(`hasZ`,t),this.hasM!==n&&this._set(`hasM`,n)}_popupFeatureHasRequiredFields(e,t){return P(e,t)}async _createPopupQuery(e,t){let n=this.layer.createQuery(),i=new Set,a=this.layer.geometryType===`point`;for(let n of e){if(!a){let e=await S(n);r(t),a=(e&&e.arcadeUtils.hasGeometryOperations(n))??!1}let e=await H(this.layer,n);r(t);for(let t of e)i.add(t)}return n.where=`1=1`,n.returnGeometry=a,n.returnZ=a,n.returnM=a,n.outFields=Array.from(i),n.outSpatialReference=this.view.spatialReference,`floorInfo`in this.layer&&this.layer.floorInfo&&(n.where=u(n.where,F(this))),n}canResume(){return!(!super.canResume()||this.timeExtent!=null&&this.timeExtent.isEmpty)}_getHighlightFilterGroups(){return[]}getTest(){}get test(){}};e([d()],W.prototype,`_updatingRequiredPromise`,void 0),e([d()],W.prototype,`_defaultReturnZ`,void 0),e([d({readOnly:!0})],W.prototype,`availableFields`,null),e([d({readOnly:!0})],W.prototype,`hasZ`,void 0),e([d({readOnly:!0})],W.prototype,`hasM`,void 0),e([d({readOnly:!0})],W.prototype,`displayFilterEnabled`,null),e([d({readOnly:!0})],W.prototype,`effectiveDisplayFilter`,null),e([d({readOnly:!0})],W.prototype,`effectiveDisplayFilterClause`,null),e([d({type:_})],W.prototype,`featureEffect`,null),e([d({type:v})],W.prototype,`filter`,void 0),e([d()],W.prototype,`layer`,void 0),e([d({type:Number})],W.prototype,`maximumNumberOfFeatures`,null),e([d({readOnly:!0,type:Boolean})],W.prototype,`maximumNumberOfFeaturesExceeded`,null),e([d()],W.prototype,`requiresCurrentUser`,void 0),e([d({readOnly:!0})],W.prototype,`requiredFields`,void 0),e([d({readOnly:!0})],W.prototype,`signedInUser`,null),e([d()],W.prototype,`view`,void 0),W=e([f(`esri.views.layers.FeatureLikeLayerView`)],W);const G=W;export{G as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import"../../core/has.js";import t from"../../core/Logger.js";import{getOrCreateMapValue as n}from"../../core/MapUtils.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import{watch as i,syncAndInitial as a,on as o,whenOnce as s}from"../../core/reactiveUtils.js";import{sqlOr as c,sqlIn as l,sqlAnd as u}from"../../core/sql.js";import{property as d,subclass as f}from"../../core/accessorSupport/decorators.js";import{getPopupProvider as p}from"../../graphic/getPopupProvider.js";import{getFeatureIdInfoFieldNames as m}from"../../layers/graphics/data/FeatureIdInfo.js";import{systemIsSpatialFieldName as h}from"../../layers/knowledgeGraph/constants.js";import{getEffectiveDisplayFilter as g}from"../../layers/support/displayFilterUtils.js";import _ from"../../layers/support/FeatureEffect.js";import v from"../../layers/support/FeatureFilter.js";import{getSignedInUser as y,layerRequiresGeometryZM as b}from"../../layers/support/featureLayerUtils.js";import{fetchFeaturePopupFeatures as x,loadFeaturePopupArcadeModules as S}from"../../layers/support/featurePopupQueryUtils.js";import{fixFields as C,unpackFieldNames as w,collectLabelingFields as T,collectElevationFields as E,collectFilterFields as D,collectFeatureReductionFields as O,collectOrderByInfos as k,collectFields as A,collectTrackInfoFields as j,collectDisplayFilterFields as M,collectField as N,featureHasFields as P}from"../../layers/support/fieldUtils.js";import{getFloorFilterClause as F}from"../../layers/support/floorFilterUtils.js";import{collectRelativeTimeFields as I}from"../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as L}from"../../networks/support/networkFieldUtils.js";import R from"../../rest/support/Query.js";import{createFeatureIdInfo as z}from"../2d/layers/features/layerAdapters/featureServiceUtils.js";import B from"./LayerView.js";import{getFetchPopupTemplate as V,getRequiredFields as H}from"./support/popupUtils.js";import{WhereClauseVisitor as U}from"./support/WhereClauseVisitor.js";let W=class extends B{constructor(){super(...arguments),this._updatingRequiredPromise=null,this._defaultReturnZ=!1,this.hasZ=!1,this.hasM=!1,this.filter=null,this.layer=null,this.requiresCurrentUser=!1,this.requiredFields=[],this.view=null}initialize(){this.addHandles([i(()=>{let e=this.layer,t=this.view;return[e&&`elevationInfo`in e?e.elevationInfo?.featureExpressionInfo:null,e&&`displayField`in e?e.displayField:null,e&&`timeInfo`in e&&e.timeInfo,e&&`renderer`in e&&e.renderer,e&&`returnZ`in e&&e.returnZ,e&&`returnM`in e&&e.returnM,e&&`capabilities`in e&&e.capabilities,e&&`labelingInfo`in e&&e.labelingInfo,e&&`floorInfo`in e&&e.floorInfo,t?.requiredFieldsOptions?.featureTitleFields&&e&&`featureTitleFields`in e&&e.featureTitleFields,t?.requiredFieldsOptions?.utilityNetworkFields&&L(t,e),e&&`displayFilterInfo`in e&&e.displayFilterInfo,this.displayFilterEnabled,this.filter,this.featureEffect,this.timeExtent,this._getHighlightFilterGroups(),e?.type===`knowledge-graph-sublayer`&&e.parentCompositeLayer?.type===`link-chart`&&e.parentCompositeLayer.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode]},()=>this._updateDataRequirements(),a),o(()=>this.view?.floors,`change`,()=>this._updateDataRequirements()),o(()=>(this.layer&&`displayFilterInfo`in this.layer?this.layer.displayFilterInfo:null)?.filters,`change`,()=>this._updateDataRequirements()),o(()=>this.layer&&`sublayers`in this.layer?this.layer.sublayers:null,`change`,()=>this._updateDataRequirements())])}get availableFields(){if(!this.layer)return[];let{layer:e,layer:{fieldsIndex:t},requiredFields:n}=this;return`outFields`in e&&e.outFields?C(t,[...w(t,e.outFields),...n]):C(t,n)}get displayFilterEnabled(){return(this.view?.displayFilterEnabled??!0)&&(!(`displayFilterEnabled`in this.layer)||(this.layer?.displayFilterEnabled??!0))}get effectiveDisplayFilter(){let e=this.layer;return!(`displayFilterInfo`in e)||!this.displayFilterEnabled||!e.displayFilterInfo?null:g(e.displayFilterInfo,this.view)}get effectiveDisplayFilterClause(){let e=this.effectiveDisplayFilter?.where??null;return e&&this.highlightIds.length>0?c(e,l(this.layer.objectIdField,this.highlightIds)):e}get featureEffect(){return this.layer&&`featureEffect`in this.layer?this.layer.featureEffect:null}set featureEffect(e){this._override(`featureEffect`,e)}get maximumNumberOfFeatures(){return 0}set maximumNumberOfFeatures(e){t.getLogger(this).error(`#maximumNumberOfFeatures=`,`Setting maximum number of features is not supported`)}get maximumNumberOfFeaturesExceeded(){return!1}get signedInUser(){return this.layer?.url?y(this.layer.url):Promise.resolve(null)}createQuery(){let e={outFields:[`*`],returnGeometry:!0,outSpatialReference:this.view.spatialReference},t=this.filter==null?new R(e):this.filter.createQuery(e);if(`floorInfo`in this.layer&&this.layer.floorInfo&&(t.where=u(t.where,F(this))),this.displayFilterEnabled&&(t.where=u(t.where,this.effectiveDisplayFilter?.where)),this.timeExtent!=null&&(t.timeExtent=t.timeExtent==null?this.timeExtent.clone():t.timeExtent.intersection(this.timeExtent)),`capabilities`in this.layer){let e=this.layer.capabilities?.data;`returnZ`in this.layer&&e?.supportsZ&&this.layer.returnZ!=null&&(t.returnZ=this.layer.returnZ),`returnM`in this.layer&&e?.supportsM&&this.layer.returnM!=null&&(t.returnM=this.layer.returnM)}return`unplacedAnnotationsVisible`in this.layer&&!this.layer.unplacedAnnotationsVisible&&(t.where=u(t.where,`${this.layer.statusField} = 0`)),t}createAggregateQuery(){let e={outFields:[`*`],returnGeometry:!0,outSpatialReference:this.view.spatialReference};return new R(e)}async patchFeaturesForPopup(e,t){let r=[],i=new Set,a=new Map;for(let o of e){let e=n(a,o.origin,()=>{let e=p(o.origin);return V(e,{...t,checkPopupEnabled:!0})});e&&(r.push(o),i.add(e))}if(r.length===0||i.size===0)return[];let o=await this._createPopupQuery(i,t);return await x(this.layer,r,o,{hasRequiredFields:(e,t)=>this._popupFeatureHasRequiredFields(e,t),onExceededTransferLimit:e=>{let n=t?.diagnostics;if(n&&e.length){n.layerLimitExceeded??=new Set;for(let t of e)t.origin&&n.layerLimitExceeded.add(t.origin)}},...t})}_updateDataRequirements(){let e=Promise.all([s(()=>!(`reloading`in this.layer&&this.layer.reloading)),this._updateRequiredFields(),this._updateClientWhereClauseRequirements(),this._updateHasZM()]).then(()=>{});return this._updatingRequiredPromise=e,e.then(()=>{this._updatingRequiredPromise===e&&(this._updatingRequiredPromise=null)}),e}async _updateClientWhereClauseRequirements(){if(!this.layer||!this.view)return;let{layer:e}=this,n=new U(e.fieldsIndex);n.visitFilter(this.filter),`featureReduction`in e&&n.visitFeatureReduction(e.featureReduction),`labelingInfo`in e&&n.visitLabelingInfo(e.labelsVisible,e.labelingInfo),`trackInfo`in e&&n.visitTrackInfo(e.trackInfo),this.view.type===`2d`&&(n.visitFilter(this.featureEffect?.filter),`featureReduction`in e&&n.visitFeatureReduction(e.featureReduction),`displayFilterInfo`in e&&n.visitDisplayFilter(this.displayFilterEnabled,e.displayFilterInfo));for(let e of this._getHighlightFilterGroups())for(let t of e.filters)n.visitFilter(t);if(e.type===`subtype-group`)for(let t of e.sublayers)n.visitLabelingInfo(t.labelsVisible,t.labelingInfo);`definitionExpression`in e&&`capabilities`in e&&e.capabilities?.query.relativeTimeBinWindow&&n.visitRelativeTimeQuery(e.definitionExpression);try{let e=await n.finish();this._set(`requiresCurrentUser`,e.requiresCurrentUser)}catch(e){t.getLogger(this).error(e)}}async _updateRequiredFields(){if(!this.layer||!this.view)return;let e=this.view.type===`3d`,{layer:n,layer:{fieldsIndex:r}}=this,i=`renderer`in n&&n.renderer,a=`orderBy`in n&&n.orderBy,o=`featureReduction`in n?n.featureReduction:null,s=new Set,c=[i?i.collectRequiredFields(s,r):null,T(s,n),e&&`elevationInfo`in n?E(s,n):null,this.filter==null?null:D(s,n,this.filter),!e&&this.featureEffect!=null?D(s,n,this.featureEffect.filter):null,!e&&o?O(s,n,o):null,(!e||n.type===`catalog-footprint`)&&a?k(s,n,a):null,`definitionExpression`in n&&`capabilities`in n&&n.capabilities?.query.relativeTimeBinWindow?I(s,n.fieldsIndex,n.definitionExpression):null];for(let e of this._getHighlightFilterGroups())for(let t of e.filters)c.push(D(s,n,t));if(`timeInfo`in n&&n.timeInfo&&this.timeExtent&&A(s,n.fieldsIndex,[n.timeInfo.startField,n.timeInfo.endField]),`timeInfo`in n&&n.timeInfo&&`trackInfo`in n&&n.trackInfo){let{trackInfo:e}=n;A(s,n.fieldsIndex,[n.timeInfo.trackIdField]),(n.type===`feature`||e.timeField===`startTimeField`)&&A(s,n.fieldsIndex,[n.timeInfo.startField]),e.timeField===`endTimeField`&&A(s,n.fieldsIndex,[n.timeInfo.endField]),await j(s,n)}if(`floorInfo`in n&&n.floorInfo&&A(s,n.fieldsIndex,[n.floorInfo.floorField]),`featureTitleFields`in n&&this.view?.requiredFieldsOptions?.featureTitleFields&&n.featureTitleFields&&A(s,n.fieldsIndex,n.featureTitleFields),n.type===`feature`&&n.globalIdField&&this.view?.requiredFieldsOptions?.globalIdField&&A(s,n.fieldsIndex,[n.globalIdField]),(n.type===`feature`||n.type===`subtype-group`)&&this.view?.requiredFieldsOptions?.utilityNetworkFields&&A(s,n.fieldsIndex,L(this.view,n)),this.displayFilterEnabled&&`displayFilterInfo`in n&&c.push(M(s,n,n.displayFilterInfo)),n.type===`feature`&&e&&n.infoFor3D!=null&&(n.globalIdField??t.getLogger(this).error(`globalIdField missing on 3DObjectFeatureLayer`),A(s,n.fieldsIndex,[n.globalIdField])),n.type===`subtype-group`){N(s,r,n.subtypeField);let e=n.sublayers.map(e=>Promise.all([e.renderer?.collectRequiredFields(s,r),T(s,e)]));c.push(Promise.all(e))}if(n.type===`annotation-feature`&&A(s,r,[n.subtypeField,n.elementField,n.statusField]),n.type===`dimension-feature`&&A(s,r,n.symbolFields),n.type===`catalog-footprint`&&n.parent){let e=n.parent;A(s,r,[e.itemNameField,e.itemSourceField,e.itemTypeField,e.maxScaleField,e.minScaleField])}n.type===`knowledge-graph-sublayer`&&n.parentCompositeLayer?.type===`link-chart`&&N(s,r,h);let l=await Promise.allSettled(c);if(e)N(s,r,n.objectIdField);else for(let e of m(z(n)))N(s,r,e);e&&`displayField`in n&&n.displayField&&N(s,r,n.displayField);for(let e of l)e.status===`rejected`&&t.getLogger(this).error(e.reason);let u=Array.from(s).sort();this._set(`requiredFields`,u)}async _updateHasZM(){let{layer:e}=this;if(!e||!this.view)return;let t=!1,n=!1;if(`capabilities`in e&&e.capabilities){let{data:r}=e.capabilities;t=r.supportsZ,n=r.supportsM}this._set(`hasZ`,t),this._set(`hasM`,n);let{returnZ:r,returnM:i}=await b(e);t&&=r??this._defaultReturnZ,n&&=i??!1,this.hasZ!==t&&this._set(`hasZ`,t),this.hasM!==n&&this._set(`hasM`,n)}_popupFeatureHasRequiredFields(e,t){return P(e,t)}async _createPopupQuery(e,t){let n=this.layer.createQuery(),i=new Set,a=this.layer.geometryType===`point`;for(let n of e){if(!a){let e=await S(n);r(t),a=(e&&e.arcadeUtils.hasGeometryOperations(n))??!1}let e=await H(this.layer,n);r(t);for(let t of e)i.add(t)}return n.where=`1=1`,n.returnGeometry=a,n.returnZ=a,n.returnM=a,n.outFields=Array.from(i),n.outSpatialReference=this.view.spatialReference,`floorInfo`in this.layer&&this.layer.floorInfo&&(n.where=u(n.where,F(this))),n}canResume(){return!(!super.canResume()||this.timeExtent!=null&&this.timeExtent.isEmpty)}_getHighlightFilterGroups(){return[]}getTest(){}get test(){}};e([d()],W.prototype,`_updatingRequiredPromise`,void 0),e([d()],W.prototype,`_defaultReturnZ`,void 0),e([d({readOnly:!0})],W.prototype,`availableFields`,null),e([d({readOnly:!0})],W.prototype,`hasZ`,void 0),e([d({readOnly:!0})],W.prototype,`hasM`,void 0),e([d({readOnly:!0})],W.prototype,`displayFilterEnabled`,null),e([d({readOnly:!0})],W.prototype,`effectiveDisplayFilter`,null),e([d({readOnly:!0})],W.prototype,`effectiveDisplayFilterClause`,null),e([d({type:_})],W.prototype,`featureEffect`,null),e([d({type:v})],W.prototype,`filter`,void 0),e([d()],W.prototype,`layer`,void 0),e([d({type:Number})],W.prototype,`maximumNumberOfFeatures`,null),e([d({readOnly:!0,type:Boolean})],W.prototype,`maximumNumberOfFeaturesExceeded`,null),e([d()],W.prototype,`requiresCurrentUser`,void 0),e([d({readOnly:!0})],W.prototype,`requiredFields`,void 0),e([d({readOnly:!0})],W.prototype,`signedInUser`,null),e([d()],W.prototype,`view`,void 0),W=e([f(`esri.views.layers.FeatureLikeLayerView`)],W);const G=W;export{G as default};
|
|
@@ -2,11 +2,9 @@ import type Graphic from "../../Graphic.js";
|
|
|
2
2
|
import type Collection from "../../core/Collection.js";
|
|
3
3
|
import type GraphicsLayer from "../../layers/GraphicsLayer.js";
|
|
4
4
|
import type LayerView from "./LayerView.js";
|
|
5
|
-
import type HighlightOptions from "../support/HighlightOptions.js";
|
|
6
5
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
7
6
|
import type { ObjectId } from "../types.js";
|
|
8
7
|
import type { LayerViewHighlightOptions } from "./types.js";
|
|
9
|
-
import type { HighlightOptionsProperties } from "../support/HighlightOptions.js";
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* Represents the [LayerView](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LayerView/) of a [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/)
|
|
@@ -22,36 +20,6 @@ import type { HighlightOptionsProperties } from "../support/HighlightOptions.js"
|
|
|
22
20
|
* @see [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/)
|
|
23
21
|
*/
|
|
24
22
|
export default abstract class GraphicsLayerView extends LayerView {
|
|
25
|
-
/**
|
|
26
|
-
* Options for configuring the highlight. Use the [FeatureLikeLayerView.highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight) method on the layer view to highlight a feature
|
|
27
|
-
*
|
|
28
|
-
* > [!WARNING]
|
|
29
|
-
* >
|
|
30
|
-
* > **Known Limitations**
|
|
31
|
-
* >
|
|
32
|
-
* > The `highlightOptions` on layer views are only supported in [2D MapViews](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/). To
|
|
33
|
-
* > configure highlights for a [3D SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/), use
|
|
34
|
-
* > [SceneView.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#highlights) instead.
|
|
35
|
-
*
|
|
36
|
-
* @deprecated since version 4.34. Use the [View.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/View/#highlights) property instead.
|
|
37
|
-
* @since 4.26
|
|
38
|
-
* @see [highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight)
|
|
39
|
-
* @see [Sample: Highlight SceneLayer](https://developers.arcgis.com/javascript/latest/sample-code/highlight-scenelayer/)
|
|
40
|
-
* @example
|
|
41
|
-
* ```js
|
|
42
|
-
* // Features in the layerview will be highlighted with bright
|
|
43
|
-
* // yellow colors in the map.
|
|
44
|
-
* const layerView = await view.whenLayerView(layer);
|
|
45
|
-
* layerView.highlightOptions = {
|
|
46
|
-
* color: [255, 255, 0, 1],
|
|
47
|
-
* haloOpacity: 0.9,
|
|
48
|
-
* fillOpacity: 0.2
|
|
49
|
-
* };
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
get highlightOptions(): HighlightOptions | null | undefined;
|
|
53
|
-
/** @deprecated */
|
|
54
|
-
set highlightOptions(value: HighlightOptionsProperties | null | undefined);
|
|
55
23
|
/** The layer being viewed. */
|
|
56
24
|
get layer(): GraphicsLayer;
|
|
57
25
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import e from"./LayerView.js";class t extends e{constructor(){super(...arguments),this.layer=null}}export{t as default};
|
|
@@ -1,42 +1,11 @@
|
|
|
1
1
|
import type LayerView from "./LayerView.js";
|
|
2
|
-
import type HighlightOptions from "../support/HighlightOptions.js";
|
|
3
2
|
import type { ResourceHandle } from "../../core/Handles.js";
|
|
4
3
|
import type { PixelData } from "../../layers/raster/types.js";
|
|
5
4
|
import type { HighlightTarget, PixelHighlightTarget } from "../types.js";
|
|
6
5
|
import type { LayerViewHighlightOptions } from "./types.js";
|
|
7
|
-
import type { HighlightOptionsProperties } from "../support/HighlightOptions.js";
|
|
8
6
|
import type { LayerViewProperties } from "./LayerView.js";
|
|
9
7
|
|
|
10
|
-
export interface ImageryLayerViewProperties extends LayerViewProperties {
|
|
11
|
-
/**
|
|
12
|
-
* Options for configuring the highlight. Use the [FeatureLikeLayerView.highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight) method on the layer view to highlight a feature
|
|
13
|
-
*
|
|
14
|
-
* > [!WARNING]
|
|
15
|
-
* >
|
|
16
|
-
* > **Known Limitations**
|
|
17
|
-
* >
|
|
18
|
-
* > The `highlightOptions` on layer views are only supported in [2D MapViews](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/). To
|
|
19
|
-
* > configure highlights for a [3D SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/), use
|
|
20
|
-
* > [SceneView.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#highlights) instead.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated since version 4.34. Use the [View.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/View/#highlights) property instead.
|
|
23
|
-
* @since 4.26
|
|
24
|
-
* @see [highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight)
|
|
25
|
-
* @see [Sample: Highlight SceneLayer](https://developers.arcgis.com/javascript/latest/sample-code/highlight-scenelayer/)
|
|
26
|
-
* @example
|
|
27
|
-
* ```js
|
|
28
|
-
* // Features in the layerview will be highlighted with bright
|
|
29
|
-
* // yellow colors in the map.
|
|
30
|
-
* const layerView = await view.whenLayerView(layer);
|
|
31
|
-
* layerView.highlightOptions = {
|
|
32
|
-
* color: [255, 255, 0, 1],
|
|
33
|
-
* haloOpacity: 0.9,
|
|
34
|
-
* fillOpacity: 0.2
|
|
35
|
-
* };
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
highlightOptions?: HighlightOptionsProperties | null;
|
|
39
|
-
}
|
|
8
|
+
export interface ImageryLayerViewProperties extends LayerViewProperties {}
|
|
40
9
|
|
|
41
10
|
/**
|
|
42
11
|
* Represents the [LayerView](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LayerView/) of an [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/)
|
|
@@ -52,36 +21,6 @@ export interface ImageryLayerViewProperties extends LayerViewProperties {
|
|
|
52
21
|
* @see [Sample - Access pixel values in an ImageryLayer](https://developers.arcgis.com/javascript/latest/sample-code/layers-imagery-pixelvalues/)
|
|
53
22
|
*/
|
|
54
23
|
export default abstract class ImageryLayerView extends LayerView {
|
|
55
|
-
/**
|
|
56
|
-
* Options for configuring the highlight. Use the [FeatureLikeLayerView.highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight) method on the layer view to highlight a feature
|
|
57
|
-
*
|
|
58
|
-
* > [!WARNING]
|
|
59
|
-
* >
|
|
60
|
-
* > **Known Limitations**
|
|
61
|
-
* >
|
|
62
|
-
* > The `highlightOptions` on layer views are only supported in [2D MapViews](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/). To
|
|
63
|
-
* > configure highlights for a [3D SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/), use
|
|
64
|
-
* > [SceneView.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#highlights) instead.
|
|
65
|
-
*
|
|
66
|
-
* @deprecated since version 4.34. Use the [View.highlights](https://developers.arcgis.com/javascript/latest/references/core/views/View/#highlights) property instead.
|
|
67
|
-
* @since 4.26
|
|
68
|
-
* @see [highlight()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#highlight)
|
|
69
|
-
* @see [Sample: Highlight SceneLayer](https://developers.arcgis.com/javascript/latest/sample-code/highlight-scenelayer/)
|
|
70
|
-
* @example
|
|
71
|
-
* ```js
|
|
72
|
-
* // Features in the layerview will be highlighted with bright
|
|
73
|
-
* // yellow colors in the map.
|
|
74
|
-
* const layerView = await view.whenLayerView(layer);
|
|
75
|
-
* layerView.highlightOptions = {
|
|
76
|
-
* color: [255, 255, 0, 1],
|
|
77
|
-
* haloOpacity: 0.9,
|
|
78
|
-
* fillOpacity: 0.2
|
|
79
|
-
* };
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
get highlightOptions(): HighlightOptions | null | undefined;
|
|
83
|
-
/** @deprecated */
|
|
84
|
-
set highlightOptions(value: HighlightOptionsProperties | null | undefined);
|
|
85
24
|
/**
|
|
86
25
|
* An object that provides the user access to
|
|
87
26
|
* [PixelBlock.pixels](https://developers.arcgis.com/javascript/latest/references/core/layers/support/PixelBlock/#pixels) and their values in the layer.
|
|
@@ -120,4 +120,5 @@ export default abstract class LayerView extends LayerViewSuperclass {
|
|
|
120
120
|
*/
|
|
121
121
|
get visibleAtCurrentTimeExtent(): boolean;
|
|
122
122
|
}
|
|
123
|
-
declare const LayerViewSuperclass: typeof EventedAccessor & typeof EsriPromiseMixin & typeof IdentifiableMixin
|
|
123
|
+
declare const LayerViewSuperclass: typeof EventedAccessor & typeof EsriPromiseMixin & typeof IdentifiableMixin
|
|
124
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{equals as t}from"../../core/arrayUtils.js";import{createTask as n}from"../../core/asyncUtils.js";import{EventedAccessor as r}from"../../core/Evented.js";import{IdentifiableMixin as i}from"../../core/Identifiable.js";import a from"../../core/Logger.js";import{destroyMaybe as o,removeMaybe as s}from"../../core/maybe.js";import{EsriPromiseMixin as c}from"../../core/Promise.js";import{throwIfAborted as l}from"../../core/promiseUtils.js";import{property as u,subclass as d}from"../../core/accessorSupport/decorators.js";import{UpdatingHandles as f}from"../../core/support/UpdatingHandles.js";import{validateScaleRange as p}from"../../geometry/support/scaleUtils.js";import{getAttributionItemFromUserCopyright as m,isDynamicAttributionLayer as h,createAttributionIndex as g,getAttributionItemsFromIndex as _,getAttributionItemFromAccessInformation as v,getAttributionItemFromLayerCopyright as y}from"../support/attributionUtils.js";let b=class extends i(c(r)){get spatialReferenceSupported(){return!0}constructor(e){super(e),this._updatingHandles=new f,this._attributionIndexTask=null,this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if(e?.name!==`layerview:create-error`){let t=this.layer&&this.layer.id||`no id`,n=this.layer?.title||`no title`;a.getLogger(this).error(`#resolve()`,`Failed to resolve layer view (layer title: '${n}', id: '${t}')`,e)}})}destroy(){this._updatingHandles=o(this._updatingHandles),this._attributionIndexTask=s(this._attributionIndexTask),this._set(`parent`,null)}get attributionItems(){let e=this._get(`attributionItems`)??[];if(this.suspended||!this.layer?.attributionVisible)return e.length===0?e:[];if(!this.view.stationary)return e;let n=this.getAttributionItems();return t(e,n,(e,t)=>e.text===t.text)?e:n}get
|
|
2
|
+
import{__decorate as e}from"tslib";import{equals as t}from"../../core/arrayUtils.js";import{createTask as n}from"../../core/asyncUtils.js";import{EventedAccessor as r}from"../../core/Evented.js";import{IdentifiableMixin as i}from"../../core/Identifiable.js";import a from"../../core/Logger.js";import{destroyMaybe as o,removeMaybe as s}from"../../core/maybe.js";import{EsriPromiseMixin as c}from"../../core/Promise.js";import{throwIfAborted as l}from"../../core/promiseUtils.js";import{property as u,subclass as d}from"../../core/accessorSupport/decorators.js";import{UpdatingHandles as f}from"../../core/support/UpdatingHandles.js";import{validateScaleRange as p}from"../../geometry/support/scaleUtils.js";import{getAttributionItemFromUserCopyright as m,isDynamicAttributionLayer as h,createAttributionIndex as g,getAttributionItemsFromIndex as _,getAttributionItemFromAccessInformation as v,getAttributionItemFromLayerCopyright as y}from"../support/attributionUtils.js";let b=class extends i(c(r)){get spatialReferenceSupported(){return!0}constructor(e){super(e),this._updatingHandles=new f,this._attributionIndexTask=null,this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if(e?.name!==`layerview:create-error`){let t=this.layer&&this.layer.id||`no id`,n=this.layer?.title||`no title`;a.getLogger(this).error(`#resolve()`,`Failed to resolve layer view (layer title: '${n}', id: '${t}')`,e)}})}destroy(){this._updatingHandles=o(this._updatingHandles),this._attributionIndexTask=s(this._attributionIndexTask),this._set(`parent`,null)}get attributionItems(){let e=this._get(`attributionItems`)??[];if(this.suspended||!this.layer?.attributionVisible)return e.length===0?e:[];if(!this.view.stationary)return e;let n=this.getAttributionItems();return t(e,n,(e,t)=>e.text===t.text)?e:n}get fullOpacity(){return(this.layer?.opacity??1)*(this.parent?.fullOpacity??1)}get suspended(){return this.destroyed||!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&this.layer?.legendEnabled===!0}get updating(){return!!(this._updatingHandles?.updating||this.isUpdating())}get updatingProgress(){return+!this.updating}get updateSuspended(){return this.suspended}get visible(){return this.layer?.visible===!0}set visible(e){this._overrideIfSome(`visible`,e)}get visibleAtCurrentScale(){return!0}get visibleAtCurrentTimeExtent(){let e=this.view.timeExtent,t=this.layer?.visibilityTimeExtent;return!e||!t||!e.intersection(t).isEmpty}canResume(){let e=this.layer&&`effectiveScaleRange`in this.layer?this.layer.effectiveScaleRange:null;return this.visible&&this.layer?.loaded&&this.parent&&!this.parent.suspended&&this.view?.ready&&p(e)&&this.visibleAtCurrentScale&&this.visibleAtCurrentTimeExtent||!1}getSuspendInfo(){let e=this.parent?.suspended?this.parent.suspendInfo:{};this.view?.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0);let t=this.layer&&`effectiveScaleRange`in this.layer?this.layer.effectiveScaleRange:null;return p(t)&&this.visibleAtCurrentScale||(e.outsideScaleRange=!0),this.visibleAtCurrentTimeExtent||(e.outsideVisibilityTimeExtent=!0),this.visible||(e.layerInvisible=!0),e}isUpdating(){return!1}getAttributionItems(){let e=m(this.layer);if(e)return[e];if(h(this.layer)&&(this._attributionIndexTask||(this._attributionIndexTask=n(async e=>{let t=await this.layer.fetchAttributionData();return l(e),g(t)}),this._updatingHandles.consumePromise(this._attributionIndexTask.promise)),this._attributionIndexTask?.finished&&this._attributionIndexTask.value))return _(this._attributionIndexTask.value,this.layer.tileInfo,this.view.scale,this.view.extent);let t=v(this.layer);if(t)return[t];let r=y(this.layer);return r?[r]:[]}};e([u({readOnly:!0})],b.prototype,`spatialReferenceSupported`,null),e([u()],b.prototype,`view`,void 0),e([u({readOnly:!0})],b.prototype,`attributionItems`,null),e([u()],b.prototype,`fullOpacity`,null),e([u()],b.prototype,`layer`,void 0),e([u()],b.prototype,`parent`,void 0),e([u({readOnly:!0})],b.prototype,`suspended`,null),e([u({readOnly:!0})],b.prototype,`suspendInfo`,null),e([u({readOnly:!0})],b.prototype,`legendEnabled`,null),e([u({type:Boolean,readOnly:!0})],b.prototype,`updating`,null),e([u({readOnly:!0})],b.prototype,`updatingProgress`,null),e([u()],b.prototype,`updateSuspended`,null),e([u()],b.prototype,`visible`,null),e([u({readOnly:!0})],b.prototype,`visibleAtCurrentScale`,null),e([u({readOnly:!0})],b.prototype,`visibleAtCurrentTimeExtent`,null),b=e([d(`esri.views.layers.LayerView`)],b);export{b as default};
|
|
@@ -137,4 +137,5 @@ export abstract class PointCloudLayerViewMixin {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export abstract class PointCloudLayerView extends PointCloudLayerViewSuperclass {}
|
|
140
|
-
declare const PointCloudLayerViewSuperclass: & typeof LayerView & typeof PointCloudLayerViewMixin
|
|
140
|
+
declare const PointCloudLayerViewSuperclass: & typeof LayerView & typeof PointCloudLayerViewMixin
|
|
141
|
+
export {};
|
package/views/ui/UI.d.ts
CHANGED
|
@@ -23,8 +23,7 @@ export interface UIProperties extends Partial<Pick<UI, "container" | "view">> {
|
|
|
23
23
|
/**
|
|
24
24
|
* This class provides a simple interface for [adding](https://developers.arcgis.com/javascript/latest/references/core/views/ui/UI/#add), [moving](https://developers.arcgis.com/javascript/latest/references/core/views/ui/UI/#move) and [removing](https://developers.arcgis.com/javascript/latest/references/core/views/ui/UI/#remove) components from a view's user interface (UI). In most cases, you will work with
|
|
25
25
|
* the view's [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/) which places default
|
|
26
|
-
* [widgets](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/), such as [Zoom](https://developers.arcgis.com/javascript/latest/references/core/widgets/Zoom/)
|
|
27
|
-
* [Attribution](https://developers.arcgis.com/javascript/latest/references/core/widgets/Attribution/) in the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/).
|
|
26
|
+
* [widgets](https://developers.arcgis.com/javascript/latest/references/core/widgets/Widget/), such as [Zoom](https://developers.arcgis.com/javascript/latest/references/core/widgets/Zoom/), in the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/).
|
|
28
27
|
*
|
|
29
28
|
* The UI class provides the API for easily placing HTML elements and widgets within the view. See
|
|
30
29
|
* [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/) for details on working with this class.
|
|
@@ -162,16 +161,6 @@ export default class UI extends EventedAccessor {
|
|
|
162
161
|
* const components = view.ui.getComponents();
|
|
163
162
|
* console.log(`There are ${components.length} components added to MapView.`); // There are 4 components added to MapView.
|
|
164
163
|
* @example
|
|
165
|
-
* // Display the label of the first manually placed widget in SceneView.
|
|
166
|
-
* const view = new SceneView({
|
|
167
|
-
* map,
|
|
168
|
-
* container: "viewDiv",
|
|
169
|
-
* zoom: 4,
|
|
170
|
-
* center: [-100, 35]
|
|
171
|
-
* });
|
|
172
|
-
* await view.when();
|
|
173
|
-
* console.log("Widget label is: ${view.ui.getComponents("manual")[0].label}.`); // Widget label is: Attribution.
|
|
174
|
-
* @example
|
|
175
164
|
* // Display how many components (i.e. widgets or HTMLElements) are placed in the top-left corner of the View.
|
|
176
165
|
* const view = new MapView({
|
|
177
166
|
* map,
|
package/views/webgl/Program.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{update as e}from"../../core/arrayUtils.js";import has from"../../core/has.js";import{webglValidateShadersEnabled as t,webglDebugEnabled as n}from"./checkWebGLError.js";import{ResourceType as r}from"./enums.js";import{transpileShader as i}from"./ShaderTranspiler.js";const a=!!has(`esri-tests-disable-gpu-memory-measurements`);class o{constructor(e,n,o,c,l=new Map,u=[]){this._context=e,this._compiled=!1,this._linesOfCode=0,this._nameToUniformLocation=new Map,this._nameToUniform1=new Map,this._nameToUniform1v=new Map,this._nameToUniform2=new Map,this._nameToUniform3=new Map,this._nameToUniform4=new Map,this._nameToUniformMatrix3=new Map,this._nameToUniformMatrix4=new Map,e||console.error(`RenderingContext isn't initialized!`),n.length===0&&console.error(`Shaders source should not be empty!`),n=i(n,35633),o=i(o,35632),this._vShader=s(this._context,35633,n),this._fShader=s(this._context,35632,o),d.enabled&&(this._linesOfCode=n.match(/\n/g).length+o.match(/\n/g).length+2,e.instanceCounter.increment(r.LinesOfCode,this._vShader,this._linesOfCode)),this._vShader&&this._fShader||console.error(`Error loading shaders!`),e.instanceCounter.increment(r.Shader,this),t()&&(this.vertexShader=n,this.fragmentShader=o),this.usedMemory=a?0:n.length+o.length;let f=this._context.gl,p=f.createProgram();f.attachShader(p,this._vShader),f.attachShader(p,this._fShader),c.forEach((e,t)=>f.bindAttribLocation(p,e,t)),this.hasTransformFeedbackVaryings=!!u?.length,this.hasTransformFeedbackVaryings&&f.transformFeedbackVaryings(p,u,f.SEPARATE_ATTRIBS),f.linkProgram(p),t()&&!f.getProgramParameter(p,f.LINK_STATUS)&&console.error(`Could not link shader
|
|
3
3
|
validated: ${f.getProgramParameter(p,f.VALIDATE_STATUS)}, gl error ${f.getError()}, vertex: ${f.getShaderParameter(this._vShader,f.COMPILE_STATUS)}, fragment: ${f.getShaderParameter(this._fShader,f.COMPILE_STATUS)}, info log: ${f.getProgramInfoLog(p)}, vertex source: ${this.vertexShader}, fragment source: ${this.fragmentShader}`);for(let[e,t]of l){let n=f.getUniformBlockIndex(p,e);n<0xffffffff&&f.uniformBlockBinding(p,n,t)}this._glName=p,e.instanceCounter.increment(r.Program,this)}get glName(){return this._glName}get hasGLName(){return this._glName!=null}get compiled(){return this._compiled?!0:!this._context.capabilities.parallelShaderCompile||this.glName==null?(this._compiled=!0,!0):(this._compiled=!!this._context.gl.getProgramParameter(this.glName,37297),this._compiled)}dispose(){let e=this._context.gl,t=this._context.instanceCounter;this._nameToUniformLocation.forEach(e=>e&&t.decrement(r.Uniform,e)),this._nameToUniformLocation.clear(),this._vShader&&(this._linesOfCode>0&&(t.decrement(r.LinesOfCode,this._vShader,this._linesOfCode),this._linesOfCode=0),e.deleteShader(this._vShader),this._vShader=null,t.decrement(r.Shader,this)),this._fShader&&=(e.deleteShader(this._fShader),null),this._glName&&(e.deleteProgram(this._glName),this._glName=null,t.decrement(r.Program,this))}_getUniformLocation(e){let t=this._nameToUniformLocation.get(e);if(t!==void 0)return t;if(this.glName){let t=this._context.gl.getUniformLocation(this.glName,e);return this._nameToUniformLocation.set(e,t),t&&this._context.instanceCounter.increment(r.Uniform,t),t}return null}hasUniform(e){return this._getUniformLocation(e)!=null}setUniform1i(e,t,n){f(n,t);let r=this._nameToUniform1.get(e);(r===void 0||t!==r)&&(this._context.gl.uniform1i(this._getUniformLocation(e),t),this._nameToUniform1.set(e,t))}setUniform1iv(e,t,n){p(n,t),u(this._nameToUniform1v,e,t)&&this._context.gl.uniform1iv(this._getUniformLocation(e),t)}setUniform2iv(e,t,n){p(n,t),u(this._nameToUniform2,e,t)&&this._context.gl.uniform2iv(this._getUniformLocation(e),t)}setUniform3iv(e,t,n){p(n,t),u(this._nameToUniform3,e,t)&&this._context.gl.uniform3iv(this._getUniformLocation(e),t)}setUniform4iv(e,t,n){p(n,t),u(this._nameToUniform4,e,t)&&this._context.gl.uniform4iv(this._getUniformLocation(e),t)}setUniform1f(e,t,n){f(n,t);let r=this._nameToUniform1.get(e);(r===void 0||t!==r)&&(this._context.gl.uniform1f(this._getUniformLocation(e),t),this._nameToUniform1.set(e,t))}setUniform1fv(e,t,n){p(n,t),u(this._nameToUniform1v,e,t)&&this._context.gl.uniform1fv(this._getUniformLocation(e),t)}setUniform2f(e,t,n,r){f(r,t,n);let i=this._nameToUniform2.get(e);i===void 0?(this._context.gl.uniform2f(this._getUniformLocation(e),t,n),this._nameToUniform2.set(e,[t,n])):(t!==i[0]||n!==i[1])&&(this._context.gl.uniform2f(this._getUniformLocation(e),t,n),i[0]=t,i[1]=n)}setUniform2fv(e,t,n){p(n,t),u(this._nameToUniform2,e,t)&&this._context.gl.uniform2fv(this._getUniformLocation(e),t)}setUniform3f(e,t,n,r,i){f(i,t,n,r);let a=this._nameToUniform3.get(e);a===void 0?(this._context.gl.uniform3f(this._getUniformLocation(e),t,n,r),this._nameToUniform3.set(e,[t,n,r])):(t!==a[0]||n!==a[1]||r!==a[2])&&(this._context.gl.uniform3f(this._getUniformLocation(e),t,n,r),a[0]=t,a[1]=n,a[2]=r)}setUniform3fv(e,t,n){p(n,t);let r=this._getUniformLocation(e);r!=null&&u(this._nameToUniform3,e,t)&&this._context.gl.uniform3fv(r,t)}setUniform4f(e,t,n,r,i,a){f(a,t,n,r,i);let o=this._nameToUniform4.get(e);o===void 0?(this._context.gl.uniform4f(this._getUniformLocation(e),t,n,r,i),this._nameToUniform4.set(e,[t,n,r,i])):(o===void 0||t!==o[0]||n!==o[1]||r!==o[2]||i!==o[3])&&(this._context.gl.uniform4f(this._getUniformLocation(e),t,n,r,i),o[0]=t,o[1]=n,o[2]=r,o[3]=i)}setUniform4fv(e,t,n){p(n,t);let r=this._getUniformLocation(e);r!=null&&u(this._nameToUniform4,e,t)&&this._context.gl.uniform4fv(r,t)}setUniformMatrix3fv(e,t,n=!1,r){p(r,t);let i=this._getUniformLocation(e);i!=null&&u(this._nameToUniformMatrix3,e,t)&&this._context.gl.uniformMatrix3fv(i,n,t)}setUniformMatrix4fv(e,t,n=!1,r){p(r,t);let i=this._getUniformLocation(e);if(i!=null){let r=this._nameToUniformMatrix4,a=r.get(e),o=!1;if(!a)r.set(e,Array.from(t)),o=!0;else{let n=t.length;if(a.length!==n)r.set(e,Array.from(t)),o=!0;else for(let e=0;e<n;++e){let r=t[e];if(a[e]!==r){for(a[e]=r;e<n;++e)a[e]=t[e];o=!0;break}}}o&&this._context.gl.uniformMatrix4fv(i,n,t)}}setUniformMatrices4fv(e,t,n=!1,r){p(r,t);let i=this._getUniformLocation(e);i!=null&&u(this._nameToUniformMatrix4,e,t)&&this._context.gl.uniformMatrix4fv(i,n,t)}stop(){}}function s(e,n,r){let i=e.gl,a=i.createShader(n);return i.shaderSource(a,r),i.compileShader(a),t()&&!i.getShaderParameter(a,i.COMPILE_STATUS)&&(console.error(`Compile error in ${n===35633?`vertex`:`fragment`} shader`),console.error(i.getShaderInfoLog(a)),console.error(c(r))),a}function c(e){let t=2;return e.replaceAll(`
|
|
4
4
|
`,()=>`
|
|
5
|
-
`+l(t++)+`:`)}function l(e){return e>=1e3?e.toString():(` `+e).slice(-3)}function u(t,n,r){let i=t.get(n);return
|
|
5
|
+
`+l(t++)+`:`)}function l(e){return e>=1e3?e.toString():(` `+e).slice(-3)}function u(t,n,r){let i=t.get(n);return i===void 0?(t.set(n,Array.from(r)),!0):e(i,r)}const d={enabled:!1},f=n()?(e,...t)=>p(e,t):()=>{},p=n()?(e,t)=>{if(e?.supportsNaN)return;let n=t.length;for(let e=0;e<n;++e){let n=t[e];Number.isNaN(n)&&console.error(`Got ${n} as uniform value from ${Error().stack}`)}}:()=>{};export{o as DisposableProgram,d as test};
|
|
@@ -19,4 +19,5 @@ export default class GeotriggersInfo extends GeotriggersInfoSuperclass {
|
|
|
19
19
|
get geotriggers(): Geotrigger[] | null | undefined;
|
|
20
20
|
set geotriggers(value: (GeotriggerProperties & { type: "fence" })[] | null | undefined);
|
|
21
21
|
}
|
|
22
|
-
declare const GeotriggersInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
22
|
+
declare const GeotriggersInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
23
|
+
export {};
|
package/webdoc/IPSInfo.d.ts
CHANGED
|
@@ -35,4 +35,5 @@ export default class IPSInfo extends IPSInfoSuperclass {
|
|
|
35
35
|
get positioningService(): PositioningService | null | undefined;
|
|
36
36
|
set positioningService(value: PositioningServiceProperties | null | undefined);
|
|
37
37
|
}
|
|
38
|
-
declare const IPSInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
38
|
+
declare const IPSInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
39
|
+
export {};
|
|
@@ -28,4 +28,5 @@ export default class DeviceLocationFeed extends DeviceLocationFeedSuperclass {
|
|
|
28
28
|
/** String indicating the type of Geotrigger feed. */
|
|
29
29
|
get type(): "device-location";
|
|
30
30
|
}
|
|
31
|
-
declare const DeviceLocationFeedSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
31
|
+
declare const DeviceLocationFeedSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
32
|
+
export {};
|
|
@@ -26,4 +26,5 @@ export default class ExpressionInfo extends ExpressionInfoSuperclass {
|
|
|
26
26
|
/** Optional title of the expression. Typically used when presenting the expression to end-users e.g. in dialogs, table-of-contents or editing tools. */
|
|
27
27
|
accessor title: string | null | undefined;
|
|
28
28
|
}
|
|
29
|
-
declare const ExpressionInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
29
|
+
declare const ExpressionInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
30
|
+
export {};
|
|
@@ -48,4 +48,5 @@ export default class FeatureFenceParameters extends FeatureFenceParametersSuperc
|
|
|
48
48
|
/** String indicating the fence parameters type. */
|
|
49
49
|
readonly type: "features";
|
|
50
50
|
}
|
|
51
|
-
declare const FeatureFenceParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
51
|
+
declare const FeatureFenceParametersSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
52
|
+
export {};
|
|
@@ -38,4 +38,5 @@ export default class FeatureFilter extends FeatureFilterSuperclass {
|
|
|
38
38
|
/** An optional SQL-based definition expression string that narrows the data to be used. Any features that satisfy the query will be used. */
|
|
39
39
|
accessor where: string | null | undefined;
|
|
40
40
|
}
|
|
41
|
-
declare const FeatureFilterSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
41
|
+
declare const FeatureFilterSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
42
|
+
export {};
|
|
@@ -22,4 +22,5 @@ export default class FeatureLayerSource extends FeatureLayerSourceSuperclass {
|
|
|
22
22
|
/** String indicating the type of source. */
|
|
23
23
|
readonly type: "feature-layer";
|
|
24
24
|
}
|
|
25
|
-
declare const FeatureLayerSourceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
25
|
+
declare const FeatureLayerSourceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
26
|
+
export {};
|
|
@@ -13,4 +13,5 @@ export default class Geotrigger extends GeotriggerSuperclass {
|
|
|
13
13
|
/** String indicating the Geotrigger condition type. */
|
|
14
14
|
readonly type: "fence";
|
|
15
15
|
}
|
|
16
|
-
declare const GeotriggerSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
16
|
+
declare const GeotriggerSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
17
|
+
export {};
|
|
@@ -38,4 +38,5 @@ export default class GeotriggerNotificationOptions extends GeotriggerNotificatio
|
|
|
38
38
|
*/
|
|
39
39
|
accessor requestedActions: string[] | null | undefined;
|
|
40
40
|
}
|
|
41
|
-
declare const GeotriggerNotificationOptionsSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
41
|
+
declare const GeotriggerNotificationOptionsSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
42
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export default class AppleIPSProperties extends AppleIPSPropertiesSuperclass {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor enabled: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const AppleIPSPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
20
|
+
declare const AppleIPSPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
export {};
|
|
@@ -40,4 +40,5 @@ export default class Configuration extends ConfigurationSuperclass {
|
|
|
40
40
|
get smoothing(): SmoothingProperties | null | undefined;
|
|
41
41
|
set smoothing(value: SmoothingPropertiesProperties | null | undefined);
|
|
42
42
|
}
|
|
43
|
-
declare const ConfigurationSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
43
|
+
declare const ConfigurationSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
44
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export default class GNSSProperties extends GNSSPropertiesSuperclass {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor enabled: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const GNSSPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
20
|
+
declare const GNSSPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
export {};
|
|
@@ -29,4 +29,5 @@ export default class PathSnappingProperties extends PathSnappingPropertiesSuperc
|
|
|
29
29
|
*/
|
|
30
30
|
accessor units: "feet" | "meter";
|
|
31
31
|
}
|
|
32
|
-
declare const PathSnappingPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
32
|
+
declare const PathSnappingPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
33
|
+
export {};
|
|
@@ -19,4 +19,5 @@ export default class PositioningService extends PositioningServiceSuperclass {
|
|
|
19
19
|
get portalItem(): PortalItem | null | undefined;
|
|
20
20
|
set portalItem(value: PortalItemProperties | null | undefined);
|
|
21
21
|
}
|
|
22
|
-
declare const PositioningServiceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
22
|
+
declare const PositioningServiceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
23
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export default class SmoothingProperties extends SmoothingPropertiesSuperclass {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor enabled: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const SmoothingPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
20
|
+
declare const SmoothingPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export default class SlideThumbnail extends SlideThumbnailSuperclass {
|
|
|
17
17
|
*/
|
|
18
18
|
accessor url: string;
|
|
19
19
|
}
|
|
20
|
-
declare const SlideThumbnailSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
20
|
+
declare const SlideThumbnailSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
export {};
|
package/webmap/Bookmark.d.ts
CHANGED
|
@@ -86,4 +86,5 @@ export default class Bookmark extends BookmarkSuperclass {
|
|
|
86
86
|
*/
|
|
87
87
|
clone(): Bookmark;
|
|
88
88
|
}
|
|
89
|
-
declare const BookmarkSuperclass: typeof JSONSupport & typeof IdentifiableMixin
|
|
89
|
+
declare const BookmarkSuperclass: typeof JSONSupport & typeof IdentifiableMixin
|
|
90
|
+
export {};
|
|
@@ -79,4 +79,5 @@ export default class InitialViewProperties extends InitialViewPropertiesSupercla
|
|
|
79
79
|
get viewpoint(): Viewpoint | null | undefined;
|
|
80
80
|
set viewpoint(value: ViewpointProperties | null | undefined);
|
|
81
81
|
}
|
|
82
|
-
declare const InitialViewPropertiesSuperclass: typeof Accessor & typeof ClonableMixin
|
|
82
|
+
declare const InitialViewPropertiesSuperclass: typeof Accessor & typeof ClonableMixin
|
|
83
|
+
export {};
|
package/webscene/Glow.d.ts
CHANGED
|
@@ -96,4 +96,5 @@ export default class InitialViewProperties extends InitialViewPropertiesSupercla
|
|
|
96
96
|
get viewpoint(): Viewpoint | null | undefined;
|
|
97
97
|
set viewpoint(value: ViewpointProperties | null | undefined);
|
|
98
98
|
}
|
|
99
|
-
declare const InitialViewPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
99
|
+
declare const InitialViewPropertiesSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
100
|
+
export {};
|
|
@@ -39,4 +39,5 @@ export default class Presentation extends PresentationSuperclass {
|
|
|
39
39
|
get slides(): Collection<Slide>;
|
|
40
40
|
set slides(value: ReadonlyArrayOrCollection<SlideProperties>);
|
|
41
41
|
}
|
|
42
|
-
declare const PresentationSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
42
|
+
declare const PresentationSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
43
|
+
export {};
|
package/webscene/Slide.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export default class SlideLegendInfo extends SlideLegendInfoSuperclass {
|
|
|
18
18
|
*/
|
|
19
19
|
accessor visible: boolean;
|
|
20
20
|
}
|
|
21
|
-
declare const SlideLegendInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
21
|
+
declare const SlideLegendInfoSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
22
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e
|
|
2
|
+
import{j as e}from"../../chunks/webScene.js";import t from"../../WebScene.js";import n from"../../core/Error.js";import{getPropertiesMetadata as r}from"../../core/accessorSupport/metadata.js";import{ScanContext as i,sorted as a}from"./utils.js";function o(e,t){if(t.properties){if(`layerType`in t.properties)return t.properties.layerType.enum[0];if(`type`in t.properties&&t.properties.type.enum)return t.properties.type.enum[0]}switch(e){case`multipoint_geometry_schema.json`:return`multipoint`;case`point_geometry_schema.json`:return`point`;case`polyline_geometry_schema.json`:return`polyline`;case`polygon_geometry_schema.json`:return`polygon`;case`extent_schema.json`:return`extent`}}function s(e){return e.type===`array`?`${s(e.items)}[]`:e.type}function c(e){let t={count:e.length,refsCount:0,typesCount:0,distinctTypes:[],type:null},n=new Set;for(let r in e){let i=e[r];i.$ref?t.refsCount++:i.type&&(t.typesCount++,n.add(s(i)))}return n.forEach(e=>t.distinctTypes.push(e)),t.distinctTypes.sort(),t.refsCount===t.count?t.type=`refs`:t.count===2&&t.refsCount>0&&t.distinctTypes.length===1&&t.distinctTypes[0]===`null`?t.type=`refsAndNull`:t.typesCount===t.count?(t.type=`types`,t.distinctTypes=t.distinctTypes):t.type=`mix`,t}function l(e,t){let n=t.stack[t.stack.length-1],r=t.stack.length===1?t.schemaRoot:t.definitions[n.klass.name];return r?.required&&r.required.includes(e.replace(`[]`,``))}function u(e){return e.type===`array`||!(`properties`in e)}function d(e,t,n){return n.hasFilteredProperties?`${e}--${t}--${n.filteredPropertiesArray.join(`/`)}`:`${e}--${t}`}async function f(e,n,i,a,s,c){if(e===`version_schema.json`){let e=r(t.prototype).sourceVersion.json?.type;e&&(i={...i,enum:e})}s.schemaStack.push(e);let f=o(e,i),p=a?a.replace(`<?TYPE?>`,f?`<${f}>`:``):``;if(u(i)){let t=s.currentClass?null:{type:e,name:e,id:`${e}--${n}`,typeValue:n,properties:[]};return t&&s.push(null,t),await N(i,p,s,c),s.schemaStack.pop(),t}let m=d(e,n,s),h=e!==`drawingInfo_schema.json`&&e!==`layer_schema.json`&&s.seen.get(m);if(h&&p)return s.addProperty({name:p,type:h,required:l(p,s),nullable:c?.nullable}),s.schemaStack.pop(),h;let g={type:e,name:e,id:m,typeValue:n,properties:[]};return p&&s.addProperty({name:p,type:g,required:l(p,s),nullable:c?.nullable}),s.push(p,g),await N(i,``,s),s.schemaStack.pop(),s.pop()}async function p(e,t,n,r){let i=await n.requestSchema(e.$ref),a=A(i.schema);if(a){for(let e of a){let a={...i.schema};a.properties={...a.properties,type:{type:`string`,enum:[e]}};let o=t&&!t.includes(`<?TYPE?>`)?`${t}<?TYPE?>`:t;await f(i.schemaId,e,a,o,n,r)}return}let o=i.schemaId===`layer_schema.json`&&n.schemaStack.length?n.schemaStack[n.schemaStack.length-1].replace(/_schema\.json/,``):null;await f(i.schemaId,o,i.schema,t,n,r)}function m(e,t){if(!g(e))return!1;let n=e.stack.map(e=>e.klass.type).join(`/`);return/.*pointCloudLayer_schema\.json\/layerDefinition_schema\.json\/drawingInfo_schema\.json$/.test(n)&&t===`renderer`}function h(e,t){if(!(_(e)||v(e)))return!1;let n=e.stack.map(e=>e.klass.type).join(`/`);return(/.*(imageServiceLayer|tiledImageServiceLayer|wcsLayer)_schema\.json\/(layerDefinition|rasterLayerDefinition)_schema\.json\/rasterDrawingInfo_schema\.json$/.test(n)||/.*rasterPresetRenderer_schema\.json$/.test(n))&&t===`renderer`}function g(e){return e.currentClass?e.currentClass.name===`drawingInfo_schema.json`:!1}function _(e){return e.currentClass?e.currentClass.name===`rasterDrawingInfo_schema.json`:!1}function v(e){return e.currentClass?e.currentClass.name===`rasterPresetRenderer_schema.json`:!1}function y(e){switch(e.schemaStack[e.schemaStack.length-1]){case`operationalLayers_schema.json`:case`elevationLayers_schema.json`:case`baseMapLayer_schema.json`:return!0}return!1}const b=/raster.*Renderer|vectorFieldRenderer/,x=/(uniqueValueRenderer|classBreaksRenderer|raster.*Renderer|vectorFieldRenderer)/,S=/(rasterUniqueValueRenderer|rasterClassBreaksRenderer)/;function C(e,t,n){if(g(n)||_(n)||v(n)){let r=m(n,t),i=h(n,t);return e.filter(e=>{if(e.$ref.endsWith(`uniqueValueFromStyleRenderer_schema.json`))return!1;if(i)return x.test(e.$ref)&&!S.test(e.$ref);if(b.test(e.$ref))return!1;let t=/pointCloud.*Renderer/.test(e.$ref);return r===t})}if(y(n)){let t=[`kmlLayer`,`rasterDataElevationLayer`,`rasterDataLayer`,`object3DTilesLayer`];return e.filter(e=>!t.some(t=>e.$ref.replace(/.*\//,``)===`${t}_schema.json`))}return e}async function w(e,t,n){await N(e.items,`${t}[]`,n)}async function T(e,t,n){for(let r in e.properties)if((n.currentClass?.name!==`webscene_schema.json`||r!==`mapRangeInfo`)&&(n.currentClass?.name!==`baseMap_schema.json`||r!==`elevationLayers`)){if(g(n)){let e=n.stack.map(e=>e.klass.type).join(`/`);if(/imageServiceLayer|tiledImageServiceLayer/.test(e)&&r===`transparency`)continue}await n.withFilter(r,async()=>{let i=t?`${t}.${r}`:r;await N(e.properties[r],i,n)})}}function E(e,t=``,n=new Set){for(let r of e)if(`properties`in r)for(let e in r.properties){let i=r.properties[e],a=t?`${t}.${e}`:e,o=Object.keys(i);if(o.length===0||o.length===1&&o[0]===`$ref`)n.add(a);else if(o.length===1&&o[0]===`allOf`)n.add(a),E(i.allOf,a,n);else throw Error(`unexpected allOf filter construct: ${JSON.stringify(i)}`)}return n}async function D(e,t,n){let r=null;for(let t of e.allOf)if(`$ref`in t){if(!r)r=t;else throw Error(`Cannot process more than 1 ref in an allOf construct`)}else if(!(`properties`in t))throw Error(`allOf construct only allows simple top-level property filters`);let i=E(e.allOf);await n.addFilter(i,()=>p(r,t,n))}async function O(e,t,n){let r=c(e.oneOf),i=r.type===`refsAndNull`;if(r.type===`refs`||i){let r=C(e.oneOf,t,n);for(let e of r)i&&e.type===`null`||await N(e,`${t||``}`+(r.length===1?``:`<?TYPE?>`),n,{nullable:i})}else if(r.type===`types`){let{types:e,nullable:i}=k(r.distinctTypes);n.addProperty({name:t,type:a(e).join(`|`),required:l(t,n),nullable:i})}else for(let r in e.oneOf){let i=`.oneOf[${r}]`;await N(e.oneOf[r],`${t}${i}`,n)}}function k(e){let t=e.indexOf(`null`);if(t===-1)return{types:e};let n=e.slice();return n.splice(t,1),{types:n,nullable:!0}}function A(e){if(e.title===`layerDefinition`)return null;let t=e.properties?.type;return t?.enum?t.enum:null}async function j(e,t,n,r){await p(e,t,n,r)}async function M(e,t,n){let r=`unknown`,i;if(e.type){let{types:t,nullable:n}=k(Array.isArray(e.type)?e.type:e.type.replaceAll(` `,``).split(`,`));r=a(t).join(`|`),i=n}let o={name:t,type:r,default:e.default,required:l(t,n),nullable:i};e.enum&&(o.enum=a(e.enum).map(e=>typeof e==`string`?`"${e}"`:`${e}`).join(`|`)),n.addProperty(o)}async function N(e,t,n,r){return e.type===`array`?w(e,t,n):`properties`in e?T(e,t,n):`allOf`in e?D(e,t,n):`oneOf`in e?O(e,t,n):`$ref`in e?j(e,t,n,r):M(e,t,n)}function P(e){return e.startsWith(`#/definitions/`)?e.slice(14):e}async function F(e,t){let n=await I.create(e,t);return f(`${e||`webscene`}_schema.json`,null,n.schemaRoot,null,n)}class I extends i{constructor(e,t,n){super(),this.definitions=e,this.schemaRoot=t,this.requestSchema=n,this._filteredProperties=null,this.schemaStack=[],this.requestSchema.bind(this)}get hasFilteredProperties(){return(this._filteredProperties?.size??0)>0}get filteredPropertiesArray(){let e=[];return this._filteredProperties?.forEach(t=>e.push(t)),e}async withFilter(e,t){if(!this.hasFilteredProperties)return t();if(!this._filteredProperties?.has(e))return;let n=this._filteredProperties;this._filteredProperties=null;let r=e=>{this._filteredProperties||=new Set,this._filteredProperties.add(e)};n.forEach(t=>{let n=t.split(`.`,2);n.length>1&&n[0]===e&&r(n[1])}),await t(),this._filteredProperties=n}async addFilter(e,t){let n=this._filteredProperties;this._filteredProperties=null;let r=e=>{this._filteredProperties||=new Set,this._filteredProperties.add(e)};n&&n.forEach(r),e&&e.forEach(r);let i=await t();return this._filteredProperties=n,i}static async create(e,t){return t?.useRemoteSchema?I.createRemote(e,t?.baseUrl):I.createLocal(e)}static createLocal(t){let n=t&&t!==`webscene`?e.definitions[`${t}_schema.json`]:e;return new I(e.definitions,n,I._getLocalSchemaRequest())}static async createRemote(e,t){let n=await I._getRemoteSchemaRequest(t),r=new I({},null,n),i=(await r.requestSchema(`${e||`webscene`}_schema.json`)).schema;return new I(r.definitions,i,n)}static _getLocalSchemaRequest(){return function(e){let t=P(e),r=this.definitions[t];return r?Promise.resolve({schemaId:t,schema:r}):Promise.reject(new n(`spec-certification:spec-invalid-local-schema`,`Schema reference is not a local reference`))}}static async _getRemoteSchemaRequest(e){if(!e)return Promise.reject(new n(`spec-certification:spec-missing-base-url`,`The base url of the remote schema directory must be specified when using a remote schema`));let t=I._getLocalSchemaRequest(),r=(await import(`../../request.js`)).default;return function(n){return t.call(this,n).catch(()=>r(`${e}/${n}`,{responseType:`json`}).then(e=>(this.definitions[P(n)]=e.data,{schemaId:n,schema:e.data})))}}}const L=Object.keys(e.definitions).map(e=>e.replace(/_schema\.json$/,``));export{F as scan,L as schemaDefinitions};
|
|
@@ -15,4 +15,5 @@ export default class Description extends DescriptionSuperclass {
|
|
|
15
15
|
*/
|
|
16
16
|
accessor text: string;
|
|
17
17
|
}
|
|
18
|
-
declare const DescriptionSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
18
|
+
declare const DescriptionSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
19
|
+
export {};
|
|
@@ -44,4 +44,5 @@ export default class FeatureReference extends FeatureReferenceSuperclass {
|
|
|
44
44
|
get layerReference(): LayerReference;
|
|
45
45
|
set layerReference(value: LayerReferenceProperties);
|
|
46
46
|
}
|
|
47
|
-
declare const FeatureReferenceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
47
|
+
declare const FeatureReferenceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
48
|
+
export {};
|
|
@@ -25,4 +25,5 @@ export default class FeatureReferenceId extends FeatureReferenceIdSuperclass {
|
|
|
25
25
|
}
|
|
26
26
|
declare const FeatureReferenceIdSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
27
27
|
|
|
28
|
-
export type FeatureIdType = "global-id" | "object-id";
|
|
28
|
+
export type FeatureIdType = "global-id" | "object-id";
|
|
29
|
+
export {};
|
|
@@ -24,4 +24,5 @@ export default class LayerReference extends LayerReferenceSuperclass {
|
|
|
24
24
|
*/
|
|
25
25
|
accessor sublayerId: number | null | undefined;
|
|
26
26
|
}
|
|
27
|
-
declare const LayerReferenceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
27
|
+
declare const LayerReferenceSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
28
|
+
export {};
|
|
@@ -61,4 +61,5 @@ export default class SlideElements extends SlideElementsSuperclass {
|
|
|
61
61
|
get popupInfo(): SlidePopupInfo | null | undefined;
|
|
62
62
|
set popupInfo(value: SlidePopupInfoProperties | null | undefined);
|
|
63
63
|
}
|
|
64
|
-
declare const SlideElementsSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
64
|
+
declare const SlideElementsSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
65
|
+
export {};
|
|
@@ -28,4 +28,5 @@ export default class SlideEnvironment extends SlideEnvironmentSuperclass {
|
|
|
28
28
|
get lighting(): SunLighting | VirtualLighting;
|
|
29
29
|
set lighting(value: (SunLightingProperties & { type?: "sun" }) | (VirtualLightingProperties & { type: "virtual" }));
|
|
30
30
|
}
|
|
31
|
-
declare const SlideEnvironmentSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
31
|
+
declare const SlideEnvironmentSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
32
|
+
export {};
|
|
@@ -14,4 +14,5 @@ export default class SlideGround extends SlideGroundSuperclass {
|
|
|
14
14
|
*/
|
|
15
15
|
accessor opacity: number | null | undefined;
|
|
16
16
|
}
|
|
17
|
-
declare const SlideGroundSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
17
|
+
declare const SlideGroundSuperclass: typeof JSONSupport & typeof ClonableMixin
|
|
18
|
+
export {};
|