@arcgis/core 4.34.0-next.33 → 4.34.0-next.35

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 (254) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/ArcadeDate.js +1 -1
  3. package/arcade/ArcadeModuleResolver.js +1 -1
  4. package/arcade/featureset/actions/GroupBy.js +1 -1
  5. package/arcade/functions/date.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{28e04ef3575f164f611a.js → 00870a35b254295bc408.js} +1 -1
  8. package/assets/esri/core/workers/chunks/017adbbb77c9c9b4d49f.js +1 -0
  9. package/assets/esri/core/workers/chunks/{c6edf028dd04d47d7580.js → 087ae1e3e767f0e678e5.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{b4b30a7f1b673461dc55.js → 0997e09fe5b0aba1f804.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{341507901f3858559c82.js → 125fdea50620d4db2678.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{9bc6d974b0fce9db64ef.js → 15a5a89cd228a9364332.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{847455bf4fc33d6e6efc.js → 1dc410bc070cabb7198d.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{971b16677b66c16fb6b9.js → 20aed6e1d9b6bf06a398.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{94a3474e3f45efa4a4fe.js → 2c816d3a737e39e6eb84.js} +1 -1
  16. package/assets/esri/core/workers/chunks/2de11a8e5d426c381991.js +1 -0
  17. package/assets/esri/core/workers/chunks/{fb71e533995c54cd806f.js → 319fe6a02ec630a827ea.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3a7e43675163f7bed6ac.js +1 -0
  19. package/assets/esri/core/workers/chunks/{1aa6719be3afbdc7c880.js → 3cd1ab26396052f17832.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{359c282fd67148fda5fa.js → 3d5954478864a975e65e.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{2fdf457786d2d5d7414f.js → 3eb792863a789b97ec58.js} +1 -1
  22. package/assets/esri/core/workers/chunks/40b0c5368b8322498189.js +1 -0
  23. package/assets/esri/core/workers/chunks/{89999baefa341bd3329c.js → 4193691ca076948f4f90.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{4778acd0cfaf0cebeec7.js → 439128f23fa091633d2d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{057df92b981c9b311d68.js → 43fba9d6be5971ec20a9.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{74f3bc6c6b82de49d6ee.js → 4ac6bf9ff1cfbde87c7b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{0b3a200b97d790d08248.js → 4b9003ddfe61dc3729f4.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{5192f38682f1f9be7da0.js → 549e073fe276363a9896.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6000a302369799ea42a6.js +1 -0
  30. package/assets/esri/core/workers/chunks/{5d0c92aaa5891e6cb8f0.js → 641ca71d7c1a07bde66a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/646227b500b92999f2c8.js +1 -0
  32. package/assets/esri/core/workers/chunks/{50b0d96e1a5ccffeb803.js → 64fab4e1e28c06c83403.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{d3cb21cdc5b9483dd1f4.js → 69ae235423f0b1bdfcb4.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{3323646096474740fed5.js → 6c72e2c09ed62cb2fd79.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{63cb3dcd359e96733b1b.js → 6ce2f86b9b1d2f2b8675.js} +1 -1
  36. package/assets/esri/core/workers/chunks/752eabfbed7b8b65cf3f.js +1 -0
  37. package/assets/esri/core/workers/chunks/{98f6d4ea026ed96fd3f3.js → 773feb0e0fad26df57ef.js} +1 -1
  38. package/assets/esri/core/workers/chunks/7b1d14a921d30c95d68b.js +1 -0
  39. package/assets/esri/core/workers/chunks/{b78d00c4e493086741e1.js → 7d25f57299c642e727a6.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{3a0da512562ba492609d.js → 827bebb4bcdde23adc91.js} +1 -1
  41. package/assets/esri/core/workers/chunks/8b7f6f2d1692b6b6dbd5.js +1 -0
  42. package/assets/esri/core/workers/chunks/{9152d62c55d3396763bd.js → 8be81e1530b952c97936.js} +1 -1
  43. package/assets/esri/core/workers/chunks/90a0c1c5c851cc9b6d6d.js +1 -0
  44. package/assets/esri/core/workers/chunks/91d48c32bf11ad1405c8.js +1 -0
  45. package/assets/esri/core/workers/chunks/9228f760129e48585b54.js +1 -0
  46. package/assets/esri/core/workers/chunks/9a54c96b48e94d816881.js +1 -0
  47. package/assets/esri/core/workers/chunks/a36be186ad10200c420c.js +1 -0
  48. package/assets/esri/core/workers/chunks/{c18167a0790241f80bf7.js → a6767d75e718f2e1e714.js} +1 -1
  49. package/assets/esri/core/workers/chunks/aa12ba96fb8c91105473.js +1 -0
  50. package/assets/esri/core/workers/chunks/{ea240d9e594bfbd8af68.js → aaf696a1026de569c82d.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{b1ef40ef898a8c7f43a2.js → acb95ae6203f708d71b4.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{22f38cad0213f2112394.js → b1982490762972ae023d.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{bc0f5477b4491ab48b3a.js → b28855db6a30d4d4f348.js} +1 -1
  54. package/assets/esri/core/workers/chunks/b331543767c35e5edcc6.js +1 -0
  55. package/assets/esri/core/workers/chunks/{6ccd6171d3c572883034.js → b877142a275188a16e17.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{7d852617e91b51121ea7.js → ba29c535128c4e8ae2d3.js} +1 -1
  57. package/assets/esri/core/workers/chunks/bf60d4da0dff1e14da8e.js +1 -0
  58. package/assets/esri/core/workers/chunks/{39bff604d4b4a1295038.js → c038472cb7f60af9426e.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{ca46f78aac1133d127fa.js → c1e5e2a6e7e2d7a1d63c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{1c3578d5e956a4587973.js → c30adbead0ba4722acf9.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{0260b33daf48fc207880.js → c9b11c7170c99f9e0e93.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{a809042fdce7ced2a415.js → cc3ca1729af33688c1e3.js} +1 -1
  63. package/assets/esri/core/workers/chunks/cde79c3644166d4798a8.js +1 -0
  64. package/assets/esri/core/workers/chunks/{181f8bbe670b4468307a.js → ce8f0ed9179c0d314df8.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{58393ab52d0b8f718241.js → d3fd11da3a823e148957.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{ac30cf2f9a94597f7665.js → d6b2ab614f308db50c4a.js} +2 -2
  67. package/assets/esri/core/workers/chunks/{41d36b87e3dfc01be38d.js → d7b3e81cc313fd0a33b0.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{abe2cdfc2eda46b00812.js → d9045b964f536695840b.js} +1 -1
  69. package/assets/esri/core/workers/chunks/dde6000aa2f69f6ecad0.js +1 -0
  70. package/assets/esri/core/workers/chunks/dec9656997683ef01ba6.js +1 -0
  71. package/assets/esri/core/workers/chunks/{1e20e43d1dc5273708c7.js → e1472dbf0795d737d6f8.js} +1 -1
  72. package/assets/esri/core/workers/chunks/e18bb372457cedbf4f8c.js +1 -0
  73. package/assets/esri/core/workers/chunks/e892ed8b0b990d7eba28.js +1 -0
  74. package/assets/esri/core/workers/chunks/{dc5a8cf2a44a5ac201c5.js → ed05399f9a07fea66685.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{300a5257969d3835ceeb.js → f19426eb53d8430ded51.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f3358b19af0f03f16543.js +1 -0
  77. package/assets/esri/core/workers/chunks/{1b5923dfd70d464dfb25.js → f4c38a9c01c29b5a6244.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{c854c3bb4440fd942c12.js → f6c1854f36b029fa6c37.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{039979cbf35a241ed0a4.js → fdc8300b6374ef2b8b3e.js} +1 -1
  80. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  81. package/chunks/OperatorCrosses.js +1 -1
  82. package/chunks/OperatorGeodesicBuffer.js +1 -1
  83. package/chunks/OperatorIntersects.js +1 -1
  84. package/chunks/OperatorOverlaps.js +1 -1
  85. package/chunks/OperatorProximity.js +1 -1
  86. package/chunks/OperatorShapePreservingLength.js +1 -1
  87. package/chunks/OperatorShapePreservingProject.js +1 -1
  88. package/chunks/OperatorTouches.js +1 -1
  89. package/chunks/OperatorWithin.js +1 -1
  90. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  91. package/chunks/UnitFactory.js +1 -1
  92. package/chunks/equalsOperator.js +1 -1
  93. package/config.js +1 -1
  94. package/core/BidiEngine.js +1 -1
  95. package/core/Clonable.js +1 -1
  96. package/core/Promise.js +1 -1
  97. package/core/promiseUtils.js +1 -1
  98. package/core/sql/SqlInterval.js +1 -1
  99. package/core/sql/sqlDateParsingUtils.js +1 -1
  100. package/core/unitUtils.js +1 -1
  101. package/geometry/operators/gx/operatorDifference.js +1 -1
  102. package/geometry/operators/gx/operatorIntersection.js +1 -1
  103. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  104. package/geometry/support/coordinateSystem.js +1 -1
  105. package/graphic/BuildingGraphicOrigin.d.ts +4 -0
  106. package/graphic/BuildingGraphicOrigin.js +5 -0
  107. package/graphic/CSVGraphicOrigin.d.ts +4 -0
  108. package/graphic/CSVGraphicOrigin.js +5 -0
  109. package/graphic/CatalogGraphicOrigin.d.ts +4 -0
  110. package/graphic/CatalogGraphicOrigin.js +5 -0
  111. package/graphic/FeatureGraphicOrigin.d.ts +4 -0
  112. package/graphic/FeatureGraphicOrigin.js +5 -0
  113. package/graphic/GeoJSONGraphicOrigin.d.ts +4 -0
  114. package/graphic/GeoJSONGraphicOrigin.js +5 -0
  115. package/graphic/GraphicOrigin.d.ts +4 -0
  116. package/graphic/GraphicOrigin.js +5 -0
  117. package/graphic/IntegratedMesh3DTilesGraphicOrigin.d.ts +4 -0
  118. package/graphic/IntegratedMesh3DTilesGraphicOrigin.js +5 -0
  119. package/graphic/IntegratedMeshGraphicOrigin.d.ts +4 -0
  120. package/graphic/IntegratedMeshGraphicOrigin.js +5 -0
  121. package/graphic/OGCFeatureGraphicOrigin.d.ts +4 -0
  122. package/graphic/OGCFeatureGraphicOrigin.js +5 -0
  123. package/graphic/PointCloudGraphicOrigin.d.ts +4 -0
  124. package/graphic/PointCloudGraphicOrigin.js +5 -0
  125. package/graphic/SceneGraphicOrigin.d.ts +4 -0
  126. package/graphic/SceneGraphicOrigin.js +5 -0
  127. package/graphic/StreamGraphicOrigin.d.ts +4 -0
  128. package/graphic/StreamGraphicOrigin.js +5 -0
  129. package/graphic/VectorTileGraphicOrigin.d.ts +4 -0
  130. package/graphic/VectorTileGraphicOrigin.js +5 -0
  131. package/graphic/VoxelGraphicOrigin.d.ts +4 -0
  132. package/graphic/VoxelGraphicOrigin.js +5 -0
  133. package/graphic/WFSGraphicOrigin.d.ts +4 -0
  134. package/graphic/WFSGraphicOrigin.js +5 -0
  135. package/graphic/graphicOriginUtils.js +5 -0
  136. package/graphic/graphicOrigins.d.ts +14 -0
  137. package/graphic/graphicOrigins.js +5 -0
  138. package/graphic/isBuildingGraphicOrigin.js +5 -0
  139. package/graphic/isCSVGraphicOrigin.js +5 -0
  140. package/graphic/isCatalogGraphicOrigin.js +5 -0
  141. package/graphic/isFeatureGraphicOrigin.js +5 -0
  142. package/graphic/isGeoJSONGraphicOrigin.js +5 -0
  143. package/graphic/isIntegratedMesh3DTilesGraphicOrigin.js +5 -0
  144. package/graphic/isIntegratedMeshGraphicOrigin.js +5 -0
  145. package/graphic/isOGCFeatureGraphicOrigin.js +5 -0
  146. package/graphic/isPointCloudGraphicOrigin.js +5 -0
  147. package/graphic/isSceneGraphicOrigin.js +5 -0
  148. package/graphic/isStreamGraphicOrigin.js +5 -0
  149. package/graphic/isVectorTileGraphicOrigin.js +5 -0
  150. package/graphic/isVoxelGraphicOrigin.js +5 -0
  151. package/graphic/isWFSGraphicOrigin.js +5 -0
  152. package/interfaces.d.ts +354 -13
  153. package/kernel.js +1 -1
  154. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  155. package/layers/support/Field.js +1 -1
  156. package/layers/support/featurePopupQueryUtils.js +1 -1
  157. package/layers/voxel/NCTimeParser.js +1 -1
  158. package/package.json +3 -3
  159. package/rest/knowledgeGraphService.js +1 -1
  160. package/smartMapping/statistics/support/utils.js +1 -1
  161. package/support/arcadeExpressionUtils.js +1 -1
  162. package/support/revision.js +1 -1
  163. package/symbols/support/svgUtils.js +1 -1
  164. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  165. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  166. package/views/2d/engine/webgl/Painter.js +1 -1
  167. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  168. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  169. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  170. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  171. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  172. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  173. package/views/2d/layers/TileLayerView2D.js +1 -1
  174. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  175. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  176. package/views/3d/analysis/Slice/SliceController.js +1 -1
  177. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  178. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementComputation.js +5 -0
  179. package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
  180. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  181. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  182. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  183. package/views/3d/layers/CSVLayerView3D.js +1 -1
  184. package/views/3d/layers/CatalogFootprintLayerView3D.js +1 -1
  185. package/views/3d/layers/FeatureLayerView3D.js +1 -1
  186. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  187. package/views/3d/layers/FlowSubView3D.js +1 -1
  188. package/views/3d/layers/GeoJSONLayerView3D.js +1 -1
  189. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  190. package/views/3d/layers/GraphicsView3D.js +1 -1
  191. package/views/3d/layers/I3SMeshView3D.js +1 -1
  192. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  193. package/views/3d/layers/MediaLayerView3D.js +1 -1
  194. package/views/3d/layers/OGCFeatureLayerView3D.js +1 -1
  195. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  196. package/views/3d/layers/RouteLayerView3D.js +1 -1
  197. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  198. package/views/3d/layers/SceneLayerView3D.js +1 -1
  199. package/views/3d/layers/StreamLayerView3D.js +1 -1
  200. package/views/3d/layers/WFSLayerView3D.js +1 -1
  201. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  202. package/views/3d/layers/graphics/StreamController.js +1 -1
  203. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  204. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  205. package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
  206. package/views/3d/layers/support/FeatureTileDescriptor.js +1 -1
  207. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  208. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  209. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  210. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  211. package/views/3d/layers/support/FeatureTileTree3DDebugger.js +1 -1
  212. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  213. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  214. package/views/3d/state/ConstraintsManager.js +1 -1
  215. package/views/3d/support/flow/geometryUtils.js +1 -1
  216. package/views/3d/terrain/OverlayManager.js +1 -1
  217. package/views/3d/terrain/TerrainSurface.js +1 -1
  218. package/views/3d/terrain/Tile.js +1 -1
  219. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  220. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  221. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  222. package/views/SceneView.js +1 -1
  223. package/views/interactive/Tooltip.js +1 -1
  224. package/views/layers/FeatureLayerView.js +1 -1
  225. package/views/layers/support/popupUtils.js +1 -1
  226. package/views/support/Scheduler.js +1 -1
  227. package/views/support/highlightOptionsUtils.js +1 -1
  228. package/views/webgl/FramebufferObject.js +1 -1
  229. package/views/webgl/RenderbufferDescriptor.js +1 -1
  230. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  231. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  232. package/assets/esri/core/workers/chunks/07b2cc0f6b064277632f.js +0 -1
  233. package/assets/esri/core/workers/chunks/0fc620d6d0c4ac282d72.js +0 -1
  234. package/assets/esri/core/workers/chunks/0fe32bdf2055bcd1e928.js +0 -1
  235. package/assets/esri/core/workers/chunks/13f9e92e7e5d44d9f95c.js +0 -1
  236. package/assets/esri/core/workers/chunks/140efe4735605258ecc9.js +0 -1
  237. package/assets/esri/core/workers/chunks/23eae849ee0ca7b3fd81.js +0 -1
  238. package/assets/esri/core/workers/chunks/2b76e716f478468b6798.js +0 -1
  239. package/assets/esri/core/workers/chunks/386ab72a45102c2d47f2.js +0 -1
  240. package/assets/esri/core/workers/chunks/3fb6146d914f9b410c2e.js +0 -1
  241. package/assets/esri/core/workers/chunks/432365fcd7becd508541.js +0 -1
  242. package/assets/esri/core/workers/chunks/439ce953a25b2776cb7f.js +0 -1
  243. package/assets/esri/core/workers/chunks/4c8d2334fcdb1354ff43.js +0 -1
  244. package/assets/esri/core/workers/chunks/5f321be63ed5447b04a1.js +0 -1
  245. package/assets/esri/core/workers/chunks/6006fbdb90c3bfc493a6.js +0 -1
  246. package/assets/esri/core/workers/chunks/7c35c61e3673cf94cdfd.js +0 -1
  247. package/assets/esri/core/workers/chunks/7c75876a0c6460585055.js +0 -1
  248. package/assets/esri/core/workers/chunks/949dc266ac6f3505d357.js +0 -1
  249. package/assets/esri/core/workers/chunks/99e3f7b3ea0bfe9b8d34.js +0 -1
  250. package/assets/esri/core/workers/chunks/a84af1b8b64b86b49bd3.js +0 -1
  251. package/assets/esri/core/workers/chunks/a9d83a442d8d7a376fc0.js +0 -1
  252. package/assets/esri/core/workers/chunks/ba1b21a90b257ac9a342.js +0 -1
  253. package/assets/esri/core/workers/chunks/c50c2f014e8567870686.js +0 -1
  254. package/assets/esri/core/workers/chunks/f9ad37dfbe1d14c6a352.js +0 -1
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isCSVGraphicOrigin");function n(n){return!!n&&i in n}export{n as isCSVGraphicOrigin,i as isCSVGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isCatalogGraphicOrigin");function n(n){return!!n&&i in n}export{n as isCatalogGraphicOrigin,i as isCatalogGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isFeatureGraphicOrigin");function n(n){return!!n&&i in n}export{n as isFeatureGraphicOrigin,i as isFeatureGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isGeoJSONGraphicOrigin");function n(n){return!!n&&i in n}export{n as isGeoJSONGraphicOrigin,i as isGeoJSONGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isIntegratedMesh3DTilesGraphicOrigin");function n(n){return!!n&&i in n}export{n as isIntegratedMesh3DTilesGraphicOrigin,i as isIntegratedMesh3DTilesGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const n=Symbol("isIntegratedMeshGraphicOrigin");function i(i){return!!i&&n in i}export{i as isIntegratedMeshGraphicOrigin,n as isIntegratedMeshGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isOGCFeatureGraphicOrigin");function n(n){return!!n&&i in n}export{n as isOGCFeatureGraphicOrigin,i as isOGCFeatureGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isPointCloudGraphicOrigin");function n(n){return!!n&&i in n}export{n as isPointCloudGraphicOrigin,i as isPointCloudGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const n=Symbol("isSceneGraphicOrigin");function i(i){return!!i&&n in i}export{i as isSceneGraphicOrigin,n as isSceneGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isStreamGraphicOrigin");function n(n){return!!n&&i in n}export{n as isStreamGraphicOrigin,i as isStreamGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isVectorTileGraphicOrigin");function n(n){return!!n&&i in n}export{n as isVectorTileGraphicOrigin,i as isVectorTileGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isVoxelGraphicOrigin");function n(n){return!!n&&i in n}export{n as isVoxelGraphicOrigin,i as isVoxelGraphicOriginSymbol};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ const i=Symbol("isWFSGraphicOrigin");function n(n){return!!n&&i in n}export{n as isWFSGraphicOrigin,i as isWFSGraphicOriginSymbol};
package/interfaces.d.ts CHANGED
@@ -13889,23 +13889,358 @@ declare namespace __esri {
13889
13889
  visible?: boolean;
13890
13890
  }
13891
13891
 
13892
- /**
13893
- * Information about an {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#origin origin} of a graphic.
13894
- *
13895
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#GraphicOrigin Read more...}
13896
- */
13897
- export type GraphicOrigin = VectorTileOrigin;
13892
+ export class BuildingGraphicOrigin extends GraphicOrigin {
13893
+ /**
13894
+ * The layer of the graphic origin.
13895
+ *
13896
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html#layer Read more...}
13897
+ */
13898
+ readonly layer: BuildingSceneLayer;
13899
+ /**
13900
+ * The sublayer of the graphic origin.
13901
+ *
13902
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html#sublayer Read more...}
13903
+ */
13904
+ readonly sublayer: BuildingComponentSublayer;
13905
+ /**
13906
+ * The type of the graphic origin.
13907
+ *
13908
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html#type Read more...}
13909
+ */
13910
+ readonly type: "building";
13911
+ constructor(sublayer: BuildingComponentSublayer);
13912
+ }
13913
+
13914
+ export class CatalogGraphicOrigin extends GraphicOrigin {
13915
+ /**
13916
+ * The layer of the graphic origin.
13917
+ *
13918
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-CatalogGraphicOrigin.html#layer Read more...}
13919
+ */
13920
+ readonly layer: CatalogFootprintLayer;
13921
+ /**
13922
+ * The type of the graphic origin.
13923
+ *
13924
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-CatalogGraphicOrigin.html#type Read more...}
13925
+ */
13926
+ readonly type: "catalog";
13927
+ constructor(layer: CatalogFootprintLayer);
13928
+ }
13929
+
13930
+ export class CSVGraphicOrigin extends GraphicOrigin {
13931
+ /**
13932
+ * The layer of the graphic origin.
13933
+ *
13934
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-CSVGraphicOrigin.html#layer Read more...}
13935
+ */
13936
+ readonly layer: CSVLayer;
13937
+ /**
13938
+ * The type of the graphic origin.
13939
+ *
13940
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-CSVGraphicOrigin.html#type Read more...}
13941
+ */
13942
+ readonly type: "csv";
13943
+ constructor(layer: CSVLayer);
13944
+ }
13945
+
13946
+ export class FeatureGraphicOrigin extends GraphicOrigin {
13947
+ /**
13948
+ * The layer of the graphic origin.
13949
+ *
13950
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-FeatureGraphicOrigin.html#layer Read more...}
13951
+ */
13952
+ readonly layer: FeatureLayer;
13953
+ /**
13954
+ * The type of the graphic origin.
13955
+ *
13956
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-FeatureGraphicOrigin.html#type Read more...}
13957
+ */
13958
+ readonly type: "feature";
13959
+ constructor(layer: FeatureLayer);
13960
+ }
13961
+
13962
+ export class GeoJSONGraphicOrigin extends GraphicOrigin {
13963
+ /**
13964
+ * The layer of the graphic origin.
13965
+ *
13966
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-GeoJSONGraphicOrigin.html#layer Read more...}
13967
+ */
13968
+ readonly layer: GeoJSONLayer;
13969
+ /**
13970
+ * The type of the graphic origin.
13971
+ *
13972
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-GeoJSONGraphicOrigin.html#type Read more...}
13973
+ */
13974
+ readonly type: "geojson";
13975
+ constructor(layer: GeoJSONLayer);
13976
+ }
13977
+
13978
+ export class GraphicOrigin {
13979
+ constructor();
13980
+ }
13898
13981
 
13899
13982
  /**
13900
- * Origin information about a graphic returned as a result of the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest hitTest()} method for {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html VectorTileLayer}.
13983
+ * The `graphicOrigins` module provides utility functions to check the type of a
13984
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#origin graphic.origin}.
13901
13985
  *
13902
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#VectorTileOrigin Read more...}
13986
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html Read more...}
13903
13987
  */
13904
- export interface VectorTileOrigin {
13905
- type: "vector-tile";
13906
- layerId: string;
13907
- layerIndex: number;
13908
- layer: VectorTileLayer;
13988
+ interface graphicOrigins {
13989
+ /**
13990
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-BuildingGraphicOrigin.html BuildingGraphicOrigin}.
13991
+ *
13992
+ * @param origin The graphic origin to check.
13993
+ *
13994
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isBuildingGraphicOrigin Read more...}
13995
+ */
13996
+ isBuildingGraphicOrigin(origin: GraphicOrigin | nullish): origin is BuildingGraphicOrigin;
13997
+ /**
13998
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-CSVGraphicOrigin.html CSVGraphicOrigin}.
13999
+ *
14000
+ * @param origin The graphic origin to check.
14001
+ *
14002
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isCSVGraphicOrigin Read more...}
14003
+ */
14004
+ isCSVGraphicOrigin(origin: GraphicOrigin | nullish): origin is CSVGraphicOrigin;
14005
+ /**
14006
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-FeatureGraphicOrigin.html FeatureGraphicOrigin}.
14007
+ *
14008
+ * @param origin The graphic origin to check.
14009
+ *
14010
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isFeatureGraphicOrigin Read more...}
14011
+ */
14012
+ isFeatureGraphicOrigin(origin: GraphicOrigin | nullish): origin is FeatureGraphicOrigin;
14013
+ /**
14014
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-GeoJSONGraphicOrigin.html GeoJSONGraphicOrigin}.
14015
+ *
14016
+ * @param origin The graphic origin to check.
14017
+ *
14018
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isGeoJSONGraphicOrigin Read more...}
14019
+ */
14020
+ isGeoJSONGraphicOrigin(origin: GraphicOrigin | nullish): origin is GeoJSONGraphicOrigin;
14021
+ /**
14022
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMesh3DTilesGraphicOrigin.html IntegratedMesh3DTilesGraphicOrigin}.
14023
+ *
14024
+ * @param origin The graphic origin to check.
14025
+ *
14026
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isIntegratedMesh3DTilesGraphicOrigin Read more...}
14027
+ */
14028
+ isIntegratedMesh3DTilesGraphicOrigin(origin: GraphicOrigin | nullish): origin is IntegratedMesh3DTilesGraphicOrigin;
14029
+ /**
14030
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMeshGraphicOrigin.html IntegratedMeshGraphicOrigin}.
14031
+ *
14032
+ * @param origin The graphic origin to check.
14033
+ *
14034
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isIntegratedMeshGraphicOrigin Read more...}
14035
+ */
14036
+ isIntegratedMeshGraphicOrigin(origin: GraphicOrigin | nullish): origin is IntegratedMeshGraphicOrigin;
14037
+ /**
14038
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-OGCFeatureGraphicOrigin.html OGCFeatureGraphicOrigin}.
14039
+ *
14040
+ * @param origin The graphic origin to check.
14041
+ *
14042
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isOGCFeatureGraphicOrigin Read more...}
14043
+ */
14044
+ isOGCFeatureGraphicOrigin(origin: GraphicOrigin | nullish): origin is OGCFeatureGraphicOrigin;
14045
+ /**
14046
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-PointCloudGraphicOrigin.html PointCloudGraphicOrigin}.
14047
+ *
14048
+ * @param origin The graphic origin to check.
14049
+ *
14050
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isPointCloudGraphicOrigin Read more...}
14051
+ */
14052
+ isPointCloudGraphicOrigin(origin: GraphicOrigin | nullish): origin is PointCloudGraphicOrigin;
14053
+ /**
14054
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-SceneGraphicOrigin.html SceneGraphicOrigin}.
14055
+ *
14056
+ * @param origin The graphic origin to check.
14057
+ *
14058
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isSceneGraphicOrigin Read more...}
14059
+ */
14060
+ isSceneGraphicOrigin(origin: GraphicOrigin | nullish): origin is SceneGraphicOrigin;
14061
+ /**
14062
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-StreamGraphicOrigin.html StreamGraphicOrigin}.
14063
+ *
14064
+ * @param origin The graphic origin to check.
14065
+ *
14066
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isStreamGraphicOrigin Read more...}
14067
+ */
14068
+ isStreamGraphicOrigin(origin: GraphicOrigin | nullish): origin is StreamGraphicOrigin;
14069
+ /**
14070
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VectorTileGraphicOrigin.html VectorTileGraphicOrigin}.
14071
+ *
14072
+ * @param origin The graphic origin to check.
14073
+ *
14074
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isVectorTileGraphicOrigin Read more...}
14075
+ */
14076
+ isVectorTileGraphicOrigin(origin: GraphicOrigin | nullish): origin is VectorTileGraphicOrigin;
14077
+ /**
14078
+ * Checks if the provided `origin` is a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-WFSGraphicOrigin.html WFSGraphicOrigin}.
14079
+ *
14080
+ * @param origin The graphic origin to check.
14081
+ *
14082
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-graphicOrigins.html#isWFSGraphicOrigin Read more...}
14083
+ */
14084
+ isWFSGraphicOrigin(origin: GraphicOrigin | nullish): origin is WFSGraphicOrigin;
14085
+ }
14086
+
14087
+ export const graphicOrigins: graphicOrigins;
14088
+
14089
+ export class IntegratedMesh3DTilesGraphicOrigin extends GraphicOrigin {
14090
+ /**
14091
+ * The layer of the graphic origin.
14092
+ *
14093
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMesh3DTilesGraphicOrigin.html#layer Read more...}
14094
+ */
14095
+ readonly layer: IntegratedMesh3DTilesLayer;
14096
+ /**
14097
+ * The type of the graphic origin.
14098
+ *
14099
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMesh3DTilesGraphicOrigin.html#type Read more...}
14100
+ */
14101
+ readonly type: "integrated-mesh-3dtiles";
14102
+ constructor(layer: IntegratedMesh3DTilesLayer);
14103
+ }
14104
+
14105
+ export class IntegratedMeshGraphicOrigin extends GraphicOrigin {
14106
+ /**
14107
+ * The layer of the graphic origin.
14108
+ *
14109
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMeshGraphicOrigin.html#layer Read more...}
14110
+ */
14111
+ readonly layer: IntegratedMeshLayer;
14112
+ /**
14113
+ * The type of the graphic origin.
14114
+ *
14115
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-IntegratedMeshGraphicOrigin.html#type Read more...}
14116
+ */
14117
+ readonly type: "integrated-mesh";
14118
+ constructor(layer: IntegratedMeshLayer);
14119
+ }
14120
+
14121
+ export class OGCFeatureGraphicOrigin extends GraphicOrigin {
14122
+ /**
14123
+ * The layer of the graphic origin.
14124
+ *
14125
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-OGCFeatureGraphicOrigin.html#layer Read more...}
14126
+ */
14127
+ readonly layer: OGCFeatureLayer;
14128
+ /**
14129
+ * The type of the graphic origin.
14130
+ *
14131
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-OGCFeatureGraphicOrigin.html#type Read more...}
14132
+ */
14133
+ readonly type: "ogc-feature";
14134
+ constructor(layer: OGCFeatureLayer);
14135
+ }
14136
+
14137
+ export class PointCloudGraphicOrigin extends GraphicOrigin {
14138
+ /**
14139
+ * The layer of the graphic origin.
14140
+ *
14141
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-PointCloudGraphicOrigin.html#layer Read more...}
14142
+ */
14143
+ readonly layer: PointCloudLayer;
14144
+ /**
14145
+ * The type of the graphic origin.
14146
+ *
14147
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-PointCloudGraphicOrigin.html#type Read more...}
14148
+ */
14149
+ readonly type: "point-cloud";
14150
+ constructor(layer: PointCloudLayer);
14151
+ }
14152
+
14153
+ export class SceneGraphicOrigin extends GraphicOrigin {
14154
+ /**
14155
+ * The layer of the graphic origin.
14156
+ *
14157
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-SceneGraphicOrigin.html#layer Read more...}
14158
+ */
14159
+ readonly layer: SceneLayer;
14160
+ /**
14161
+ * The type of the graphic origin.
14162
+ *
14163
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-SceneGraphicOrigin.html#type Read more...}
14164
+ */
14165
+ readonly type: "scene";
14166
+ constructor(layer: SceneLayer);
14167
+ }
14168
+
14169
+ export class StreamGraphicOrigin extends GraphicOrigin {
14170
+ /**
14171
+ * The layer of the graphic origin.
14172
+ *
14173
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-StreamGraphicOrigin.html#layer Read more...}
14174
+ */
14175
+ readonly layer: StreamLayer;
14176
+ /**
14177
+ * The type of the graphic origin.
14178
+ *
14179
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-StreamGraphicOrigin.html#type Read more...}
14180
+ */
14181
+ readonly type: "stream";
14182
+ constructor(layer: StreamLayer);
14183
+ }
14184
+
14185
+ export class VectorTileGraphicOrigin extends GraphicOrigin {
14186
+ /**
14187
+ * The layer of the graphic origin.
14188
+ *
14189
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VectorTileGraphicOrigin.html#layer Read more...}
14190
+ */
14191
+ readonly layer: VectorTileLayer;
14192
+ /**
14193
+ * The [unique identifier](https://maplibre.org/maplibre-style-spec/layers/#id) of the style layer in the
14194
+ * [vector tile style](https://maplibre.org/maplibre-style-spec).
14195
+ *
14196
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VectorTileGraphicOrigin.html#layerId Read more...}
14197
+ */
14198
+ readonly layerId: string;
14199
+ /**
14200
+ * The layer index of the style layer in the [vector tile style](https://maplibre.org/maplibre-style-spec).
14201
+ *
14202
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VectorTileGraphicOrigin.html#layerIndex Read more...}
14203
+ */
14204
+ readonly layerIndex: number;
14205
+ /**
14206
+ * The type of the graphic origin.
14207
+ *
14208
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VectorTileGraphicOrigin.html#type Read more...}
14209
+ */
14210
+ readonly type: "vector-tile";
14211
+ constructor(layer: VectorTileLayer, layerId: string, layerIndex: number);
14212
+ }
14213
+
14214
+ export class VoxelGraphicOrigin extends GraphicOrigin {
14215
+ /**
14216
+ * The layer of the graphic origin.
14217
+ *
14218
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VoxelGraphicOrigin.html#layer Read more...}
14219
+ */
14220
+ readonly layer: VoxelLayer;
14221
+ /**
14222
+ * The type of the graphic origin.
14223
+ *
14224
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-VoxelGraphicOrigin.html#type Read more...}
14225
+ */
14226
+ readonly type: "voxel";
14227
+ constructor(layer: VoxelLayer);
14228
+ }
14229
+
14230
+ export class WFSGraphicOrigin extends GraphicOrigin {
14231
+ /**
14232
+ * The layer of the graphic origin.
14233
+ *
14234
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-WFSGraphicOrigin.html#layer Read more...}
14235
+ */
14236
+ readonly layer: WFSLayer;
14237
+ /**
14238
+ * The type of the graphic origin.
14239
+ *
14240
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-graphic-WFSGraphicOrigin.html#type Read more...}
14241
+ */
14242
+ readonly type: "wfs";
14243
+ constructor(layer: WFSLayer);
13909
14244
  }
13910
14245
 
13911
14246
  export interface Ground extends Accessor, Loadable, JSONSupport {
@@ -34609,14 +34944,17 @@ declare namespace __esri {
34609
34944
  valueType: | "binary"
34610
34945
  | "coordinate"
34611
34946
  | "count-or-amount"
34947
+ | "currency"
34612
34948
  | "date-and-time"
34613
34949
  | "description"
34950
+ | "email-address"
34614
34951
  | "location-or-place-name"
34615
34952
  | "measurement"
34616
34953
  | "name-or-title"
34617
34954
  | "none"
34618
34955
  | "ordered-or-ranked"
34619
34956
  | "percentage-or-ratio"
34957
+ | "phone-number"
34620
34958
  | "type-or-category"
34621
34959
  | "unique-identifier"
34622
34960
  | nullish;
@@ -34739,14 +35077,17 @@ declare namespace __esri {
34739
35077
  valueType?: | "binary"
34740
35078
  | "coordinate"
34741
35079
  | "count-or-amount"
35080
+ | "currency"
34742
35081
  | "date-and-time"
34743
35082
  | "description"
35083
+ | "email-address"
34744
35084
  | "location-or-place-name"
34745
35085
  | "measurement"
34746
35086
  | "name-or-title"
34747
35087
  | "none"
34748
35088
  | "ordered-or-ranked"
34749
35089
  | "percentage-or-ratio"
35090
+ | "phone-number"
34750
35091
  | "type-or-category"
34751
35092
  | "unique-identifier"
34752
35093
  | nullish;
package/kernel.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.33",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
5
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.35",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{result as i}from"../../../core/asyncUtils.js";import r from"../../../core/Collection.js";import has from"../../../core/has.js";import s from"../../../core/Error.js";import{clone as a}from"../../../core/lang.js";import l from"../../../core/Logger.js";import{destroyMaybe as o,removeMaybe as n,abortMaybe as h}from"../../../core/maybe.js";import u from"../../../core/Promise.js";import{createAbortError as c,isAbortError as d}from"../../../core/promiseUtils.js";import{initial as p,whenOnce as m,watch as f,syncAndInitial as y,sync as _}from"../../../core/reactiveUtils.js";import{sqlAnd as g}from"../../../core/sql.js";import{property as F}from"../../../core/accessorSupport/decorators/property.js";import{subclass as x}from"../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as v}from"../../../core/support/UpdatingHandles.js";import{projectWithZConversion as w}from"../../../geometry/projectionUtils.js";import{isHostedAgolService as D}from"../../support/arcgisLayerUrl.js";import{checkServiceCurrentUserSupport as C}from"../../support/featureLayerUtils.js";import{getEffectiveLayerCapabilities as b}from"../../support/layerUtils.js";import S from"../../../rest/support/StatisticDefinition.js";import{FeatureTileDescriptor as E,virtualSnapshotTileId as V,virtualDisplayFilterHighlightTileId as T}from"../../../views/3d/layers/support/FeatureTileDescriptor.js";import{FeatureTileFetcher3D as H}from"../../../views/3d/layers/support/FeatureTileFetcher3D.js";import{FeatureTileFetcher3DDebugger as I}from"../../../views/3d/layers/support/FeatureTileFetcher3DDebugger.js";import{debugFlags as L}from"../../../views/3d/support/debugFlags.js";let O=class extends(u.EsriPromiseMixin(t)){get dataUpdating(){return this._tileFetcher?.dataUpdating??!1}set extent(e){if(null!=e&&!e.spatialReference.equals(this.layerView.view.spatialReference))return void l.getLogger(this).error("#extent=","extent needs to be in the same spatial reference as the view");const t=this._get("extent");if(t===e)return;if(null!=t&&e&&t.equals(e))return;const i=null!=e?e.clone():null;this._set("extent",i)}get updating(){return!!(this._tileFetcher?.updating||null!=this._fetchDataInfoPromise||"tiles"===this.mode&&this.layerView.view.featureTiles?.updating||this._updatingHandles?.updating)}get updatingTotal(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.updatingTotal:0}get updatingRemaining(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.updatingRemaining:0}get expectedFeatureDiff(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.expectedFeatureDiff:0}get memoryForUnusedFeatures(){return null!=this._tileFetcher?this._tileFetcher.memoryForUnusedFeatures:0}get maximumNumberOfFeaturesExceeded(){return!(null==this._tileFetcher||!this._tileFetcher.maximumNumberOfFeaturesExceeded)}get maximumNumberOfFeatures(){return this.displayFeatureLimit?.maximumNumberOfFeatures??0}set maximumNumberOfFeatures(e){e!==this.maximumNumberOfFeatures&&this._overrideIfSome("maximumNumberOfFeatures",e)}get hasMaximumNumberOfFeaturesOverride(){return this._isOverridden("maximumNumberOfFeatures")}get hasAllFeatures(){return this.serviceDataCount===U.noServiceDataCount&&"snapshot"===this.mode&&this.hasAllFeaturesInView||this.serviceDataCount===this.graphics.length}get hasAllFeaturesInView(){const e=this.context.effectiveDisplayFilter?.where||null,t=null!=e&&"1=1"!==e;return("tiles"!==this.mode||!t)&&(this._tileFetcher?.showsAllFeatures??!1)}get hasFullGeometries(){return this._tileFetcher?.hasFullGeometries??!1}get mode(){const e=this.layerView.layer;if("feature"===e.type&&null!=e.infoFor3D)return"snapshot";if("catalog-footprint"===e.type)return"tiles";if(this._forceTilesMode)return"tiles";const t=this.layerView.view;if(!1===t.qualitySettings?.graphics3D?.snapshotAvailable||this.serviceDataCount===U.noServiceDataCount||this._snapshotLimitExceeded||this.maximumNumberOfFeaturesExceeded||t.quality<1)return"tiles";const i=t&&t.featureTiles,r=i&&i.tilingScheme;if(e&&e.minScale&&this.serviceDataExtent&&r){const t=this._approximateExtentSizeAtScale(e.minScale,r);if((this.serviceDataExtent.width/t+this.serviceDataExtent.height/t)/2>U.maxSnapshotMinScaleFactor)return"tiles"}return!this.maximumNumberOfFeatures||this.serviceDataCount<=this.maximumNumberOfFeatures?"snapshot":"tiles"}get maxTotalSnapshotVertices(){const e=this._get("maxTotalSnapshotVertices")||0,t="snapshot"===this.mode&&this._tileFetcher?.totalVertices||0;return Math.max(e,t)}_approximateExtentSizeAtScale(e,t){const i=this.layerView.view,r=Math.ceil((i.width/t.pixelSize+i.height/t.pixelSize)/2),s=t.levels[0];return r*((s.tileSize[0]/(s.scale/e)+s.tileSize[1]/(s.scale/e))/2)}get tileDescriptors(){if("snapshot"===this.mode){const e=new E(0,0,0,this.layerView.view.featureTiles.tilingScheme,V);return new r([e])}const e=this.layerView.view.featureTiles;if(!e)return new r;const t=e.tiles;if(this.layerView.displayFilterEnabled&&null!=this.layerView.effectiveDisplayFilterClause&&"1=1"!==this.layerView.effectiveDisplayFilterClause){const e=new E(0,0,0,this.layerView.view.featureTiles.tilingScheme,T);return new r([...t,e])}return t}get test(){}constructor(e){super(e),this.type="feature-tile-3d",this._updatingHandles=new v,this.serviceDataExtent=null,this.serviceDataCount=U.noServiceDataCount,this._snapshotLimitExceeded=!1,this.displayFeatureLimit=null,this._forceTilesMode=!1,this._suspended=!1,this._tileFetcher=null,this._fetchDataInfoPromise=null,this._fetchDataInfoAbortController=null,this._lifeCycleAbortController=new AbortController}initialize(){this._updatingHandles.add(()=>this.displayFeatureLimit,e=>this._updatingHandles.addPromise(this._updateSnapshotLimit(e,null,this._lifeCycleAbortController.signal))),this._updatingHandles.add(()=>this.mode,()=>this._modeChanged(),p),this._updatingHandles.add(()=>this.mode,(e,t)=>{"tiles"===e&&"snapshot"===t&&(this._forceTilesMode=!0)},p),this.addResolvingPromise(Promise.resolve().then(()=>this._verifyCapabilities()).then(()=>this._updatingHandles.addPromise(this._fetchServiceDataInfo())).then(()=>this._initializeTileFetcher()))}_verifyCapabilities(){const e=this.layerView.layer;if("ogc-feature"!==e.type&&!b(e)?.operations.supportsQuery)throw new s("graphicscontroller:query-capability-required","Service requires query capabilities to be used as a feature layer",{layer:e})}destroy(){this._cancelFetchServiceDataInfo(),this._tileFetcher=o(this._tileFetcher),this._tilesHandle=n(this._tilesHandle),this._lifeCycleAbortController=h(this._lifeCycleAbortController),this._updatingHandles.destroy(),this._set("_updatingHandles",null)}suspend(){this._suspended||(this._suspended=!0,null!=this._tileFetcher&&this._tileFetcher.suspend())}resume(){this._suspended&&(this._suspended=!1,null!=this._tileFetcher&&this._tileFetcher.resume())}restart(){const e=()=>{null!=this._tileFetcher&&this._tileFetcher.restart()};this._updatingHandles.addPromise(this._fetchServiceDataInfo().then(e,e))}refetch(){this._refetch({resetForceTilesMode:!1})}getMissingAttributesForFeature(e){return this._tileFetcher?.getMissingAttributesForFeature(e)}_refetch(e){const t=()=>{null!=this._tileFetcher&&(e.resetForceTilesMode&&(this._forceTilesMode=!1),this._tileFetcher.refetch())};this._updatingHandles.addPromise(this._fetchServiceDataInfo().then(t,t))}_initializeTileFetcher(){const e=this.layerView.view;if(!e)return;const t=m(()=>e.featureTiles?.tilingScheme,this._lifeCycleAbortController.signal);this._updatingHandles.addPromise(t),t.then(()=>{const{layerView:e,tileDescriptors:t}=this,i=e.layer,r=new H({context:this.context,filterExtent:this.extent,tileDescriptors:t,features:this.graphics});this._tileFetcher=r,this._suspended?r.suspend():r.resume();const s=this.layerView.view;s&&this.addHandles(f(()=>s.quality,e=>r.memoryFactor=e,y));const a="polygon"===this.context.geometryType?"polygonLodFactor":"polyline"===this.context.geometryType?"polylineLodFactor":null;a&&this.addHandles(f(()=>this.layerView.view?.qualitySettings?.graphics3D?.[a],e=>r.lodFactor=e||1,p));const l=e=>{r.maximumNumberOfFeatures=e,r.useTileCount=this.serviceDataCount>e},n=e=>{r.useTileCount=e>this.maximumNumberOfFeatures};"ogc-feature"!==i.type&&this._updatingHandles.add(()=>i.createQueryVersion,()=>this._dataFilterChanged()),this._updatingHandles.add(()=>this.layerView.effectiveDisplayFilter,()=>this._effectiveDisplayFilterChanged()),this._updatingHandles.add(()=>this.layerView.highlightIds,()=>this._displayFilterHighlightIdsChanged()),this._updatingHandles.add(()=>e.availableFields,(e,t)=>this._availableFieldsChanged(t,e)),this._updatingHandles.add(()=>e.requiredFields,(e,t)=>this._requiredFieldsChanged(t,e)),"customParameters"in i&&this._updatingHandles.add(()=>i.customParameters,()=>this.restart()),this.addHandles([i.on("apply-edits",e=>this._applyEdits(e)),f(()=>this.extent,e=>r.filterExtent=e,_),f(()=>this.tileDescriptors,e=>r.tileDescriptors=e,_),f(()=>this.maximumNumberOfFeatures,l,y),f(()=>this.serviceDataCount,n,y),f(()=>L.FEATURE_TILE_FETCH_SHOW_TILES,e=>{e&&r?r.debugger??=new I(r,s.featureTiles.tilingScheme.toTileInfo(),s):!e&&this._tileFetcher&&r.debugger&&(r.debugger=o(r.debugger))},p)]),this._supportsExceedsLimitQuery||this._updatingHandles.add(()=>this.maxTotalSnapshotVertices,()=>this._updatingHandles.addPromise(this._updateSnapshotLimit(this.displayFeatureLimit,null,this._lifeCycleAbortController.signal)))}).catch(()=>{})}_modeChanged(){switch(this.mode){case"tiles":this._tilesHandle||(this._tilesHandle=this.layerView.view.featureTiles.addClient());break;default:l.getLogger(this).warn("Unhandled feature layer mode "+this.mode);case"snapshot":null!=this._tilesHandle&&(this._tilesHandle.remove(),this._tilesHandle=null)}}_dataFilterChanged(){this._set("maxTotalSnapshotVertices",0),this.notifyChange("maxTotalSnapshotVertices"),this._refetch({resetForceTilesMode:!0})}_effectiveDisplayFilterChanged(){"snapshot"!==this.mode&&this._refetch({resetForceTilesMode:!1})}_displayFilterHighlightIdsChanged(){"snapshot"!==this.mode&&null!=this._tileFetcher&&this._tileFetcher.refetchDisplayFilterHighlightTile()}_applyEdits(e){const t=this.layerView.layer;null!=this._tileFetcher&&this._tileFetcher.applyEdits(e).then(e=>{if(e){if(!this._lifeCycleAbortController)throw c();e.exceededTransferLimit&&"refresh"in t?t.refresh():(e.deletedFeatures.length||e.updatedFeatures.length||e.addedFeatures.length)&&this._updatingHandles.addPromise(this._updateServiceDataExtent(this._lifeCycleAbortController.signal))}}).catch(e=>{if(!d(e))throw e})}_availableFieldsChanged(e,t){null!=this._tileFetcher&&M(this._tileFetcher.availableFields,t)&&this._refetch({resetForceTilesMode:!1})}_requiredFieldsChanged(e,t){null!=this._tileFetcher&&M(this._tileFetcher.availableFields,t)&&this.restart()}_createVertexLimitExceededQuery(e){const t=this.layerView.layer,i=t.createQuery();return i.returnGeometry=!1,i.outStatistics=[new S({statisticType:"exceedslimit",maxVertexCount:e,outStatisticFieldName:"exceedslimit",maxPointCount:1e8,maxRecordCount:1e8})],t.capabilities?.query.supportsCacheHint&&(i.cacheHint=!0),i}_createDataInfoQuery(){const e=this.layerView.layer,t=this.layerView,i=e.createQuery();return i.returnGeometry=!1,i.outSpatialReference=this.layerView.view.spatialReference,e.capabilities?.query.supportsCacheHint&&(i.cacheHint=!0),t.effectiveDisplayFilter&&(i.where=g(i.where,t.effectiveDisplayFilter.where)),i}_fullExtentIsAccurate(){const e=this.layerView.layer;if("definitionExpression"in e&&e.definitionExpression)return!1;switch(e.type){case"feature":case"catalog-footprint":case"oriented-imagery":return D(e.url);case"csv":case"geojson":case"ogc-feature":case"wfs":return!0;default:return}}async _updateServiceDataExtent(e){try{await this._tryUpdateServiceDataExtent(e)}catch(t){d(t)||this._set("serviceDataExtent",a(this.layerView.fullExtentInLocalViewSpatialReference)??null)}}async _tryUpdateServiceDataExtent(e){const t=this.layerView,i=t.layer,r=i.capabilities?.query.supportsExtent??!1,s=a(t.fullExtentInLocalViewSpatialReference),l=i.fullExtent,o=this._fullExtentIsAccurate(),n=this.serviceDataCount;if(r&&n<=U.maxFeatureCountForExtent&&(!s||!o)&&"queryExtent"in i){const t=this._createDataInfoQuery(),r=await i.queryExtent(t,{timeout:U.queryExtentTimeout,signal:e});this._set("serviceDataExtent",r.extent)}else if(s)this._set("serviceDataExtent",s);else if(null!=l){const e=l.spatialReference?await w(l,t.view.spatialReference):null;this._set("serviceDataExtent",e??null)}else this._set("serviceDataExtent",null)}async _updateServiceDataCount(e){const t=this.layerView.layer;if(!("queryFeatureCount"in t)||!has("featurelayer-snapshot-enabled"))return void this._set("serviceDataCount",U.noServiceDataCount);const r=await i(t.queryFeatureCount(this._createDataInfoQuery(),{timeout:U.queryStatisticsTimeout,signal:e}));if(!0===r.ok)this._set("serviceDataCount",r.value);else{if(d(r.error))throw r.error;this._set("serviceDataCount",U.noServiceDataCount)}}get _supportsExceedsLimitQuery(){const e=this.layerView.layer;return null!=e.capabilities&&e.capabilities.operations&&e.capabilities.operations.supportsExceedsLimitStatistics}get _minimumNumberOfVerticesForGeometry(){switch(this.layerView.layer.geometryType){case"point":case"multipoint":return 1;case"polygon":return 4;case"polyline":return 2;case"multipatch":case"mesh":return 3;default:return 0}}async _updateSnapshotLimit(e,t,r){if(null==e?.averageSymbolComplexity)return void(this._snapshotLimitExceeded=!1);const{maximumTotalNumberOfVertices:s,averageSymbolComplexity:a}=e,{verticesPerFeature:l,verticesPerCoordinate:o}=a,n=l<=0,h=this._minimumNumberOfVerticesForGeometry>1;if(!n&&!h)return void(this._snapshotLimitExceeded=!1);0!==l&&null!=t&&await t;const u=Math.min(s,q),c=this.serviceDataCount,p=c!==U.noServiceDataCount;let m=p?Math.ceil((u-c*l)/(o||1)):Math.ceil(u/(o||1));if(h&&(m=Math.min(m,N)),p&&this._minimumNumberOfVerticesForGeometry*c>m)return void(this._snapshotLimitExceeded=!0);if(!this._supportsExceedsLimitQuery||!has("featurelayer-snapshot-enabled"))return void(this._snapshotLimitExceeded=this.maxTotalSnapshotVertices>m);const f=await i(this.layerView.layer.queryFeatures(this._createVertexLimitExceededQuery(m),{timeout:U.queryStatisticsTimeout,signal:r}));if(!1===f.ok){if(d(f.error))throw f.error;return void(this._snapshotLimitExceeded=!1)}const y=f.value.features[0];this._snapshotLimitExceeded=!!y?.attributes&&!!y.attributes.exceedslimit}async _fetchServiceDataInfo(){this._cancelFetchServiceDataInfo(),await C(this.layerView.layer);let e=new AbortController;const t=e.signal,i=this._updateServiceDataCount(t),r=Promise.allSettled([i,this._updateSnapshotLimit(this.displayFeatureLimit,i,t)]),s=r.then(()=>this._updateServiceDataExtent(t)).catch(e=>{d(e)||l.getLogger(this).error("#fetchServiceDataInfo()",e)}).then(()=>{s===this._fetchDataInfoPromise&&(this._fetchDataInfoPromise=null,this._fetchDataInfoAbortController=null),e=null});return e&&(this._fetchDataInfoPromise=s),this._fetchDataInfoAbortController=e,r.then(()=>{},()=>{})}_cancelFetchServiceDataInfo(){const e=this._fetchDataInfoAbortController;e&&(this._fetchDataInfoAbortController=null,this._fetchDataInfoPromise=null,e.abort())}get performanceInfo(){return{storedFeatures:this._tileFetcher?.storedFeatures??0,totalFeatures:this._tileFetcher?.totalFeatures??0,totalVertices:this._tileFetcher?.totalVertices??0,missingTiles:this._tileFetcher?.missingTiles??0}}};e([F({readOnly:!0})],O.prototype,"type",void 0),e([F({constructOnly:!0})],O.prototype,"graphics",void 0),e([F({constructOnly:!0})],O.prototype,"layerView",void 0),e([F({constructOnly:!0})],O.prototype,"context",void 0),e([F({readOnly:!0})],O.prototype,"dataUpdating",null),e([F()],O.prototype,"extent",null),e([F()],O.prototype,"updating",null),e([F({readOnly:!0})],O.prototype,"_updatingHandles",void 0),e([F()],O.prototype,"updatingTotal",null),e([F()],O.prototype,"updatingRemaining",null),e([F()],O.prototype,"expectedFeatureDiff",null),e([F()],O.prototype,"memoryForUnusedFeatures",null),e([F()],O.prototype,"maximumNumberOfFeaturesExceeded",null),e([F({readOnly:!0})],O.prototype,"serviceDataExtent",void 0),e([F({readOnly:!0})],O.prototype,"serviceDataCount",void 0),e([F()],O.prototype,"_snapshotLimitExceeded",void 0),e([F()],O.prototype,"displayFeatureLimit",void 0),e([F({type:Number})],O.prototype,"maximumNumberOfFeatures",null),e([F({readOnly:!0})],O.prototype,"hasAllFeatures",null),e([F({readOnly:!0})],O.prototype,"hasAllFeaturesInView",null),e([F({readOnly:!0})],O.prototype,"hasFullGeometries",null),e([F()],O.prototype,"_forceTilesMode",void 0),e([F({readOnly:!0})],O.prototype,"mode",null),e([F({readOnly:!0})],O.prototype,"maxTotalSnapshotVertices",null),e([F({readOnly:!0})],O.prototype,"tileDescriptors",null),e([F()],O.prototype,"_tileFetcher",void 0),e([F()],O.prototype,"_fetchDataInfoPromise",void 0),O=e([x("esri.layers.graphics.controllers.FeatureTileController3D")],O);const A=1e4,q=1e6,j=12e3,P=1e4,N=5e6;function M(e,t){if(!t)return!1;for(const i of t)if(!e.has(i))return!0;return!1}var U;!function(e){function t(){e.maxFeatureCountForExtent=A,e.queryStatisticsTimeout=j,e.queryExtentTimeout=P}e.noServiceDataCount=1/0,e.maxSnapshotMinScaleFactor=5,e.reset=t}(U||(U={})),U.reset();export{O as FeatureTileController3D,U as FeatureTileController3DConstants};
5
+ import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{result as i}from"../../../core/asyncUtils.js";import r from"../../../core/Collection.js";import has from"../../../core/has.js";import s from"../../../core/Error.js";import{clone as a}from"../../../core/lang.js";import l from"../../../core/Logger.js";import{destroyMaybe as o,removeMaybe as n,abortMaybe as h}from"../../../core/maybe.js";import u from"../../../core/Promise.js";import{createAbortError as c,isAbortError as d}from"../../../core/promiseUtils.js";import{initial as p,watch as m,syncAndInitial as f,sync as y}from"../../../core/reactiveUtils.js";import{sqlAnd as _}from"../../../core/sql.js";import{property as g}from"../../../core/accessorSupport/decorators/property.js";import{subclass as F}from"../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as x}from"../../../core/support/UpdatingHandles.js";import{projectWithZConversion as v}from"../../../geometry/projectionUtils.js";import{isHostedAgolService as w}from"../../support/arcgisLayerUrl.js";import{checkServiceCurrentUserSupport as D}from"../../support/featureLayerUtils.js";import{getEffectiveLayerCapabilities as C}from"../../support/layerUtils.js";import b from"../../../rest/support/StatisticDefinition.js";import{FeatureTileDescriptor as S,virtualSnapshotTileId as E,virtualDisplayFilterHighlightTileId as T}from"../../../views/3d/layers/support/FeatureTileDescriptor.js";import{FeatureTileFetcher3D as V}from"../../../views/3d/layers/support/FeatureTileFetcher3D.js";import{FeatureTileFetcher3DDebugger as H}from"../../../views/3d/layers/support/FeatureTileFetcher3DDebugger.js";import{debugFlags as I}from"../../../views/3d/support/debugFlags.js";let L=class extends(u.EsriPromiseMixin(t)){get dataUpdating(){return this._tileFetcher?.dataUpdating??!1}set extent(e){if(null!=e&&!e.spatialReference.equals(this.layerView.view.spatialReference))return void l.getLogger(this).error("#extent=","extent needs to be in the same spatial reference as the view");const t=this._get("extent");if(t===e)return;if(null!=t&&e&&t.equals(e))return;const i=null!=e?e.clone():null;this._set("extent",i)}get updating(){return!!(this._tileFetcher?.updating||null!=this._fetchDataInfoPromise||"tiles"===this.mode&&this.layerView.view.featureTiles?.updating||this._updatingHandles?.updating)}get updatingTotal(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.updatingTotal:0}get updatingRemaining(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.updatingRemaining:0}get expectedFeatureDiff(){return this.updating&&null!=this._tileFetcher?this._tileFetcher.expectedFeatureDiff:0}get memoryForUnusedFeatures(){return null!=this._tileFetcher?this._tileFetcher.memoryForUnusedFeatures:0}get maximumNumberOfFeaturesExceeded(){return!(null==this._tileFetcher||!this._tileFetcher.maximumNumberOfFeaturesExceeded)}get maximumNumberOfFeatures(){return this.displayFeatureLimit?.maximumNumberOfFeatures??0}set maximumNumberOfFeatures(e){e!==this.maximumNumberOfFeatures&&this._overrideIfSome("maximumNumberOfFeatures",e)}get hasMaximumNumberOfFeaturesOverride(){return this._isOverridden("maximumNumberOfFeatures")}get hasAllFeatures(){return this.serviceDataCount===M.noServiceDataCount&&"snapshot"===this.mode&&this.hasAllFeaturesInView||this.serviceDataCount===this.graphics.length}get hasAllFeaturesInView(){const e=this.context.effectiveDisplayFilter?.where||null,t=null!=e&&"1=1"!==e;return("tiles"!==this.mode||!t)&&(this._tileFetcher?.showsAllFeatures??!1)}get hasFullGeometries(){return this._tileFetcher?.hasFullGeometries??!1}get mode(){const e=this.layerView.layer;if("feature"===e.type&&null!=e.infoFor3D)return"snapshot";if("catalog-footprint"===e.type)return"tiles";if(this._forceTilesMode)return"tiles";const t=this.layerView.view;if(!1===t.qualitySettings?.graphics3D?.snapshotAvailable||this.serviceDataCount===M.noServiceDataCount||this._snapshotLimitExceeded||this.maximumNumberOfFeaturesExceeded||t.quality<1)return"tiles";const i=t&&t.featureTiles,r=i?.tilingScheme;if(e&&e.minScale&&this.serviceDataExtent&&r){const t=this._approximateExtentSizeAtScale(e.minScale,r);if((this.serviceDataExtent.width/t+this.serviceDataExtent.height/t)/2>M.maxSnapshotMinScaleFactor)return"tiles"}return!this.maximumNumberOfFeatures||this.serviceDataCount<=this.maximumNumberOfFeatures?"snapshot":"tiles"}get maxTotalSnapshotVertices(){const e=this._get("maxTotalSnapshotVertices")||0,t="snapshot"===this.mode&&this._tileFetcher?.totalVertices||0;return Math.max(e,t)}_approximateExtentSizeAtScale(e,t){const i=this.layerView.view,r=Math.ceil((i.width/t.pixelSize+i.height/t.pixelSize)/2),s=t.levels[0];return r*((s.tileSize[0]/(s.scale/e)+s.tileSize[1]/(s.scale/e))/2)}get tileDescriptors(){if("snapshot"===this.mode){const e=new S(0,0,0,null,E);return new r([e])}const e=this.layerView.view.featureTiles;if(!e)return new r;const t=e.tiles;if(this.layerView.displayFilterEnabled&&null!=this.layerView.effectiveDisplayFilterClause&&"1=1"!==this.layerView.effectiveDisplayFilterClause){const e=new S(0,0,0,this.layerView.view.featureTiles.tilingScheme,T);return new r([...t,e])}return t}get test(){}constructor(e){super(e),this.type="feature-tile-3d",this._updatingHandles=new x,this.serviceDataExtent=null,this.serviceDataCount=M.noServiceDataCount,this._snapshotLimitExceeded=!1,this.displayFeatureLimit=null,this._forceTilesMode=!1,this._suspended=!1,this._tileFetcher=null,this._fetchDataInfoPromise=null,this._fetchDataInfoAbortController=null,this._lifeCycleAbortController=new AbortController}initialize(){this._updatingHandles.add(()=>this.displayFeatureLimit,e=>this._updatingHandles.addPromise(this._updateSnapshotLimit(e,null,this._lifeCycleAbortController.signal))),this._updatingHandles.add(()=>this.mode,()=>this._modeChanged(),p),this._updatingHandles.add(()=>this.mode,(e,t)=>{"tiles"===e&&"snapshot"===t&&(this._forceTilesMode=!0)},p),this.addResolvingPromise(Promise.resolve().then(()=>this._verifyCapabilities()).then(()=>this._updatingHandles.addPromise(this._fetchServiceDataInfo())).then(()=>this._initializeTileFetcher()))}_verifyCapabilities(){const e=this.layerView.layer;if("ogc-feature"!==e.type&&!C(e)?.operations.supportsQuery)throw new s("graphicscontroller:query-capability-required","Service requires query capabilities to be used as a feature layer",{layer:e})}destroy(){this._cancelFetchServiceDataInfo(),this._tileFetcher=o(this._tileFetcher),this._tilesHandle=n(this._tilesHandle),this._lifeCycleAbortController=h(this._lifeCycleAbortController),this._updatingHandles.destroy(),this._set("_updatingHandles",null)}suspend(){this._suspended||(this._suspended=!0,null!=this._tileFetcher&&this._tileFetcher.suspend())}resume(){this._suspended&&(this._suspended=!1,null!=this._tileFetcher&&this._tileFetcher.resume())}restart(){const e=()=>{null!=this._tileFetcher&&this._tileFetcher.restart()};this._updatingHandles.addPromise(this._fetchServiceDataInfo().then(e,e))}refetch(){this._refetch({resetForceTilesMode:!1})}getMissingAttributesForFeature(e){return this._tileFetcher?.getMissingAttributesForFeature(e)}_refetch(e){const t=()=>{null!=this._tileFetcher&&(e.resetForceTilesMode&&(this._forceTilesMode=!1),this._tileFetcher.refetch())};this._updatingHandles.addPromise(this._fetchServiceDataInfo().then(t,t))}_initializeTileFetcher(){const e=this.layerView.view;if(!e)return;const{layerView:t,tileDescriptors:i}=this,r=t.layer,s=new V({context:this.context,filterExtent:this.extent,tileDescriptors:i,features:this.graphics});this._tileFetcher=s,this._suspended?s.suspend():s.resume(),e&&this.addHandles(m(()=>e.quality,e=>s.memoryFactor=e,f));const a="polygon"===this.context.geometryType?"polygonLodFactor":"polyline"===this.context.geometryType?"polylineLodFactor":null;a&&this.addHandles(m(()=>this.layerView.view?.qualitySettings?.graphics3D?.[a],e=>s.lodFactor=e||1,p));const l=e=>{s.maximumNumberOfFeatures=e,s.useTileCount=this.serviceDataCount>e},n=e=>{s.useTileCount=e>this.maximumNumberOfFeatures};"ogc-feature"!==r.type&&this._updatingHandles.add(()=>r.createQueryVersion,()=>this._dataFilterChanged()),this._updatingHandles.add(()=>this.layerView.effectiveDisplayFilter,()=>this._effectiveDisplayFilterChanged()),this._updatingHandles.add(()=>this.layerView.highlightIds,()=>this._displayFilterHighlightIdsChanged()),this._updatingHandles.add(()=>t.availableFields,(e,t)=>this._availableFieldsChanged(t,e)),this._updatingHandles.add(()=>t.requiredFields,(e,t)=>this._requiredFieldsChanged(t,e)),"customParameters"in r&&this._updatingHandles.add(()=>r.customParameters,()=>this.restart()),this.addHandles([r.on("apply-edits",e=>this._applyEdits(e)),m(()=>this.extent,e=>s.filterExtent=e,y),m(()=>this.tileDescriptors,e=>s.tileDescriptors=e,y),m(()=>this.maximumNumberOfFeatures,l,f),m(()=>this.serviceDataCount,n,f),m(()=>({featureTiles:e.featureTiles,show:I.FEATURE_TILE_FETCH_SHOW_TILES}),({show:t,featureTiles:i})=>{t&&s&&i?s.debugger??=new H(s,i.tilingScheme.toTileInfo(),e):s.debugger=o(s.debugger)},p)]),this._supportsExceedsLimitQuery||this._updatingHandles.add(()=>this.maxTotalSnapshotVertices,()=>this._updatingHandles.addPromise(this._updateSnapshotLimit(this.displayFeatureLimit,null,this._lifeCycleAbortController.signal)))}_modeChanged(){switch(this.mode){case"tiles":this._tilesHandle||(this._tilesHandle=this.layerView.view.enableFeatureTiles());break;default:l.getLogger(this).warn("Unhandled feature layer mode "+this.mode);case"snapshot":null!=this._tilesHandle&&(this._tilesHandle.remove(),this._tilesHandle=null)}}_dataFilterChanged(){this._set("maxTotalSnapshotVertices",0),this.notifyChange("maxTotalSnapshotVertices"),this._refetch({resetForceTilesMode:!0})}_effectiveDisplayFilterChanged(){"snapshot"!==this.mode&&this._refetch({resetForceTilesMode:!1})}_displayFilterHighlightIdsChanged(){"snapshot"!==this.mode&&null!=this._tileFetcher&&this._tileFetcher.refetchDisplayFilterHighlightTile()}_applyEdits(e){const t=this.layerView.layer;null!=this._tileFetcher&&this._tileFetcher.applyEdits(e).then(e=>{if(e){if(!this._lifeCycleAbortController)throw c();e.exceededTransferLimit&&"refresh"in t?t.refresh():(e.deletedFeatures.length||e.updatedFeatures.length||e.addedFeatures.length)&&this._updatingHandles.addPromise(this._updateServiceDataExtent(this._lifeCycleAbortController.signal))}}).catch(e=>{if(!d(e))throw e})}_availableFieldsChanged(e,t){null!=this._tileFetcher&&P(this._tileFetcher.availableFields,t)&&this._refetch({resetForceTilesMode:!1})}_requiredFieldsChanged(e,t){null!=this._tileFetcher&&P(this._tileFetcher.availableFields,t)&&this.restart()}_createVertexLimitExceededQuery(e){const t=this.layerView.layer,i=t.createQuery();return i.returnGeometry=!1,i.outStatistics=[new b({statisticType:"exceedslimit",maxVertexCount:e,outStatisticFieldName:"exceedslimit",maxPointCount:1e8,maxRecordCount:1e8})],t.capabilities?.query.supportsCacheHint&&(i.cacheHint=!0),i}_createDataInfoQuery(){const e=this.layerView.layer,t=this.layerView,i=e.createQuery();return i.returnGeometry=!1,i.outSpatialReference=this.layerView.view.spatialReference,e.capabilities?.query.supportsCacheHint&&(i.cacheHint=!0),t.effectiveDisplayFilter&&(i.where=_(i.where,t.effectiveDisplayFilter.where)),i}_fullExtentIsAccurate(){const e=this.layerView.layer;if("definitionExpression"in e&&e.definitionExpression)return!1;switch(e.type){case"feature":case"catalog-footprint":case"oriented-imagery":return w(e.url);case"csv":case"geojson":case"ogc-feature":case"wfs":return!0;default:return}}async _updateServiceDataExtent(e){try{await this._tryUpdateServiceDataExtent(e)}catch(t){d(t)||this._set("serviceDataExtent",a(this.layerView.fullExtentInLocalViewSpatialReference)??null)}}async _tryUpdateServiceDataExtent(e){const t=this.layerView,i=t.layer,r=i.capabilities?.query.supportsExtent??!1,s=a(t.fullExtentInLocalViewSpatialReference),l=i.fullExtent,o=this._fullExtentIsAccurate(),n=this.serviceDataCount;if(r&&n<=M.maxFeatureCountForExtent&&(!s||!o)&&"queryExtent"in i){const t=this._createDataInfoQuery(),r=await i.queryExtent(t,{timeout:M.queryExtentTimeout,signal:e});this._set("serviceDataExtent",r.extent)}else if(s)this._set("serviceDataExtent",s);else if(null!=l){const e=l.spatialReference?await v(l,t.view.spatialReference):null;this._set("serviceDataExtent",e??null)}else this._set("serviceDataExtent",null)}async _updateServiceDataCount(e){const t=this.layerView.layer;if(!("queryFeatureCount"in t)||!has("featurelayer-snapshot-enabled"))return void this._set("serviceDataCount",M.noServiceDataCount);const r=await i(t.queryFeatureCount(this._createDataInfoQuery(),{timeout:M.queryStatisticsTimeout,signal:e}));if(!0===r.ok)this._set("serviceDataCount",r.value);else{if(d(r.error))throw r.error;this._set("serviceDataCount",M.noServiceDataCount)}}get _supportsExceedsLimitQuery(){const e=this.layerView.layer;return null!=e.capabilities&&e.capabilities.operations&&e.capabilities.operations.supportsExceedsLimitStatistics}get _minimumNumberOfVerticesForGeometry(){switch(this.layerView.layer.geometryType){case"point":case"multipoint":return 1;case"polygon":return 4;case"polyline":return 2;case"multipatch":case"mesh":return 3;default:return 0}}async _updateSnapshotLimit(e,t,r){if(null==e?.averageSymbolComplexity)return void(this._snapshotLimitExceeded=!1);const{maximumTotalNumberOfVertices:s,averageSymbolComplexity:a}=e,{verticesPerFeature:l,verticesPerCoordinate:o}=a,n=l<=0,h=this._minimumNumberOfVerticesForGeometry>1;if(!n&&!h)return void(this._snapshotLimitExceeded=!1);0!==l&&null!=t&&await t;const u=Math.min(s,A),c=this.serviceDataCount,p=c!==M.noServiceDataCount;let m=p?Math.ceil((u-c*l)/(o||1)):Math.ceil(u/(o||1));if(h&&(m=Math.min(m,N)),p&&this._minimumNumberOfVerticesForGeometry*c>m)return void(this._snapshotLimitExceeded=!0);if(!this._supportsExceedsLimitQuery||!has("featurelayer-snapshot-enabled"))return void(this._snapshotLimitExceeded=this.maxTotalSnapshotVertices>m);const f=await i(this.layerView.layer.queryFeatures(this._createVertexLimitExceededQuery(m),{timeout:M.queryStatisticsTimeout,signal:r}));if(!1===f.ok){if(d(f.error))throw f.error;return void(this._snapshotLimitExceeded=!1)}const y=f.value.features[0];this._snapshotLimitExceeded=!!y?.attributes&&!!y.attributes.exceedslimit}async _fetchServiceDataInfo(){this._cancelFetchServiceDataInfo(),await D(this.layerView.layer);let e=new AbortController;const t=e.signal,i=this._updateServiceDataCount(t),r=Promise.allSettled([i,this._updateSnapshotLimit(this.displayFeatureLimit,i,t)]),s=r.then(()=>this._updateServiceDataExtent(t)).catch(e=>{d(e)||l.getLogger(this).error("#fetchServiceDataInfo()",e)}).then(()=>{s===this._fetchDataInfoPromise&&(this._fetchDataInfoPromise=null,this._fetchDataInfoAbortController=null),e=null});return e&&(this._fetchDataInfoPromise=s),this._fetchDataInfoAbortController=e,r.then(()=>{},()=>{})}_cancelFetchServiceDataInfo(){const e=this._fetchDataInfoAbortController;e&&(this._fetchDataInfoAbortController=null,this._fetchDataInfoPromise=null,e.abort())}get performanceInfo(){return{storedFeatures:this._tileFetcher?.storedFeatures??0,totalFeatures:this._tileFetcher?.totalFeatures??0,totalVertices:this._tileFetcher?.totalVertices??0,missingTiles:this._tileFetcher?.missingTiles??0}}};e([g({readOnly:!0})],L.prototype,"type",void 0),e([g({constructOnly:!0})],L.prototype,"graphics",void 0),e([g({constructOnly:!0})],L.prototype,"layerView",void 0),e([g({constructOnly:!0})],L.prototype,"context",void 0),e([g({readOnly:!0})],L.prototype,"dataUpdating",null),e([g()],L.prototype,"extent",null),e([g()],L.prototype,"updating",null),e([g({readOnly:!0})],L.prototype,"_updatingHandles",void 0),e([g()],L.prototype,"updatingTotal",null),e([g()],L.prototype,"updatingRemaining",null),e([g()],L.prototype,"expectedFeatureDiff",null),e([g()],L.prototype,"memoryForUnusedFeatures",null),e([g()],L.prototype,"maximumNumberOfFeaturesExceeded",null),e([g({readOnly:!0})],L.prototype,"serviceDataExtent",void 0),e([g({readOnly:!0})],L.prototype,"serviceDataCount",void 0),e([g()],L.prototype,"_snapshotLimitExceeded",void 0),e([g()],L.prototype,"displayFeatureLimit",void 0),e([g({type:Number})],L.prototype,"maximumNumberOfFeatures",null),e([g({readOnly:!0})],L.prototype,"hasAllFeatures",null),e([g({readOnly:!0})],L.prototype,"hasAllFeaturesInView",null),e([g({readOnly:!0})],L.prototype,"hasFullGeometries",null),e([g()],L.prototype,"_forceTilesMode",void 0),e([g({readOnly:!0})],L.prototype,"mode",null),e([g({readOnly:!0})],L.prototype,"maxTotalSnapshotVertices",null),e([g({readOnly:!0})],L.prototype,"tileDescriptors",null),e([g()],L.prototype,"_tileFetcher",void 0),e([g()],L.prototype,"_fetchDataInfoPromise",void 0),L=e([F("esri.layers.graphics.controllers.FeatureTileController3D")],L);const O=1e4,A=1e6,q=12e3,j=1e4,N=5e6;function P(e,t){if(!t)return!1;for(const i of t)if(!e.has(i))return!0;return!1}var M;!function(e){function t(){e.maxFeatureCountForExtent=O,e.queryStatisticsTimeout=q,e.queryExtentTimeout=j}e.noServiceDataCount=1/0,e.maxSnapshotMinScaleFactor=5,e.reset=t}(M||(M={})),M.reset();export{L as FeatureTileController3D,M as FeatureTileController3DConstants};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import o from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{enumeration as a}from"../../core/accessorSupport/decorators/enumeration.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import{fromJSON as s,types as p}from"./domains.js";import{kebabDict as d}from"./fieldType.js";var u;const c=new t({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=class extends o{static{u=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let o=null;try{o=t?JSON.parse(t):null}catch(r){}return o?.value??null}readValueType(e,{description:t}){let o=null;try{o=t?JSON.parse(t):null}catch(r){}return o?c.fromJSON(o.fieldValueType):null}clone(){return new u({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};e([r({type:String,json:{write:!0}})],m.prototype,"alias",void 0),e([r({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),e([r()],m.prototype,"description",void 0),e([n("description")],m.prototype,"readDescription",null),e([r({types:p,json:{read:{reader:s},write:!0}})],m.prototype,"domain",void 0),e([r({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),e([r({type:i,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),e([r({type:String,json:{write:!0}})],m.prototype,"name",void 0),e([r({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),e([a(d)],m.prototype,"type",void 0),e([r()],m.prototype,"valueType",void 0),e([n("valueType",["description"])],m.prototype,"readValueType",null),e([r({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=u=e([l("esri.layers.support.Field")],m);export{m as default};
5
+ import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import o from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{enumeration as n}from"../../core/accessorSupport/decorators/enumeration.js";import{reader as a}from"../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import{fromJSON as s,types as p}from"./domains.js";import{kebabDict as d}from"./fieldType.js";var u;const c=new t({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=class extends o{static{u=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let o=null;try{o=t?JSON.parse(t):null}catch(r){}return o?.value??null}readValueType(e,{description:t}){let o=null;try{o=t?JSON.parse(t):null}catch(r){}return o?c.fromJSON(o.fieldValueType):null}clone(){return new u({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};e([r({type:String,json:{write:!0}})],m.prototype,"alias",void 0),e([r({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),e([r()],m.prototype,"description",void 0),e([a("description")],m.prototype,"readDescription",null),e([r({types:p,json:{read:{reader:s},write:!0}})],m.prototype,"domain",void 0),e([r({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),e([r({type:i,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),e([r({type:String,json:{write:!0}})],m.prototype,"name",void 0),e([r({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),e([n(d)],m.prototype,"type",void 0),e([r()],m.prototype,"valueType",void 0),e([a("valueType",["description"])],m.prototype,"readValueType",null),e([r({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=u=e([l("esri.layers.support.Field")],m);export{m as default};