@arcgis/core 5.0.0-next.68 → 5.0.0-next.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/Ground.d.ts +3 -4
  2. package/WebDocument2D.d.ts +1 -1
  3. package/WebLinkChart.d.ts +2 -0
  4. package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +3 -4
  5. package/analysis/types.d.ts +1 -0
  6. package/applications/Components/analysisUtils.d.ts +1 -3
  7. package/applications/Components/arcadeFeatureUtils.d.ts +1 -1
  8. package/applications/ExperienceBuilder/sketchUtils.d.ts +2 -2
  9. package/applications/KnowledgeStudio/reshape.d.ts +2 -2
  10. package/applications/SceneViewer/sceneViewerUtils.d.ts +11 -0
  11. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  12. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  13. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  14. package/assets/esri/core/workers/RemoteClient.js +1 -1
  15. package/assets/esri/core/workers/chunks/{c623918e289a09905cd1.js → 01d7542d85a453384cf1.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{168ec8fca2702617a543.js → 09dfec3e097ebbef6a89.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{794960ec36e11f4416c2.js → 1d1e25bb61eeeee8ee94.js} +1 -1
  18. package/assets/esri/core/workers/chunks/2e2c47f8a80ee9234350.js +1 -0
  19. package/assets/esri/core/workers/chunks/{b2a1e5e9182b643909eb.js → 4c04c54330b693892cfc.js} +47 -49
  20. package/assets/esri/core/workers/chunks/563933a84fc9b0e021f6.js +1 -0
  21. package/assets/esri/core/workers/chunks/58b3a776ef129f7f86dc.js +1 -0
  22. package/assets/esri/core/workers/chunks/58e8d41dcc450e6427c9.js +1 -0
  23. package/assets/esri/core/workers/chunks/6c9dac4a869742cc2718.js +1 -0
  24. package/assets/esri/core/workers/chunks/{e5aac523c37d906eece6.js → 827277e5da652bcecaf2.js} +1 -1
  25. package/assets/esri/core/workers/chunks/9f34cf024231f574009c.js +1 -0
  26. package/assets/esri/core/workers/chunks/a10c6dd3bb8b3602de68.js +1 -0
  27. package/assets/esri/core/workers/chunks/a64cd02ca959d511101c.js +1 -0
  28. package/assets/esri/core/workers/chunks/{0f8149fdcf0adeca268e.js → b28e0b89603d8b03f9e1.js} +1 -1
  29. package/assets/esri/core/workers/chunks/b5e4a36784d598ae6679.js +1 -0
  30. package/assets/esri/core/workers/chunks/{204d738c8b651314ae64.js → b899b4e7979c13b99526.js} +1 -1
  31. package/assets/esri/core/workers/chunks/bf05164b7a3e4f31e9db.js +1 -0
  32. package/assets/esri/core/workers/chunks/d0ae8752419d5b761190.js +1 -0
  33. package/assets/esri/core/workers/chunks/dbfb00fb28b8b9f687a1.js +1 -0
  34. package/assets/esri/core/workers/chunks/e071b912539304564b69.js +1 -0
  35. package/assets/esri/core/workers/chunks/{ab71865b94022e78035c.js → f92845eb7df1804fcd6d.js} +1 -1
  36. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +108 -0
  37. package/assets/esri/themes/dark/main.css +1 -1
  38. package/assets/esri/themes/light/main.css +1 -1
  39. package/assets/esri/themes/light/view.css +1 -1
  40. package/chunks/GaussianSplat.glsl.js +2 -2
  41. package/chunks/GaussianSplatDepthComposition.glsl.js +4 -5
  42. package/chunks/HUDMaterial.glsl.js +45 -47
  43. package/chunks/LineMarker.glsl.js +33 -34
  44. package/chunks/PointRenderer.glsl.js +6 -6
  45. package/chunks/RibbonLine.glsl.js +62 -54
  46. package/chunks/libtess-f32.js +1 -1
  47. package/chunks/libtess-f64.js +1 -1
  48. package/config.js +1 -1
  49. package/core/Collection.d.ts +3 -2
  50. package/core/Identifiable.d.ts +1 -3
  51. package/core/accessorSupport/types.d.ts +0 -8
  52. package/core/promiseUtils.d.ts +1 -1
  53. package/core/reactiveUtils.d.ts +2 -2
  54. package/core/units.d.ts +8 -2
  55. package/geometry/HeightModelInfo.d.ts +3 -3
  56. package/geometry/SpatialReference.d.ts +2 -2
  57. package/geometry/libtess.js +1 -1
  58. package/geometry/support/meshUtils/types.d.ts +2 -2
  59. package/geometry/types.d.ts +2 -0
  60. package/identity/IdentityManagerBase.d.ts +4 -4
  61. package/interfaces.d.ts +2937 -2954
  62. package/kernel.js +1 -1
  63. package/layers/BaseElevationLayer.d.ts +3 -4
  64. package/layers/ElevationLayer.d.ts +3 -4
  65. package/layers/FeatureLayer.d.ts +12 -11
  66. package/layers/FeatureLayer.js +1 -1
  67. package/layers/GroupLayer.d.ts +3 -3
  68. package/layers/ImageryLayer.d.ts +3 -3
  69. package/layers/ImageryTileLayer.d.ts +3 -4
  70. package/layers/Layer.d.ts +4 -4
  71. package/layers/LineOfSightLayer.d.ts +1 -1
  72. package/layers/LinkChartLayer.js +1 -1
  73. package/layers/MapImageLayer.d.ts +7 -8
  74. package/layers/MediaLayer.d.ts +3 -3
  75. package/layers/OrientedImageryLayer.d.ts +3 -3
  76. package/layers/ParquetLayer.d.ts +1 -1
  77. package/layers/ParquetLayer.js +1 -1
  78. package/layers/RouteLayer.d.ts +2 -3
  79. package/layers/SceneLayer.d.ts +167 -3
  80. package/layers/SceneLayer.js +1 -1
  81. package/layers/StreamLayer.d.ts +3 -3
  82. package/layers/SubtypeGroupLayer.d.ts +3 -3
  83. package/layers/WCSLayer.d.ts +3 -3
  84. package/layers/graphics/sources/ParquetSource.d.ts +1 -1
  85. package/layers/graphics/sources/support/QueryTask.js +1 -1
  86. package/layers/mixins/SceneService.d.ts +2 -2
  87. package/layers/orientedImagery/queries.js +1 -1
  88. package/layers/orientedImagery/transformations/imageToWorld.d.ts +2 -2
  89. package/layers/orientedImagery/transformations/types.d.ts +1 -1
  90. package/layers/raster/datasets/pixelReader.d.ts +1 -7
  91. package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +29 -29
  92. package/layers/support/BuildingFilterMode.d.ts +3 -1
  93. package/layers/support/BuildingFilterMode.js +1 -1
  94. package/layers/support/BuildingFilterModeSolid.js +1 -1
  95. package/layers/support/BuildingFilterModeWireFrame.js +1 -1
  96. package/layers/support/BuildingFilterModeXRay.js +1 -1
  97. package/layers/support/CodedValue.d.ts +1 -1
  98. package/layers/support/ControlPoint.d.ts +6 -20
  99. package/layers/support/ControlPointsGeoreference.d.ts +2 -1
  100. package/layers/support/ElevationSampler.d.ts +2 -2
  101. package/layers/support/FeatureReductionBinning.d.ts +4 -4
  102. package/layers/support/FeatureReductionBinning.js +1 -1
  103. package/layers/support/FeatureReductionSelection.d.ts +3 -3
  104. package/layers/support/FeatureReductionSelection.js +1 -1
  105. package/layers/support/Field.d.ts +1 -2
  106. package/layers/support/ParquetGeometryEncodingLocation.d.ts +6 -4
  107. package/layers/support/ParquetGeometryEncodingLocation.js +1 -1
  108. package/layers/support/ParquetGeometryEncodingWkb.d.ts +6 -4
  109. package/layers/support/ParquetGeometryEncodingWkb.js +1 -1
  110. package/layers/support/PixelBlock.d.ts +11 -3
  111. package/layers/support/RangeDomain.d.ts +2 -1
  112. package/layers/support/SceneServiceTimeInfo.js +5 -0
  113. package/layers/support/SpriteSource.d.ts +1 -0
  114. package/layers/support/Sublayer.d.ts +17 -16
  115. package/layers/support/Sublayer.js +1 -1
  116. package/layers/support/featureReductionUtils.js +1 -1
  117. package/layers/support/rasterFunctionUtils.d.ts +30 -30
  118. package/layers/support/types.d.ts +101 -1
  119. package/layers/types.d.ts +12 -1
  120. package/layers/wms/types.d.ts +0 -4
  121. package/networks/CircuitManager.d.ts +5 -5
  122. package/networks/Network.d.ts +5 -5
  123. package/networks/UtilityNetwork.d.ts +2 -2
  124. package/package.json +2 -2
  125. package/popup/content/types.d.ts +1 -3
  126. package/portal/PortalItem.d.ts +8 -8
  127. package/portal/PortalItemResource.d.ts +2 -2
  128. package/portal/PortalUser.d.ts +3 -3
  129. package/portal/support/resourceUtils.d.ts +3 -3
  130. package/portal/types.d.ts +6 -6
  131. package/renderers/support/pointCloud/types.d.ts +1 -0
  132. package/renderers/support/raster/types.d.ts +1 -0
  133. package/renderers/types.d.ts +2 -0
  134. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +0 -2
  135. package/rest/layerSources/DynamicDataLayer.d.ts +102 -0
  136. package/rest/layerSources/DynamicDataLayer.js +5 -0
  137. package/{layers/support/source/MapLayerSource.d.ts → rest/layerSources/DynamicMapLayer.d.ts} +4 -4
  138. package/rest/layerSources/DynamicMapLayer.js +5 -0
  139. package/rest/layerSources/JoinTableDataSource.d.ts +75 -0
  140. package/rest/layerSources/JoinTableDataSource.js +5 -0
  141. package/{layers/support/source → rest/layerSources}/QueryTableDataSource.d.ts +8 -7
  142. package/rest/layerSources/QueryTableDataSource.js +5 -0
  143. package/{layers/support/source → rest/layerSources}/RasterDataSource.d.ts +2 -2
  144. package/rest/layerSources/RasterDataSource.js +5 -0
  145. package/{layers/support/source → rest/layerSources}/TableDataSource.d.ts +2 -2
  146. package/rest/layerSources/TableDataSource.js +5 -0
  147. package/rest/layerSources/utils.js +5 -0
  148. package/rest/print.js +1 -1
  149. package/rest/query/executeQuery.js +1 -1
  150. package/rest/support/Query.js +1 -1
  151. package/rest/support/RelationshipQuery.js +1 -1
  152. package/rest/support/types.d.ts +0 -4
  153. package/smartMapping/heuristics/binLevel.d.ts +2 -2
  154. package/smartMapping/heuristics/scaleRange.d.ts +2 -2
  155. package/smartMapping/heuristics/sizeRange.d.ts +2 -2
  156. package/smartMapping/heuristics/types.d.ts +3 -3
  157. package/smartMapping/labels/bins.d.ts +2 -2
  158. package/smartMapping/labels/clusters.d.ts +2 -2
  159. package/smartMapping/renderers/color.d.ts +14 -14
  160. package/smartMapping/renderers/dotDensity.d.ts +2 -2
  161. package/smartMapping/renderers/heatmap.d.ts +4 -4
  162. package/smartMapping/renderers/location.d.ts +2 -2
  163. package/smartMapping/renderers/opacity.d.ts +2 -2
  164. package/smartMapping/renderers/pieChart.d.ts +4 -4
  165. package/smartMapping/renderers/predominance.d.ts +2 -2
  166. package/smartMapping/renderers/relationship.d.ts +4 -4
  167. package/smartMapping/renderers/size.d.ts +15 -15
  168. package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
  169. package/smartMapping/renderers/type.d.ts +4 -4
  170. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  171. package/smartMapping/statistics/classBreaks.d.ts +2 -2
  172. package/smartMapping/statistics/heatmapStatistics.d.ts +2 -2
  173. package/smartMapping/statistics/histogram.d.ts +2 -2
  174. package/smartMapping/statistics/predominantCategories.d.ts +2 -2
  175. package/smartMapping/statistics/summaryStatistics.d.ts +2 -2
  176. package/smartMapping/statistics/summaryStatisticsForAge.d.ts +2 -2
  177. package/smartMapping/statistics/support/ageUtils.d.ts +2 -2
  178. package/smartMapping/statistics/types.d.ts +7 -7
  179. package/smartMapping/statistics/uniqueValues.d.ts +2 -2
  180. package/smartMapping/symbology/color.d.ts +8 -8
  181. package/smartMapping/symbology/dotDensity.d.ts +6 -6
  182. package/smartMapping/symbology/flow.d.ts +6 -6
  183. package/smartMapping/symbology/heatmap.d.ts +6 -6
  184. package/smartMapping/symbology/location.d.ts +2 -2
  185. package/smartMapping/symbology/pieChart.d.ts +6 -6
  186. package/smartMapping/symbology/predominance.d.ts +6 -6
  187. package/smartMapping/symbology/relationship.d.ts +6 -6
  188. package/smartMapping/symbology/size.d.ts +2 -2
  189. package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
  190. package/smartMapping/symbology/type.d.ts +6 -6
  191. package/support/popupUtils.d.ts +2 -2
  192. package/support/revision.js +1 -1
  193. package/symbols/LineSymbol3D.d.ts +2 -2
  194. package/symbols/PointSymbol3D.d.ts +2 -2
  195. package/symbols/PolygonSymbol3D.d.ts +2 -2
  196. package/symbols/patterns/LinePattern3D.d.ts +8 -0
  197. package/symbols/patterns/LineStylePattern3D.d.ts +1 -2
  198. package/symbols/patterns/Pattern3D.d.ts +9 -0
  199. package/symbols/patterns/StylePattern3D.d.ts +1 -2
  200. package/symbols/types.d.ts +7 -0
  201. package/unionTypes.d.ts +13 -13
  202. package/views/2d/analysis/types.d.ts +1 -0
  203. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  204. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  205. package/views/2d/layers/BaseLayerView2D.d.ts +0 -5
  206. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  207. package/views/2d/layers/StreamLayerView2D.js +1 -1
  208. package/views/2d/layers/features/Processor.js +1 -1
  209. package/views/2d/layers/support/MediaLayerInteractionOptions.js +1 -1
  210. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +0 -2
  211. package/views/3d/analysis/types.d.ts +1 -0
  212. package/views/3d/environment/SunLighting.d.ts +1 -3
  213. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  214. package/views/3d/layers/support/MediaLayerInteractionOptions.d.ts +4 -0
  215. package/views/3d/support/QualityProfile.js +1 -1
  216. package/views/3d/support/QualitySettings.js +1 -1
  217. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  218. package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
  219. package/views/3d/webgl-engine/collections/Component/Transform.js +1 -1
  220. package/views/3d/webgl-engine/core/shaderLibrary/shading/PositionOutsideClipSpace.js +5 -0
  221. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  222. package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
  223. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  224. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  225. package/views/3d/webgl-engine/lib/edgeRendering/LegacyTransform.js +5 -0
  226. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  227. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  228. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  229. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  230. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  231. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  232. package/views/SceneView.js +1 -1
  233. package/views/View.js +1 -1
  234. package/views/View2D.js +1 -1
  235. package/views/analysis/types.d.ts +4 -0
  236. package/views/input/types.d.ts +2 -4
  237. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  238. package/views/layers/CatalogLayerView.d.ts +1 -4
  239. package/views/layers/DimensionLayerView.d.ts +4 -6
  240. package/views/layers/DimensionLayerViewMixin.d.ts +0 -97
  241. package/views/layers/LineOfSightLayerView.d.ts +4 -6
  242. package/views/layers/LineOfSightLayerViewMixin.d.ts +0 -77
  243. package/views/layers/StreamLayerView.d.ts +31 -2
  244. package/views/support/WebAssemblyRequirements.js +5 -0
  245. package/views/support/WebGLRequirements.js +1 -1
  246. package/webdoc/support/SlideThumbnail.d.ts +6 -3
  247. package/webdoc/support/SlideThumbnail.js +1 -1
  248. package/webscene/spec-certification/api.js +1 -1
  249. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -2
  250. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  251. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +2 -2
  252. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  253. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  254. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +7 -0
  255. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
  256. package/widgets/BatchAttributeForm/inputs/support/textInputElementUtils.js +5 -0
  257. package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +1 -1
  258. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  259. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  260. package/widgets/BatchAttributeForm.js +1 -1
  261. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +2 -2
  262. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  263. package/widgets/Directions/DirectionsViewModel.d.ts +20 -4
  264. package/widgets/Directions/DirectionsViewModel.js +1 -1
  265. package/widgets/Directions.d.ts +2 -3
  266. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -2
  267. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  268. package/widgets/Editor/EditorViewModel.d.ts +2 -2
  269. package/widgets/Editor.d.ts +2 -2
  270. package/widgets/ElevationProfile/support/HoveredPoints.js +1 -1
  271. package/widgets/ElevationProfile/types.d.ts +3 -4
  272. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  273. package/widgets/Feature/types.d.ts +1 -5
  274. package/widgets/FeatureTable/Grid/types.d.ts +0 -2
  275. package/widgets/FeatureTable/support/types.d.ts +8 -8
  276. package/widgets/Features/FeaturesViewModel.d.ts +3 -3
  277. package/widgets/Features/FeaturesViewModel.js +1 -1
  278. package/widgets/LineOfSight/LineOfSightViewModel.d.ts +2 -2
  279. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  280. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  281. package/widgets/Popup/types.d.ts +0 -2
  282. package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +2 -0
  283. package/widgets/Sketch/SketchViewModel.js +1 -1
  284. package/widgets/Sketch/types.d.ts +2 -2
  285. package/widgets/Slice/SliceViewModel.d.ts +2 -2
  286. package/widgets/Slice/SliceViewModel.js +1 -1
  287. package/widgets/Spinner/SpinnerViewModel.js +1 -1
  288. package/widgets/support/AnalysisViewModelMixin.js +5 -0
  289. package/widgets/support/AnchorElementViewModel.js +1 -1
  290. package/widgets/support/InteractiveToolViewModelMixin.js +5 -0
  291. package/assets/esri/core/workers/chunks/3c3d311b88f5400951ef.js +0 -1
  292. package/assets/esri/core/workers/chunks/4a060147d25929680ec8.js +0 -1
  293. package/assets/esri/core/workers/chunks/4d0eaeb4cd6cd55e25fd.js +0 -1
  294. package/assets/esri/core/workers/chunks/61801bb8c7be8fe77086.js +0 -1
  295. package/assets/esri/core/workers/chunks/62b28f73f814413c10fc.js +0 -1
  296. package/assets/esri/core/workers/chunks/6925f09d44cc38480d53.js +0 -1
  297. package/assets/esri/core/workers/chunks/98f4b44eca91c42ca08e.js +0 -1
  298. package/assets/esri/core/workers/chunks/990341f7c47bd656c782.js +0 -1
  299. package/assets/esri/core/workers/chunks/ba7f57788847cc0f68df.js +0 -1
  300. package/assets/esri/core/workers/chunks/bf06250be7a7a36306b1.js +0 -1
  301. package/assets/esri/core/workers/chunks/cd2708fb7636b3ace229.js +0 -1
  302. package/assets/esri/core/workers/chunks/f7d93aae350796b88562.js +0 -1
  303. package/assets/esri/core/workers/chunks/f95e488d2b86e320624f.js +0 -1
  304. package/layers/mixins/TemporalSceneLayer.d.ts +0 -177
  305. package/layers/mixins/TemporalSceneLayer.js +0 -5
  306. package/layers/mixins/properties/ILayerWithSave.d.ts +0 -11
  307. package/layers/support/ContingencyConstraintViolation.d.ts +0 -2
  308. package/layers/support/ContingentValue.d.ts +0 -2
  309. package/layers/support/ContingentValuesResult.d.ts +0 -2
  310. package/layers/support/ElevationQuery.d.ts +0 -35
  311. package/layers/support/ElevationQueryContext.d.ts +0 -37
  312. package/layers/support/FeatureReduction.d.ts +0 -3
  313. package/layers/support/FeatureReduction.js +0 -5
  314. package/layers/support/FieldGroup.d.ts +0 -2
  315. package/layers/support/FieldValueType.d.ts +0 -2
  316. package/layers/support/I3SLayer.d.ts +0 -9
  317. package/layers/support/ParquetGeometryEncodingBase.d.ts +0 -9
  318. package/layers/support/ParquetGeometryEncodingBase.js +0 -5
  319. package/layers/support/SimpleBandStatistics.d.ts +0 -10
  320. package/layers/support/source/DataLayerSource.d.ts +0 -171
  321. package/layers/support/source/DataLayerSource.js +0 -5
  322. package/layers/support/source/MapLayerSource.js +0 -5
  323. package/layers/support/source/QueryTableDataSource.js +0 -5
  324. package/layers/support/source/RasterDataSource.js +0 -5
  325. package/layers/support/source/TableDataSource.js +0 -5
  326. package/layers/support/source/types.d.ts +0 -4
  327. package/views/2d/layers/features/FeaturePipelineWorkerProxy.d.ts +0 -32
  328. package/views/3d/webgl-engine/shaders/GaussianSplatColorTechnique.js +0 -5
  329. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +0 -5
  330. package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +0 -5
  331. package/widgets/support/AnalysisViewModel.d.ts +0 -5
  332. package/widgets/support/AnalysisViewModel.js +0 -5
  333. package/widgets/support/AnchorElementViewModel.d.ts +0 -3
  334. package/widgets/support/InteractiveToolViewModel.d.ts +0 -4
  335. package/widgets/support/InteractiveToolViewModel.js +0 -5
  336. /package/webdoc/support/{thumbnailUtils.d.ts → types.d.ts} +0 -0
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../Graphic.js";import r from"../PopupTemplate.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import{abortHandle as a}from"../core/handleUtils.js";import n from"../core/Logger.js";import{destroyMaybe as l}from"../core/maybe.js";import{MultiOriginJSONMixin as p}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,throwIfAborted as y,isAbortError as u,throwIfNotAbortError as c}from"../core/promiseUtils.js";import{whenOnce as h}from"../core/reactiveUtils.js";import{property as f,subclass as m}from"../core/accessorSupport/decorators.js";import{getProperties as g}from"../core/accessorSupport/utils.js";import v from"../geometry/Point.js";import{projectAsync as b}from"../geometry/projectionUtils.js";import w from"../graphic/SceneGraphicOrigin.js";import I from"./Layer.js";import{NoModelError as L,MultipleModelsError as j}from"./graphics/sources/support/uploadAssetErrors.js";import{APIKeyMixin as F}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{CustomParametersMixin as O}from"./mixins/CustomParametersMixin.js";import{EditBusLayer as _}from"./mixins/EditBusLayer.js";import{OperationalLayer as P}from"./mixins/OperationalLayer.js";import{PortalLayer as A}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as T}from"./mixins/ScaleRangeLayer.js";import{SceneService as x}from"./mixins/SceneService.js";import{useViewTimeProperty as E}from"./mixins/TemporalLayer.js";import{TemporalSceneLayer as D}from"./mixins/TemporalSceneLayer.js";import{isHostedAgolService as U}from"./support/arcgisLayerUrl.js";import{findAssociatedFeatureService as q}from"./support/associatedFeatureServiceUtils.js";import{zeroCapabilities as R}from"./support/capabilities.js";import{elevationInfo as C,labelsVisible as N,legendEnabled as G,popupEnabled as Q,attributeTableTemplate as V,screenSizePerspectiveEnabled as M}from"./support/commonProperties.js";import{getFieldDomain as k,computeEffectiveEditingEnabled as K,getGlobalIdToObjectIdMap as $}from"./support/featureLayerUtils.js";import H from"./support/FeatureReduction.js";import z from"./support/FeatureReductionSelection.js";import{defineFieldProperties as W}from"./support/fieldProperties.js";import Z from"./support/FieldsIndex.js";import{fixRendererFields as B,unpackFieldNames as J}from"./support/fieldUtils.js";import{I3SNodePageDefinition as X,I3SMaterialDefinition as Y,I3STextureSetDefinition as ee,I3SGeometryDefinition as te}from"./support/I3SLayerDefinitions.js";import{isFileEditFormat as re,isFileSupported as ie}from"./support/infoFor3D.js";import se from"./support/LabelClass.js";import{reader as oe}from"./support/labelingInfo.js";import ae from"./support/LayerFloorInfo.js";import{layerLookupMap as ne}from"./support/lazyLayerLoader.js";import{getMeshTransformForMetersToSpatialReference as le}from"./support/meshSpatialReferenceScaleUtils.js";import{RangeInfo as pe}from"./support/RangeInfo.js";import de from"./support/SceneFilter.js";import{cacheIsOutOfSync as ye}from"./support/sceneLayerCacheUtils.js";import{fetchStatistics as ue}from"./support/sceneLayerStatistics.js";import{loadStyleRenderer as ce}from"../renderers/support/styleUtils.js";import{webSceneRendererTypes as he}from"../renderers/support/typeUtils.js";import fe from"../rest/support/Query.js";import{logInvalidElevationInfoWarning as me,elevationModeUnsupportedMessage as ge,featureExpressionUnsupportedMessage as ve}from"../support/elevationInfoUtils.js";import{createPopupTemplate as be}from"../support/popupUtils.js";import{extractZipFiles as we}from"../support/zipUtils.js";import{queryAttributesFromCachedAttributesId as Ie}from"../views/3d/layers/i3s/I3SUtil.js";import{getRequiredFields as Le,getFetchPopupTemplate as je}from"../views/layers/support/popupUtils.js";import{transparencyToOpacity as Fe}from"../webdoc/support/opacityUtils.js";import{reader as Se}from"../core/accessorSupport/decorators/reader.js";const Oe=new Set(["3DObject","Point"]),_e=W();let Pe=class extends(D(_(x(S(P(A(T(p(O(F(i(I)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new w(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new s,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=l(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?k(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:X.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&K(this.associatedLayer)}get geometryType(){return Te[this.profile]||"mesh"}set renderer(e){B(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:R;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:o,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:n},data:{supportsZ:l,supportsM:p,isVersioned:d,supportsAttachment:y},operations:{supportsEditing:u,supportsAdd:c,supportsUpdate:h,supportsDelete:f,supportsQuery:m,supportsQueryAttachments:g,supportsAsyncConvert3D:v}}=e,b=e.operations.supportsChangeTracking,w=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:n,supportsRollbackOnFailure:s,supportsGeometryUpdate:w&&a,supportsUploadWithItemId:o},data:{supportsAttachment:y,supportsZ:l,supportsM:p,isVersioned:d},operations:{supportsQuery:m,supportsQueryAttachments:g,supportsEditing:u&&b,supportsAdd:w&&c&&b,supportsDelete:w&&f&&b,supportsUpdate:h&&b,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Ae[r]?Ae[r]:(n.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(d),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await ce(this,{origin:"service"},t),B(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){n.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new fe;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=J(this.fieldsIndex,await Le(this,je(this)));return Ie(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,r){const i=await this.queryCachedAttributes(e,[r]);if(!i||0===i.length)throw new o("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new t;return s.attributes=i[0],s.layer=this,s.sourceLayer=this,s.origin=this.graphicOrigin,s}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(n.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return be(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new o("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:r}=await import("./graphics/editingSupport.js");let i=t;await this.load();const s=this.associatedLayer;if(!s)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:a}=s,n=!!s.infoFor3D,l=i?.globalIdUsed??!0;if(n&&null==a)throw new o(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(n&&!l)throw new o(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return U(s.url)&&n&&null!=e.deleteFeatures&&null!=a&&(i={...i,globalIdToObjectId:await $(s,e.deleteFeatures,a)}),r(this,s.source,e,i)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const r=e=>{throw n.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||r(new o("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e);y(t);const s=i.reduce((e,t)=>re(this.infoFor3D,t)?e+1:e,0);0===s&&r(new L),s>1&&r(new j);const a=this.spatialReference,l=t.origin,p=await b(l??t.defaultOrigin??new v({x:0,y:0,z:0,spatialReference:a}),a,t),d=a.isGeographic?"local":"georeferenced",{default:u}=await import("../geometry/Mesh.js");y(t);const c=u.createWithExternalSource(p,{type:"client",files:i},{vertexSpace:d,transform:le(a),unitConversionDisabled:!0}),[h]=await this.uploadAssets([c],{...t,useAssetOrigin:!l});return h}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;if(!t)return e;return(await we(e)).filter(e=>ie(t,e))}validateLayer(e){if(e.layerType&&!Oe.has(e.layerType))throw new o("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});function t(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new o("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new o("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}t(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new o("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=g(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");if(null==this.associatedLayer?.infoFor3D||!e||!U(this.associatedLayer?.url)||!ye(this))return;g(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await q(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ne.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(t){u(t)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles(a(e));try{await h(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(r){return void c(r)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?n.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):n.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&me(n.getLogger(this),ge("Mesh scene layers","relative-to-scene",e)),me(n.getLogger(this),ve("Scene layers",e))}async fetchStatistics(e,t){return await ue({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}};e([f({types:{key:"type",base:H,typeMap:{selection:z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Pe.prototype,"featureReduction",void 0),e([f({type:[pe],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Pe.prototype,"rangeInfos",void 0),e([f({json:{read:!1}})],Pe.prototype,"associatedLayer",void 0),e([f({type:["show","hide"]})],Pe.prototype,"listMode",void 0),e([f({type:["ArcGISSceneServiceLayer"]})],Pe.prototype,"operationalLayerType",void 0),e([f({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),e([f({..._e.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"fields",void 0),e([f()],Pe.prototype,"types",null),e([f()],Pe.prototype,"typeIdField",null),e([f()],Pe.prototype,"templates",null),e([f()],Pe.prototype,"formTemplate",null),e([f({readOnly:!0})],Pe.prototype,"graphicOrigin",void 0),e([f({readOnly:!0,clonable:!1})],Pe.prototype,"fieldsIndex",null),e([f({type:ae,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Pe.prototype,"floorInfo",void 0),e([f(_e.outFields)],Pe.prototype,"outFields",void 0),e([f({type:X,readOnly:!0,json:{read:!1},clonable:!1})],Pe.prototype,"nodePages",void 0),e([Se("service","nodePages",["nodePages","pointNodePages"])],Pe.prototype,"readNodePages",null),e([f({type:[Y],readOnly:!0,clonable:!1})],Pe.prototype,"materialDefinitions",void 0),e([f({type:[ee],readOnly:!0,clonable:!1})],Pe.prototype,"textureSetDefinitions",void 0),e([f({type:[te],readOnly:!0,clonable:!1})],Pe.prototype,"geometryDefinitions",void 0),e([f({readOnly:!0})],Pe.prototype,"serviceUpdateTimeStamp",void 0),e([f({readOnly:!0})],Pe.prototype,"attributeStorageInfo",void 0),e([f({readOnly:!0})],Pe.prototype,"statisticsInfo",void 0),e([f({type:s.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Pe.prototype,"excludeObjectIds",void 0),e([f({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Pe.prototype,"definitionExpression",void 0),e([f({type:de,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"filter",void 0),e([f({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Pe.prototype,"path",void 0),e([f(C)],Pe.prototype,"elevationInfo",null),e([f({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),e([f({readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),e([f({type:String})],Pe.prototype,"geometryType",null),e([f(N)],Pe.prototype,"labelsVisible",void 0),e([f({type:[se],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:oe},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:oe},write:!0}})],Pe.prototype,"labelingInfo",void 0),e([f(G)],Pe.prototype,"legendEnabled",void 0),e([f({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?Fe(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Pe.prototype,"opacity",void 0),e([f({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"priority",void 0),e([f({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"semantic",void 0),e([f({types:he,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Pe.prototype,"renderer",null),e([f({json:{read:!1}})],Pe.prototype,"cachedDrawingInfo",void 0),e([Se("service","cachedDrawingInfo")],Pe.prototype,"readCachedDrawingInfo",null),e([f({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),e([f({type:Boolean,json:{read:!1}})],Pe.prototype,"editingEnabled",null),e([f({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"infoFor3D",null),e([f({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"relationships",null),e([f(Q)],Pe.prototype,"popupEnabled",void 0),e([f({type:r,json:{name:"popupInfo",write:!0}})],Pe.prototype,"popupTemplate",void 0),e([f({readOnly:!0,json:{read:!1}})],Pe.prototype,"defaultPopupTemplate",null),e([f(V)],Pe.prototype,"attributeTableTemplate",void 0),e([f({type:String,json:{read:!1}})],Pe.prototype,"objectIdField",void 0),e([Se("service","objectIdField",["objectIdField","fields"])],Pe.prototype,"readObjectIdField",null),e([f({type:String,json:{read:!1}})],Pe.prototype,"globalIdField",void 0),e([Se("service","globalIdField",["globalIdField","fields"])],Pe.prototype,"readGlobalIdField",null),e([f({readOnly:!0,type:String,json:{read:!1}})],Pe.prototype,"displayField",null),e([f({type:String,json:{read:!1}})],Pe.prototype,"profile",void 0),e([Se("service","profile",["store.profile"])],Pe.prototype,"readProfile",null),e([f({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Pe.prototype,"normalReferenceFrame",void 0),e([f(M)],Pe.prototype,"screenSizePerspectiveEnabled",void 0),e([f({json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"serviceItemId",void 0),e([f(E)],Pe.prototype,"useViewTime",null),Pe=e([m("esri.layers.SceneLayer")],Pe);const Ae={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Te={"mesh-pyramids":"mesh",points:"point"},xe=Pe;export{xe as default};
5
+ import{__decorate as e}from"tslib";import t from"../Graphic.js";import r from"../PopupTemplate.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import{abortHandle as a}from"../core/handleUtils.js";import n from"../core/Logger.js";import{destroyMaybe as l}from"../core/maybe.js";import{MultiOriginJSONMixin as p}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,throwIfAborted as u,isAbortError as y,throwIfNotAbortError as c}from"../core/promiseUtils.js";import{whenOnce as m}from"../core/reactiveUtils.js";import{property as h,subclass as f}from"../core/accessorSupport/decorators.js";import{getProperties as g}from"../core/accessorSupport/utils.js";import v from"../geometry/Point.js";import{projectAsync as w}from"../geometry/projectionUtils.js";import b from"../graphic/SceneGraphicOrigin.js";import I from"./Layer.js";import{NoModelError as L,MultipleModelsError as j}from"./graphics/sources/support/uploadAssetErrors.js";import{APIKeyMixin as F}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{CustomParametersMixin as T}from"./mixins/CustomParametersMixin.js";import{EditBusLayer as O}from"./mixins/EditBusLayer.js";import{OperationalLayer as x}from"./mixins/OperationalLayer.js";import{PortalLayer as _}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as E}from"./mixins/ScaleRangeLayer.js";import{SceneService as P}from"./mixins/SceneService.js";import{useViewTimeProperty as A}from"./mixins/TemporalLayer.js";import{isHostedAgolService as U}from"./support/arcgisLayerUrl.js";import{findAssociatedFeatureService as D}from"./support/associatedFeatureServiceUtils.js";import{zeroCapabilities as q}from"./support/capabilities.js";import{elevationInfo as R,labelsVisible as C,legendEnabled as N,popupEnabled as G,attributeTableTemplate as Q,screenSizePerspectiveEnabled as k}from"./support/commonProperties.js";import{getFieldDomain as V,computeEffectiveEditingEnabled as M,getGlobalIdToObjectIdMap as z}from"./support/featureLayerUtils.js";import K from"./support/FeatureReductionSelection.js";import{defineFieldProperties as $}from"./support/fieldProperties.js";import H from"./support/FieldsIndex.js";import{fixRendererFields as W,fixTimeInfoFields as B,unpackFieldNames as Z}from"./support/fieldUtils.js";import{I3SNodePageDefinition as J,I3SMaterialDefinition as X,I3STextureSetDefinition as Y,I3SGeometryDefinition as ee}from"./support/I3SLayerDefinitions.js";import{isFileEditFormat as te,isFileSupported as re}from"./support/infoFor3D.js";import ie from"./support/LabelClass.js";import{reader as se}from"./support/labelingInfo.js";import oe from"./support/LayerFloorInfo.js";import{layerLookupMap as ae}from"./support/lazyLayerLoader.js";import{getMeshTransformForMetersToSpatialReference as ne}from"./support/meshSpatialReferenceScaleUtils.js";import{RangeInfo as le}from"./support/RangeInfo.js";import pe from"./support/SceneFilter.js";import{cacheIsOutOfSync as de}from"./support/sceneLayerCacheUtils.js";import{fetchStatistics as ue}from"./support/sceneLayerStatistics.js";import{SceneServiceTimeInfo as ye}from"./support/SceneServiceTimeInfo.js";import ce from"./support/TimeInfo.js";import{loadStyleRenderer as me}from"../renderers/support/styleUtils.js";import{webSceneRendererTypes as he}from"../renderers/support/typeUtils.js";import fe from"../rest/support/Query.js";import{logInvalidElevationInfoWarning as ge,elevationModeUnsupportedMessage as ve,featureExpressionUnsupportedMessage as we}from"../support/elevationInfoUtils.js";import{createPopupTemplate as be}from"../support/popupUtils.js";import{extractZipFiles as Ie}from"../support/zipUtils.js";import Le from"../time/TimeExtent.js";import je from"../time/TimeInterval.js";import{queryAttributesFromCachedAttributesId as Fe}from"../views/3d/layers/i3s/I3SUtil.js";import{getRequiredFields as Se,getFetchPopupTemplate as Te}from"../views/layers/support/popupUtils.js";import{transparencyToOpacity as Oe}from"../webdoc/support/opacityUtils.js";import{reader as xe}from"../core/accessorSupport/decorators/reader.js";const _e=new Set(["3DObject","Point"]),Ee=$();let Pe=class extends(O(P(S(x(_(E(p(T(F(i(I))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new b(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new s,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=l(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?V(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new H(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:J.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&M(this.associatedLayer)}get geometryType(){return Ue[this.profile]||"mesh"}set renderer(e){W(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:q;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:o,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:n},data:{supportsZ:l,supportsM:p,isVersioned:d,supportsAttachment:u},operations:{supportsEditing:y,supportsAdd:c,supportsUpdate:m,supportsDelete:h,supportsQuery:f,supportsQueryAttachments:g,supportsAsyncConvert3D:v}}=e,w=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:n,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&a,supportsUploadWithItemId:o},data:{supportsAttachment:u,supportsZ:l,supportsM:p,isVersioned:d},operations:{supportsQuery:f,supportsQueryAttachments:g,supportsEditing:y&&w,supportsAdd:b&&c&&w,supportsDelete:b&&h&&w,supportsUpdate:m&&w,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Ae[r]?Ae[r]:(n.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return B(t,this.fieldsIndex),t}set timeInfo(e){B(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(d),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await me(this,{origin:"service"},t),W(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){n.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new fe;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=Z(this.fieldsIndex,await Se(this,Te(this)));return Fe(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,r){const i=await this.queryCachedAttributes(e,[r]);if(!i||0===i.length)throw new o("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new t;return s.attributes=i[0],s.layer=this,s.sourceLayer=this,s.origin=this.graphicOrigin,s}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(n.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return be(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new o("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:r}=await import("./graphics/editingSupport.js");let i=t;await this.load();const s=this.associatedLayer;if(!s)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:a}=s,n=!!s.infoFor3D,l=i?.globalIdUsed??!0;if(n&&null==a)throw new o(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(n&&!l)throw new o(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return U(s.url)&&n&&null!=e.deleteFeatures&&null!=a&&(i={...i,globalIdToObjectId:await z(s,e.deleteFeatures,a)}),r(this,s.source,e,i)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const r=e=>{throw n.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||r(new o("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e);u(t);const s=i.reduce((e,t)=>te(this.infoFor3D,t)?e+1:e,0);0===s&&r(new L),s>1&&r(new j);const a=this.spatialReference,l=t.origin,p=await w(l??t.defaultOrigin??new v({x:0,y:0,z:0,spatialReference:a}),a,t),d=a.isGeographic?"local":"georeferenced",{default:y}=await import("../geometry/Mesh.js");u(t);const c=y.createWithExternalSource(p,{type:"client",files:i},{vertexSpace:d,transform:ne(a),unitConversionDisabled:!0}),[m]=await this.uploadAssets([c],{...t,useAssetOrigin:!l});return m}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;if(!t)return e;return(await Ie(e)).filter(e=>re(t,e))}validateLayer(e){if(e.layerType&&!_e.has(e.layerType))throw new o("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});function t(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new o("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new o("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}t(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new o("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=g(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");if(null==this.associatedLayer?.infoFor3D||!e||!U(this.associatedLayer?.url)||!de(this))return;g(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await D(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ae.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(t){y(t)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles(a(e));try{await m(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(r){return void c(r)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?n.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):n.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&ge(n.getLogger(this),ve("Mesh scene layers","relative-to-scene",e)),ge(n.getLogger(this),we("Scene layers",e))}async fetchStatistics(e,t){return await ue({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(de({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:o,maxTimeStr:a,max:n}=i,l=t===r?s??o:a??n;return null!=l?new Date(l):null},[o,a]=await Promise.all([s(r),s(i)]);if(null!=r&&null==o||null!=i&&null==a)return;const n=new Le({start:o,end:a});this.setAtOrigin("timeInfo",new ce({endField:i,startField:r,fullTimeExtent:n}),"service")}};e([h({types:{key:"type",base:null,typeMap:{selection:K}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Pe.prototype,"featureReduction",void 0),e([h({type:[le],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Pe.prototype,"rangeInfos",void 0),e([h({json:{read:!1}})],Pe.prototype,"associatedLayer",void 0),e([h({type:["show","hide"]})],Pe.prototype,"listMode",void 0),e([h({type:["ArcGISSceneServiceLayer"]})],Pe.prototype,"operationalLayerType",void 0),e([h({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),e([h({...Ee.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"fields",void 0),e([h()],Pe.prototype,"types",null),e([h()],Pe.prototype,"typeIdField",null),e([h()],Pe.prototype,"templates",null),e([h()],Pe.prototype,"formTemplate",null),e([h({readOnly:!0})],Pe.prototype,"graphicOrigin",void 0),e([h({readOnly:!0,clonable:!1})],Pe.prototype,"fieldsIndex",null),e([h({type:oe,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Pe.prototype,"floorInfo",void 0),e([h(Ee.outFields)],Pe.prototype,"outFields",void 0),e([h({type:J,readOnly:!0,json:{read:!1},clonable:!1})],Pe.prototype,"nodePages",void 0),e([xe("service","nodePages",["nodePages","pointNodePages"])],Pe.prototype,"readNodePages",null),e([h({type:[X],readOnly:!0,clonable:!1})],Pe.prototype,"materialDefinitions",void 0),e([h({type:[Y],readOnly:!0,clonable:!1})],Pe.prototype,"textureSetDefinitions",void 0),e([h({type:[ee],readOnly:!0,clonable:!1})],Pe.prototype,"geometryDefinitions",void 0),e([h({readOnly:!0})],Pe.prototype,"serviceUpdateTimeStamp",void 0),e([h({readOnly:!0})],Pe.prototype,"attributeStorageInfo",void 0),e([h({readOnly:!0})],Pe.prototype,"statisticsInfo",void 0),e([h({type:s.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Pe.prototype,"excludeObjectIds",void 0),e([h({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Pe.prototype,"definitionExpression",void 0),e([h({type:pe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"filter",void 0),e([h({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Pe.prototype,"path",void 0),e([h(R)],Pe.prototype,"elevationInfo",null),e([h({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),e([h({readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),e([h({type:String})],Pe.prototype,"geometryType",null),e([h(C)],Pe.prototype,"labelsVisible",void 0),e([h({type:[ie],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:se},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:se},write:!0}})],Pe.prototype,"labelingInfo",void 0),e([h(N)],Pe.prototype,"legendEnabled",void 0),e([h({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?Oe(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Pe.prototype,"opacity",void 0),e([h({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"priority",void 0),e([h({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"semantic",void 0),e([h({types:he,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Pe.prototype,"renderer",null),e([h({json:{read:!1}})],Pe.prototype,"cachedDrawingInfo",void 0),e([xe("service","cachedDrawingInfo")],Pe.prototype,"readCachedDrawingInfo",null),e([h({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),e([h({type:Boolean,json:{read:!1}})],Pe.prototype,"editingEnabled",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"infoFor3D",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"relationships",null),e([h(G)],Pe.prototype,"popupEnabled",void 0),e([h({type:r,json:{name:"popupInfo",write:!0}})],Pe.prototype,"popupTemplate",void 0),e([h({readOnly:!0,json:{read:!1}})],Pe.prototype,"defaultPopupTemplate",null),e([h(Q)],Pe.prototype,"attributeTableTemplate",void 0),e([h({type:String,json:{read:!1}})],Pe.prototype,"objectIdField",void 0),e([xe("service","objectIdField",["objectIdField","fields"])],Pe.prototype,"readObjectIdField",null),e([h({type:String,json:{read:!1}})],Pe.prototype,"globalIdField",void 0),e([xe("service","globalIdField",["globalIdField","fields"])],Pe.prototype,"readGlobalIdField",null),e([h({readOnly:!0,type:String,json:{read:!1}})],Pe.prototype,"displayField",null),e([h({type:String,json:{read:!1}})],Pe.prototype,"profile",void 0),e([xe("service","profile",["store.profile"])],Pe.prototype,"readProfile",null),e([h({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Pe.prototype,"normalReferenceFrame",void 0),e([h(k)],Pe.prototype,"screenSizePerspectiveEnabled",void 0),e([h({json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"serviceItemId",void 0),e([h(A)],Pe.prototype,"useViewTime",null),e([h({type:ce,json:{read:!1,write:!1}})],Pe.prototype,"timeInfo",null),e([h({type:Le,json:{read:!1,write:!1}})],Pe.prototype,"timeExtent",null),e([h({type:je,json:{read:!1,write:!1}})],Pe.prototype,"timeOffset",null),e([h({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Pe.prototype,"datesInUnknownTimezone",null),e([h({type:ye,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Pe.prototype,"serviceTimeInfo",void 0),Pe=e([f("esri.layers.SceneLayer")],Pe);const Ae={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Ue={"mesh-pyramids":"mesh",points:"point"},De=Pe;export{De as default};
@@ -11,6 +11,7 @@ import type StreamConnection from "./support/StreamConnection.js";
11
11
  import type PortalItem from "../portal/PortalItem.js";
12
12
  import type ElevationInfo from "../symbols/support/ElevationInfo.js";
13
13
  import type { ClonableMixin, ClonableMixinProperties } from "../core/Clonable.js";
14
+ import type { LayerSaveAsOptions, LayerSaveOptions } from "./types.js";
14
15
  import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
15
16
  import type { CustomParametersMixin, CustomParametersMixinProperties } from "./mixins/CustomParametersMixin.js";
16
17
  import type { DisplayFilteredLayer, DisplayFilteredLayerProperties } from "./mixins/DisplayFilteredLayer.js";
@@ -23,7 +24,6 @@ import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleR
23
24
  import type { TemporalLayer, TemporalLayerProperties } from "./mixins/TemporalLayer.js";
24
25
  import type { TrackableLayer, TrackableLayerProperties } from "./mixins/TrackableLayer.js";
25
26
  import type { FieldDomainOptions } from "./mixins/properties/ILayerWithGetField.js";
26
- import type { SaveAsOptions, SaveOptions } from "./mixins/properties/ILayerWithSave.js";
27
27
  import type { Message } from "./support/StreamConnection.js";
28
28
  import type { PortalItemProperties } from "../portal/PortalItem.js";
29
29
  import type { RendererUnion } from "../renderers/types.js";
@@ -868,7 +868,7 @@ export default class StreamLayer extends StreamLayerSuperclass {
868
868
  * @since 4.28
869
869
  * @example const portalItem = await layer.save();
870
870
  */
871
- save(options?: SaveOptions): Promise<PortalItem>;
871
+ save(options?: LayerSaveOptions): Promise<PortalItem>;
872
872
  /**
873
873
  * Saves the layer to a new portal item in the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) authenticated within the user's current session.
874
874
  *
@@ -880,7 +880,7 @@ export default class StreamLayer extends StreamLayerSuperclass {
880
880
  * const portalItem = new PortalItem();
881
881
  * await layer.saveAs(portalItem);
882
882
  */
883
- saveAs(portalItem: PortalItemProperties, options?: SaveAsOptions): Promise<PortalItem>;
883
+ saveAs(portalItem: PortalItemProperties, options?: LayerSaveAsOptions): Promise<PortalItem>;
884
884
  /**
885
885
  * Sends client-side only messages. For instance, it can be used to add and remove features on the client-side.
886
886
  * The features must be in the spatial reference of the view when adding features to the layer.
@@ -10,6 +10,7 @@ import type FeatureSet from "../rest/support/FeatureSet.js";
10
10
  import type Query from "../rest/support/Query.js";
11
11
  import type { ClonableMixin, ClonableMixinProperties } from "../core/Clonable.js";
12
12
  import type { LayerEvents, LayerProperties } from "./Layer.js";
13
+ import type { LayerSaveAsOptions, LayerSaveOptions } from "./types.js";
13
14
  import type { EditOptions, Edits, EditsResult, FeatureEditResult } from "./graphics/editingSupport.js";
14
15
  import type { APIKeyMixin, APIKeyMixinProperties } from "./mixins/APIKeyMixin.js";
15
16
  import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
@@ -22,7 +23,6 @@ import type { PortalLayer, PortalLayerProperties } from "./mixins/PortalLayer.js
22
23
  import type { RefreshableLayerEvents, RefreshableLayer, RefreshableLayerProperties } from "./mixins/RefreshableLayer.js";
23
24
  import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleRangeLayer.js";
24
25
  import type { TemporalLayer, TemporalLayerProperties } from "./mixins/TemporalLayer.js";
25
- import type { SaveAsOptions, SaveOptions } from "./mixins/properties/ILayerWithSave.js";
26
26
  import type { PortalItemProperties } from "../portal/PortalItem.js";
27
27
  import type { RequestOptions } from "../request/types.js";
28
28
  import type { AttachmentQueryProperties } from "../rest/support/AttachmentQuery.js";
@@ -868,7 +868,7 @@ export default class SubtypeGroupLayer extends SubtypeGroupLayerSuperclass {
868
868
  * @since 4.24
869
869
  * @example const portalItem = await layer.save();
870
870
  */
871
- save(options?: SaveOptions): Promise<PortalItem>;
871
+ save(options?: LayerSaveOptions): Promise<PortalItem>;
872
872
  /**
873
873
  * Saves the layer to a new portal item in the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html)
874
874
  * authenticated within the user's current session.
@@ -887,7 +887,7 @@ export default class SubtypeGroupLayer extends SubtypeGroupLayerSuperclass {
887
887
  * const portalItem = new PortalItem();
888
888
  * await layer.saveAs(portalItem);
889
889
  */
890
- saveAs(portalItem: PortalItemProperties, options?: SaveAsOptions): Promise<PortalItem>;
890
+ saveAs(portalItem: PortalItemProperties, options?: LayerSaveAsOptions): Promise<PortalItem>;
891
891
  /**
892
892
  * Updates an existing attachment for a feature. This operation is available only if the layer's
893
893
  * [capabilities.data.supportsAttachment](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities) is set to `true`.
@@ -3,6 +3,7 @@ import type Layer from "./Layer.js";
3
3
  import type Field from "./support/Field.js";
4
4
  import type PortalItem from "../portal/PortalItem.js";
5
5
  import type { ClonableMixin, ClonableMixinProperties } from "../core/Clonable.js";
6
+ import type { LayerSaveOptions, LayerSaveAsOptions } from "./types.js";
6
7
  import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
7
8
  import type { CustomParametersMixin, CustomParameters, CustomParametersMixinProperties } from "./mixins/CustomParametersMixin.js";
8
9
  import type { ImageryTileMixin, ImageryTileMixinProperties } from "./mixins/ImageryTileMixin.js";
@@ -11,7 +12,6 @@ import type { PortalLayer, PortalLayerProperties } from "./mixins/PortalLayer.js
11
12
  import type { RefreshableLayer, RefreshableLayerProperties } from "./mixins/RefreshableLayer.js";
12
13
  import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleRangeLayer.js";
13
14
  import type { TemporalLayer, TemporalLayerProperties } from "./mixins/TemporalLayer.js";
14
- import type { SaveAsOptions, SaveOptions } from "./mixins/properties/ILayerWithSave.js";
15
15
  import type { WCSVersion } from "./raster/datasets/types.js";
16
16
  import type { CoverageInfo } from "./raster/datasets/wcsCoverageParser.js";
17
17
  import type { PortalItemProperties } from "../portal/PortalItem.js";
@@ -246,7 +246,7 @@ export default class WCSLayer extends WCSLayerSuperclass {
246
246
  * @since 4.32
247
247
  * @example const portalItem = await layer.save();
248
248
  */
249
- save(options?: SaveOptions): Promise<PortalItem>;
249
+ save(options?: LayerSaveOptions): Promise<PortalItem>;
250
250
  /**
251
251
  * Saves the layer to a new portal item in the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) authenticated within the user's current session.
252
252
  *
@@ -258,6 +258,6 @@ export default class WCSLayer extends WCSLayerSuperclass {
258
258
  * const portalItem = new PortalItem();
259
259
  * await layer.saveAs(portalItem);
260
260
  */
261
- saveAs(portalItem: PortalItemProperties, options?: SaveAsOptions): Promise<PortalItem>;
261
+ saveAs(portalItem: PortalItemProperties, options?: LayerSaveAsOptions): Promise<PortalItem>;
262
262
  }
263
263
  declare const WCSLayerSuperclass: typeof Layer & typeof ClonableMixin & typeof RefreshableLayer & typeof TemporalLayer & typeof ImageryTileMixin & typeof CustomParametersMixin & typeof PortalLayer & typeof OperationalLayer & typeof ScaleRangeLayer & typeof BlendLayer
@@ -1,8 +1,8 @@
1
1
  import type Collection from "../../../core/Collection.js";
2
2
  import type SpatialReference from "../../../geometry/SpatialReference.js";
3
3
  import type Field from "../../support/Field.js";
4
- import type { ParquetGeometryEncodingUnion } from "../../support/ParquetGeometryEncodingBase.js";
5
4
  import type { ParquetGeometryType } from "../../support/parquetUtils.js";
5
+ import type { ParquetGeometryEncodingUnion } from "../../support/types.js";
6
6
 
7
7
  /**
8
8
  * Contains an information inferred from the parquet files.
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import r from"../../../../core/Error.js";import has from"../../../../core/has.js";import{whenOrAbort as o}from"../../../../core/promiseUtils.js";import{urlToObject as s}from"../../../../core/urlUtils.js";import{property as i,subclass as u}from"../../../../core/accessorSupport/decorators.js";import{equals as n}from"../../../../geometry/support/spatialReferenceUtils.js";import{getGltfQueryFormat as a}from"../../../support/infoFor3D.js";import{DataLayerSource as c}from"../../../support/source/DataLayerSource.js";import{parseUrl as p}from"../../../../rest/utils.js";import{executeForCount as l}from"../../../../rest/query/executeForCount.js";import{executeForExtent as d}from"../../../../rest/query/executeForExtent.js";import{executeForIds as m}from"../../../../rest/query/executeForIds.js";import{executeRawQueryJSON as y}from"../../../../rest/query/executeQueryJSON.js";import{executeRawQueryPBF as h}from"../../../../rest/query/executeQueryPBF.js";import f from"../../../../rest/support/FeatureSet.js";import F from"../../../../rest/support/Query.js";let S=class extends t{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return s(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),o=null!=e.outStatistics?.[0],s=has("featurelayer-pbf-statistics"),i=(!o||s)&&!0!==e.returnTrueCurves;let u;if(this.pbfSupported&&i)try{u=await h(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})}catch(n){if("query:parsing-pbf"!==n.name)throw n;this.pbfSupported=!1}return this.pbfSupported&&i||(u=await y(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})),this._normalizeFields(u.fields),u}async featureSetFromJSON(e,t,r){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return f.fromJSON(t);const{meshFeatureSetFromJSON:s}=await o(import("../../../../rest/support/meshFeatureSet.js"),r);return s(e,this.infoFor3D,t)}executeForCount(e,t){return l(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return d(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return m(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){const[{default:r},{executeRelationshipQuery:s}]=await o(Promise.all([import("../../../../rest/support/RelationshipQuery.js"),import("../../../../rest/query/executeRelationshipQuery.js")]),t);let i=r.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),s(this.url,i,t)}async executeRelationshipQueryForCount(e,t){const[{default:r},{executeRelationshipQueryForCount:s}]=await o(Promise.all([import("../../../../rest/support/RelationshipQuery.js"),import("../../../../rest/query/executeRelationshipQuery.js")]),t);let i=r.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),s(this.url,i,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:r,fetchAttachments:s,processAttachmentQueryResult:i}=await o(import("../../../../rest/query/operations/queryAttachments.js"),t),u=p(this.url);return i(u,await(this.queryAttachmentsSupported?r(u,e,t):s(u,e,t)))}async executeAttributeBinsQuery(e,t){const{executeAttributeBinsQuery:r}=await o(import("../../../../rest/query/executeAttributeBinsQuery.js"),t);return r(this.parsedUrl,e,t)}async executePivotQuery(e,t){const{executePivotQuery:r}=await o(import("../../../../rest/query/executePivotQuery.js"),t);return r(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:r}=await o(import("../../../../rest/query/executeTopFeaturesQuery.js"),t);return r(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:r}=await o(import("../../../../rest/query/executeForTopIds.js"),t);return r(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:r}=await o(import("../../../../rest/query/executeForTopExtents.js"),t);return r(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:r}=await o(import("../../../../rest/query/executeForTopCount.js"),t);return r(this.parsedUrl,e,t)}_normalizeQuery(e){let t=F.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:o}=this,s=this._queryGet3DObjectFormat(e);if(null!=o&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!n(t.outSpatialReference,this.sourceSpatialReference))throw new r("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:r,originY:s,originZ:i,translationX:u,translationY:n,translationZ:a,scaleX:c,scaleY:p,scaleZ:l,rotationX:d,rotationY:m,rotationZ:y,rotationDeg:h}=o.transformFieldRoles;t.outFields.push(r,s,i,u,n,a,c,p,l,d,m,y,h)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:a(this.infoFor3D)}};e([i({type:c})],S.prototype,"dynamicDataSource",void 0),e([i()],S.prototype,"fieldsIndex",void 0),e([i()],S.prototype,"gdbVersion",void 0),e([i()],S.prototype,"infoFor3D",void 0),e([i({readOnly:!0})],S.prototype,"parsedUrl",null),e([i()],S.prototype,"pbfSupported",void 0),e([i()],S.prototype,"queryAttachmentsSupported",void 0),e([i()],S.prototype,"sourceSpatialReference",void 0),e([i()],S.prototype,"uniqueIdFields",void 0),e([i({type:String})],S.prototype,"url",void 0),S=e([u("esri.layers.graphics.sources.support.QueryTask")],S);export{S as default};
5
+ import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import r from"../../../../core/Error.js";import has from"../../../../core/has.js";import{whenOrAbort as o}from"../../../../core/promiseUtils.js";import{urlToObject as s}from"../../../../core/urlUtils.js";import{property as i,subclass as u}from"../../../../core/accessorSupport/decorators.js";import{equals as n}from"../../../../geometry/support/spatialReferenceUtils.js";import{getGltfQueryFormat as a}from"../../../support/infoFor3D.js";import{parseUrl as c}from"../../../../rest/utils.js";import p from"../../../../rest/layerSources/DynamicDataLayer.js";import{executeForCount as l}from"../../../../rest/query/executeForCount.js";import{executeForExtent as d}from"../../../../rest/query/executeForExtent.js";import{executeForIds as m}from"../../../../rest/query/executeForIds.js";import{executeRawQueryJSON as y}from"../../../../rest/query/executeQueryJSON.js";import{executeRawQueryPBF as h}from"../../../../rest/query/executeQueryPBF.js";import f from"../../../../rest/support/FeatureSet.js";import F from"../../../../rest/support/Query.js";let S=class extends t{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return s(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),o=null!=e.outStatistics?.[0],s=has("featurelayer-pbf-statistics"),i=(!o||s)&&!0!==e.returnTrueCurves;let u;if(this.pbfSupported&&i)try{u=await h(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})}catch(n){if("query:parsing-pbf"!==n.name)throw n;this.pbfSupported=!1}return this.pbfSupported&&i||(u=await y(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})),this._normalizeFields(u.fields),u}async featureSetFromJSON(e,t,r){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return f.fromJSON(t);const{meshFeatureSetFromJSON:s}=await o(import("../../../../rest/support/meshFeatureSet.js"),r);return s(e,this.infoFor3D,t)}executeForCount(e,t){return l(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return d(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return m(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){const[{default:r},{executeRelationshipQuery:s}]=await o(Promise.all([import("../../../../rest/support/RelationshipQuery.js"),import("../../../../rest/query/executeRelationshipQuery.js")]),t);let i=r.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),s(this.url,i,t)}async executeRelationshipQueryForCount(e,t){const[{default:r},{executeRelationshipQueryForCount:s}]=await o(Promise.all([import("../../../../rest/support/RelationshipQuery.js"),import("../../../../rest/query/executeRelationshipQuery.js")]),t);let i=r.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),s(this.url,i,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:r,fetchAttachments:s,processAttachmentQueryResult:i}=await o(import("../../../../rest/query/operations/queryAttachments.js"),t),u=c(this.url);return i(u,await(this.queryAttachmentsSupported?r(u,e,t):s(u,e,t)))}async executeAttributeBinsQuery(e,t){const{executeAttributeBinsQuery:r}=await o(import("../../../../rest/query/executeAttributeBinsQuery.js"),t);return r(this.parsedUrl,e,t)}async executePivotQuery(e,t){const{executePivotQuery:r}=await o(import("../../../../rest/query/executePivotQuery.js"),t);return r(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:r}=await o(import("../../../../rest/query/executeTopFeaturesQuery.js"),t);return r(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:r}=await o(import("../../../../rest/query/executeForTopIds.js"),t);return r(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:r}=await o(import("../../../../rest/query/executeForTopExtents.js"),t);return r(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:r}=await o(import("../../../../rest/query/executeForTopCount.js"),t);return r(this.parsedUrl,e,t)}_normalizeQuery(e){let t=F.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?p.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:o}=this,s=this._queryGet3DObjectFormat(e);if(null!=o&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!n(t.outSpatialReference,this.sourceSpatialReference))throw new r("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:r,originY:s,originZ:i,translationX:u,translationY:n,translationZ:a,scaleX:c,scaleY:p,scaleZ:l,rotationX:d,rotationY:m,rotationZ:y,rotationDeg:h}=o.transformFieldRoles;t.outFields.push(r,s,i,u,n,a,c,p,l,d,m,y,h)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:a(this.infoFor3D)}};e([i({type:p})],S.prototype,"dynamicDataSource",void 0),e([i()],S.prototype,"fieldsIndex",void 0),e([i()],S.prototype,"gdbVersion",void 0),e([i()],S.prototype,"infoFor3D",void 0),e([i({readOnly:!0})],S.prototype,"parsedUrl",null),e([i()],S.prototype,"pbfSupported",void 0),e([i()],S.prototype,"queryAttachmentsSupported",void 0),e([i()],S.prototype,"sourceSpatialReference",void 0),e([i()],S.prototype,"uniqueIdFields",void 0),e([i({type:String})],S.prototype,"url",void 0),S=e([u("esri.layers.graphics.sources.support.QueryTask")],S);export{S as default};
@@ -1,6 +1,6 @@
1
1
  import type SpatialReference from "../../geometry/SpatialReference.js";
2
2
  import type PortalFolder from "../../portal/PortalFolder.js";
3
- import type { Version } from "../support/I3SLayer.js";
3
+ import type { SceneServiceVersion } from "../support/types.js";
4
4
  import type { SpatialReferenceProperties } from "../../geometry/SpatialReference.js";
5
5
 
6
6
  export interface SceneServiceProperties extends Partial<Pick<SceneService, "copyright" | "layerId" | "url">> {
@@ -88,7 +88,7 @@ export abstract class SceneService {
88
88
  * // Prints the version to the console - e.g. 1.4, 1.5, etc.
89
89
  * console.log(layer.version.versionString);
90
90
  */
91
- get version(): Version;
91
+ get version(): SceneServiceVersion;
92
92
  }
93
93
 
94
94
  export interface SaveAsOptions {
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../core/Error.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import t from"../../geometry/SpatialReference.js";import{isPoint as o}from"../../geometry/support/typeUtils.js";import a from"../OrientedImageryLayer.js";import n from"./core/ExposurePoint.js";import{convertGeographicToWebMercator as i}from"./core/utils.js";import s from"../../rest/support/Query.js";import{createExtentAroundPoint as u}from"../../widgets/OrientedImageryViewer/navigation/utils.js";const m={},c=1e3;async function l(e,t){const{point:o,queryParams:a}=e;p(o,a);const n=w(e.layerInstanceOrURL);await n.load(t);const i=y(n,o,a),s=await n.queryFeatures(i,t);return r(t),d(n)(s)}function p(r,t){if(!o(r)&&null==t?.geometry)throw new e("invalid-parameters","searchImages requires a point and query parameters to be provided.");return!0}function y(e,r,o){const a=r?i(r):null,n=o?.maximumDistance??e.maximumDistance??c,m=o?.geometry??(a?u(a,n):null);return new s({outSpatialReference:o?.outSpatialReference??e.spatialReference.isGeographic?t.WebMercator:e.spatialReference,returnGeometry:o?.returnGeometry??!0,outFields:o?.outFields??["*"],geometry:m,where:o?.where??"1=1",returnZ:e.hasZ,orderByFields:o?.orderByFields,maxRecordCountFactor:o?.maxRecordCountFactor??5})}async function f(e,r){const t=new s;t.where="1=1",t.outFields=["*"],t.orderByFields=["OffsetFromStart ASC"],t.outSpatialReference=r,t.returnGeometry=!0;const o=await e.queryFeatures(t);return d(e)(o)}function d(e){return r=>(r.features.forEach(r=>{const t=n.fromJSON({...r.toJSON(),layer:e});t&&(r.attributes=t)}),r)}function w(e){return"string"!=typeof e?e:(m.layer?.url!==e&&(m.layer?.destroy(),m.layer=new a({url:e})),m.layer)}export{f as getSortedLayerFeatures,l as searchImages};
5
+ import e from"../../core/Error.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import t from"../../geometry/SpatialReference.js";import{isPoint as o}from"../../geometry/support/typeUtils.js";import n from"../OrientedImageryLayer.js";import a from"./core/ExposurePoint.js";import{convertGeographicToWebMercator as i}from"./core/utils.js";import s from"../../rest/support/Query.js";import{createExtentAroundPoint as u}from"../../widgets/OrientedImageryViewer/navigation/utils.js";const m={},c=1e3;async function l(e,t){const{point:o,queryParams:n}=e;p(o,n);const a=w(e.layerInstanceOrURL);await a.load(t);const i=y(a,o,n),s=await a.queryFeatures(i,t);return r(t),d(a)(s)}function p(r,t){if(!o(r)&&null==t?.geometry)throw new e("invalid-parameters","searchImages requires a point and query parameters to be provided.");return!0}function y(e,r,o){const n=r?i(r):null,a=o?.maximumDistance??e.maximumDistance??c,m=o?.geometry??(n?u(n,a):null),l=o?.timeExtent??e.timeExtent??null;return new s({outSpatialReference:o?.outSpatialReference??e.spatialReference.isGeographic?t.WebMercator:e.spatialReference,returnGeometry:o?.returnGeometry??!0,outFields:o?.outFields??["*"],geometry:m,where:o?.where??"1=1",returnZ:e.hasZ,orderByFields:o?.orderByFields,maxRecordCountFactor:o?.maxRecordCountFactor??5,timeExtent:l})}async function f(e,r){const t=new s;t.where="1=1",t.outFields=["*"],t.orderByFields=["OffsetFromStart ASC"],t.outSpatialReference=r,t.returnGeometry=!0;const o=await e.queryFeatures(t);return d(e)(o)}function d(e){return r=>(r.features.forEach(r=>{const t=a.fromJSON({...r.toJSON(),layer:e});t&&(r.attributes=t)}),r)}function w(e){return"string"!=typeof e?e:(m.layer?.url!==e&&(m.layer?.destroy(),m.layer=new n({url:e})),m.layer)}export{f as getSortedLayerFeatures,l as searchImages};
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import type Point from "../../../geometry/Point.js";
12
12
  import type { ReadonlyArrayOrCollection } from "../../../core/Collection.js";
13
- import type { ImageToWorldProperties, UpdateElevationProps } from "./types.js";
13
+ import type { ImageToWorldProperties, UpdateElevationProperties } from "./types.js";
14
14
  import type { LocationInImageSpace } from "../../../widgets/OrientedImageryViewer/types.js";
15
15
 
16
16
  /**
@@ -52,4 +52,4 @@ import type { LocationInImageSpace } from "../../../widgets/OrientedImageryViewe
52
52
  * const groundLocation = imageToWorld(pixel, properties);
53
53
  * console.log(imageLocation);
54
54
  */
55
- export function imageToWorld(pixelOrPixels: LocationInImageSpace | ReadonlyArrayOrCollection<LocationInImageSpace>, properties: ImageToWorldProperties, updateElevationProps?: UpdateElevationProps): Promise<Point | Point[]>;
55
+ export function imageToWorld(pixelOrPixels: LocationInImageSpace | ReadonlyArrayOrCollection<LocationInImageSpace>, properties: ImageToWorldProperties, updateElevationProps?: UpdateElevationProperties): Promise<Point | Point[]>;
@@ -81,7 +81,7 @@ export type ImageToWorldProperties = ImageToWorldRequiredProperties
81
81
  & (WorldToImageWithFocalLength | WorldToImageWithFOVAndImageSize);
82
82
 
83
83
  /** Represents the properties required for updating the elevation of the output point. Users can either provide values from an elevationSampler or constantElevation. */
84
- export type UpdateElevationProps = UpdateElevationWithConstant | UpdateElevationWithSampler;
84
+ export type UpdateElevationProperties = UpdateElevationWithConstant | UpdateElevationWithSampler;
85
85
 
86
86
  /** Represents the properties required for updating the elevation of the output point with a constant value. */
87
87
  export interface UpdateElevationWithConstant {
@@ -1,10 +1,4 @@
1
1
 
2
2
  export interface IteratorRecord {}
3
3
 
4
- export interface PixelData {}
5
-
6
- export interface PixelBlockRecord extends PixelData, IteratorRecord {}
7
-
8
- export interface PixelFeatureSetRecord extends PixelBlockRecord {}
9
-
10
- export interface PixelFeatureSet extends PixelData {}
4
+ export interface PixelData {}
@@ -1,6 +1,6 @@
1
1
  import type { BaseRasterFunctionParameters } from "../types.js";
2
2
 
3
- export interface NDVIBandArguments extends BaseRasterFunctionParameters {
3
+ export interface NDVIBandParameters extends BaseRasterFunctionParameters {
4
4
  /** The 0-based near infrared band id. */
5
5
  nirBandId: number;
6
6
  /** The 0-based red band id. */
@@ -9,7 +9,7 @@ export interface NDVIBandArguments extends BaseRasterFunctionParameters {
9
9
  scientificOutput?: boolean;
10
10
  }
11
11
 
12
- export interface SAVIBandArguments extends BaseRasterFunctionParameters {
12
+ export interface SAVIBandParameters extends BaseRasterFunctionParameters {
13
13
  /** The amount of green vegetation cover from 0 to 1. Default is 0.33. */
14
14
  factor?: number;
15
15
  /** The 0-based near infrared band id. */
@@ -18,7 +18,7 @@ export interface SAVIBandArguments extends BaseRasterFunctionParameters {
18
18
  redBandId: number;
19
19
  }
20
20
 
21
- export interface TSAVIBandArguments extends BaseRasterFunctionParameters {
21
+ export interface TSAVIBandParameters extends BaseRasterFunctionParameters {
22
22
  /** The adjustment factor to minimize soil noise. Default is 1.5. */
23
23
  factor?: number;
24
24
  /** The soil line intercept. Default is 0.5. */
@@ -31,21 +31,21 @@ export interface TSAVIBandArguments extends BaseRasterFunctionParameters {
31
31
  slope?: number;
32
32
  }
33
33
 
34
- export interface MSAVIBandArguments extends BaseRasterFunctionParameters {
34
+ export interface MSAVIBandParameters extends BaseRasterFunctionParameters {
35
35
  /** The 0-based near infrared band id. */
36
36
  nirBandId: number;
37
37
  /** The 0-based red band id. */
38
38
  redBandId: number;
39
39
  }
40
40
 
41
- export interface GEMIBandArguments extends BaseRasterFunctionParameters {
41
+ export interface GEMIBandParameters extends BaseRasterFunctionParameters {
42
42
  /** The 0-based near infrared band id. */
43
43
  nirBandId: number;
44
44
  /** The 0-based red band id. */
45
45
  redBandId: number;
46
46
  }
47
47
 
48
- export interface PVIBandArguments extends BaseRasterFunctionParameters {
48
+ export interface PVIBandParameters extends BaseRasterFunctionParameters {
49
49
  /** The soil line gradient. Default is 0.5. */
50
50
  gradient?: number;
51
51
  /** The 0-based near infrared band id. */
@@ -56,7 +56,7 @@ export interface PVIBandArguments extends BaseRasterFunctionParameters {
56
56
  slope?: number;
57
57
  }
58
58
 
59
- export interface LandsatBandArguments extends BaseRasterFunctionParameters {
59
+ export interface LandsatBandParameters extends BaseRasterFunctionParameters {
60
60
  /** The bandIds array representing Landsat band 1, 2, 3, 4, 5, 7. */
61
61
  bandIds: [
62
62
  number,
@@ -68,7 +68,7 @@ export interface LandsatBandArguments extends BaseRasterFunctionParameters {
68
68
  ];
69
69
  }
70
70
 
71
- export interface SultanArguments extends BaseRasterFunctionParameters {
71
+ export interface SultanParameters extends BaseRasterFunctionParameters {
72
72
  /** The bandIds array representing band 1, 3, 4, 5, 6. */
73
73
  bandIds: [
74
74
  number,
@@ -79,7 +79,7 @@ export interface SultanArguments extends BaseRasterFunctionParameters {
79
79
  ];
80
80
  }
81
81
 
82
- export interface VARIBandArguments extends BaseRasterFunctionParameters {
82
+ export interface VARIBandParameters extends BaseRasterFunctionParameters {
83
83
  /** The 0-based blue band id. */
84
84
  blueBandId: number;
85
85
  /** The 0-based green band id. */
@@ -88,35 +88,35 @@ export interface VARIBandArguments extends BaseRasterFunctionParameters {
88
88
  redBandId: number;
89
89
  }
90
90
 
91
- export interface GDNVIBandArguments extends BaseRasterFunctionParameters {
91
+ export interface GDNVIBandParameters extends BaseRasterFunctionParameters {
92
92
  /** The 0-based green band id. */
93
93
  greenBandId: number;
94
94
  /** The 0-based near infrared band id. */
95
95
  nirBandId: number;
96
96
  }
97
97
 
98
- export interface SRBandArguments extends BaseRasterFunctionParameters {
98
+ export interface SRBandParameters extends BaseRasterFunctionParameters {
99
99
  /** The 0-based near infrared band id. */
100
100
  nirBandId: number;
101
101
  /** The 0-based red band id. */
102
102
  redBandId: number;
103
103
  }
104
104
 
105
- export interface NDVIreBandArguments extends BaseRasterFunctionParameters {
105
+ export interface NDVIreBandParameters extends BaseRasterFunctionParameters {
106
106
  /** The 0-based near infrared band id. */
107
107
  nirBandId: number;
108
108
  /** The 0-based red edge band id. */
109
109
  reBandId: number;
110
110
  }
111
111
 
112
- export interface SRreBandArguments extends BaseRasterFunctionParameters {
112
+ export interface SRreBandParameters extends BaseRasterFunctionParameters {
113
113
  /** The 0-based near infrared band id. */
114
114
  nirBandId: number;
115
115
  /** The 0-based red edge band id. */
116
116
  reBandId: number;
117
117
  }
118
118
 
119
- export interface MTVI2BandArguments extends BaseRasterFunctionParameters {
119
+ export interface MTVI2BandParameters extends BaseRasterFunctionParameters {
120
120
  /** The 0-based green band id. */
121
121
  greenBandId: number;
122
122
  /** The 0-based near infrared band id. */
@@ -125,7 +125,7 @@ export interface MTVI2BandArguments extends BaseRasterFunctionParameters {
125
125
  redBandId: number;
126
126
  }
127
127
 
128
- export interface RTVICoreBandArguments extends BaseRasterFunctionParameters {
128
+ export interface RTVICoreBandParameters extends BaseRasterFunctionParameters {
129
129
  /** The 0-based green band id. */
130
130
  greenBandId: number;
131
131
  /** The 0-based near infrared band id. */
@@ -134,28 +134,28 @@ export interface RTVICoreBandArguments extends BaseRasterFunctionParameters {
134
134
  reBandId: number;
135
135
  }
136
136
 
137
- export interface CIreBandArguments extends BaseRasterFunctionParameters {
137
+ export interface CIreBandParameters extends BaseRasterFunctionParameters {
138
138
  /** The 0-based near infrared band id. */
139
139
  nirBandId: number;
140
140
  /** The 0-based red edge band id. */
141
141
  reBandId: number;
142
142
  }
143
143
 
144
- export interface CIgBandArguments extends BaseRasterFunctionParameters {
144
+ export interface CIgBandParameters extends BaseRasterFunctionParameters {
145
145
  /** The 0-based green band id. */
146
146
  greenBandId: number;
147
147
  /** The 0-based near infrared band id. */
148
148
  nirBandId: number;
149
149
  }
150
150
 
151
- export interface NDWIBandArguments extends BaseRasterFunctionParameters {
151
+ export interface NDWIBandParameters extends BaseRasterFunctionParameters {
152
152
  /** The 0-based green band id. */
153
153
  greenBandId: number;
154
154
  /** The 0-based near infrared band id. */
155
155
  nirBandId: number;
156
156
  }
157
157
 
158
- export interface EVIBandArguments extends BaseRasterFunctionParameters {
158
+ export interface EVIBandParameters extends BaseRasterFunctionParameters {
159
159
  /** The 0-based blue band id. */
160
160
  blueBandId: number;
161
161
  /** The 0-based near infrared band id. */
@@ -164,28 +164,28 @@ export interface EVIBandArguments extends BaseRasterFunctionParameters {
164
164
  redBandId: number;
165
165
  }
166
166
 
167
- export interface IronOxideBandArguments extends BaseRasterFunctionParameters {
167
+ export interface IronOxideBandParameters extends BaseRasterFunctionParameters {
168
168
  /** The 0-based blue band id. */
169
169
  blueBandId: number;
170
170
  /** The 0-based red band id. */
171
171
  redBandId: number;
172
172
  }
173
173
 
174
- export interface FerrousMineralsBandArguments extends BaseRasterFunctionParameters {
174
+ export interface FerrousMineralsBandParameters extends BaseRasterFunctionParameters {
175
175
  /** The 0-based near infrared band id. */
176
176
  nirBandId: number;
177
177
  /** The 0-based shortwave infrared band id. */
178
178
  swirBandId: number;
179
179
  }
180
180
 
181
- export interface ClayMineralsBandArguments extends BaseRasterFunctionParameters {
181
+ export interface ClayMineralsBandParameters extends BaseRasterFunctionParameters {
182
182
  /** The 0-based shortwave infrared band id centering around 1.5—1.75µm. */
183
183
  swir1BandId: number;
184
184
  /** The 0-based shortwave infrared band id centering around 2.08—2.35µm. */
185
185
  swir2BandId: number;
186
186
  }
187
187
 
188
- export interface WNDWIBandArguments extends BaseRasterFunctionParameters {
188
+ export interface WNDWIBandParameters extends BaseRasterFunctionParameters {
189
189
  /** A weighted coefficient ranging from 0 to 1. Default is 0.5. */
190
190
  alpha?: number;
191
191
  /** The 0-based green band id. */
@@ -196,42 +196,42 @@ export interface WNDWIBandArguments extends BaseRasterFunctionParameters {
196
196
  swirBandId: number;
197
197
  }
198
198
 
199
- export interface BAIBandArguments extends BaseRasterFunctionParameters {
199
+ export interface BAIBandParameters extends BaseRasterFunctionParameters {
200
200
  /** The 0-based near infrared band id. */
201
201
  nirBandId: number;
202
202
  /** The 0-based red band id. */
203
203
  redBandId: number;
204
204
  }
205
205
 
206
- export interface NBRBandArguments extends BaseRasterFunctionParameters {
206
+ export interface NBRBandParameters extends BaseRasterFunctionParameters {
207
207
  /** The 0-based near infrared band id. */
208
208
  nirBandId: number;
209
209
  /** The 0-based shortwave infrared band id. */
210
210
  swirBandId: number;
211
211
  }
212
212
 
213
- export interface NDBIBandArguments extends BaseRasterFunctionParameters {
213
+ export interface NDBIBandParameters extends BaseRasterFunctionParameters {
214
214
  /** The 0-based near infrared band id. */
215
215
  nirBandId: number;
216
216
  /** The 0-based shortwave infrared band id. */
217
217
  swirBandId: number;
218
218
  }
219
219
 
220
- export interface NDMIBandArguments extends BaseRasterFunctionParameters {
220
+ export interface NDMIBandParameters extends BaseRasterFunctionParameters {
221
221
  /** The 0-based near infrared band id. */
222
222
  nirBandId: number;
223
223
  /** The 0-based shortwave infrared band id. */
224
224
  swirBandId: number;
225
225
  }
226
226
 
227
- export interface NDSIBandArguments extends BaseRasterFunctionParameters {
227
+ export interface NDSIBandParameters extends BaseRasterFunctionParameters {
228
228
  /** The 0-based green band id. */
229
229
  greenBandId: number;
230
230
  /** The 0-based shortwave infrared band id. */
231
231
  swirBandId: number;
232
232
  }
233
233
 
234
- export interface MNDWIBandArguments extends BaseRasterFunctionParameters {
234
+ export interface MNDWIBandParameters extends BaseRasterFunctionParameters {
235
235
  /** The 0-based green band id. */
236
236
  greenBandId: number;
237
237
  /** The 0-based shortwave infrared band id. */
@@ -1,3 +1,5 @@
1
+ import type { ClonableMixin } from "../../core/Clonable.js";
1
2
  import type { JSONSupport } from "../../core/JSONSupport.js";
2
3
 
3
- export default abstract class BuildingFilterMode extends JSONSupport {}
4
+ export default abstract class BuildingFilterMode extends BuildingFilterModeSuperclass {}
5
+ declare const BuildingFilterModeSuperclass: typeof JSONSupport & typeof ClonableMixin
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as r}from"tslib";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as e,subclass as t}from"../../core/accessorSupport/decorators.js";let s=class extends o{};r([e({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],s.prototype,"type",void 0),s=r([t("esri.layers.support.BuildingFilterMode")],s);const p=s;export{p as default};
5
+ import{__decorate as r}from"tslib";import{ClonableMixin as o}from"../../core/Clonable.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as t,subclass as s}from"../../core/accessorSupport/decorators.js";let p=class extends(o(e)){};r([t({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=r([s("esri.layers.support.BuildingFilterMode")],p);const i=p;export{i as default};