@arcgis/core 5.0.0-next.57 → 5.0.0-next.59

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 (351) hide show
  1. package/Graphic.d.ts +2 -2
  2. package/Viewpoint.d.ts +1 -1
  3. package/applications/Components/arcadeFeatureUtils.d.ts +20 -1
  4. package/applications/Components/arcadeFeatureUtils.js +1 -1
  5. package/applications/Urban/meshUtils.d.ts +2 -2
  6. package/arcade.d.ts +1 -1
  7. package/arcade.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/0bd73a66baea2f52e8a6.js +1 -0
  10. package/assets/esri/core/workers/chunks/18ce7b1559a45d017c45.js +1 -0
  11. package/assets/esri/core/workers/chunks/262c5794650853457acc.js +1 -0
  12. package/assets/esri/core/workers/chunks/3405a23973f9e701a4d6.js +1 -0
  13. package/assets/esri/core/workers/chunks/352c674730c7b7258ae3.js +1 -0
  14. package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +1 -0
  15. package/assets/esri/core/workers/chunks/62752cd6821959cf6751.js +1 -0
  16. package/assets/esri/core/workers/chunks/72e3a48aa365542b0689.js +1 -0
  17. package/assets/esri/core/workers/chunks/{5f9e64f00329cb646f0c.js → 741d170187e58e81584d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a6b1e3ec30f6d641aea9.js +1 -0
  19. package/assets/esri/core/workers/chunks/{da2c41ac0f82f32013c1.js → a7aa87e2c4197ba595ef.js} +10 -10
  20. package/assets/esri/core/workers/chunks/{d76513a6260d9ec4ea25.js → bf82bb1cdd8b31e7f2aa.js} +1 -1
  21. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  22. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  23. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  24. package/assets/esri/themes/base/widgets/_Attribution.scss +2 -2
  25. package/assets/esri/themes/base/widgets/_FeatureTable.scss +24 -0
  26. package/assets/esri/themes/dark/main.css +1 -1
  27. package/assets/esri/themes/light/main.css +1 -1
  28. package/assets/esri/themes/light/view.css +1 -1
  29. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
  30. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  31. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  32. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  33. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  34. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  35. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  36. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  37. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  38. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
  39. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  40. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  41. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  42. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  43. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  44. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  45. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  46. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  47. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  48. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  49. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  54. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  55. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  56. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  57. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  58. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  59. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  60. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  61. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  62. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  63. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  64. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  65. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  66. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  67. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  68. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  69. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  70. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
  71. package/chunks/lerc-wasm.js +1 -1
  72. package/config.js +1 -1
  73. package/core/workers/workerFactory.js +1 -1
  74. package/editing/sharedTemplates/executor/builders/offsetLine.js +1 -1
  75. package/editing/sharedTemplates/executor/builders/offsetPrimaryLine.js +1 -1
  76. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  77. package/editing/sharedTemplates/executor/builders/polygonBoundaryTwoPoint.js +1 -1
  78. package/editing/sharedTemplates/executor/builders/polygonVertices.js +1 -1
  79. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  80. package/editing/sharedTemplates/executor/builders/support/shapeUtils.js +1 -1
  81. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  82. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  83. package/geometry/Extent.d.ts +1 -1
  84. package/geometry/Mesh.d.ts +2 -2
  85. package/geometry/SpatialReference.js +1 -1
  86. package/geometry/geometryEngine.d.ts +3 -3
  87. package/geometry/{geometryEngineInterfaces.d.ts → geometryEngineTypes.d.ts} +1 -1
  88. package/geometry/operators/affineTransformOperator.d.ts +3 -3
  89. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  90. package/geometry/operators/areaOperator.d.ts +1 -1
  91. package/geometry/operators/boundaryOperator.d.ts +3 -3
  92. package/geometry/operators/bufferOperator.d.ts +1 -1
  93. package/geometry/operators/centroidOperator.d.ts +1 -1
  94. package/geometry/operators/clipOperator.d.ts +3 -3
  95. package/geometry/operators/containsOperator.d.ts +1 -1
  96. package/geometry/operators/convexHullOperator.d.ts +3 -3
  97. package/geometry/operators/crossesOperator.d.ts +1 -1
  98. package/geometry/operators/cutOperator.d.ts +2 -2
  99. package/geometry/operators/densifyOperator.d.ts +3 -3
  100. package/geometry/operators/differenceOperator.d.ts +3 -3
  101. package/geometry/operators/disjointOperator.d.ts +1 -1
  102. package/geometry/operators/distanceOperator.d.ts +1 -1
  103. package/geometry/operators/equalsOperator.d.ts +1 -1
  104. package/geometry/operators/generalizeOperator.d.ts +3 -3
  105. package/geometry/operators/geodesicBufferOperator.d.ts +1 -2
  106. package/geometry/operators/geodesicProximityOperator.d.ts +2 -5
  107. package/geometry/operators/geodeticAreaOperator.d.ts +1 -2
  108. package/geometry/operators/geodeticDensifyOperator.d.ts +3 -4
  109. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -2
  110. package/geometry/operators/geodeticLengthOperator.d.ts +1 -2
  111. package/geometry/operators/geodeticUtilsOperator.d.ts +1 -1
  112. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  113. package/geometry/operators/integrateOperator.d.ts +2 -2
  114. package/geometry/operators/intersectionOperator.d.ts +3 -3
  115. package/geometry/operators/intersectsOperator.d.ts +1 -1
  116. package/geometry/operators/isNearOperator.d.ts +1 -1
  117. package/geometry/operators/labelPointOperator.d.ts +1 -1
  118. package/geometry/operators/lengthOperator.d.ts +1 -1
  119. package/geometry/operators/linesToPolygonsOperator.d.ts +1 -1
  120. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  121. package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
  122. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  123. package/geometry/operators/offsetOperator.d.ts +3 -3
  124. package/geometry/operators/overlapsOperator.d.ts +1 -1
  125. package/geometry/operators/projectOperator.d.ts +4 -6
  126. package/geometry/operators/proximityOperator.d.ts +2 -2
  127. package/geometry/operators/relateOperator.d.ts +1 -1
  128. package/geometry/operators/shapePreservingProjectOperator.d.ts +3 -3
  129. package/geometry/operators/simplifyOGCOperator.d.ts +3 -3
  130. package/geometry/operators/simplifyOperator.d.ts +3 -3
  131. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -3
  132. package/geometry/operators/touchesOperator.d.ts +1 -1
  133. package/geometry/operators/{support/proximityResult.d.ts → types.d.ts} +18 -3
  134. package/geometry/operators/unionOperator.d.ts +3 -3
  135. package/geometry/operators/withinOperator.d.ts +1 -1
  136. package/geometry/projection/projectBoundingSphere.js +1 -1
  137. package/geometry/support/curves/curveUtils.js +1 -1
  138. package/geometry/support/geodesicUtils.d.ts +15 -2
  139. package/geometry/support/jsonUtils.d.ts +1 -1
  140. package/geometry/support/meshUtils/types.d.ts +34 -0
  141. package/geometry/support/meshUtils.d.ts +4 -7
  142. package/geometry/support/sphere.js +1 -1
  143. package/geometry/support/webMercatorUtils.d.ts +1 -1
  144. package/geometry/types.d.ts +23 -1
  145. package/geometry.d.ts +1 -1
  146. package/interfaces.d.ts +69 -72
  147. package/kernel.js +1 -1
  148. package/layers/CSVLayer.d.ts +0 -2
  149. package/layers/CatalogLayer.d.ts +1 -1
  150. package/layers/FeatureLayer.d.ts +1 -1
  151. package/layers/GeoJSONLayer.d.ts +1 -1
  152. package/layers/KnowledgeGraphLayer.js +1 -1
  153. package/layers/LinkChartLayer.js +1 -1
  154. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  155. package/layers/OGCFeatureLayer.d.ts +1 -1
  156. package/layers/OrientedImageryLayer.d.ts +1 -3
  157. package/layers/ParquetLayer.d.ts +1 -1
  158. package/layers/WFSLayer.d.ts +1 -1
  159. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  160. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  161. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +3 -3
  162. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  163. package/layers/knowledgeGraph/layerUtils.js +1 -1
  164. package/layers/mixins/APIKeyMixin.d.ts +2 -2
  165. package/layers/mixins/ArcGISImageService.d.ts +4 -3
  166. package/layers/mixins/BlendLayer.d.ts +16 -15
  167. package/layers/mixins/DisplayFilteredLayer.d.ts +6 -3
  168. package/layers/mixins/FeatureEffectLayer.d.ts +23 -21
  169. package/layers/mixins/FeatureLayerBase.d.ts +23 -20
  170. package/layers/mixins/ImageryTileMixin.d.ts +5 -5
  171. package/layers/mixins/PortalLayer.d.ts +7 -7
  172. package/layers/mixins/RasterPresetRendererMixin.d.ts +6 -3
  173. package/layers/mixins/SceneService.d.ts +2 -2
  174. package/layers/mixins/TemporalLayer.d.ts +8 -7
  175. package/layers/mixins/TemporalSceneLayer.d.ts +2 -2
  176. package/layers/mixins/TrackableLayer.d.ts +4 -4
  177. package/layers/ogc/wfsUtils.d.ts +1 -1
  178. package/layers/raster/formats/Lerc.js +1 -1
  179. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +2 -2
  180. package/layers/support/DisplayFilterInfo.d.ts +7 -7
  181. package/layers/support/FeatureReductionCluster.d.ts +5 -5
  182. package/layers/support/FieldsIndex.d.ts +1 -2
  183. package/layers/support/RasterBandInfo.d.ts +1 -1
  184. package/layers/support/RasterInfo.d.ts +2 -2
  185. package/layers/support/RasterSensorInfo.d.ts +1 -1
  186. package/layers/support/Sublayer.d.ts +3 -3
  187. package/layers/support/SubtypeSublayer.d.ts +1 -1
  188. package/layers/support/TrackInfo.d.ts +2 -2
  189. package/layers/support/arcgisLayerUrl.js +1 -1
  190. package/layers/support/fieldUtils.d.ts +0 -1
  191. package/layers/support/source/QueryTableDataSource.d.ts +2 -2
  192. package/layers/support/types.d.ts +2 -2
  193. package/layers/types.d.ts +1 -1
  194. package/package.json +2 -2
  195. package/popup/FieldInfo.d.ts +8 -8
  196. package/popup/content/AttachmentsContent.d.ts +2 -2
  197. package/popup/content/CustomContent.d.ts +1 -1
  198. package/portal/interfaces.d.ts +2 -2
  199. package/portal/support/resourceUtils.d.ts +6 -7
  200. package/rest/featureService/types.d.ts +1 -1
  201. package/rest/geometryService.d.ts +2 -2
  202. package/rest/imageService.d.ts +1 -1
  203. package/rest/knowledgeGraph/GraphAnyValue.d.ts +1 -1
  204. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  205. package/rest/query.d.ts +1 -1
  206. package/rest/support/BufferParameters.d.ts +1 -1
  207. package/rest/support/DataLayer.d.ts +1 -1
  208. package/rest/support/DensifyParameters.d.ts +1 -1
  209. package/rest/support/DistanceParameters.d.ts +1 -1
  210. package/rest/support/FeatureSet.d.ts +2 -2
  211. package/rest/support/FindImagesParameters.d.ts +1 -1
  212. package/rest/support/GeneralizeParameters.d.ts +1 -1
  213. package/rest/support/IdentifyParameters.d.ts +1 -1
  214. package/rest/support/ImageGPSInfoParameters.d.ts +1 -1
  215. package/rest/support/ImageMeasureResultAreaValue.d.ts +1 -1
  216. package/rest/support/ImageToMapMultirayParameters.d.ts +1 -1
  217. package/rest/support/OffsetParameters.d.ts +1 -1
  218. package/rest/support/ProjectParameters.d.ts +1 -1
  219. package/rest/support/Query.d.ts +1 -1
  220. package/rest/support/QueryMixin.d.ts +1 -1
  221. package/rest/support/RelationParameters.d.ts +1 -1
  222. package/rest/support/RelationshipQuery.d.ts +1 -1
  223. package/rest/support/TopFeaturesQuery.d.ts +1 -1
  224. package/smartMapping/labels/bins.d.ts +3 -6
  225. package/smartMapping/labels/clusters.d.ts +2 -2
  226. package/smartMapping/popup/clusters.d.ts +4 -4
  227. package/smartMapping/popup/templates.d.ts +4 -4
  228. package/smartMapping/renderers/color.d.ts +6 -6
  229. package/smartMapping/renderers/size.d.ts +6 -6
  230. package/smartMapping/statistics/support/ageUtils.d.ts +5 -5
  231. package/smartMapping/statistics/types.d.ts +5 -5
  232. package/smartMapping/types.d.ts +9 -1
  233. package/support/revision.js +1 -1
  234. package/unionTypes.d.ts +1 -1
  235. package/views/2d/MapViewConstraints.d.ts +5 -4
  236. package/views/2d/engine/webgl/Painter.js +1 -1
  237. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/graph/GlslGraphWriter.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  242. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  243. package/views/2d/layers/features/PipelineConnectionHandlers.js +1 -1
  244. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  245. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  246. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  247. package/views/3d/layers/I3SMeshView3D.js +1 -1
  248. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  249. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  250. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  251. package/views/3d/layers/i3s/I3SNode.js +1 -1
  252. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  253. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  254. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  255. package/views/3d/support/ElevationRange.js +1 -1
  256. package/views/3d/terrain/TerrainSurface.js +1 -1
  257. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  258. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  259. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  260. package/views/BreakpointsOwner.d.ts +1 -1
  261. package/views/LinkChartView.d.ts +1 -2
  262. package/views/MapView.d.ts +1 -2
  263. package/views/SceneView.d.ts +1 -2
  264. package/views/View.d.ts +1 -1
  265. package/views/Viewport2DMixin.d.ts +1 -1
  266. package/views/draw/MultipointDrawAction.d.ts +1 -1
  267. package/views/draw/MultipointDrawAction.js +1 -1
  268. package/views/draw/PointDrawAction.d.ts +1 -1
  269. package/views/draw/PointDrawAction.js +1 -1
  270. package/views/draw/PolygonDrawAction.d.ts +1 -1
  271. package/views/draw/PolygonDrawAction.js +1 -1
  272. package/views/draw/PolylineDrawAction.d.ts +1 -1
  273. package/views/draw/PolylineDrawAction.js +1 -1
  274. package/views/draw/SegmentDrawAction.d.ts +1 -1
  275. package/views/draw/SegmentDrawAction.js +1 -1
  276. package/views/input/{IViewEvents.js → mouseButtons.js} +1 -1
  277. package/views/input/types.d.ts +602 -1
  278. package/views/layers/BuildingSceneLayerView.d.ts +1 -1
  279. package/views/layers/FeatureLayerViewMixin.d.ts +1 -1
  280. package/views/layers/ImageryLayerViewMixin.d.ts +1 -1
  281. package/views/layers/MediaLayerViewMixin.d.ts +1 -1
  282. package/views/layers/PointCloudLayerView.d.ts +1 -1
  283. package/views/layers/SceneLayerView.d.ts +2 -2
  284. package/views/types.d.ts +148 -2
  285. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +1 -1
  286. package/webscene/support/FeatureReferenceObjectId.d.ts +1 -1
  287. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -2
  288. package/widgets/BasemapLayerList.d.ts +3 -4
  289. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -1
  290. package/widgets/CatalogLayerList.d.ts +2 -4
  291. package/widgets/Directions/DirectionsViewModel.d.ts +1 -1
  292. package/widgets/Editor/types.d.ts +1 -1
  293. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  294. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +46 -5
  295. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  296. package/widgets/FeatureTable/FieldColumn.js +1 -1
  297. package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
  298. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  299. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  300. package/widgets/FeatureTable/VisibleElements.d.ts +30 -9
  301. package/widgets/FeatureTable/VisibleElements.js +1 -1
  302. package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +1 -1
  303. package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -0
  304. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  305. package/widgets/FeatureTable/support/interfaces.d.ts +2 -2
  306. package/widgets/FeatureTable.d.ts +46 -5
  307. package/widgets/FeatureTable.js +1 -1
  308. package/widgets/LayerList/LayerListViewModel.d.ts +9 -10
  309. package/widgets/LayerList/ListItem.d.ts +9 -11
  310. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  311. package/widgets/LayerList.d.ts +7 -4
  312. package/widgets/Legend/LegendViewModel.d.ts +5 -5
  313. package/widgets/Legend/support/ActiveLayerInfo.d.ts +5 -5
  314. package/widgets/Legend.d.ts +4 -4
  315. package/widgets/Popup/types.d.ts +3 -3
  316. package/widgets/Popup.d.ts +3 -3
  317. package/widgets/TableList/TableListViewModel.d.ts +2 -4
  318. package/widgets/TableList.d.ts +1 -1
  319. package/widgets/UtilityNetworkTrace/types.d.ts +1 -1
  320. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +0 -1
  321. package/assets/esri/core/workers/chunks/30184e39129d9c66ea54.js +0 -1
  322. package/assets/esri/core/workers/chunks/5340887a4a48bde3407a.js +0 -1
  323. package/assets/esri/core/workers/chunks/537de53ef1e9101468f5.js +0 -1
  324. package/assets/esri/core/workers/chunks/94f02082a006003ef5a9.js +0 -1
  325. package/assets/esri/core/workers/chunks/a1f264abbd6354c333bf.js +0 -1
  326. package/assets/esri/core/workers/chunks/d3db7244fac7398cc700.js +0 -1
  327. package/assets/esri/core/workers/chunks/d94a2ad5a91de7086fbe.js +0 -1
  328. package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +0 -1
  329. package/geometry/geodesicUtils.d.ts +0 -19
  330. package/geometry/operators/support/geodeticCurveType.d.ts +0 -2
  331. package/geometry/operators/support/projectionTransformation.d.ts +0 -16
  332. package/geometry/support/MeshVertexSpace.d.ts +0 -4
  333. package/geometry/support/meshUtils/elevation.d.ts +0 -16
  334. package/geometry/support/meshUtils/elevationSampler.d.ts +0 -9
  335. package/geometry/support/meshUtils/georeference.d.ts +0 -10
  336. package/geometry/support/typeUtils.d.ts +0 -16
  337. package/smartMapping/popup/support/utils.d.ts +0 -13
  338. package/smartMapping/support/binningUtils.d.ts +0 -11
  339. package/smartMapping/support/clusterUtils.d.ts +0 -11
  340. package/smartMapping/support/utils.d.ts +0 -4
  341. package/views/2d/constraints/GeometryConstraint.d.ts +0 -4
  342. package/views/HitTestItem3D.d.ts +0 -20
  343. package/views/HitTestOptions.d.ts +0 -25
  344. package/views/IBreakpointsOwner.d.ts +0 -55
  345. package/views/IObjectId.d.ts +0 -2
  346. package/views/ISceneView.d.ts +0 -5
  347. package/views/IView.d.ts +0 -43
  348. package/views/input/IViewEvents.d.ts +0 -602
  349. /package/views/draw/input/{CursorUpdateEvents.d.ts → CursorUpdateEvent.d.ts} +0 -0
  350. /package/views/draw/input/{CursorUpdateEvents.js → CursorUpdateEvent.js} +0 -0
  351. /package/views/layers/{HighlightableLayerView.d.ts → types.d.ts} +0 -0
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @since 4.31
9
9
  */
10
- import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.js";
10
+ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
11
11
 
12
12
  /**
13
13
  * Performs the simplify operation on a single geometry.
@@ -19,7 +19,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
19
19
  * const simplified = simplifyOperator.execute(polyline);
20
20
  * console.log(simplifyOperator.isSimple(simplified)); // true
21
21
  */
22
- export function execute(geometry: GeometryUnion): GeometrySansMeshUnion | null | undefined;
22
+ export function execute(geometry: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
23
23
 
24
24
  /**
25
25
  * Performs the simplify operation on the geometry set.
@@ -28,7 +28,7 @@ export function execute(geometry: GeometryUnion): GeometrySansMeshUnion | null |
28
28
  * All the geometries must have the same spatial reference.
29
29
  * @returns Returns an array whose elements may either be simplified geometries or null.
30
30
  */
31
- export function executeMany(geometries: GeometryUnion[]): (GeometrySansMeshUnion | null | undefined)[];
31
+ export function executeMany(geometries: GeometryUnion[]): (GeometryWithoutMeshUnion | null | undefined)[];
32
32
 
33
33
  /**
34
34
  * Indicates if the given geometry is non-OGC topologically simple. This operation takes into account z-values.
@@ -10,7 +10,7 @@
10
10
  * @since 4.31
11
11
  * @see [Wikipedia - Symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
12
12
  */
13
- import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.js";
13
+ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
14
14
 
15
15
  /**
16
16
  * Performs the symmetric difference (XOR) operation on two geometries.
@@ -22,7 +22,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
22
22
  * // Calculate the symmetric difference of two polygons.
23
23
  * const differencePolygon = symmetricDifferenceOperator.execute(polygon1, polygon2);
24
24
  */
25
- export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnion): GeometrySansMeshUnion;
25
+ export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnion): GeometryWithoutMeshUnion;
26
26
 
27
27
  /**
28
28
  * Performs the symmetric difference (XOR) operation on every geometry in `inputGeometries` with `rightGeometry`.
@@ -31,7 +31,7 @@ export function execute(leftGeometry: GeometryUnion, rightGeometry: GeometryUnio
31
31
  * @param rightGeometry - The geometry being XOR'd with the `inputGeometries`.
32
32
  * @returns Returns an array of the result geometries.
33
33
  */
34
- export function executeMany(inputGeometries: GeometryUnion[], rightGeometry: GeometryUnion): GeometrySansMeshUnion[];
34
+ export function executeMany(inputGeometries: GeometryUnion[], rightGeometry: GeometryUnion): GeometryWithoutMeshUnion[];
35
35
 
36
36
  /**
37
37
  * Indicates if the operator supports input geometries that contain curves.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @since 4.31
7
7
  */
8
- import type { GeometryUnion } from "../support/typeUtils.js";
8
+ import type { GeometryUnion } from "../types.js";
9
9
 
10
10
  /**
11
11
  * 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.
@@ -1,4 +1,6 @@
1
- import type Point from "../../Point.js";
1
+ import type Extent from "../Extent.js";
2
+ import type Point from "../Point.js";
3
+ import type GeographicTransformation from "./support/GeographicTransformation.js";
2
4
 
3
5
  /** Object returned from the [getNearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate), {@link geometry/operators/proximityOperator#nearestVegetNearestVertex getNearestVertex()}, and [getNearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices) methods. */
4
6
  export interface ProximityResult {
@@ -15,10 +17,23 @@ export interface ProximityResult {
15
17
  * Indicates if the nearest coordinate is on the right side or left side of the input point.
16
18
  *
17
19
  * > [!WARNING]
18
- * >
19
- * > Note: This property will only be present when `calculateLeftRightSide` is set to `true` when calling `getNearestCoordinate()`.
20
+ * > This property will only be present when `calculateLeftRightSide` is set to `true` when calling `getNearestCoordinate()`.
20
21
  */
21
22
  isRightSide?: boolean;
22
23
  /** The index of the vertex on the geometry that is closest to the input point. */
23
24
  vertexIndex: number;
25
+ }
26
+
27
+ export interface ProjectOptions {
28
+ /**
29
+ * An extent used to help pick the correct transform.
30
+ * This is not used if the `geographicTransformation` option is provided.
31
+ * The extent's spatial reference should be the same as the `geometries` spatial reference.
32
+ */
33
+ readonly areaOfInterestExtent?: Extent | null;
34
+ /**
35
+ * The geographic transformation used to transform the geometries.
36
+ * Specify this parameter to project a geometry when the default transformation is not appropriate for your requirements.
37
+ */
38
+ readonly geographicTransformation?: GeographicTransformation | null;
24
39
  }
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @since 4.31
7
7
  */
8
- import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.js";
8
+ import type { GeometryUnion, GeometryWithoutMeshUnion } from "../types.js";
9
9
 
10
10
  /**
11
11
  * Perform a topological union operation on two geometries.
@@ -17,7 +17,7 @@ import type { GeometryUnion, GeometrySansMeshUnion } from "../support/typeUtils.
17
17
  * // Return the union of two polygons
18
18
  * const union = unionOperator.execute(polygon1, polygon2);
19
19
  */
20
- export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometrySansMeshUnion | null | undefined;
20
+ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): GeometryWithoutMeshUnion | null | undefined;
21
21
 
22
22
  /**
23
23
  * Perform a topological union operation on a geometry set.
@@ -26,7 +26,7 @@ export function execute(geometry1: GeometryUnion, geometry2: GeometryUnion): Geo
26
26
  * All the geometries must have the same spatial reference.
27
27
  * @returns Returns the union of `geometries` as a geometry or null.
28
28
  */
29
- export function executeMany(geometries: GeometryUnion[]): GeometrySansMeshUnion | null | undefined;
29
+ export function executeMany(geometries: GeometryUnion[]): GeometryWithoutMeshUnion | null | undefined;
30
30
 
31
31
  /**
32
32
  * Indicates if the operator supports input geometries that contain curves.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @since 4.31
9
9
  */
10
- import type { GeometryUnion } from "../support/typeUtils.js";
10
+ import type { GeometryUnion } from "../types.js";
11
11
 
12
12
  /**
13
13
  * 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.
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{deg2rad as e}from"../../core/mathUtils.js";import{create as r}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getProjectorClassification as t,copy3 as n,projectionTable as s,wgs84ToWebMercator as c}from"./projectors.js";import{earth as i}from"../support/Ellipsoid.js";function o(e,r,o,l){if(null==e||null==r||null==l)return!1;const f=t(r,l);if(null==f?.projector)return!1;if(f.projector===n)return o.copy(e),!0;const{source:p,dest:d,projector:m}=f;if(3===d.spatialReferenceId){const r=s[p.spatialReferenceId][2];return null!=r&&(r(e.center,0,u,0),c(u,0,o.center,0),o.radius=a(u[1],e.center[2],e.radius,i.radius),!0)}if(2!==p.spatialReferenceId&&5!==p.spatialReferenceId||11!==d.spatialReferenceId){m(e.center,0,o.center,0);const r=p.metersPerUnit??1,t=d.metersPerUnit??1;o.radius=e.radius*r/t}else{const r=s[p.spatialReferenceId][1],t=s[1][11];let n=e.radius;null!=r&&null!=t&&(n=a(e.center[1],e.center[2],e.radius,i.radius)),m(e.center,0,o.center,0),o.radius=n}return!0}function a(e,r,t,n){const s=n+r;if(s<n/2||t>s)return Number.MAX_VALUE;const c=Math.abs(l*e)+Math.asin(t/s);return c>=Math.PI/2?Number.MAX_VALUE:t/Math.cos(c)}const u=r(),l=e(1);export{o as projectBoundingSphere};
5
+ import{deg2rad as e}from"../../core/mathUtils.js";import{create as r}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getProjectorClassification as t,copy3 as n,projectionTable as s,wgs84ToWebMercator as c}from"./projectors.js";import{earth as i}from"../support/Ellipsoid.js";function o(e,r,o,l){if(null==e||null==r||null==l)return!1;const f=t(r,l);if(null==f?.projector)return!1;if(f.projector===n)return o.copyFrom(e),!0;const{source:p,dest:d,projector:m}=f;if(3===d.spatialReferenceId){const r=s[p.spatialReferenceId][2];return null!=r&&(r(e.center,0,u,0),c(u,0,o.center,0),o.radius=a(u[1],e.center[2],e.radius,i.radius),!0)}if(2!==p.spatialReferenceId&&5!==p.spatialReferenceId||11!==d.spatialReferenceId){m(e.center,0,o.center,0);const r=p.metersPerUnit??1,t=d.metersPerUnit??1;o.radius=e.radius*r/t}else{const r=s[p.spatialReferenceId][1],t=s[1][11];let n=e.radius;null!=r&&null!=t&&(n=a(e.center[1],e.center[2],e.radius,i.radius)),m(e.center,0,o.center,0),o.radius=n}return!0}function a(e,r,t,n){const s=n+r;if(s<n/2||t>s)return Number.MAX_VALUE;const c=Math.abs(l*e)+Math.asin(t/s);return c>=Math.PI/2?Number.MAX_VALUE:t/Math.cos(c)}const u=r(),l=e(1);export{o as projectBoundingSphere};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- function n(n){return"curveRings"in n&&!!n.curveRings?.length||"curvePaths"in n&&!!n.curvePaths?.length}function r(n){return"curveRings"in n?n.curveRings:n.curvePaths}function t(n){return"b"in n}function u(n){return"c"in n}function i(n){return Array.isArray(n)}function e(n){return"a"in n}function c(n){return"a"in n&&4===n.a.length}function f(n){return"a"in n&&7===n.a.length}function o(n,r){return i(n)?i(r):t(n)?t(r):u(n)?u(r):c(n)?c(r):!!f(n)&&f(r)}function a(n){return i(n)?n:t(n)?n.b[0]:u(n)?n.c[0]:n.a[0]}function s(n){if(t(n)){const[r,t,u]=n.b;return{b:[[...r],[...t],[...u]]}}if(u(n)){const[r,t]=n.c;return{c:[[...r],[...t]]}}if(i(n))return[...n];if(c(n)){const[r,t,u,i]=n.a;return{a:[[...r],[...t],u,i]}}if(f(n)){const[r,t,u,i,e,c,f]=n.a;return{a:[[...r],[...t],u,i,e,c,f]}}return n}export{s as cloneCurve,o as curvesAreSameType,r as getCurves,a as getEndpoint,t as isBezierCurve,u as isCircularArc,i as isCoordinate,n as isCurvedGeometry,e as isEllipticArc,c as isEllipticArc4,f as isEllipticArc7};
5
+ function n(n){return"curveRings"in n&&!!n.curveRings?.length||"curvePaths"in n&&!!n.curvePaths?.length}function r(n){return"curveRings"in n?n.curveRings:n.curvePaths}function t(n){return"b"in n}function u(n){return"c"in n}function i(n){return Array.isArray(n)}function e(n){return"a"in n}function c(n){return"a"in n&&4===n.a.length}function o(n){return"a"in n&&7===n.a.length}function s(n,r){return i(n)?i(r):t(n)?t(r):u(n)?u(r):c(n)?c(r):!!o(n)&&o(r)}function f(n){return i(n)?n:t(n)?n.b[0]:u(n)?n.c[0]:n.a[0]}function a(n){if(t(n)){const[r,t,u]=n.b;return{b:[[...r],[...t],[...u]]}}if(u(n)){const[r,t]=n.c;return{c:[[...r],[...t]]}}if(i(n))return[...n];if(c(n)){const[r,t,u,i]=n.a;return{a:[[...r],[...t],u,i]}}if(o(n)){const[r,t,u,i,e,c,o]=n.a;return{a:[[...r],[...t],u,i,e,c,o]}}return n}function g(r){return n(r)?"curveRings"in r?r.curveRings:r.curvePaths:"rings"in r?r.rings:r.paths}function v(n){return n.some(n=>!i(n))}export{a as cloneCurve,s as curvesAreSameType,r as getCurves,f as getEndpoint,g as getPaths,t as isBezierCurve,u as isCircularArc,i as isCoordinate,n as isCurvedGeometry,e as isEllipticArc,c as isEllipticArc4,o as isEllipticArc7,v as pathHasCurves};
@@ -10,7 +10,6 @@ import type Point from "../Point.js";
10
10
  import type Polygon from "../Polygon.js";
11
11
  import type Polyline from "../Polyline.js";
12
12
  import type { AreaUnit, LengthUnit } from "../../core/units.js";
13
- import type { InverseGeodeticSolverResult } from "../geodesicUtils.js";
14
13
 
15
14
  /**
16
15
  * Geodetically computes the area for one or more polygons.
@@ -153,4 +152,18 @@ export function geodesicDistance(from: Point, to: Point, unit?: LengthUnit): Inv
153
152
  * const { latitude, longitude } = destination;
154
153
  * console.log("Latitude: ", latitude, ", Longitude: ", longitude);
155
154
  */
156
- export function pointFromDistance(point: Point, distance: number, azimuth: number): Point;
155
+ export function pointFromDistance(point: Point, distance: number, azimuth: number): Point;
156
+
157
+ /**
158
+ * Computed distance and direction between two known locations.
159
+ *
160
+ * @deprecated since version 4.33. Use [geodeticUtilsOperator's CalculateDistanceAndAzimuthResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticUtilsOperator.html#CalculateDistanceAndAzimuthResult) instead.
161
+ */
162
+ export interface InverseGeodeticSolverResult {
163
+ /** The azimuth (or "bearing") in degrees. Value will be in the range of 0-360°. */
164
+ readonly azimuth?: number;
165
+ /** The distance between the two locations. */
166
+ readonly distance: number;
167
+ /** The azimuth in degrees in the reverse direction. Value will be in the range of 0-360°. */
168
+ readonly reverseAzimuth?: number;
169
+ }
@@ -5,7 +5,7 @@
5
5
  * @see [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html)
6
6
  * @see [Using fromJSON() to create a class instance](https://developers.arcgis.com/javascript/latest/using-fromjson)
7
7
  */
8
- import type { GeometryUnion } from "./typeUtils.js";
8
+ import type { GeometryUnion } from "../types.js";
9
9
  import type { GeometryType } from "../../portal/jsonTypes.js";
10
10
 
11
11
  /**
@@ -1,7 +1,9 @@
1
1
  import type Point from "../../Point.js";
2
+ import type MeshMaterial from "../MeshMaterial.js";
2
3
  import type { AbortOptions } from "../../../core/promiseUtils.js";
3
4
  import type { LengthUnit } from "../../../core/units.js";
4
5
  import type { MeshMaterialProperties } from "../MeshMaterial.js";
6
+ import type { DemResolution } from "../../../layers/support/ElevationQueryContext.js";
5
7
 
6
8
  export interface VertexSpaceParameters {
7
9
  /** The unit of the size (defaults to the unit of the location's spatial reference). */
@@ -131,6 +133,28 @@ export interface CenterAtParameters extends GeographicParameters {
131
133
  origin?: Point;
132
134
  }
133
135
 
136
+ export interface CreateFromElevationParameters extends AbortOptions {
137
+ /**
138
+ * Controls the horizontal resolution (cell size)
139
+ * in meters from which elevation data is sampled (defaults to `auto`). See [ElevationLayer#queryElevation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
140
+ * for more details on the different settings.
141
+ *
142
+ * @default "auto"
143
+ */
144
+ demResolution?: DemResolution;
145
+ /** The material to be used for the mesh. */
146
+ material?: MeshMaterial;
147
+ }
148
+
149
+ export interface CreateElevationSamplerParameters {
150
+ /**
151
+ * The value to use when there is no data available.
152
+ *
153
+ * @default 0
154
+ */
155
+ noDataValue?: number;
156
+ }
157
+
134
158
  export interface Size {
135
159
  /** The depth of the created mesh. */
136
160
  depth?: number;
@@ -156,4 +180,14 @@ export interface ExportGLTFOptions extends AbortOptions {
156
180
  * in the binary glTF model.
157
181
  */
158
182
  origin: Point;
183
+ }
184
+
185
+ /** Represents the position and normal vertex attribute buffers of a mesh. */
186
+ export interface VertexAttributes {
187
+ /** The normal buffer. */
188
+ normal?: Float32Array<ArrayBuffer> | null;
189
+ /** The position buffer. */
190
+ position: Float64Array<ArrayBuffer>;
191
+ /** The tangent buffer. */
192
+ tangent?: Float32Array<ArrayBuffer> | null;
159
193
  }
@@ -10,11 +10,8 @@ import type Point from "../Point.js";
10
10
  import type ElevationLayer from "../../layers/ElevationLayer.js";
11
11
  import type ElevationSampler from "../../layers/support/ElevationSampler.js";
12
12
  import type { AbortOptions } from "../../core/promiseUtils.js";
13
- import type { MeshVertexSpace } from "./MeshVertexSpace.js";
14
- import type { CreateParams as ElevationCreateParams } from "./meshUtils/elevation.js";
15
- import type { CreateParameters as CreateElevationSamplerParameters } from "./meshUtils/elevationSampler.js";
16
- import type { VertexAttributes } from "./meshUtils/georeference.js";
17
- import type { GeographicParameters } from "./meshUtils/types.js";
13
+ import type { MeshVertexSpaceUnion } from "../types.js";
14
+ import type { VertexAttributes, GeographicParameters, CreateElevationSamplerParameters, CreateFromElevationParameters } from "./meshUtils/types.js";
18
15
 
19
16
  /**
20
17
  * Creates a mesh geometry by sampling elevation data from an elevation service on a regular grid.
@@ -36,7 +33,7 @@ import type { GeographicParameters } from "./meshUtils/types.js";
36
33
  * // Do something with the mesh
37
34
  * });
38
35
  */
39
- export function createFromElevation(source: ElevationLayer | Ground | ElevationSampler, extent: Extent, options?: ElevationCreateParams): Promise<Mesh>;
36
+ export function createFromElevation(source: ElevationLayer | Ground | ElevationSampler, extent: Extent, options?: CreateFromElevationParameters): Promise<Mesh>;
40
37
 
41
38
  /**
42
39
  * Creates an elevation sampler from a mesh. The sampler can be used to query elevation values
@@ -146,4 +143,4 @@ export function merge(geometries: Mesh[]): Mesh | null | undefined;
146
143
  *
147
144
  * view.graphics.add(new Graphic({ geometry: highestPoint }));
148
145
  */
149
- export function convertVertexSpace(mesh: Mesh, targetVertexSpace: MeshVertexSpace, options?: AbortOptions): Promise<Mesh>;
146
+ export function convertVertexSpace(mesh: Mesh, targetVertexSpace: MeshVertexSpaceUnion, options?: AbortOptions): Promise<Mesh>;
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import"../../core/has.js";import"../../core/Logger.js";import{acosClamped as t}from"../../core/mathUtils.js";import{getEpsilon as e}from"../../core/libs/gl-matrix-2/math/common.js";import{fromRotation as r}from"../../core/libs/gl-matrix-2/math/mat4.js";import{d as s,G as i,s as n,e as o,j as c,b as a,i as h,f as u,p as l,D as m,l as d,c as g,F as f,n as p,h as M}from"../../chunks/vec32.js";import{fromValues as j,fromArray as y,clone as _,create as x}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as b}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";import{isVec3 as S}from"../../core/libs/gl-matrix-2/types/vec3.js";import{isVec4 as v}from"../../core/libs/gl-matrix-2/types/vec4.js";import{fromPoints as P,closestPoint as A}from"./ray.js";import{cartesianToSpherical as R}from"./sphereUtils.js";import{angle as q}from"./vector.js";import{sv3d as O,sm4d as w}from"./vectorStacks.js";class E{constructor(t=0,e=0,r=0,s=0){this.radius=s,"number"==typeof t?this._center=j(t,e,r):S(t)||v(t)?(this._center=y(t),this.radius=4===t.length?t[3]:e):(this._center=_(t.center),this.radius=t.radius)}get center(){return this._center}set center(t){s(this.center,t)}exactEquals(t){return i(this._center,t.center)&&this.radius===t.radius}copy(t){return t!==this&&(s(this._center,t.center),this.radius=t.radius),this}clone(){return new E(this.center,this.radius)}toVec4(){return b(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return n(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,C))return!1;let{t0:r,t1:s}=C;if((r<0||s<r&&s>0)&&(r=s),r<0)return!1;if(e){const{origin:s,direction:i}=t;e[0]=s[0]+i[0]*r,e[1]=s[1]+i[1]*r,e[2]=s[2]+i[2]*r}return!0}intersectLine(t,r){const s=P(t,r);if(!this._intersect(s,C))return[];const{origin:i,direction:n}=s,{t0:o,t1:c}=C,a=t=>{const e=x();return g(e,i,n,t),this.projectPoint(e,e)};return Math.abs(o-c)<e()?[a(o)]:[a(o),a(c)]}_intersect(t,e){const{origin:r,direction:s}=t,i=L;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const n=s[0]*s[0]+s[1]*s[1]+s[2]*s[2];if(0===n)return!1;const o=2*(s[0]*i[0]+s[1]*i[1]+s[2]*i[2]),c=o*o-4*n*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(c<0)return!1;const a=Math.sqrt(c);return e.t0=(-o-a)/(2*n),e.t1=(-o+a)/(2*n),!0}projectPoint(t,e){const r=o(O.get(),t,this.center),s=c(O.get(),r,this.radius/a(r));return h(e,s,this.center)}closestPointOnSilhouette(t,e){const s=O.get(),i=w.get();u(s,t.origin,t.direction),u(e,s,t.origin),c(e,e,1/a(e)*this.radius);const n=this._angleToSilhouette(t.origin),o=q(t.origin,e);return r(i,o+n,s),l(e,e,i),e}frustumCoverage(t,e,r){const s=this.radius,i=s*s,n=t+.5*Math.PI,o=e*e+i-2*Math.cos(n)*e*s,c=Math.sqrt(o),a=o-i;if(a<=0)return.5;const h=Math.sqrt(a),u=Math.acos(h/c)-Math.asin(s/(c/Math.sin(n)));return Math.min(1,(u+.5*r)/r)}_angleToSilhouette(e){const r=o(O.get(),e,this.center),s=a(r),i=this.radius,n=i+Math.abs(i-s);return t(i/n)}union(t){const e=m(this._center,t.center),r=this.radius,s=t.radius;return e+s<r?this:e+r<s?(this.copy(t),this):(d(this._center,this._center,t.center,(e+s-r)/(2*e)),this.radius=(e+r+s)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}}const T={create:t=>new E(t),copy:(t,e)=>e.copy(t),setExtent:(t,e,r)=>r.copy(t),getExtent:(t,e)=>e,elevate:(t,e,r)=>(r.copy(t),r.radius+=e,r),axisAt(t,e,r,s){const i=o(U,e,t.center);switch(r){case 0:{const t=R(i,U)[2];return M(s,-Math.sin(t),Math.cos(t),0)}case 1:{const t=R(i,U),e=t[1],r=t[2],n=Math.sin(e);return M(s,-n*Math.cos(r),-n*Math.sin(r),Math.cos(e))}case 2:return p(s,i);default:return}},altitudeAt(t,e){const r=o(V,e,t.center);return a(r)-t.radius},setAltitudeAt(t,e,r,s){const i=T.altitudeAt(t,e),n=T.axisAt(t,e,2,V),o=c(V,n,r-i);return h(s,e,o)},intersectRay:(t,e,r)=>t.intersectRay(e,r),closestPoint:(t,e,r)=>t.intersectRay(e,r)?r:(A(e,t.center,r),t.projectPoint(r,r)),intersectRayClosestSilhouette(t,e,r){if(t.intersectRay(e,r))return r;const s=t.closestPointOnSilhouette(e,O.get());return h(r,e.origin,c(O.get(),e.direction,m(e.origin,s)/a(e.direction))),r},closestPointOnSilhouette:(t,e,r)=>t.closestPointOnSilhouette(e,r),distanceToSilhouette(t,e){const r=o(O.get(),e,t.center),s=f(r),i=t.radius**2;return Math.sqrt(Math.abs(s-i))}},k=new E,C={t0:0,t1:0},L=x(),U=x(),V=x();export{k as NullSphere,E as Sphere,T as sphereCSO};
5
+ import"../../core/has.js";import"../../core/Logger.js";import{acosClamped as t}from"../../core/mathUtils.js";import{getEpsilon as e}from"../../core/libs/gl-matrix-2/math/common.js";import{fromRotation as r}from"../../core/libs/gl-matrix-2/math/mat4.js";import{d as s,G as i,s as n,e as o,j as c,b as a,i as h,f as u,p as m,D as l,l as d,c as g,F as f,n as p,h as M}from"../../chunks/vec32.js";import{fromValues as j,fromArray as y,clone as _,create as x}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as b}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";import{isVec3 as v}from"../../core/libs/gl-matrix-2/types/vec3.js";import{isVec4 as S}from"../../core/libs/gl-matrix-2/types/vec4.js";import{fromPoints as P,closestPoint as A}from"./ray.js";import{cartesianToSpherical as F}from"./sphereUtils.js";import{angle as R}from"./vector.js";import{sv3d as q,sm4d as O}from"./vectorStacks.js";class w{constructor(t=0,e=0,r=0,s=0){this.radius=s,"number"==typeof t?this._center=j(t,e,r):v(t)||S(t)?(this._center=y(t),this.radius=4===t.length?t[3]:e):(this._center=_(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){s(this.center,t)}exactEquals(t){return i(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&(s(this._center,t.center),this.radius=t.radius),this}clone(){return new w(this.center,this.radius)}toVec4(){return b(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return n(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,V))return!1;let{t0:r,t1:s}=V;if((r<0||s<r&&s>0)&&(r=s),r<0)return!1;if(e){const{origin:s,direction:i}=t;e[0]=s[0]+i[0]*r,e[1]=s[1]+i[1]*r,e[2]=s[2]+i[2]*r}return!0}intersectLine(t,r){const s=P(t,r);if(!this._intersect(s,V))return[];const{origin:i,direction:n}=s,{t0:o,t1:c}=V,a=t=>{const e=x();return g(e,i,n,t),this.projectPoint(e,e)};return Math.abs(o-c)<e()?[a(o)]:[a(o),a(c)]}_intersect(t,e){const{origin:r,direction:s}=t,i=k;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const n=s[0]*s[0]+s[1]*s[1]+s[2]*s[2];if(0===n)return!1;const o=2*(s[0]*i[0]+s[1]*i[1]+s[2]*i[2]),c=o*o-4*n*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(c<0)return!1;const a=Math.sqrt(c);return e.t0=(-o-a)/(2*n),e.t1=(-o+a)/(2*n),!0}projectPoint(t,e){const r=o(q.get(),t,this.center),s=c(q.get(),r,this.radius/a(r));return h(e,s,this.center)}closestPointOnSilhouette(t,e){const s=q.get(),i=O.get();u(s,t.origin,t.direction),u(e,s,t.origin),c(e,e,1/a(e)*this.radius);const n=this._angleToSilhouette(t.origin),o=R(t.origin,e);return r(i,o+n,s),m(e,e,i),e}frustumCoverage(t,e,r){const s=this.radius,i=s*s,n=t+.5*Math.PI,o=e*e+i-2*Math.cos(n)*e*s,c=Math.sqrt(o),a=o-i;if(a<=0)return.5;const h=Math.sqrt(a),u=Math.acos(h/c)-Math.asin(s/(c/Math.sin(n)));return Math.min(1,(u+.5*r)/r)}_angleToSilhouette(e){const r=o(q.get(),e,this.center),s=a(r),i=this.radius,n=i+Math.abs(i-s);return t(i/n)}union(t){const e=l(this._center,t.center),r=this.radius,s=t.radius;return e+s<r?this:e+r<s?(this.copyFrom(t),this):(d(this._center,this._center,t.center,(e+s-r)/(2*e)),this.radius=(e+r+s)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}}const E={create:t=>new w(t),copy:(t,e)=>e.copyFrom(t),setExtent:(t,e,r)=>r.copyFrom(t),getExtent:(t,e)=>e,elevate:(t,e,r)=>(r.copyFrom(t),r.radius+=e,r),axisAt(t,e,r,s){const i=o(C,e,t.center);switch(r){case 0:{const t=F(i,C)[2];return M(s,-Math.sin(t),Math.cos(t),0)}case 1:{const t=F(i,C),e=t[1],r=t[2],n=Math.sin(e);return M(s,-n*Math.cos(r),-n*Math.sin(r),Math.cos(e))}case 2:return p(s,i);default:return}},altitudeAt(t,e){const r=o(L,e,t.center);return a(r)-t.radius},setAltitudeAt(t,e,r,s){const i=E.altitudeAt(t,e),n=E.axisAt(t,e,2,L),o=c(L,n,r-i);return h(s,e,o)},intersectRay:(t,e,r)=>t.intersectRay(e,r),closestPoint:(t,e,r)=>t.intersectRay(e,r)?r:(A(e,t.center,r),t.projectPoint(r,r)),intersectRayClosestSilhouette(t,e,r){if(t.intersectRay(e,r))return r;const s=t.closestPointOnSilhouette(e,q.get());return h(r,e.origin,c(q.get(),e.direction,l(e.origin,s)/a(e.direction))),r},closestPointOnSilhouette:(t,e,r)=>t.closestPointOnSilhouette(e,r),distanceToSilhouette(t,e){const r=o(q.get(),e,t.center),s=f(r),i=t.radius**2;return Math.sqrt(Math.abs(s-i))}},T=new w,V={t0:0,t1:0},k=x(),C=x(),L=x();export{T as NullSphere,w as Sphere,E as sphereCSO};
@@ -11,7 +11,7 @@
11
11
  * @see [Sample - CoordinateConversion widget - Custom Formats](https://developers.arcgis.com/javascript/latest/sample-code/widgets-coordinateconversion-custom/)
12
12
  */
13
13
  import type SpatialReference from "../SpatialReference.js";
14
- import type { GeometryUnion } from "./typeUtils.js";
14
+ import type { GeometryUnion } from "../types.js";
15
15
 
16
16
  /**
17
17
  * Returns `true` if the `source` spatial reference can be projected to the `target` spatial reference with the [project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#project) function, or
@@ -1,3 +1,23 @@
1
+ import type Extent from "./Extent.js";
2
+ import type Mesh from "./Mesh.js";
3
+ import type Multipoint from "./Multipoint.js";
4
+ import type Point from "./Point.js";
5
+ import type Polygon from "./Polygon.js";
6
+ import type Polyline from "./Polyline.js";
7
+ import type MeshGeoreferencedVertexSpace from "./support/MeshGeoreferencedVertexSpace.js";
8
+ import type MeshLocalVertexSpace from "./support/MeshLocalVertexSpace.js";
9
+
10
+ export type FeatureGeometryType = "point" | "multipoint" | "polyline" | "polygon";
11
+
12
+ export type GeometryType = "point" | "multipoint" | "polyline" | "polygon" | "extent" | "mesh";
13
+
14
+ export type GeometryUnion = Extent | Multipoint | Point | Polygon | Polyline | Mesh;
15
+
16
+ export type GeometryWithoutMeshUnion = Extent | Multipoint | Point | Polygon | Polyline;
17
+
18
+ export type CurveType = "circular-arc" | "elliptic-arc" | "cubic-bezier";
19
+
20
+ export type GeodeticCurveType = "geodesic" | "loxodrome" | "great-elliptic" | "normal-section" | "shape-preserving";
1
21
 
2
22
  export type LatitudeLongitudeFormat = "dd" | "ddm" | "dms";
3
23
 
@@ -11,4 +31,6 @@ export interface CompressedTextureData {
11
31
  type: "encoded-mesh-texture";
12
32
  }
13
33
 
14
- export type MeshTextureData = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageData | CompressedTextureData;
34
+ export type MeshTextureData = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageData | CompressedTextureData;
35
+
36
+ export type MeshVertexSpaceUnion = MeshGeoreferencedVertexSpace | MeshLocalVertexSpace;
package/geometry.d.ts CHANGED
@@ -42,7 +42,7 @@ import type PointClass from "./geometry/Point.js";
42
42
  import type PolygonClass from "./geometry/Polygon.js";
43
43
  import type PolylineClass from "./geometry/Polyline.js";
44
44
  import type SpatialReferenceClass from "./geometry/SpatialReference.js";
45
- import type { GeometryUnion } from "./geometry/support/typeUtils.js";
45
+ import type { GeometryUnion } from "./geometry/types.js";
46
46
 
47
47
  /**
48
48
  * Spatial Reference.