@arcgis/core 5.2.0-next.112 → 5.2.0-next.113

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 (419) hide show
  1. package/Ground.d.ts +4 -5
  2. package/Ground.js +1 -1
  3. package/arcgisGlobal.d.ts +5 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/01ca17092545d72be7b6.js +1 -0
  6. package/assets/esri/core/workers/chunks/{f5a988bb850f7a7af143.js → 05b373a663cb5d4d722f.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{36f8caeb574dcd5c0ed5.js → 0b727d7bf3e36e146725.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0c65862e3dd810015491.js +1 -0
  9. package/assets/esri/core/workers/chunks/0e3e58ba8e2d358121a5.js +1 -0
  10. package/assets/esri/core/workers/chunks/0edebc6c516f0b9dac7b.js +1 -0
  11. package/assets/esri/core/workers/chunks/1004e77593dfa506cd5d.js +1 -0
  12. package/assets/esri/core/workers/chunks/184942ea601237c8241a.js +1 -0
  13. package/assets/esri/core/workers/chunks/20de0ea9fa08a6545978.js +1 -0
  14. package/assets/esri/core/workers/chunks/214d63813d268afc265d.js +1 -0
  15. package/assets/esri/core/workers/chunks/22e85819e23202a8ba90.js +1 -0
  16. package/assets/esri/core/workers/chunks/{6e677505d257e0848075.js → 23f9ab77e4e263f82636.js} +1 -1
  17. package/assets/esri/core/workers/chunks/28a04887ecaee5445d14.js +1 -0
  18. package/assets/esri/core/workers/chunks/{2fc5c1504691badc7792.js → 2ac2d0a7623dd060c144.js} +1 -1
  19. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +1 -0
  20. package/assets/esri/core/workers/chunks/36792b8a85e88044cb49.js +1 -0
  21. package/assets/esri/core/workers/chunks/36a7e19f43517aa94577.js +1 -0
  22. package/assets/esri/core/workers/chunks/{6e6cdff4bbe1ff2f44ac.js → 3ab25279aaa30f035038.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e6dae16208f6978b59e0.js → 3b499cfc89c8f87cdb20.js} +1 -1
  24. package/assets/esri/core/workers/chunks/445b0ca1b70730c9a2e6.js +1 -0
  25. package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 4bf2cc4d092601ff2b86.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{d45483dd0dc2853b18b7.js → 4bfd63f3cf9208eb839b.js} +33 -33
  27. package/assets/esri/core/workers/chunks/501df20cdd09384f6ee2.js +1 -0
  28. package/assets/esri/core/workers/chunks/510a190a6f0a60ae38c3.js +1 -0
  29. package/assets/esri/core/workers/chunks/{89a785f8b61263e2d592.js → 552c92b01a5f02a115c5.js} +1 -1
  30. package/assets/esri/core/workers/chunks/564fdf0d663b773806cc.js +1 -0
  31. package/assets/esri/core/workers/chunks/{d9270f4935eb0d044db3.js → 57328c206f1e699ac06f.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{50951fb13013b11b8a24.js → 58e62c8ce1292f4d3b06.js} +1 -1
  33. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +1 -0
  34. package/assets/esri/core/workers/chunks/5b9925f23d4b10a7087e.js +1 -0
  35. package/assets/esri/core/workers/chunks/5f79ba5639067f734791.js +1 -0
  36. package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 60c61f34733063730386.js} +1 -1
  37. package/assets/esri/core/workers/chunks/62b1f94f4fa978d4da48.js +1 -0
  38. package/assets/esri/core/workers/chunks/6b264006b96cbf93d8ed.js +1 -0
  39. package/assets/esri/core/workers/chunks/6b9d29ca568590358478.js +1 -0
  40. package/assets/esri/core/workers/chunks/{7c5310e0104c22da0261.js → 6c7cb7974969e3167f2b.js} +1 -1
  41. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +1 -0
  42. package/assets/esri/core/workers/chunks/{e98b785e8f4edc8bd3ff.js → 6eceeca33fac8e900d9d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/7232fc11b23777b6be94.js +1 -0
  44. package/assets/esri/core/workers/chunks/726ca458b98bb4334431.js +1 -0
  45. package/assets/esri/core/workers/chunks/785206da3962ba23de16.js +1 -0
  46. package/assets/esri/core/workers/chunks/{1c70620f40be02f532b5.js → 7b169eabafcc03bfaee6.js} +1 -1
  47. package/assets/esri/core/workers/chunks/7bbc3d22383388d11345.js +1 -0
  48. package/assets/esri/core/workers/chunks/{082069f80eee0407b828.js → 7edf57e31ff07af9032b.js} +1 -1
  49. package/assets/esri/core/workers/chunks/83ed38468e316302b157.js +1 -0
  50. package/assets/esri/core/workers/chunks/85c876ee9e63d5732937.js +1 -0
  51. package/assets/esri/core/workers/chunks/8f0ecf4d06ec7b67d4ed.js +1 -0
  52. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +1 -0
  53. package/assets/esri/core/workers/chunks/{a1916bca1af5c65be4b0.js → 90ab3c47138875070a53.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{10389c87d9c6a43363ce.js → 917dec9c004218c58950.js} +1 -1
  55. package/assets/esri/core/workers/chunks/91f451b98e0f696043df.js +1 -0
  56. package/assets/esri/core/workers/chunks/943d0026ca4d49eb3ac2.js +1 -0
  57. package/assets/esri/core/workers/chunks/982a396bd4fffa62e911.js +1 -0
  58. package/assets/esri/core/workers/chunks/98a5327fd96d9542b39f.js +1 -0
  59. package/assets/esri/core/workers/chunks/9b9a60f1e0c48aa701f0.js +1 -0
  60. package/assets/esri/core/workers/chunks/9d92e6f0beed9a8580fa.js +1 -0
  61. package/assets/esri/core/workers/chunks/9df379041e8860fe7f01.js +1 -0
  62. package/assets/esri/core/workers/chunks/{1e8ceb4a4b28625236e3.js → a42505b978d54d36d3b6.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{bfbe6ff786435fe1e7cf.js → a86a4e550a92f770d6d5.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{a34eee4c9d4c1c2b8c49.js → ab60f3bc18b5ea504f70.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{18b9ec6ba7a6c0fa2ac6.js → b1880d9f5eafd50ce84b.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{777fc163530448eea13e.js → b4222152efaf73b37b53.js} +1 -1
  67. package/assets/esri/core/workers/chunks/b6ca73c1384f07b30b74.js +1 -0
  68. package/assets/esri/core/workers/chunks/bb4cbf6b7c35e8c78cc7.js +1 -0
  69. package/assets/esri/core/workers/chunks/bb831d23422acfb00ae2.js +1 -0
  70. package/assets/esri/core/workers/chunks/c0855be20ffcd52c7026.js +1 -0
  71. package/assets/esri/core/workers/chunks/{a0f742fd947104662d37.js → c6277236ec47586dca00.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{3be33a129d3ae7dc4f06.js → caf38cf4d8542fb11c46.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{2728eda8178e02fbca47.js → cd0f5cd0fefe7f49e3d8.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{48a53bfeef11c32dadcc.js → d25fb32a233d2128afbe.js} +1 -1
  75. package/assets/esri/core/workers/chunks/d629708bf23da24ee523.js +1 -0
  76. package/assets/esri/core/workers/chunks/db141122060d8d9b38da.js +1 -0
  77. package/assets/esri/core/workers/chunks/dc1944a7601b518a9c48.js +1 -0
  78. package/assets/esri/core/workers/chunks/{573ee2e59d26bc75201e.js → dc8670f32bb0b93c1473.js} +1 -1
  79. package/assets/esri/core/workers/chunks/e1f2b07be33e33117313.js +1 -0
  80. package/assets/esri/core/workers/chunks/e52f30dfb7c82491a7f2.js +1 -0
  81. package/assets/esri/core/workers/chunks/e5906b28b981199fd489.js +1 -0
  82. package/assets/esri/core/workers/chunks/{b3293ee9f221423a6825.js → e611e452f04a9ce64cf8.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{0f20c458f873564faff2.js → ec4f887153c24ab83f2c.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{707b4ae689c4329cad3b.js → f40ceb5e03c699605302.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{547a073c789fdfb78310.js → f42243c62dd0b6993816.js} +1 -1
  86. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +1 -0
  87. package/assets/esri/core/workers/chunks/f9b29d2ce1cd31c0fce1.js +1 -0
  88. package/assets/esri/core/workers/chunks/fdf5ceffec9d5185953d.js +1 -0
  89. package/assets/esri/views/3d/environment/resources/milkyway-band.ktx2 +0 -0
  90. package/chunks/DeepSky.glsl.js +1 -1
  91. package/chunks/FocusArea.glsl.js +1 -1
  92. package/chunks/GaussianSplatDepth.glsl.js +3 -3
  93. package/chunks/RibbonLine.glsl.js +15 -13
  94. package/config.js +1 -1
  95. package/geometry/Extent.js +1 -1
  96. package/geometry/operators/affineTransformOperator.d.ts +9 -3
  97. package/geometry/operators/affineTransformOperator.js +1 -1
  98. package/geometry/operators/alphaShapeOperator.d.ts +14 -4
  99. package/geometry/operators/alphaShapeOperator.js +1 -1
  100. package/geometry/operators/areaOperator.d.ts +11 -3
  101. package/geometry/operators/areaOperator.js +1 -1
  102. package/geometry/operators/autoCompleteOperator.d.ts +6 -2
  103. package/geometry/operators/autoCompleteOperator.js +1 -1
  104. package/geometry/operators/boundaryOperator.d.ts +9 -3
  105. package/geometry/operators/boundaryOperator.js +1 -1
  106. package/geometry/operators/bufferOperator.d.ts +19 -5
  107. package/geometry/operators/bufferOperator.js +1 -1
  108. package/geometry/operators/centroidOperator.d.ts +6 -2
  109. package/geometry/operators/centroidOperator.js +1 -1
  110. package/geometry/operators/clipOperator.d.ts +9 -3
  111. package/geometry/operators/clipOperator.js +1 -1
  112. package/geometry/operators/containsOperator.d.ts +9 -3
  113. package/geometry/operators/containsOperator.js +1 -1
  114. package/geometry/operators/convexHullOperator.d.ts +17 -5
  115. package/geometry/operators/convexHullOperator.js +1 -1
  116. package/geometry/operators/crossesOperator.d.ts +9 -3
  117. package/geometry/operators/crossesOperator.js +1 -1
  118. package/geometry/operators/cutOperator.d.ts +6 -2
  119. package/geometry/operators/cutOperator.js +1 -1
  120. package/geometry/operators/densifyOperator.d.ts +14 -4
  121. package/geometry/operators/densifyOperator.js +1 -1
  122. package/geometry/operators/differenceOperator.d.ts +9 -3
  123. package/geometry/operators/differenceOperator.js +1 -1
  124. package/geometry/operators/disjointOperator.d.ts +9 -3
  125. package/geometry/operators/disjointOperator.js +1 -1
  126. package/geometry/operators/distanceOperator.d.ts +11 -3
  127. package/geometry/operators/distanceOperator.js +1 -1
  128. package/geometry/operators/equalsOperator.d.ts +9 -3
  129. package/geometry/operators/equalsOperator.js +1 -1
  130. package/geometry/operators/extendOperator.d.ts +11 -3
  131. package/geometry/operators/extendOperator.js +1 -1
  132. package/geometry/operators/generalizeOperator.d.ts +14 -4
  133. package/geometry/operators/generalizeOperator.js +1 -1
  134. package/geometry/operators/geodesicBufferOperator.d.ts +25 -7
  135. package/geometry/operators/geodesicBufferOperator.js +1 -1
  136. package/geometry/operators/geodesicProximityOperator.d.ts +28 -8
  137. package/geometry/operators/geodesicProximityOperator.js +1 -1
  138. package/geometry/operators/geodeticAreaOperator.d.ts +17 -5
  139. package/geometry/operators/geodeticAreaOperator.js +1 -1
  140. package/geometry/operators/geodeticDensifyOperator.d.ts +20 -6
  141. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  142. package/geometry/operators/geodeticDistanceOperator.d.ts +17 -5
  143. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  144. package/geometry/operators/geodeticLengthOperator.d.ts +17 -5
  145. package/geometry/operators/geodeticLengthOperator.js +1 -1
  146. package/geometry/operators/geodeticUtilsOperator.d.ts +17 -5
  147. package/geometry/operators/geodeticUtilsOperator.js +1 -1
  148. package/geometry/operators/graphicBufferOperator.d.ts +11 -3
  149. package/geometry/operators/graphicBufferOperator.js +1 -1
  150. package/geometry/operators/integrateOperator.d.ts +6 -2
  151. package/geometry/operators/integrateOperator.js +1 -1
  152. package/geometry/operators/intersectionOperator.d.ts +12 -4
  153. package/geometry/operators/intersectionOperator.js +1 -1
  154. package/geometry/operators/intersectsOperator.d.ts +9 -3
  155. package/geometry/operators/intersectsOperator.js +1 -1
  156. package/geometry/operators/isNearOperator.d.ts +11 -3
  157. package/geometry/operators/isNearOperator.js +1 -1
  158. package/geometry/operators/json/bufferOperator.js +1 -1
  159. package/geometry/operators/json/containsOperator.js +1 -1
  160. package/geometry/operators/json/convexHullOperator.js +1 -1
  161. package/geometry/operators/json/crossesOperator.js +1 -1
  162. package/geometry/operators/json/disjointOperator.js +1 -1
  163. package/geometry/operators/json/generalizeOperator.js +1 -1
  164. package/geometry/operators/json/geodesicBufferOperator.js +1 -1
  165. package/geometry/operators/json/graphicBufferOperator.js +1 -1
  166. package/geometry/operators/json/intersectionOperator.js +1 -1
  167. package/geometry/operators/json/intersectsOperator.js +1 -1
  168. package/geometry/operators/json/lengthOperator.js +1 -1
  169. package/geometry/operators/json/offsetOperator.js +1 -1
  170. package/geometry/operators/json/overlapsOperator.js +1 -1
  171. package/geometry/operators/json/projectOperator.js +1 -1
  172. package/geometry/operators/json/simplifyOperator.js +1 -1
  173. package/geometry/operators/json/simplifyOperatorOGC.js +1 -1
  174. package/geometry/operators/json/touchesOperator.js +1 -1
  175. package/geometry/operators/json/unionOperator.js +1 -1
  176. package/geometry/operators/json/withinOperator.js +1 -1
  177. package/geometry/operators/labelPointOperator.d.ts +9 -3
  178. package/geometry/operators/labelPointOperator.js +1 -1
  179. package/geometry/operators/lengthOperator.d.ts +11 -3
  180. package/geometry/operators/lengthOperator.js +1 -1
  181. package/geometry/operators/linesToPolygonsOperator.d.ts +6 -2
  182. package/geometry/operators/linesToPolygonsOperator.js +1 -1
  183. package/geometry/operators/locateBetweenOperator.d.ts +6 -2
  184. package/geometry/operators/locateBetweenOperator.js +1 -1
  185. package/geometry/operators/minimumBoundingCircleOperator.d.ts +14 -4
  186. package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
  187. package/geometry/operators/multiPartToSinglePartOperator.d.ts +11 -3
  188. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  189. package/geometry/operators/offsetOperator.d.ts +14 -4
  190. package/geometry/operators/offsetOperator.js +1 -1
  191. package/geometry/operators/overlapsOperator.d.ts +9 -3
  192. package/geometry/operators/overlapsOperator.js +1 -1
  193. package/geometry/operators/polygonOverlayOperator.d.ts +11 -3
  194. package/geometry/operators/polygonOverlayOperator.js +1 -1
  195. package/geometry/operators/polygonSlicerOperator.d.ts +22 -6
  196. package/geometry/operators/polygonSlicerOperator.js +1 -1
  197. package/geometry/operators/projectOperator.d.ts +15 -5
  198. package/geometry/operators/projectOperator.js +1 -1
  199. package/geometry/operators/proximityOperator.d.ts +22 -6
  200. package/geometry/operators/proximityOperator.js +1 -1
  201. package/geometry/operators/relateOperator.d.ts +12 -4
  202. package/geometry/operators/relateOperator.js +1 -1
  203. package/geometry/operators/reshapeOperator.d.ts +6 -2
  204. package/geometry/operators/reshapeOperator.js +1 -1
  205. package/geometry/operators/shapePreservingProjectOperator.d.ts +20 -6
  206. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  207. package/geometry/operators/simplifyOGCOperator.d.ts +3 -1
  208. package/geometry/operators/simplifyOGCOperator.js +1 -1
  209. package/geometry/operators/simplifyOperator.d.ts +12 -4
  210. package/geometry/operators/simplifyOperator.js +1 -1
  211. package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
  212. package/geometry/operators/support/deprecatedOperator.js +2 -0
  213. package/geometry/operators/symmetricDifferenceOperator.d.ts +9 -3
  214. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  215. package/geometry/operators/touchesOperator.d.ts +9 -3
  216. package/geometry/operators/touchesOperator.js +1 -1
  217. package/geometry/operators/unionOperator.d.ts +9 -3
  218. package/geometry/operators/unionOperator.js +1 -1
  219. package/geometry/operators/withinOperator.d.ts +9 -3
  220. package/geometry/operators/withinOperator.js +1 -1
  221. package/geometry/support/intersectsBase.js +1 -1
  222. package/geometry/support/normalizeUtils.js +1 -1
  223. package/kernel.js +1 -1
  224. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  225. package/layers/IntegratedMeshLayer.js +1 -1
  226. package/layers/SceneLayer.js +1 -1
  227. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  228. package/layers/list/BasemapItemCollection.d.ts +40 -14
  229. package/layers/list/BasemapItemCollection.js +1 -1
  230. package/layers/list/CatalogItemCollection.d.ts +29 -11
  231. package/layers/list/CatalogItemCollection.js +1 -1
  232. package/layers/list/Item.d.ts +66 -122
  233. package/layers/list/Item.js +1 -1
  234. package/layers/list/ItemPanel.d.ts +23 -34
  235. package/layers/list/LayerItemCollection.d.ts +33 -43
  236. package/layers/list/LayerItemCollection.js +1 -1
  237. package/layers/list/TableItem.d.ts +42 -53
  238. package/layers/list/TableItem.js +1 -1
  239. package/layers/list/TableItemCollection.d.ts +25 -55
  240. package/layers/list/TableItemCollection.js +1 -1
  241. package/layers/list/TableItemPanel.d.ts +25 -23
  242. package/layers/list/support/layerListUtils.js +1 -1
  243. package/layers/list/types.d.ts +158 -37
  244. package/layers/support/ElevationQuery.js +1 -1
  245. package/layers/support/FeatureFilter.d.ts +2 -1
  246. package/layers/support/FeatureFilter.js +1 -1
  247. package/package.json +2 -2
  248. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.d.ts +0 -1
  249. package/support/revision.js +1 -1
  250. package/symbols/LineSymbol3DLayer.d.ts +9 -3
  251. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  252. package/symbols/cim/CIMSymbolHelper.js +1 -1
  253. package/symbols/cim/OverrideHelper.js +1 -1
  254. package/symbols/cim/Rasterizer.js +1 -1
  255. package/symbols/cim/cimAnalyzer.js +1 -1
  256. package/symbols/cim/dashUtils.js +2 -0
  257. package/symbols/cim/effects/EffectDashes.js +1 -1
  258. package/symbols/cim/fromCIMFontStyle.js +2 -0
  259. package/symbols/cim/richTextUtils.js +1 -1
  260. package/symbols/cim/utils.js +1 -1
  261. package/symbols/patterns/LinePattern3D.d.ts +10 -4
  262. package/symbols/patterns/LinePattern3D.js +1 -1
  263. package/symbols/patterns/LineTemplatePattern3D.d.ts +48 -0
  264. package/symbols/patterns/LineTemplatePattern3D.js +2 -0
  265. package/symbols/patterns/utils.js +1 -1
  266. package/symbols/support/Symbol3DOutline.js +1 -1
  267. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  268. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  269. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  270. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  271. package/views/2d/engine/webgl/TextureManager.js +1 -1
  272. package/views/2d/engine/webgl/decorGlyphRect.js +2 -0
  273. package/views/2d/engine/webgl/definitions.js +1 -1
  274. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  275. package/views/2d/engine/webgl/effects/highlight/MultiHighlightGradient.js +1 -1
  276. package/views/2d/engine/webgl/hashMosaic.js +2 -0
  277. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  278. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  279. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ShaderHighlight.js +1 -1
  280. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  281. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  282. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  283. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  284. package/views/2d/layers/LayerView2D.js +1 -1
  285. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  286. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  287. package/views/2d/layers/RouteLayerView2D.js +1 -1
  288. package/views/2d/layers/TileLayerView2D.js +1 -1
  289. package/views/2d/layers/features/FeatureContainer.js +1 -1
  290. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  291. package/views/2d/layers/features/Processor.js +1 -1
  292. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  293. package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
  294. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  295. package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
  296. package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
  297. package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
  298. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  299. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  300. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  301. package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
  302. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  303. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  304. package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
  305. package/views/2d/layers/support/FilterSchema.js +2 -0
  306. package/views/2d/layers/support/HighlightRegistry.js +2 -0
  307. package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
  308. package/views/2d/layers/support/util.js +1 -1
  309. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  310. package/views/3d/input/SceneInputManager.js +1 -1
  311. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  312. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  313. package/views/3d/layers/I3SMeshView3D.js +1 -1
  314. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  315. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  316. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  317. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  318. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  319. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  320. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  321. package/views/3d/navigation/Navigation3D.d.ts +16 -0
  322. package/views/3d/navigation/Navigation3D.js +2 -0
  323. package/views/3d/navigation/modes/DefaultNavigationMode3D.d.ts +4 -0
  324. package/views/3d/navigation/modes/DefaultNavigationMode3D.js +2 -0
  325. package/views/3d/navigation/modes/GroundNavigationMode3D.d.ts +4 -0
  326. package/views/3d/navigation/modes/GroundNavigationMode3D.js +2 -0
  327. package/views/3d/navigation/modes/NavigationMode3D.d.ts +4 -0
  328. package/views/3d/navigation/modes/NavigationMode3D.js +2 -0
  329. package/views/3d/navigation/modes/NavigationMode3DUnion.d.ts +5 -0
  330. package/views/3d/state/ConstraintsManager.js +1 -1
  331. package/views/3d/support/QualityProfile.js +1 -1
  332. package/views/3d/support/hitTest.js +1 -1
  333. package/views/3d/terrain/ExtentHelper.js +1 -1
  334. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  335. package/views/3d/webgl-engine/effects/AmbientIllumination.js +2 -0
  336. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  337. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  338. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +1 -1
  339. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  340. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  341. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  342. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  343. package/views/3d/webgl-engine/lib/GaussianSplatDepthRenderer.js +1 -1
  344. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  345. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  346. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  347. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  348. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  349. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +12 -8
  350. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  351. package/views/PopupView.js +1 -1
  352. package/views/SceneView.js +1 -1
  353. package/views/View.js +1 -1
  354. package/views/layers/FeatureLikeLayerView.js +1 -1
  355. package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
  356. package/widgets/LayerList/LayerListViewModel.js +1 -1
  357. package/widgets/LayerList/ListItem.d.ts +4 -0
  358. package/widgets/LayerList/ListItemPanel.d.ts +3 -0
  359. package/widgets/OrientedImageryViewer/types.d.ts +2 -2
  360. package/widgets/OrientedImageryViewer.d.ts +20 -1
  361. package/widgets/OrientedImageryViewer.js +1 -1
  362. package/widgets/Sketch/SketchViewModel.js +1 -1
  363. package/widgets/support/iconUtils.js +1 -1
  364. package/assets/esri/core/workers/chunks/03601be8b0763f82e88f.js +0 -1
  365. package/assets/esri/core/workers/chunks/0bff8d589312be6588fe.js +0 -1
  366. package/assets/esri/core/workers/chunks/0de90b1ad8118457fd5a.js +0 -1
  367. package/assets/esri/core/workers/chunks/0e1a067ab243900d0371.js +0 -1
  368. package/assets/esri/core/workers/chunks/0ee6109e6578395a7900.js +0 -1
  369. package/assets/esri/core/workers/chunks/0ee7376c29e0fd8f676c.js +0 -1
  370. package/assets/esri/core/workers/chunks/13551987fbeaae154df8.js +0 -1
  371. package/assets/esri/core/workers/chunks/186350d720352bd5ff33.js +0 -1
  372. package/assets/esri/core/workers/chunks/25ecf94d776c3b6db0f3.js +0 -1
  373. package/assets/esri/core/workers/chunks/262052dfaec3af8a58b9.js +0 -1
  374. package/assets/esri/core/workers/chunks/2c01477b69c38f691e19.js +0 -1
  375. package/assets/esri/core/workers/chunks/307297e025eed110095f.js +0 -1
  376. package/assets/esri/core/workers/chunks/33422dca6f4bcaa0ea74.js +0 -1
  377. package/assets/esri/core/workers/chunks/33e583166ab3943ecf0e.js +0 -1
  378. package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +0 -1
  379. package/assets/esri/core/workers/chunks/3daddcb106a7009c5a70.js +0 -1
  380. package/assets/esri/core/workers/chunks/3de6e54b6ed0feae1940.js +0 -1
  381. package/assets/esri/core/workers/chunks/448f068a14f24f2f8a43.js +0 -1
  382. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +0 -1
  383. package/assets/esri/core/workers/chunks/5134241be1f1bf25231a.js +0 -1
  384. package/assets/esri/core/workers/chunks/56163189fbe63aa11e94.js +0 -1
  385. package/assets/esri/core/workers/chunks/571cf99c3eab8e517542.js +0 -1
  386. package/assets/esri/core/workers/chunks/5762746cfb02a4119d82.js +0 -1
  387. package/assets/esri/core/workers/chunks/5830deda121e4c95d199.js +0 -1
  388. package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +0 -1
  389. package/assets/esri/core/workers/chunks/5c8f423812a23c02c1fd.js +0 -1
  390. package/assets/esri/core/workers/chunks/5eb726317b6602f1e206.js +0 -1
  391. package/assets/esri/core/workers/chunks/6e2075bd4832ff0db68c.js +0 -1
  392. package/assets/esri/core/workers/chunks/7608de0d942b4c16b2f6.js +0 -1
  393. package/assets/esri/core/workers/chunks/7610dd0b46948b7bd840.js +0 -1
  394. package/assets/esri/core/workers/chunks/7737ab739eba6d81282d.js +0 -1
  395. package/assets/esri/core/workers/chunks/7be56ac60e580c806a5d.js +0 -1
  396. package/assets/esri/core/workers/chunks/7d9468e38f3bf006f86e.js +0 -1
  397. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +0 -1
  398. package/assets/esri/core/workers/chunks/84dc2afd89263a311b81.js +0 -1
  399. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
  400. package/assets/esri/core/workers/chunks/ab332bd411d6c7d4190c.js +0 -1
  401. package/assets/esri/core/workers/chunks/bc9b96a539f28afcb8cb.js +0 -1
  402. package/assets/esri/core/workers/chunks/be69e2dda75b079362b2.js +0 -1
  403. package/assets/esri/core/workers/chunks/bf9eba555aebca2c132b.js +0 -1
  404. package/assets/esri/core/workers/chunks/c18de0f6cbeecee4ce34.js +0 -1
  405. package/assets/esri/core/workers/chunks/c9df18e9ff7367a004b6.js +0 -1
  406. package/assets/esri/core/workers/chunks/d33d08cb6856cd2eb35e.js +0 -1
  407. package/assets/esri/core/workers/chunks/e688e6e816824b53a25e.js +0 -1
  408. package/assets/esri/core/workers/chunks/ea068c797e3e462f4518.js +0 -1
  409. package/assets/esri/core/workers/chunks/eaf1d38f09744b7e84f5.js +0 -1
  410. package/assets/esri/core/workers/chunks/eff99e45d818e58fd443.js +0 -1
  411. package/assets/esri/core/workers/chunks/f219ba010c480bb75684.js +0 -1
  412. package/assets/esri/core/workers/chunks/f60d5ce49c173d5381ec.js +0 -1
  413. package/assets/esri/core/workers/chunks/f72f4413fc7461e11a2a.js +0 -1
  414. package/assets/esri/core/workers/chunks/f834aa732c3f06525089.js +0 -1
  415. package/assets/esri/core/workers/chunks/fae14e30fa7d81bf706e.js +0 -1
  416. package/assets/esri/core/workers/chunks/fb6f1b562ee0983c8c6e.js +0 -1
  417. package/assets/esri/core/workers/chunks/fc1658eae7b312502fab.js +0 -1
  418. package/views/2d/engine/webgl/Utils.js +0 -2
  419. package/views/2d/layers/support/HighlightCounter.js +0 -2
@@ -70,7 +70,11 @@ export interface ShapePreservingProjectOptions {
70
70
  minSegmentLengthInDegrees?: number;
71
71
  }
72
72
 
73
- /** @deprecated since 5.2 use [ShapePreservingProjectOptions](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#ShapePreservingProjectOptions) */
73
+ /**
74
+ * @deprecated
75
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
76
+ * with [ShapePreservingProjectOptions](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#ShapePreservingProjectOptions).
77
+ */
74
78
  export type Options = ShapePreservingProjectOptions;
75
79
 
76
80
  /**
@@ -83,7 +87,9 @@ export function shapePreservingProjectIsLoaded(): boolean;
83
87
  /**
84
88
  * Indicates if all dependencies of this module have been loaded.
85
89
  *
86
- * @deprecated since 5.2 use [shapePreservingProjectIsLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectIsLoaded)
90
+ * @deprecated
91
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
92
+ * with [shapePreservingProjectIsLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectIsLoaded).
87
93
  * @returns Returns `true` if this module's dependencies have been loaded.
88
94
  */
89
95
  export function isLoaded(): boolean;
@@ -99,7 +105,9 @@ export function shapePreservingProjectLoad(): Promise<void>;
99
105
  /**
100
106
  * Loads this module's dependencies. This method must be called first if `isLoaded` returns `false`.
101
107
  *
102
- * @deprecated since 5.2 use [shapePreservingProjectLoad()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectLoad)
108
+ * @deprecated
109
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
110
+ * with [shapePreservingProjectLoad()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectLoad).
103
111
  * @returns Resolves when the dependencies have been loaded.
104
112
  * @see [isLoaded()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#isLoaded)
105
113
  */
@@ -125,7 +133,9 @@ export function shapePreservingProjectExecute(geometry: GeometryUnion, outSpatia
125
133
  /**
126
134
  * Performs the shape preserving project operation on a single geometry.
127
135
  *
128
- * @deprecated since 5.2 use [shapePreservingProjectExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectExecute)
136
+ * @deprecated
137
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
138
+ * with [shapePreservingProjectExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectExecute).
129
139
  * @param geometry - The geometry to be projected.
130
140
  * @param outSpatialReference - The spatial reference to which the input geometry is projected.
131
141
  * @param options - Additional options.
@@ -154,7 +164,9 @@ export function shapePreservingProjectExecuteMany(geometries: GeometryUnion[], o
154
164
  /**
155
165
  * Performs the shape preserving project operation on multiple geometries.
156
166
  *
157
- * @deprecated since 5.2 use [shapePreservingProjectExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectExecuteMany)
167
+ * @deprecated
168
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
169
+ * with [shapePreservingProjectExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectExecuteMany).
158
170
  * @param geometries - The geometries to be projected.
159
171
  * All the geometries must have the same spatial reference.
160
172
  * @param outSpatialReference - The spatial reference to which the input geometries are projected.
@@ -173,6 +185,8 @@ export const shapePreservingProjectSupportsCurves: boolean | null | undefined;
173
185
  * Indicates if the operator supports input geometries that contain curves.
174
186
  * The value is `null` or `undefined` until the operator is loaded, then it will always be `false`.
175
187
  *
176
- * @deprecated since 5.2 use [shapePreservingProjectSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectSupportsCurves)
188
+ * @deprecated
189
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
190
+ * with [shapePreservingProjectSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/shapePreservingProjectOperator/#shapePreservingProjectSupportsCurves).
177
191
  */
178
192
  export const supportsCurves: boolean | null | undefined;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{execute as t,executeMany as o,load as n,supportsCurves as a,isLoaded as s}from"./gx/operatorShapePreservingProject.js";let i,c,p,g,m,P,u;function d(){return!!i&&s()}function j(){return e(r.getLogger("esri.geometry.operators.shapePreservingProjectOperator"),"isLoaded is deprecated. Use shapePreservingProjectIsLoaded instead.",{replacement:"shapePreservingProjectIsLoaded",warnOnce:!0}),d()}async function f(){if(!d()){const[e,r]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),n()]);i=e.fromGeometry,c=e.fromSpatialReference,p=e.getSpatialReference,g=e.toGeometry,m=r.createProjectionTransformation,P=a(),u=P}}function v(){return e(r.getLogger("esri.geometry.operators.shapePreservingProjectOperator"),"load is deprecated. Use shapePreservingProjectLoad instead.",{replacement:"shapePreservingProjectLoad",warnOnce:!0}),f()}function h(e,r,o){const n=p(e),a=m(c(n),c(r),o),s=o?.maxDeviationInSrTo??0,P=o?.minSegmentLengthInDegrees??0;return g(t(i(e),a,P,s),r)}function L(t,o,n){return e(r.getLogger("esri.geometry.operators.shapePreservingProjectOperator"),"execute is deprecated. Use shapePreservingProjectExecute instead.",{replacement:"shapePreservingProjectExecute",warnOnce:!0}),h(t,o,n)}function x(e,r,t){const n=e.map(i),a=p(e),s=m(c(a),c(r),t),P=t?.maxDeviationInSrTo??0;return o(n,s,t?.minSegmentLengthInDegrees??0,P).map(e=>g(e,r))}function l(t,o,n){return e(r.getLogger("esri.geometry.operators.shapePreservingProjectOperator"),"executeMany is deprecated. Use shapePreservingProjectExecuteMany instead.",{replacement:"shapePreservingProjectExecuteMany",warnOnce:!0}),x(t,o,n)}export{L as execute,l as executeMany,j as isLoaded,v as load,h as shapePreservingProjectExecute,x as shapePreservingProjectExecuteMany,d as shapePreservingProjectIsLoaded,f as shapePreservingProjectLoad,P as shapePreservingProjectSupportsCurves,u as supportsCurves};
2
+ import{execute as e,executeMany as r,load as t,supportsCurves as o,isLoaded as n}from"./gx/operatorShapePreservingProject.js";import{deprecatedOperator as a}from"./support/deprecatedOperator.js";let s,i,p,c,u,m,P;function f(){return!!s&&n()}function g(){return a("shapePreservingProjectOperator","isLoaded","shapePreservingProjectIsLoaded"),f()}async function j(){if(!f()){const[e,r]=await Promise.all([import("./support/apiConverter.js"),import("./support/projectionTransformation.js"),t()]);s=e.fromGeometry,i=e.fromSpatialReference,p=e.getSpatialReference,c=e.toGeometry,u=r.createProjectionTransformation,m=o(),P=m}}function v(){return a("shapePreservingProjectOperator","load","shapePreservingProjectLoad"),j()}function d(r,t,o){const n=p(r),a=u(i(n),i(t),o),m=o?.maxDeviationInSrTo??0,P=o?.minSegmentLengthInDegrees??0;return c(e(s(r),a,P,m),t)}function h(e,r,t){return a("shapePreservingProjectOperator","execute","shapePreservingProjectExecute"),d(e,r,t)}function x(e,t,o){const n=e.map(s),a=p(e),m=u(i(a),i(t),o),P=o?.maxDeviationInSrTo??0;return r(n,m,o?.minSegmentLengthInDegrees??0,P).map(e=>c(e,t))}function l(e,r,t){return a("shapePreservingProjectOperator","executeMany","shapePreservingProjectExecuteMany"),x(e,r,t)}export{h as execute,l as executeMany,g as isLoaded,v as load,d as shapePreservingProjectExecute,x as shapePreservingProjectExecuteMany,f as shapePreservingProjectIsLoaded,j as shapePreservingProjectLoad,m as shapePreservingProjectSupportsCurves,P as supportsCurves};
@@ -111,7 +111,9 @@ export function simplifyOGCIsSimple(geometry: GeometryUnion): boolean;
111
111
  * If it is null, then a small tolerance value is calculated from the geometry coordinates using double-precision.
112
112
  * Resolution is added to take into account possible rounding errors.
113
113
  *
114
- * @deprecated since 5.2 use [simplifyOGCExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOGCOperator/#simplifyOGCExecute)
114
+ * @deprecated
115
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
116
+ * with [simplifyOGCExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOGCOperator/#simplifyOGCExecute).
115
117
  * @param geometry - The input geometry.
116
118
  * @returns Returns true if the geometry is simple, otherwise returns false.
117
119
  * @example
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{supportsCurves as t,execute as i,executeMany as s,isSimple as o}from"./gx/operatorSimplifyOGC.js";import{getSpatialReference as n,toGeometry as p,fromSpatialReference as a,fromGeometry as m}from"./support/apiConverter.js";function c(e){const r=n(e);return p(i(m(e),a(r),!1),r)}function u(t){return e(r.getLogger("esri.geometry.operators.simplifyOGC"),"execute is deprecated. Use simplifyOGCExecute instead.",{replacement:"simplifyOGCExecute",warnOnce:!0}),c(t)}function l(e){const r=e.map(m),t=n(e);return s(r,a(t),!1).map(e=>p(e,t))}function f(t){return e(r.getLogger("esri.geometry.operators.simplifyOGCOperator"),"executeMany is deprecated. Use simplifyOGCExecuteMany instead.",{replacement:"simplifyOGCExecuteMany",warnOnce:!0}),l(t)}function y(e,r){return o(m(e),a(n(e)),null!=r,r??null)}function g(t,i){return e(r.getLogger("esri.geometry.operators.simplifyOperatorOGC"),"isSimple is deprecated. Use simplifyOGCIsSimple instead.",{replacement:"simplifyOGCIsSimple",warnOnce:!0}),i?y(t,i):y(t)}const O=t(),C=Boolean(O);export{u as execute,f as executeMany,g as isSimple,c as simplifyOGCExecute,l as simplifyOGCExecuteMany,y as simplifyOGCIsSimple,O as simplifyOGCSupportsCurves,C as supportsCurves};
2
+ import{supportsCurves as e,execute as r,executeMany as t,isSimple as i}from"./gx/operatorSimplifyOGC.js";import{getSpatialReference as n,toGeometry as p,fromSpatialReference as o,fromGeometry as s}from"./support/apiConverter.js";import{deprecatedOperator as u}from"./support/deprecatedOperator.js";function m(e){const t=n(e);return p(r(s(e),o(t),!1),t)}function a(e){return u("simplifyOGC","execute","simplifyOGCExecute"),m(e)}function c(e){const r=e.map(s),i=n(e);return t(r,o(i),!1).map(e=>p(e,i))}function f(e){return u("simplifyOGCOperator","executeMany","simplifyOGCExecuteMany"),c(e)}function l(e,r){return i(s(e),o(n(e)),null!=r,r??null)}function y(e,r){return u("simplifyOperatorOGC","isSimple","simplifyOGCIsSimple"),r?l(e,r):l(e)}const O=e(),C=Boolean(O);export{a as execute,f as executeMany,y as isSimple,m as simplifyOGCExecute,c as simplifyOGCExecuteMany,l as simplifyOGCIsSimple,O as simplifyOGCSupportsCurves,C as supportsCurves};
@@ -24,7 +24,9 @@ export function simplifyExecute(geometry: GeometryUnion): GeometryWithoutMeshUni
24
24
  /**
25
25
  * Performs the simplify operation on a single geometry.
26
26
  *
27
- * @deprecated since 5.2 use [simplifyExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyExecute)
27
+ * @deprecated
28
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
29
+ * with [simplifyExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyExecute).
28
30
  * @param geometry - The geometry to be simplified.
29
31
  * @returns Returns the simplified geometry or null.
30
32
  * @example
@@ -46,7 +48,9 @@ export function simplifyExecuteMany(geometries: GeometryUnion[]): (GeometryWitho
46
48
  /**
47
49
  * Performs the simplify operation on the geometry set.
48
50
  *
49
- * @deprecated since 5.2 use [simplifyExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyExecuteMany)
51
+ * @deprecated
52
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
53
+ * with [simplifyExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyExecuteMany).
50
54
  * @param geometries - The array of geometries to be simplified,
51
55
  * All the geometries must have the same spatial reference.
52
56
  * @returns Returns an array whose elements may either be simplified geometries or null.
@@ -116,7 +120,9 @@ export function simplifyIsSimple(geometry: GeometryUnion): boolean;
116
120
  *
117
121
  * The tolerance value is obtained from the geometry's spatial reference. If it is null, then a small tolerance value is calculated from the geometry coordinates using double-precision.
118
122
  *
119
- * @deprecated since 5.2 use [simplifyIsSimple()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyIsSimple)
123
+ * @deprecated
124
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
125
+ * with [simplifyIsSimple()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifyIsSimple).
120
126
  * @param geometry - The input geometry.
121
127
  * @returns Returns true if the geometry is simple, otherwise returns false.
122
128
  * @example
@@ -136,6 +142,8 @@ export const simplifySupportsCurves: boolean;
136
142
  * Indicates if the operator supports input geometries that contain curves.
137
143
  * The value will always be `true`.
138
144
  *
139
- * @deprecated since 5.2 use [simplifySupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifySupportsCurves)
145
+ * @deprecated
146
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
147
+ * with [simplifySupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/simplifyOperator/#simplifySupportsCurves).
140
148
  */
141
149
  export const supportsCurves: ReturnType<typeof Boolean>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{isSimpleAsFeature as t,execute as i,supportsCurves as o,executeMany as s}from"./gx/operatorSimplify.js";import{fromSpatialReference as n,getSpatialReference as p,fromGeometry as a,toGeometry as c}from"./support/apiConverter.js";function m(e){const r=p(e);return c(i(a(e),n(r),!1),r)}function u(t){return e(r.getLogger("esri.geometry.operators.simplifyOperator"),"execute is deprecated. Use simplifyExecute instead.",{replacement:"simplifyExecute",warnOnce:!0}),m(t)}function f(e){const r=e.map(a),t=p(e);return s(r,n(t),!1).map(e=>c(e,t))}function l(t){return e(r.getLogger("esri.geometry.operators.simplifyOperator"),"executeMany is deprecated. Use simplifyExecuteMany instead.",{replacement:"simplifyExecuteMany",warnOnce:!0}),f(t)}function y(e){return t(a(e),n(p(e)),!1)}function g(t){return e(r.getLogger("esri.geometry.operators.simplifyOperator"),"isSimple is deprecated. Use simplifyIsSimple instead.",{replacement:"simplifyIsSimple",warnOnce:!0}),y(t)}const d=o(),x=Boolean(d);export{u as execute,l as executeMany,g as isSimple,m as simplifyExecute,f as simplifyExecuteMany,y as simplifyIsSimple,d as simplifySupportsCurves,x as supportsCurves};
2
+ import{isSimpleAsFeature as e,execute as r,supportsCurves as t,executeMany as o}from"./gx/operatorSimplify.js";import{fromSpatialReference as p,getSpatialReference as i,fromGeometry as n,toGeometry as s}from"./support/apiConverter.js";import{deprecatedOperator as u}from"./support/deprecatedOperator.js";function m(e){const t=i(e);return s(r(n(e),p(t),!1),t)}function a(e){return u("simplifyOperator","execute","simplifyExecute"),m(e)}function c(e){const r=e.map(n),t=i(e);return o(r,p(t),!1).map(e=>s(e,t))}function f(e){return u("simplifyOperator","executeMany","simplifyExecuteMany"),c(e)}function l(r){return e(n(r),p(i(r)),!1)}function y(e){return u("simplifyOperator","isSimple","simplifyIsSimple"),l(e)}const x=t(),O=Boolean(x);export{a as execute,f as executeMany,y as isSimple,m as simplifyExecute,c as simplifyExecuteMany,l as simplifyIsSimple,x as simplifySupportsCurves,O as supportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isSome as r}from"../../core/arrayUtils.js";import{deprecatedFunction as e}from"../../core/deprecate.js";import t from"../../core/Logger.js";import{supportsCurves as o,executeMany as a}from"./gx/operatorSinglePartToMultiPart.js";import{fromGeometry as n,getSpatialReference as s,toGeometry as i}from"./support/apiConverter.js";function p(e){const t=e.map(n),o=s(e);return a(t).map(r=>i(r,o)).filter(r)}function c(r){return e(t.getLogger("esri.geometry.operators.singlePartToMultiPartOperator"),"executeMany is deprecated. Use singlePartToMultiPartExecuteMany instead.",{replacement:"singlePartToMultiPartExecuteMany",warnOnce:!0}),p(r)}const u=o(),m=Boolean(u);export{c as executeMany,p as singlePartToMultiPartExecuteMany,u as singlePartToMultiPartSupportsCurves,m as supportsCurves};
2
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as t,executeMany as o}from"./gx/operatorSinglePartToMultiPart.js";import{fromGeometry as e,getSpatialReference as a,toGeometry as p}from"./support/apiConverter.js";import{deprecatedOperator as n}from"./support/deprecatedOperator.js";function s(t){const n=t.map(e),s=a(t);return o(n).map(r=>p(r,s)).filter(r)}function i(r){return n("singlePartToMultiPartOperator","executeMany","singlePartToMultiPartExecuteMany"),s(r)}const u=t(),m=Boolean(u);export{i as executeMany,s as singlePartToMultiPartExecuteMany,u as singlePartToMultiPartSupportsCurves,m as supportsCurves};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{deprecated as e}from"../../../core/deprecate.js";import r from"../../../core/Logger.js";function o(o,t,a){e(r.getLogger(`esri.geometry.operators.${o}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${a} instead.`,{replacement:a,warnOnce:!0})}export{o as deprecatedOperator};
@@ -27,7 +27,9 @@ export function symmetricDifferenceExecute(leftGeometry: GeometryUnion, rightGeo
27
27
  /**
28
28
  * Performs the symmetric difference (XOR) operation on two geometries.
29
29
  *
30
- * @deprecated since 5.2 use [symmetricDifferenceExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceExecute)
30
+ * @deprecated
31
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
32
+ * with [symmetricDifferenceExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceExecute).
31
33
  * @param leftGeometry - The first geometry to be XOR'd.
32
34
  * @param rightGeometry - The second geometry to be XOR'd.
33
35
  * @returns Returns the symmetric difference of the two geometries. The result has the higher of dimensions of the two geometries.
@@ -49,7 +51,9 @@ export function symmetricDifferenceExecuteMany(inputGeometries: GeometryUnion[],
49
51
  /**
50
52
  * Performs the symmetric difference (XOR) operation on every geometry in `inputGeometries` with `rightGeometry`.
51
53
  *
52
- * @deprecated since 5.2 use [symmetricDifferenceExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceExecuteMany)
54
+ * @deprecated
55
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
56
+ * with [symmetricDifferenceExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceExecuteMany).
53
57
  * @param inputGeometries - The set of geometries to be XOR'd by the `rightGeometry`.
54
58
  * @param rightGeometry - The geometry being XOR'd with the `inputGeometries`.
55
59
  * @returns Returns an array of the result geometries.
@@ -66,6 +70,8 @@ export const symmetricDifferenceSupportsCurves: boolean;
66
70
  * Indicates if the operator supports input geometries that contain curves.
67
71
  * The value will always be `true`.
68
72
  *
69
- * @deprecated since 5.2 use [symmetricDifferenceSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceSupportsCurves)
73
+ * @deprecated
74
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
75
+ * with [symmetricDifferenceSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/symmetricDifferenceOperator/#symmetricDifferenceSupportsCurves).
70
76
  */
71
77
  export const supportsCurves: ReturnType<typeof Boolean>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{isSome as e}from"../../core/arrayUtils.js";import{deprecatedFunction as r}from"../../core/deprecate.js";import t from"../../core/Logger.js";import{supportsCurves as c,execute as o,executeMany as n}from"./gx/operatorSymmetricDifference.js";import{getSpatialReference as i,toGeometry as s,fromSpatialReference as m,fromGeometry as a}from"./support/apiConverter.js";function f(e,r){const t=i(e);return s(o(a(e),a(r),m(t)),t)}function p(e,c){return r(t.getLogger("esri.geometry.operators.symmetricDifferenceOperator"),"execute is deprecated. Use symmetricDifferenceExecute instead.",{replacement:"symmetricDifferenceExecute",warnOnce:!0}),f(e,c)}function u(r,t){const c=r.map(a),o=i(r);return n(c,a(t),m(o)).map(e=>s(e,o)).filter(e)}function y(e,c){return r(t.getLogger("esri.geometry.operators.symmetricDifferenceOperator"),"executeMany is deprecated. Use symmetricDifferenceExecuteMany instead.",{replacement:"symmetricDifferenceExecuteMany",warnOnce:!0}),u(e,c)}const g=c(),x=Boolean(g);export{p as execute,y as executeMany,x as supportsCurves,f as symmetricDifferenceExecute,u as symmetricDifferenceExecuteMany,g as symmetricDifferenceSupportsCurves};
2
+ import{isSome as e}from"../../core/arrayUtils.js";import{supportsCurves as r,execute as t,executeMany as o}from"./gx/operatorSymmetricDifference.js";import{getSpatialReference as c,toGeometry as n,fromSpatialReference as i,fromGeometry as m}from"./support/apiConverter.js";import{deprecatedOperator as s}from"./support/deprecatedOperator.js";function f(e,r){const o=c(e);return n(t(m(e),m(r),i(o)),o)}function p(e,r){return s("symmetricDifferenceOperator","execute","symmetricDifferenceExecute"),f(e,r)}function u(r,t){const s=r.map(m),f=c(r);return o(s,m(t),i(f)).map(e=>n(e,f)).filter(e)}function a(e,r){return s("symmetricDifferenceOperator","executeMany","symmetricDifferenceExecuteMany"),u(e,r)}const y=r(),x=Boolean(y);export{p as execute,a as executeMany,x as supportsCurves,f as symmetricDifferenceExecute,u as symmetricDifferenceExecuteMany,y as symmetricDifferenceSupportsCurves};
@@ -18,7 +18,9 @@ export function touchesAccelerateGeometry(geometry: GeometryUnion): boolean;
18
18
  /**
19
19
  * Accelerate a geometry. This method prepares the geometry for faster touches operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
20
20
  *
21
- * @deprecated since 5.2 use [touchesAccelerateGeometry()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesAccelerateGeometry)
21
+ * @deprecated
22
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
23
+ * with [touchesAccelerateGeometry()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesAccelerateGeometry).
22
24
  * @param geometry - The geometry to accelerate.
23
25
  * @returns Returns `true` if the geometry was successfully accelerated.
24
26
  */
@@ -39,7 +41,9 @@ export function touchesExecute(geometry1: GeometryUnion, geometry2: GeometryUnio
39
41
  /**
40
42
  * Perform a touches operation on two geometries.
41
43
  *
42
- * @deprecated since 5.2 use [touchesExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesExecute)
44
+ * @deprecated
45
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
46
+ * with [touchesExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesExecute).
43
47
  * @param geometry1 - The base geometry that is tested for the "touches" relationship with `geometry2`.
44
48
  * @param geometry2 - The comparison geometry that is tested for the "touches" relationship with `geometry1`.
45
49
  * @returns Returns `true` if the two geometries touch.
@@ -59,6 +63,8 @@ export const touchesSupportsCurves: boolean;
59
63
  * Indicates if the operator supports input geometries that contain curves.
60
64
  * The value will always be `true`.
61
65
  *
62
- * @deprecated since 5.2 use [touchesSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesSupportsCurves)
66
+ * @deprecated
67
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
68
+ * with [touchesSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/touchesOperator/#touchesSupportsCurves).
63
69
  */
64
70
  export const supportsCurves: ReturnType<typeof Boolean>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{OperatorTouches as e}from"../../chunks/OperatorTouches.js";import{deprecatedFunction as r}from"../../core/deprecate.js";import t from"../../core/Logger.js";import{getSpatialReference as o,fromGeometry as c,fromSpatialReference as s}from"./support/apiConverter.js";const n=new e;function a(e){const r=o(e);return n.accelerateGeometry(c(e),s(r),1)}function u(e){return r(t.getLogger("esri.geometry.operators.touchesOperator"),"accelerateGeometry is deprecated. Use touchesAccelerateGeometry instead.",{replacement:"touchesAccelerateGeometry",warnOnce:!0}),a(e)}function p(e,r){return n.execute(c(e),c(r),s(e.spatialReference),null)}function i(e,o){return r(t.getLogger("esri.geometry.operators.touchesOperator"),"execute is deprecated. Use touchesExecute instead.",{replacement:"touchesExecute",warnOnce:!0}),p(e,o)}const m=n.supportsCurves(),g=Boolean(m);export{u as accelerateGeometry,i as execute,g as supportsCurves,a as touchesAccelerateGeometry,p as touchesExecute,m as touchesSupportsCurves};
2
+ import{OperatorTouches as e}from"../../chunks/OperatorTouches.js";import{getSpatialReference as t,fromGeometry as r,fromSpatialReference as o}from"./support/apiConverter.js";import{deprecatedOperator as c}from"./support/deprecatedOperator.js";const u=new e;function n(e){const c=t(e);return u.accelerateGeometry(r(e),o(c),1)}function s(e){return c("touchesOperator","accelerateGeometry","touchesAccelerateGeometry"),n(e)}function p(e,t){return u.execute(r(e),r(t),o(e.spatialReference),null)}function a(e,t){return c("touchesOperator","execute","touchesExecute"),p(e,t)}const i=u.supportsCurves(),m=Boolean(i);export{s as accelerateGeometry,a as execute,m as supportsCurves,n as touchesAccelerateGeometry,p as touchesExecute,i as touchesSupportsCurves};
@@ -22,7 +22,9 @@ export function unionExecute(geometry1: GeometryUnion, geometry2: GeometryUnion)
22
22
  /**
23
23
  * Perform a topological union operation on two geometries.
24
24
  *
25
- * @deprecated since 5.2 use [unionExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecute)
25
+ * @deprecated
26
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
27
+ * with [unionExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecute).
26
28
  * @param geometry1 - The first geometry to union with.
27
29
  * @param geometry2 - The second geometry to union with.
28
30
  * @returns Returns the union of the two geometries as a geometry or null.
@@ -44,7 +46,9 @@ export function unionExecuteMany(geometries: GeometryUnion[]): GeometryWithoutMe
44
46
  /**
45
47
  * Perform a topological union operation on a geometry set.
46
48
  *
47
- * @deprecated since 5.2 use [unionExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecuteMany)
49
+ * @deprecated
50
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
51
+ * with [unionExecuteMany()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionExecuteMany).
48
52
  * @param geometries - The array of geometries to union.
49
53
  * All the geometries must have the same spatial reference.
50
54
  * @returns Returns the union of `geometries` as a geometry or null.
@@ -61,6 +65,8 @@ export const unionSupportsCurves: boolean;
61
65
  * Indicates if the operator supports input geometries that contain curves.
62
66
  * The value will always be `true`.
63
67
  *
64
- * @deprecated since 5.2 use [unionSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionSupportsCurves)
68
+ * @deprecated
69
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
70
+ * with [unionSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/unionOperator/#unionSupportsCurves).
65
71
  */
66
72
  export const supportsCurves: ReturnType<typeof Boolean>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{deprecatedFunction as e}from"../../core/deprecate.js";import r from"../../core/Logger.js";import{supportsCurves as n,executeMany as o,execute as t}from"./gx/operatorUnion.js";import{fromGeometry as u,getSpatialReference as a,toGeometry as c,fromSpatialReference as s}from"./support/apiConverter.js";function i(e,r){const n=a(e);return c(t(u(e),u(r),s(n)),n)}function p(n,o){return e(r.getLogger("esri.geometry.operators.unionOperator"),"execute is deprecated. Use unionExecute instead.",{replacement:"unionExecute",warnOnce:!0}),i(n,o)}function m(e){const r=e.map(u),n=a(e);return c(o(r,s(n)),n)}function g(n){return e(r.getLogger("esri.geometry.operators.unionOperator"),"executeMany is deprecated. Use unionExecuteMany instead.",{replacement:"unionExecuteMany",warnOnce:!0}),m(n)}const x=n(),f=Boolean(x);export{p as execute,g as executeMany,f as supportsCurves,i as unionExecute,m as unionExecuteMany,x as unionSupportsCurves};
2
+ import{supportsCurves as e,executeMany as n,execute as o}from"./gx/operatorUnion.js";import{fromGeometry as r,getSpatialReference as t,toGeometry as u,fromSpatialReference as p}from"./support/apiConverter.js";import{deprecatedOperator as a}from"./support/deprecatedOperator.js";function c(e,n){const a=t(e);return u(o(r(e),r(n),p(a)),a)}function s(e,n){return a("unionOperator","execute","unionExecute"),c(e,n)}function i(e){const o=e.map(r),a=t(e);return u(n(o,p(a)),a)}function x(e){return a("unionOperator","executeMany","unionExecuteMany"),i(e)}const f=e(),m=Boolean(f);export{s as execute,x as executeMany,m as supportsCurves,c as unionExecute,i as unionExecuteMany,f as unionSupportsCurves};
@@ -20,7 +20,9 @@ export function withinAccelerateGeometry(geometry: GeometryUnion): boolean;
20
20
  /**
21
21
  * Accelerate a geometry. This method prepares the geometry for faster within operations when the same geometry is tested multiple times (e.g. in a loop with hundreds of iterations). See the [Acceleration](https://developers.arcgis.com/javascript/latest/spatial-analysis/intro-geometry-operators/#acceleration) guide topic for more information.
22
22
  *
23
- * @deprecated since 5.2 use [withinAccelerateGeometry()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinAccelerateGeometry)
23
+ * @deprecated
24
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
25
+ * with [withinAccelerateGeometry()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinAccelerateGeometry).
24
26
  * @param geometry - The geometry to accelerate.
25
27
  * @returns Returns `true` if the geometry was successfully accelerated.
26
28
  */
@@ -41,7 +43,9 @@ export function withinExecute(inner: GeometryUnion, outer: GeometryUnion): boole
41
43
  /**
42
44
  * Perform a within operation on two geometries.
43
45
  *
44
- * @deprecated since 5.2 use [withinExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinExecute)
46
+ * @deprecated
47
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
48
+ * with [withinExecute()](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinExecute).
45
49
  * @param inner - The base geometry that is tested for the "within" relationship with `outer`.
46
50
  * @param outer - The comparison geometry that is tested for the "contains" relationship with `inner`.
47
51
  * @returns Returns `true` if `inner` is within `outer`.
@@ -61,6 +65,8 @@ export const withinSupportsCurves: boolean;
61
65
  * Indicates if the operator supports input geometries that contain curves.
62
66
  * The value will always be `true`.
63
67
  *
64
- * @deprecated since 5.2 use [withinSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinSupportsCurves)
68
+ * @deprecated
69
+ * since 5.2. Refactor using \@arcgis/codemod or manually replace usages
70
+ * with [withinSupportsCurves](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/withinOperator/#withinSupportsCurves).
65
71
  */
66
72
  export const supportsCurves: ReturnType<typeof Boolean>;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{OperatorWithin as e}from"../../chunks/OperatorWithin.js";import{deprecatedFunction as r}from"../../core/deprecate.js";import t from"../../core/Logger.js";import{getSpatialReference as o,fromGeometry as n,fromSpatialReference as c}from"./support/apiConverter.js";const i=new e;function a(e){const r=o(e);return i.accelerateGeometry(n(e),c(r),1)}function s(e){return r(t.getLogger("esri.geometry.operators.withinOperator"),"accelerateGeometry is deprecated. Use withinAccelerateGeometry instead.",{replacement:"withinAccelerateGeometry",warnOnce:!0}),a(e)}function p(e,r){return i.execute(n(e),n(r),c(e.spatialReference),null)}function u(e,o){return r(t.getLogger("esri.geometry.operators.withinOperator"),"execute is deprecated. Use withinExecute instead.",{replacement:"withinExecute",warnOnce:!0}),p(e,o)}const m=i.supportsCurves(),g=Boolean(m);export{s as accelerateGeometry,u as execute,g as supportsCurves,a as withinAccelerateGeometry,p as withinExecute,m as withinSupportsCurves};
2
+ import{OperatorWithin as e}from"../../chunks/OperatorWithin.js";import{getSpatialReference as t,fromGeometry as r,fromSpatialReference as o}from"./support/apiConverter.js";import{deprecatedOperator as n}from"./support/deprecatedOperator.js";const c=new e;function i(e){const n=t(e);return c.accelerateGeometry(r(e),o(n),1)}function p(e){return n("withinOperator","accelerateGeometry","withinAccelerateGeometry"),i(e)}function u(e,t){return c.execute(r(e),r(t),o(e.spatialReference),null)}function a(e,t){return n("withinOperator","execute","withinExecute"),u(e,t)}const s=c.supportsCurves(),m=Boolean(s);export{p as accelerateGeometry,a as execute,m as supportsCurves,i as withinAccelerateGeometry,u as withinExecute,s as withinSupportsCurves};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{extentContainsCoords2D as n,extentContainsPoint as t,ringsContainsCoords as e,extentContainsCoords3D as r}from"./contains.js";function o(n,e){return t(n,e)}function i(n,t){const e=n.hasZ&&t.hasZ;let r,o,i;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(o=t.ymin,n.ymax<o)return!1}else if(o=n.ymin,t.ymax<o)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(i=t.zmin,n.zmax<i)return!1}else if(i=n.zmin,t.zmax<i)return!1;return!0}function f(t,e){const{points:o,hasZ:i}=e,f=i?r:n;for(const n of o)if(f(t,n))return!0;return!1}const s=[0,0],c=[0,0],u=[0,0],a=[0,0],m=[s,c,u,a],l=[[u,s],[s,c],[c,a],[a,u]];function x(n,t){return h(n,t.rings)}function h(t,r){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,a[0]=t.xmax,a[1]=t.ymin;for(const n of m)if(e(r,n))return!0;for(const e of r){if(!e.length)continue;let r=e[0];if(n(t,r))return!0;for(let o=1;o<e.length;o++){const i=e[o];if(n(t,i)||g(r,i,l))return!0;r=i}}return!1}function y(t,e){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,a[0]=t.xmax,a[1]=t.ymin;const r=e.paths;for(const o of r){if(!r.length)continue;let e=o[0];if(n(t,e))return!0;for(let r=1;r<o.length;r++){const i=o[r];if(n(t,i)||g(e,i,l))return!0;e=i}}return!1}function g(n,t,e){for(let r=0;r<e.length;r++)if(p(n,t,e[r][0],e[r][1]))return!0;return!1}function p(n,t,e,r,o){const[i,f]=n,[s,c]=t,[u,a]=e,[m,l]=r,x=m-u,h=i-u,y=s-i,g=l-a,p=f-a,M=c-f,z=g*y-x*M;if(0===z)return!1;const G=(x*p-g*h)/z,b=(y*p-M*h)/z;return G>=0&&G<=1&&b>=0&&b<=1&&(o&&(o[0]=i+G*(s-i),o[1]=f+G*(c-f)),!0)}function M(n,t,e){for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];let f=(i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]);if(0===f)continue;f=Math.sqrt(f);const s=((i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0]))/f;if(Math.abs(s)<e){const r=((i[0]-t[0])*(n[0]-t[0])+(i[1]-t[1])*(n[1]-t[1]))/f;if(r>-e&&r<f+e)return!0}}}return!1}function z(n){const t=1e-6,e=n[0],r=n[n.length-1];return Math.abs(e[0]-r[0])<=t&&Math.abs(e[1]-r[1])<=t}function G(n,t){let e=0;for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];if(t[1]>n[1]==i[1]>n[1])continue;(i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0])>0?e++:e--}}return 0!==e}function b(n,t,e){const r=1e-9,o=(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0]);return Math.abs(o)<=r&&n[0]>=Math.min(t[0],e[0])-r&&n[0]<=Math.max(t[0],e[0])+r&&n[1]>=Math.min(t[1],e[1])-r&&n[1]<=Math.max(t[1],e[1])+r}function P(n,t){for(let o=0;o<4;o++){const e=n[o],r=n[(o+1)%4];for(let n=0;n<4;n++){const o=t[n],i=t[(n+1)%4];if(p(e,r,o,i)||b(e,o,i)||b(r,o,i)||b(o,e,r)||b(i,e,r))return!0}}const e=[...n,n[0]],r=[...t,t[0]];return G(n[0],[r])||G(t[0],[e])}function Z(n,t){const e=n.length>1&&!z(n)?[...n,n[0]]:n;for(const r of t){if(r.some(n=>G(n,[e])))return!0;if(z(r))for(const n of e)if(G(n,t))return!0;for(let n=1;n<r.length;n++){const t=r[n-1],o=r[n];for(let n=0;n<e.length;n++){if(p(t,o,e[n],e[(n+1)%e.length]))return!0}}}return!1}function j(n){switch(n){case"esriGeometryEnvelope":case"extent":return i;case"esriGeometryMultipoint":case"multipoint":return f;case"esriGeometryPoint":case"point":return o;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return y}}export{i as extentIntersectsExtent,f as extentIntersectsMultipoint,o as extentIntersectsPoint,x as extentIntersectsPolygon,y as extentIntersectsPolyline,j as getFeatureExtentIntersector,M as nearLine,G as pointInPolygon,P as rectsIntersect,p as segmentIntersects,Z as targetIntersectsPolygon};
2
+ import{extentContainsCoords2D as n,extentContainsPoint as t,ringsContainsCoords as e,extentContainsCoords3D as r}from"./contains.js";function o(n,e){return t(n,e)}function i(n,t){const e=n.hasZ&&t.hasZ;let r,o,i;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(o=t.ymin,n.ymax<o)return!1}else if(o=n.ymin,t.ymax<o)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(i=t.zmin,n.zmax<i)return!1}else if(i=n.zmin,t.zmax<i)return!1;return!0}function f(t,e){const{points:o,hasZ:i}=e,f=i?r:n;for(const n of o)if(f(t,n))return!0;return!1}const s=[0,0],c=[0,0],u=[0,0],a=[0,0],m=[s,c,u,a],l=[[u,s],[s,c],[c,a],[a,u]];function x(n,t){return h(n,t.rings)}function h(t,r){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,a[0]=t.xmax,a[1]=t.ymin;for(const n of m)if(e(r,n))return!0;for(const e of r){if(!e.length)continue;let r=e[0];if(n(t,r))return!0;for(let o=1;o<e.length;o++){const i=e[o];if(n(t,i)||g(r,i,l))return!0;r=i}}return!1}function y(t,e){s[0]=t.xmin,s[1]=t.ymax,c[0]=t.xmax,c[1]=t.ymax,u[0]=t.xmin,u[1]=t.ymin,a[0]=t.xmax,a[1]=t.ymin;const r=e.paths;for(const o of r){if(!r.length)continue;let e=o[0];if(n(t,e))return!0;for(let r=1;r<o.length;r++){const i=o[r];if(n(t,i)||g(e,i,l))return!0;e=i}}return!1}function g(n,t,e){for(let r=0;r<e.length;r++)if(p(n,t,e[r][0],e[r][1]))return!0;return!1}function p(n,t,e,r,o){const[i,f]=n,[s,c]=t,[u,a]=e,[m,l]=r,x=m-u,h=i-u,y=s-i,g=l-a,p=f-a,M=c-f,z=g*y-x*M;if(0===z)return!1;const G=(x*p-g*h)/z,b=(y*p-M*h)/z;return G>=0&&G<=1&&b>=0&&b<=1&&(o&&(o[0]=i+G*(s-i),o[1]=f+G*(c-f)),!0)}function M(n,t,e){for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];let f=(i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]);if(0===f)continue;f=Math.sqrt(f);const s=((i[0]-t[0])*(n[1]-t[1])-(i[1]-t[1])*(n[0]-t[0]))/f;if(Math.abs(s)<e){const r=((i[0]-t[0])*(n[0]-t[0])+(i[1]-t[1])*(n[1]-t[1]))/f;if(r>-e&&r<f+e)return!0}}}return!1}function z(n){const t=1e-6,e=n[0],r=n[n.length-1];return Math.abs(e[0]-r[0])<=t&&Math.abs(e[1]-r[1])<=t}function G(n,t,e){const[r,o]=n,[i,f]=t,[s,c]=e;if(f>o&&c>o||f<=o&&c<=o)return!1;return i+(o-f)*(s-i)/(c-f)>r}function b(n,t){let e=0;for(const r of t){const t=r.length;for(let o=1;o<t;o++){const t=r[o-1],i=r[o];G([n[0],n[1]],[t[0],t[1]],[i[0],i[1]])&&e++}}return e%2==1}function P(n,t,e){const r=1e-9,o=(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0]);return Math.abs(o)<=r&&n[0]>=Math.min(t[0],e[0])-r&&n[0]<=Math.max(t[0],e[0])+r&&n[1]>=Math.min(t[1],e[1])-r&&n[1]<=Math.max(t[1],e[1])+r}function Z(n,t){for(let o=0;o<4;o++){const e=n[o],r=n[(o+1)%4];for(let n=0;n<4;n++){const o=t[n],i=t[(n+1)%4];if(p(e,r,o,i)||P(e,o,i)||P(r,o,i)||P(o,e,r)||P(i,e,r))return!0}}const e=[...n,n[0]],r=[...t,t[0]];return b(n[0],[r])||b(t[0],[e])}function j(n,t){const e=n.length>1&&!z(n)?[...n,n[0]]:n;for(const r of t){if(r.some(n=>b(n,[e])))return!0;if(z(r))for(const n of e)if(b(n,t))return!0;for(let n=1;n<r.length;n++){const t=r[n-1],o=r[n];for(let n=0;n<e.length;n++){if(p(t,o,e[n],e[(n+1)%e.length]))return!0}}}return!1}function q(n){switch(n){case"esriGeometryEnvelope":case"extent":return i;case"esriGeometryMultipoint":case"multipoint":return f;case"esriGeometryPoint":case"point":return o;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return y}}export{i as extentIntersectsExtent,f as extentIntersectsMultipoint,o as extentIntersectsPoint,x as extentIntersectsPolygon,y as extentIntersectsPolyline,q as getFeatureExtentIntersector,M as nearLine,b as pointInPolygon,Z as rectsIntersect,p as segmentIntersects,j as targetIntersectsPolygon};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{Cyclical as t}from"../../core/Cyclical.js";import e from"../../core/Error.js";import{importLazily as n}from"../../core/importUtils.js";import{whenOrAbort as r}from"../../core/promiseUtils.js";import o from"../Extent.js";import i from"../Polygon.js";import s from"../Polyline.js";import l from"../SpatialReference.js";import{getGeometryParts as a}from"./normalizeUtilsCommon.js";import{getInfo as c}from"./spatialReferenceUtils.js";function p(t){const e=[];let n=0,r=0;for(let o=0;o<t.length;o++){const i=t[o];let s=null;for(let t=0;t<i.length;t++)s=i[t],e.push(s),0===t?(n=s[0],r=n):(n=Math.min(n,s[0]),r=Math.max(r,s[0]));s&&e.push([(n+r)/2,0])}return e}function f(t,n){switch(t.type){case"polygon":case"polyline":break;default:throw new e("internal:geometry","straightLineDensify: the input geometry is neither polyline nor polygon")}const r=a(t),o=[];for(const e of r){const t=[];o.push(t),t.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const o=e[r][0],i=e[r][1],s=e[r+1][0],l=e[r+1][1],a=Math.sqrt((s-o)*(s-o)+(l-i)*(l-i)),c=(l-i)/a,p=(s-o)/a,f=a/n;if(f>1){for(let l=1;l<=f-1;l++){const e=l*n,r=p*e+o,s=c*e+i;t.push([r,s])}const e=(a+Math.floor(f-1)*n)/2,r=p*e+o,s=c*e+i;t.push([r,s])}t.push([s,l])}}return"polygon"===t.type?new i({rings:o,spatialReference:t.spatialReference}):new s({paths:o,spatialReference:t.spatialReference})}async function m(t,e,n){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(n=e);let o=null;for(const r of t)o??=r?.spatialReference;if(!o)return t;const i=c(o);if(!i)return t;const[s,l]=i.valid;let a=!1;for(const r of t){if(!r)continue;if("point"===r.type){a||=r.x>=l,a||=r.x<=s;continue}const{extent:t}=r;if(null==t){a=!0;break}a||=t.xmin>=l,a||=t.xmin<=s,a||=t.xmax>=l,a||=t.xmax<=s}if(!a)return t;const[{foldInto360Range:p},f]=await r(Promise.all([u.getImportPromise(),h.getImportPromise()]),n),m=f.fromSpatialReference(o);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=f.fromGeometry(t),n=f.toGeometry(p(e,m),o);return"extent"===t.type&&1===n?.rings.length?n.extent:n})}const u=n(()=>import("../operators/gx/operatorProject.js").then(t=>t.load().then(()=>t))),h=n(()=>import("../operators/support/apiConverter.js"));function x(t){if(!t||"mesh"===t.type)return null;const{extent:e,spatialReference:n}=t,r=n&&c(n);if("point"===t.type){const{x:e,y:r}=t;return new o({xmin:e,ymin:r,xmax:e,ymax:r,spatialReference:n})}if(!e||!r)return e;const[i,s]=r.valid,l=2*s,{width:a}=e;let f,{xmin:m,xmax:u}=e;if([m,u]=[u,m],"extent"===t.type||0===a||a<=s||a>l||m<i||u>s)return e;switch(t.type){case"polygon":if(!(t.rings.length>1))return e;f=p(t.rings);break;case"polyline":if(!(t.paths.length>1))return e;f=p(t.paths);break;case"multipoint":f=t.points}const h=e.clone();for(let o=0;o<f.length;o++){let t=f[o][0];t<0?(t+=s,u=Math.max(t,u)):(t-=s,m=Math.min(t,m))}return h.xmin=m,h.xmax=u,h.width<a?(h.xmin-=s,h.xmax-=s,h):e}function y(t,e,n){const r=c(n);if(null==r)return t;const[o,i]=r.valid,s=2*i;let l=0,a=0;e>i?l=Math.ceil(Math.abs(e-i)/s):e<o&&(l=-Math.ceil(Math.abs(e-o)/s)),t>i?a=Math.ceil(Math.abs(t-i)/s):t<o&&(a=-Math.ceil(Math.abs(t-o)/s));let p=t+(l-a)*s;const f=p-e;return f>i?p-=s:f<o&&(p+=s),p}function g(t,e){const n=M(e);return n?.normalize(t)??t}function M(e){const n=c(e);if(null==n)return null;const[r,o]=n.valid;return new t(r,o)}const j=M(l.WGS84),w=M(l.WebMercator);export{M as createSpatialReferenceCyclical,j as gcsCyclical,y as getClosestDenormalizedXToReference,x as getDenormalizedExtent,m as normalizeCentralMeridian,g as normalizeMapX,f as straightLineDensify,w as webMercatorCyclical};
2
+ import{Cyclical as t}from"../../core/Cyclical.js";import e from"../../core/Error.js";import{importLazily as n}from"../../core/importUtils.js";import{whenOrAbort as r}from"../../core/promiseUtils.js";import o from"../Extent.js";import i from"../Polygon.js";import s from"../Polyline.js";import l from"../SpatialReference.js";import{getGeometryParts as a}from"./normalizeUtilsCommon.js";import{getInfo as c}from"./spatialReferenceUtils.js";function p(t){const e=[];let n=0,r=0;for(let o=0;o<t.length;o++){const i=t[o];let s=null;for(let t=0;t<i.length;t++)s=i[t],e.push(s),0===t?(n=s[0],r=n):(n=Math.min(n,s[0]),r=Math.max(r,s[0]));s&&e.push([(n+r)/2,0])}return e}function m(t,n){switch(t.type){case"polygon":case"polyline":break;default:throw new e("internal:geometry","straightLineDensify: the input geometry is neither polyline nor polygon")}const r=a(t),o=[];for(const e of r){const t=[];o.push(t),t.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const o=e[r][0],i=e[r][1],s=e[r+1][0],l=e[r+1][1],a=Math.sqrt((s-o)*(s-o)+(l-i)*(l-i)),c=(l-i)/a,p=(s-o)/a,m=a/n;if(m>1){for(let l=1;l<=m-1;l++){const e=l*n,r=p*e+o,s=c*e+i;t.push([r,s])}const e=(a+Math.floor(m-1)*n)/2,r=p*e+o,s=c*e+i;t.push([r,s])}t.push([s,l])}}return"polygon"===t.type?new i({rings:o,spatialReference:t.spatialReference}):new s({paths:o,spatialReference:t.spatialReference})}async function f(t,e,n){Array.isArray(t)||(t=[t]),null!=e&&"object"==typeof e&&"authMode"in e&&(n=e);let o=null;for(const r of t)o??=r?.spatialReference;if(!o)return t;const s=c(o);if(!s)return t;if(1===t.length&&"extent"===t[0]?.type){const e=t[0].clone().normalizeAsSingleGeometry(s);return["xmin"in e?e:new i(e)]}const[l,a]=s.valid;let p=!1;for(const r of t){if(!r)continue;if("point"===r.type){p||=r.x>=a,p||=r.x<=l;continue}const{extent:t}=r;if(null==t){p=!0;break}p||=t.xmin>=a,p||=t.xmin<=l,p||=t.xmax>=a,p||=t.xmax<=l}if(!p)return t;const[{foldInto360Range:m},f]=await r(Promise.all([u.getImportPromise(),h.getImportPromise()]),n),x=f.fromSpatialReference(o);return t.map(t=>{if(null==t||"mesh"===t.type)return t;const e=f.fromGeometry(t),n=f.toGeometry(m(e,x),o);return"extent"===t.type&&1===n?.rings.length?n.extent:n})}const u=n(()=>import("../operators/gx/operatorProject.js").then(t=>t.load().then(()=>t))),h=n(()=>import("../operators/support/apiConverter.js"));function x(t){if(!t||"mesh"===t.type)return null;const{extent:e,spatialReference:n}=t,r=n&&c(n);if("point"===t.type){const{x:e,y:r}=t;return new o({xmin:e,ymin:r,xmax:e,ymax:r,spatialReference:n})}if(!e||!r)return e;const[i,s]=r.valid,l=2*s,{width:a}=e;let m,{xmin:f,xmax:u}=e;if([f,u]=[u,f],"extent"===t.type||0===a||a<=s||a>l||f<i||u>s)return e;switch(t.type){case"polygon":if(!(t.rings.length>1))return e;m=p(t.rings);break;case"polyline":if(!(t.paths.length>1))return e;m=p(t.paths);break;case"multipoint":m=t.points}const h=e.clone();for(let o=0;o<m.length;o++){let t=m[o][0];t<0?(t+=s,u=Math.max(t,u)):(t-=s,f=Math.min(t,f))}return h.xmin=f,h.xmax=u,h.width<a?(h.xmin-=s,h.xmax-=s,h):e}function y(t,e,n){const r=c(n);if(null==r)return t;const[o,i]=r.valid,s=2*i;let l=0,a=0;e>i?l=Math.ceil(Math.abs(e-i)/s):e<o&&(l=-Math.ceil(Math.abs(e-o)/s)),t>i?a=Math.ceil(Math.abs(t-i)/s):t<o&&(a=-Math.ceil(Math.abs(t-o)/s));let p=t+(l-a)*s;const m=p-e;return m>i?p-=s:m<o&&(p+=s),p}function g(t,e){const n=M(e);return n?.normalize(t)??t}function M(e){const n=c(e);if(null==n)return null;const[r,o]=n.valid;return new t(r,o)}const j=M(l.WGS84),w=M(l.WebMercator);export{M as createSpatialReferenceCyclical,j as gcsCyclical,y as getClosestDenormalizedXToReference,x as getDenormalizedExtent,f as normalizeCentralMeridian,g as normalizeMapX,m as straightLineDensify,w as webMercatorCyclical};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.112",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,s as fullVersion,r as id,i as setId,e as version};
2
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.113",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,s as fullVersion,r as id,i as setId,e as version};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../request.js";import{ClonableMixin as i}from"../core/Clonable.js";import o from"../core/Error.js";import"../core/has.js";import r from"../core/Logger.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{on as a,sync as l,watch as p}from"../core/reactiveUtils.js";import{property as c,subclass as m}from"../core/accessorSupport/decorators.js";import{persistable as d}from"../core/accessorSupport/decorators/persistable.js";import u from"../geometry/Extent.js";import h from"../geometry/SpatialReference.js";import f from"./Layer.js";import{APIKeyMixin as y}from"./mixins/APIKeyMixin.js";import{ArcGISService as g}from"./mixins/ArcGISService.js";import{CustomParametersMixin as S}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as x}from"./support/commonProperties.js";import w from"./support/SceneModifications.js";import{default3DTilesSpatialReference as R,default3DTilesFullExtent as E,initFullExtent as b,hasEsriCrs as L}from"./support/tiles3DUtils.js";import k from"../portal/Portal.js";import{getElevationOffsetInMeters as G,logInvalidElevationInfoWarning as P,elevationModeRequiredMessage as I,featureExpressionUnsupportedMessage as D}from"../support/elevationInfoUtils.js";import{f as O}from"../chunks/persistableUrlUtils.js";import{isBasemap as U}from"../support/userTypeGuards/isBasemap.js";import{initialize as C,switchMeshModificationPolygonVCSSync as M}from"../views/3d/layers/Lyr3DWorker.js";import{toWasmModification as q,fromWasmModification as N}from"../views/3d/layers/SceneLayerWorkerHandle.js";import{reader as A}from"../core/accessorSupport/decorators/reader.js";let J=class extends(g(_(v(j(s(S(y(i(f))))))))){readModifications(e,t,i){this._modificationsSource={url:O(e,i),context:i}}initialize(){this.addHandles([a(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},l),p(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=R,this.fullExtent=E,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[h.WGS84,this.esriCrsSpatialReference]:[h.WGS84]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[E,this.esriCrsFullExtent]:[E]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[o,r]of Object.entries(e)){if("uri"===o)try{const e=new URL("https://tmp"+r).searchParams.get("session");if(e)return e}catch(i){}"object"==typeof r&&null!==r&&t.push(r)}}return null}async requestRootAndSession(e){const i=(e,t)=>new o("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((o,s)=>{this.url||s(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,o)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||k.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?t(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>o(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):o(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>o(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void s(i("root-parse-failed","Error parsing root tile, details: "+t))}if(!this._rootTilesetJSON)return void s(i("root-is-null","Root tile is null."));this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=b(this._rootTilesetJSON);L(this._rootTilesetJSON)&&(this.esriCrsFullExtent=b(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),o(),this._rootRequestPromise=null},e=>{n(e),s(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>s(e))})),this._rootRequestPromise}_haveWGS84ZModifications(e){for(const t of e){if(!t.geometry?.spatialReference)return!0;if(115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0}return!1}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(i){n(i)}if(null!=this._modificationsSource){const t=await w.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await C();try{const e=q(null,t.toArray(),h.WGS84),i=M({modifications:e,inVCS:115700});i.success&&i.modifications&&N(i.modifications,t)}catch(s){r.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",s)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){const{modifications:e}=this;return void(e&&e.length>0&&await C())}await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,G(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";P(r.getLogger(this),I(t,"absolute-height",e)),P(r.getLogger(this),D(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return U(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};e([c({type:["IntegratedMesh3DTilesLayer"]})],J.prototype,"operationalLayerType",void 0),e([c({type:w,clonable:e=>e?.clone()??null}),d({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],J.prototype,"modifications",void 0),e([c({clonable:e=>e?{...e}:null})],J.prototype,"_modificationsSource",void 0),e([A(["web-scene","portal-item"],"modifications")],J.prototype,"readModifications",null),e([c({type:h})],J.prototype,"spatialReference",void 0),e([c({type:u})],J.prototype,"fullExtent",void 0),e([c({readOnly:!0})],J.prototype,"supportedSpatialReferences",null),e([c({type:[u]})],J.prototype,"fullExtents",null),e([c(T)],J.prototype,"elevationInfo",null),e([c({type:["show","hide"]})],J.prototype,"listMode",void 0),e([c(x)],J.prototype,"url",void 0),e([c({readOnly:!0})],J.prototype,"type",void 0),e([c({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],J.prototype,"path",void 0),e([c({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],J.prototype,"minScale",void 0),e([c({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],J.prototype,"maxScale",void 0),e([c()],J.prototype,"queryElevationCallback",void 0),e([c()],J.prototype,"_modificationsGeneration",void 0),e([c()],J.prototype,"memoizedElevationQueryDependencies",null),e([c({readOnly:!0})],J.prototype,"hasAttributionData",null),e([c()],J.prototype,"replacesTerrain",null),e([c()],J.prototype,"isUsedAsGroundLayer",null),e([c()],J.prototype,"hasGoogleUrl",null),e([c()],J.prototype,"_simulateGoogleUrl",void 0),J=e([m("esri.layers.IntegratedMesh3DTilesLayer")],J);const W=J;export{W as default};
2
+ import{__decorate as e}from"tslib";import t from"../request.js";import{ClonableMixin as i}from"../core/Clonable.js";import r from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{on as a,sync as l,watch as p}from"../core/reactiveUtils.js";import{property as m,subclass as c}from"../core/accessorSupport/decorators.js";import{persistable as u}from"../core/accessorSupport/decorators/persistable.js";import d from"../geometry/Extent.js";import h from"../geometry/SpatialReference.js";import f from"./Layer.js";import{APIKeyMixin as y}from"./mixins/APIKeyMixin.js";import{ArcGISService as g}from"./mixins/ArcGISService.js";import{CustomParametersMixin as S}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as x}from"./support/commonProperties.js";import w from"./support/SceneModifications.js";import{default3DTilesSpatialReference as R,default3DTilesFullExtent as b,initFullExtent as E,hasEsriCrs as L}from"./support/tiles3DUtils.js";import k from"../portal/Portal.js";import{getElevationOffsetInMeters as G,logInvalidElevationInfoWarning as I,elevationModeRequiredMessage as P,featureExpressionUnsupportedMessage as U}from"../support/elevationInfoUtils.js";import{isGround as D}from"../support/groundInstanceUtils.js";import{f as O}from"../chunks/persistableUrlUtils.js";import{isBasemap as C}from"../support/userTypeGuards/isBasemap.js";import{initialize as M,switchMeshModificationPolygonVCSSync as q}from"../views/3d/layers/Lyr3DWorker.js";import{toWasmModification as N,fromWasmModification as A}from"../views/3d/layers/SceneLayerWorkerHandle.js";import{reader as J}from"../core/accessorSupport/decorators/reader.js";let W=class extends(g(_(v(j(s(S(y(i(f))))))))){readModifications(e,t,i){this._modificationsSource={url:O(e,i),context:i}}initialize(){this.addHandles([a(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},l),p(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=R,this.fullExtent=b,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[h.WGS84,this.esriCrsSpatialReference]:[h.WGS84]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[b,this.esriCrsFullExtent]:[b]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[r,o]of Object.entries(e)){if("uri"===r)try{const e=new URL("https://tmp"+o).searchParams.get("session");if(e)return e}catch(i){}"object"==typeof o&&null!==o&&t.push(o)}}return null}async requestRootAndSession(e){const i=(e,t)=>new r("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((r,s)=>{this.url||s(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,r)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||k.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?t(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>r(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):r(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>r(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void s(i("root-parse-failed","Error parsing root tile, details: "+t))}if(!this._rootTilesetJSON)return void s(i("root-is-null","Root tile is null."));this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=E(this._rootTilesetJSON);L(this._rootTilesetJSON)&&(this.esriCrsFullExtent=E(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),r(),this._rootRequestPromise=null},e=>{n(e),s(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,o.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>s(e))})),this._rootRequestPromise}_haveWGS84ZModifications(e){for(const t of e){if(!t.geometry?.spatialReference)return!0;if(115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0}return!1}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(i){n(i)}if(null!=this._modificationsSource){const t=await w.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await M();try{const e=N(null,t.toArray(),h.WGS84),i=q({modifications:e,inVCS:115700});i.success&&i.modifications&&A(i.modifications,t)}catch(s){o.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",s)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){const{modifications:e}=this;return void(e&&e.length>0&&await M())}await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,G(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";I(o.getLogger(this),P(t,"absolute-height",e)),I(o.getLogger(this),U(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return has("enable-feature:im-as-ground")?C(this.parent)||D(this.parent):C(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};e([m({type:["IntegratedMesh3DTilesLayer"]})],W.prototype,"operationalLayerType",void 0),e([m({type:w,clonable:e=>e?.clone()??null}),u({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],W.prototype,"modifications",void 0),e([m({clonable:e=>e?{...e}:null})],W.prototype,"_modificationsSource",void 0),e([J(["web-scene","portal-item"],"modifications")],W.prototype,"readModifications",null),e([m({type:h})],W.prototype,"spatialReference",void 0),e([m({type:d})],W.prototype,"fullExtent",void 0),e([m({readOnly:!0})],W.prototype,"supportedSpatialReferences",null),e([m({type:[d]})],W.prototype,"fullExtents",null),e([m(T)],W.prototype,"elevationInfo",null),e([m({type:["show","hide"]})],W.prototype,"listMode",void 0),e([m(x)],W.prototype,"url",void 0),e([m({readOnly:!0})],W.prototype,"type",void 0),e([m({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],W.prototype,"path",void 0),e([m({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],W.prototype,"minScale",void 0),e([m({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],W.prototype,"maxScale",void 0),e([m()],W.prototype,"queryElevationCallback",void 0),e([m()],W.prototype,"_modificationsGeneration",void 0),e([m()],W.prototype,"memoizedElevationQueryDependencies",null),e([m({readOnly:!0})],W.prototype,"hasAttributionData",null),e([m()],W.prototype,"replacesTerrain",null),e([m()],W.prototype,"isUsedAsGroundLayer",null),e([m()],W.prototype,"hasGoogleUrl",null),e([m()],W.prototype,"_simulateGoogleUrl",void 0),W=e([c("esri.layers.IntegratedMesh3DTilesLayer")],W);const z=W;export{z as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__addDisposableResource as e,__disposeResources as t,__decorate as o}from"tslib";import{isSome as r}from"../core/arrayUtils.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Error.js";import{abortHandle as n,disposable as a,makeHandle as l}from"../core/handleUtils.js";import p from"../core/Logger.js";import{MultiOriginJSONSupportMixin as d}from"../core/MultiOriginJSONSupport.js";import{throwIfAborted as y,throwIfAbortError as m}from"../core/promiseUtils.js";import{on as c,sync as u,watch as h}from"../core/reactiveUtils.js";import{property as f,subclass as v}from"../core/accessorSupport/decorators.js";import{persistable as g}from"../core/accessorSupport/decorators/persistable.js";import S from"./Layer.js";import{APIKeyMixin as _}from"./mixins/APIKeyMixin.js";import{ArcGISService as w}from"./mixins/ArcGISService.js";import{CustomParametersMixin as b}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as j}from"./mixins/OperationalLayer.js";import{PortalLayer as Q}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as I}from"./mixins/ScaleRangeLayer.js";import{SceneService as L}from"./mixins/SceneService.js";import{elevationInfo as x}from"./support/commonProperties.js";import{GeometryDescriptor as k}from"./support/GeometryDescriptor.js";import{queryIntegratedMeshElevation as A,defaultNoDataValue as D}from"./support/I3SIntegratedMeshElevationQuery.js";import{I3SNodePageDefinition as C,I3SMaterialDefinition as T,I3STextureSetDefinition as M,I3SGeometryDefinition as W}from"./support/I3SLayerDefinitions.js";import E from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as O,elevationModeRequiredMessage as U,featureExpressionUnsupportedMessage as G}from"../support/elevationInfoUtils.js";import{f as P}from"../chunks/persistableUrlUtils.js";import{SceneLayerWorkerHandle as N}from"../views/3d/layers/SceneLayerWorkerHandle.js";import{I3SDataRequester as R}from"../views/3d/layers/i3s/I3SDataRequester.js";import H from"../views/3d/layers/i3s/I3SNodeLoader.js";import{ImmediateTask as z}from"../views/support/Scheduler.js";import{reader as K}from"../core/accessorSupport/decorators/reader.js";let V=class extends(L(w(j(Q(I(d(b(_(i(S)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();const e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,null!=e&&e.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([c(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},u),h(()=>this.modifications,()=>this._modificationsGeneration++,u),h(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),u)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:P(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new N((e,t)=>z.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(o,i,s){const p={stack:[],error:void 0,hasError:!1};try{const t=s?.noDataValue??Number.MAX_VALUE,d=this._elevationQueryWorker,m=new AbortController;o.addHandles(n(m),m);e(p,a(l(()=>o.removeHandles(m))),!1);const c=AbortSignal.any([s?.signal,this._elevationQueryAbortController.signal,m.signal].filter(r));await this.load({signal:c}),y(c);const u=k.fromGeometry(i),h={signal:c,elevationOffset:this.elevationInfo?.offset??0,scheduler:o.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){const e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=d.setLegacySchema(this._elevationQueryWorkerContext,e))}const f=await A(this,u,h);y(c);const v=f.coordinates[0].z===D;v&&(f.coordinates[0].z=t);const g=await f.project(i.spatialReference,c);y(c);const S=g??u.clone(),_={geometry:S.export(),noDataValue:t};return s?.returnSampleInfo&&(_.sampleInfo=S.coordinates.map(()=>({demResolution:v?-1:1}))),_}catch(d){p.error=d,p.hasError=!0}finally{t(p)}}_abortElevationQueriesAfterDependencyChange(){const e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,y(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(o){m(o)}if(y(t),await this._fetchService(t),y(t),null!=this._modificationsSource){const o=await E.fromUrl(this._modificationsSource.url,this.spatialReference,e);y(t),this.setAtOrigin("modifications",o,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),y(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new R(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new H(this,this.elevationQueryDataRequester,p.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){const t="Integrated mesh layers";O(p.getLogger(this),U(t,"absolute-height",e)),O(p.getLogger(this),G(t,e))}};o([f({type:String,readOnly:!0})],V.prototype,"geometryType",void 0),o([f({type:["show","hide"]})],V.prototype,"listMode",void 0),o([f({type:["IntegratedMeshLayer"]})],V.prototype,"operationalLayerType",void 0),o([f({json:{read:!1},readOnly:!0})],V.prototype,"type",void 0),o([f({type:C,readOnly:!0,clonable:!1})],V.prototype,"nodePages",void 0),o([f({type:[T],readOnly:!0,clonable:!1})],V.prototype,"materialDefinitions",void 0),o([f({type:[M],readOnly:!0,clonable:!1})],V.prototype,"textureSetDefinitions",void 0),o([f({type:[W],readOnly:!0,clonable:!1})],V.prototype,"geometryDefinitions",void 0),o([f({readOnly:!0})],V.prototype,"serviceUpdateTimeStamp",void 0),o([f({type:E,clonable:e=>e?.clone()??e}),g({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],V.prototype,"modifications",void 0),o([f({clonable:e=>e?{...e}:null})],V.prototype,"_modificationsSource",void 0),o([K(["web-scene","portal-item"],"modifications")],V.prototype,"readModifications",null),o([f(x)],V.prototype,"elevationInfo",null),o([f({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],V.prototype,"path",void 0),o([f({clonable:!1})],V.prototype,"_elevationQueryWorker",null),o([f()],V.prototype,"_modificationsGeneration",void 0),o([f()],V.prototype,"memoizedElevationQueryDependencies",null),o([f({clonable:!1})],V.prototype,"elevationQueryDataRequester",null),o([f({clonable:!1})],V.prototype,"elevationQueryNodeLoader",null),V=o([v("esri.layers.IntegratedMeshLayer")],V);const q=V;export{q as default};
2
+ import{__addDisposableResource as e,__disposeResources as t,__decorate as o}from"tslib";import{isSome as r}from"../core/arrayUtils.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Error.js";import{abortHandle as n,disposable as a,makeHandle as l}from"../core/handleUtils.js";import has from"../core/has.js";import p from"../core/Logger.js";import{MultiOriginJSONSupportMixin as d}from"../core/MultiOriginJSONSupport.js";import{throwIfAborted as y,throwIfAbortError as m}from"../core/promiseUtils.js";import{on as u,sync as c,watch as h}from"../core/reactiveUtils.js";import{property as f,subclass as v}from"../core/accessorSupport/decorators.js";import{persistable as g}from"../core/accessorSupport/decorators/persistable.js";import S from"./Layer.js";import{APIKeyMixin as _}from"./mixins/APIKeyMixin.js";import{ArcGISService as j}from"./mixins/ArcGISService.js";import{CustomParametersMixin as w}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as b}from"./mixins/OperationalLayer.js";import{PortalLayer as Q}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as L}from"./mixins/ScaleRangeLayer.js";import{SceneService as I}from"./mixins/SceneService.js";import{elevationInfo as x}from"./support/commonProperties.js";import{GeometryDescriptor as A}from"./support/GeometryDescriptor.js";import{queryIntegratedMeshElevation as k,defaultNoDataValue as D}from"./support/I3SIntegratedMeshElevationQuery.js";import{I3SNodePageDefinition as T,I3SMaterialDefinition as C,I3STextureSetDefinition as M,I3SGeometryDefinition as W}from"./support/I3SLayerDefinitions.js";import E from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as U,elevationModeRequiredMessage as G,featureExpressionUnsupportedMessage as O}from"../support/elevationInfoUtils.js";import{isGround as P}from"../support/groundInstanceUtils.js";import{f as N}from"../chunks/persistableUrlUtils.js";import{isBasemap as R}from"../support/userTypeGuards/isBasemap.js";import{SceneLayerWorkerHandle as H}from"../views/3d/layers/SceneLayerWorkerHandle.js";import{I3SDataRequester as z}from"../views/3d/layers/i3s/I3SDataRequester.js";import K from"../views/3d/layers/i3s/I3SNodeLoader.js";import{ImmediateTask as V}from"../views/support/Scheduler.js";import{reader as q}from"../core/accessorSupport/decorators/reader.js";let F=class extends(I(j(b(Q(L(d(w(_(i(S)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();const e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,null!=e&&e.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([u(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},c),h(()=>this.modifications,()=>this._modificationsGeneration++,c),h(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),c)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:N(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new H((e,t)=>V.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(o,i,s){const p={stack:[],error:void 0,hasError:!1};try{const t=s?.noDataValue??Number.MAX_VALUE,d=this._elevationQueryWorker,m=new AbortController;o.addHandles(n(m),m);e(p,a(l(()=>o.removeHandles(m))),!1);const u=AbortSignal.any([s?.signal,this._elevationQueryAbortController.signal,m.signal].filter(r));await this.load({signal:u}),y(u);const c=A.fromGeometry(i),h={signal:u,elevationOffset:this.elevationInfo?.offset??0,scheduler:o.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){const e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=d.setLegacySchema(this._elevationQueryWorkerContext,e))}const f=await k(this,c,h);y(u);const v=f.coordinates[0].z===D;v&&(f.coordinates[0].z=t);const g=await f.project(i.spatialReference,u);y(u);const S=g??c.clone(),_={geometry:S.export(),noDataValue:t};return s?.returnSampleInfo&&(_.sampleInfo=S.coordinates.map(()=>({demResolution:v?-1:1}))),_}catch(d){p.error=d,p.hasError=!0}finally{t(p)}}_abortElevationQueriesAfterDependencyChange(){const e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,y(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(o){m(o)}if(y(t),await this._fetchService(t),y(t),null!=this._modificationsSource){const o=await E.fromUrl(this._modificationsSource.url,this.spatialReference,e);y(t),this.setAtOrigin("modifications",o,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),y(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}get isUsedAsGroundLayer(){return!has("enable-feature:im-as-ground")||(R(this.parent)||P(this.parent))}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new z(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new K(this,this.elevationQueryDataRequester,p.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){const t="Integrated mesh layers";U(p.getLogger(this),G(t,"absolute-height",e)),U(p.getLogger(this),O(t,e))}};o([f({type:String,readOnly:!0})],F.prototype,"geometryType",void 0),o([f({type:["show","hide"]})],F.prototype,"listMode",void 0),o([f({type:["IntegratedMeshLayer"]})],F.prototype,"operationalLayerType",void 0),o([f({json:{read:!1},readOnly:!0})],F.prototype,"type",void 0),o([f({type:T,readOnly:!0,clonable:!1})],F.prototype,"nodePages",void 0),o([f({type:[C],readOnly:!0,clonable:!1})],F.prototype,"materialDefinitions",void 0),o([f({type:[M],readOnly:!0,clonable:!1})],F.prototype,"textureSetDefinitions",void 0),o([f({type:[W],readOnly:!0,clonable:!1})],F.prototype,"geometryDefinitions",void 0),o([f({readOnly:!0})],F.prototype,"serviceUpdateTimeStamp",void 0),o([f({type:E,clonable:e=>e?.clone()??e}),g({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],F.prototype,"modifications",void 0),o([f({clonable:e=>e?{...e}:null})],F.prototype,"_modificationsSource",void 0),o([q(["web-scene","portal-item"],"modifications")],F.prototype,"readModifications",null),o([f(x)],F.prototype,"elevationInfo",null),o([f({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],F.prototype,"path",void 0),o([f({clonable:!1})],F.prototype,"_elevationQueryWorker",null),o([f()],F.prototype,"_modificationsGeneration",void 0),o([f()],F.prototype,"memoizedElevationQueryDependencies",null),o([f()],F.prototype,"isUsedAsGroundLayer",null),o([f({clonable:!1})],F.prototype,"elevationQueryDataRequester",null),o([f({clonable:!1})],F.prototype,"elevationQueryNodeLoader",null),F=o([v("esri.layers.IntegratedMeshLayer")],F);const B=F;export{B as default};