@arcgis/core 6.0.0-next.41 → 6.0.0-next.43

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 (636) hide show
  1. package/Basemap.js +1 -1
  2. package/Camera.js +1 -1
  3. package/Graphic.js +1 -1
  4. package/Ground.js +1 -1
  5. package/WebDocument2D.js +1 -1
  6. package/WebScene.js +1 -1
  7. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +1 -0
  8. package/analysis/ElevationProfileAnalysis.d.ts +15 -0
  9. package/analysis/LineOfSightAnalysis.d.ts +6 -1
  10. package/analysis/ShadowCastAnalysis.d.ts +18 -22
  11. package/analysis/ShadowCastAnalysis.js +1 -1
  12. package/analysis/ViewshedAnalysis.d.ts +6 -1
  13. package/applications/Components/analysisUtils.d.ts +6 -0
  14. package/applications/Components/analysisUtils.js +1 -1
  15. package/arcade/ArcadeModuleResolver.js +1 -1
  16. package/arcade/arcadeCompiler.js +1 -1
  17. package/arcade/featureset/actions/Adapted.js +1 -1
  18. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  19. package/arcade/featureset/support/FeatureSet.js +1 -1
  20. package/arcade/featureset/support/shared.js +1 -1
  21. package/arcade/featureset/support/sqlUtils.js +1 -1
  22. package/arcade/functions/knowledgegraph.js +1 -1
  23. package/arcade/functions/maths.js +1 -1
  24. package/arcgisGlobal.d.ts +0 -2
  25. package/assets/esri/core/workers/RemoteClient.js +1 -1
  26. package/assets/esri/core/workers/chunks/{2f54e4feb554c1a7b9c4.js → 02debe67e6fef9d88bdd.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{bd046399e05e759e0bc2.js → 035204000954973b0ebc.js} +1 -1
  28. package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +1 -0
  29. package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +1 -0
  30. package/assets/esri/core/workers/chunks/077b755688346e0dc8d3.js +1 -0
  31. package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +1 -0
  32. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +1 -0
  33. package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +1 -0
  34. package/assets/esri/core/workers/chunks/{afe3e89737fb45189a99.js → 14ed0c34b910eba3434e.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{f67b37253d6d05d1e339.js → 14ef986665b4a1f6ccdc.js} +1 -1
  36. package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +1 -0
  37. package/assets/esri/core/workers/chunks/{a03f15f2cbc3fed291c2.js → 15f2b27b8edc0d53e399.js} +1 -1
  38. package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +1 -0
  39. package/assets/esri/core/workers/chunks/18dbee576b7b9dbe69fb.js +1 -0
  40. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +1 -0
  41. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +1 -0
  42. package/assets/esri/core/workers/chunks/{cf2e5f827cea7d7319ce.js → 1e5c5029b0653047a769.js} +1 -1
  43. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +1 -0
  44. package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +1 -0
  45. package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +1 -0
  46. package/assets/esri/core/workers/chunks/{14d81280807a3d3c1b7e.js → 244ffdb91237d1cbade3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +1 -0
  48. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +1 -0
  49. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +1 -0
  50. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +1 -0
  51. package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +1 -0
  52. package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +1 -0
  53. package/assets/esri/core/workers/chunks/{279089a6a3f08022c678.js → 361d620b3f91868b1490.js} +1 -1
  54. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +1 -0
  55. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +1 -0
  56. package/assets/esri/core/workers/chunks/394ae3199c78a94c6a2a.js +1 -0
  57. package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +1 -0
  58. package/assets/esri/core/workers/chunks/{fdd2b35388f9fe42b623.js → 3a90b6eafa92f1a68ac5.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{6a65fc1a2931230fe994.js → 3bb1e06861cd0563ed9f.js} +1 -1
  60. package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +1 -0
  61. package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +1 -0
  62. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +1 -0
  63. package/assets/esri/core/workers/chunks/{5882f349f3771868e67f.js → 4521f72ab0ea872e5d7c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/45b5a61c4e9fbd9ca0b3.js +1 -0
  65. package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +1 -0
  66. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +1 -0
  67. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +1 -0
  68. package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +1 -0
  69. package/assets/esri/core/workers/chunks/{46504fc81f357bc7465a.js → 4d62877f521cc9663535.js} +1 -1
  70. package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +1 -0
  71. package/assets/esri/core/workers/chunks/{e0cf6e1e21d0ee739009.js → 4e03aa5518d46a36661c.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{1a614bac5db42c6263f8.js → 4fe10650ba3cd30aa9a2.js} +1 -1
  73. package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +1 -0
  74. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +1 -0
  75. package/assets/esri/core/workers/chunks/564d7f2e58fbc16853c0.js +1 -0
  76. package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +1 -0
  77. package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +1 -0
  78. package/assets/esri/core/workers/chunks/{04d55ed51e8b2683c4b4.js → 5d908a823b324bafda1e.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{54de7dc0597fc80d7a52.js → 5dea74fe52583e77f3ce.js} +1 -1
  80. package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +1 -0
  81. package/assets/esri/core/workers/chunks/5fd4d3cb3c9350131a59.js +1 -0
  82. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +1 -0
  83. package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +1 -0
  84. package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +1 -0
  85. package/assets/esri/core/workers/chunks/{06102715e9a8f218e07c.js → 6f3732e7ba2d031ba789.js} +1 -1
  86. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +1 -0
  87. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +1 -0
  88. package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +1 -0
  89. package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +1 -0
  90. package/assets/esri/core/workers/chunks/{e2430bc3a1edeb5c3266.js → 78a69594c82d37aecbfb.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{1ec772eaa63eb6937231.js → 8140ed6e44c3d8536d3e.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{787c1a8bda7d745633f2.js → 81b9894e81cce3490984.js} +1 -1
  93. package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +1 -0
  94. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +1 -0
  95. package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +1 -0
  96. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +1 -0
  97. package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +1 -0
  98. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +1 -0
  99. package/assets/esri/core/workers/chunks/{4b2d392ad8e381bfd6b3.js → 89e9ebc8d5c1022cb265.js} +1 -1
  100. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +1 -0
  101. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +1 -0
  102. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +1 -0
  103. package/assets/esri/core/workers/chunks/{987424121cf30b0f3c50.js → 8d3e92a3367a3ddc02bd.js} +1 -1
  104. package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +1 -0
  105. package/assets/esri/core/workers/chunks/8f4fba4d2339c91c8b3f.js +1 -0
  106. package/assets/esri/core/workers/chunks/{45aaefbdffe5e15dfb24.js → 919a6aedf38e9631ee09.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{487c46d5245cfb35c4bb.js → 921917e53bac82693ec8.js} +1 -1
  108. package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +1 -0
  109. package/assets/esri/core/workers/chunks/{beccbfff549902733c4e.js → 9869c696e6321c8db0a9.js} +1 -1
  110. package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +1 -0
  111. package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +1 -0
  112. package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +1 -0
  113. package/assets/esri/core/workers/chunks/{cb2329d1ea72ce5cc057.js → 9c3f56f22e9baa80a387.js} +1 -1
  114. package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +1 -0
  115. package/assets/esri/core/workers/chunks/9fe1812aad6e566aea31.js +1 -0
  116. package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +1 -0
  117. package/assets/esri/core/workers/chunks/{dff845574c0037a1dca6.js → a332e31165b65a6fb92e.js} +1 -1
  118. package/assets/esri/core/workers/chunks/a553478664a688f32488.js +1 -0
  119. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +1 -0
  120. package/assets/esri/core/workers/chunks/a95186214f1206efd8ed.js +1 -0
  121. package/assets/esri/core/workers/chunks/{853563c66ecf58d53d36.js → ab60e8fbe0f92340616a.js} +1 -1
  122. package/assets/esri/core/workers/chunks/acea0946049136578354.js +1 -0
  123. package/assets/esri/core/workers/chunks/{342a97974a78007b25e0.js → ad94f54b4c88b3a047bc.js} +1 -1
  124. package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +1 -0
  125. package/assets/esri/core/workers/chunks/ae6dc159be974ca0e8da.js +1 -0
  126. package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +1 -0
  127. package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +1 -0
  128. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +1 -0
  129. package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +1 -0
  130. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +1 -0
  131. package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +1 -0
  132. package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +1 -0
  133. package/assets/esri/core/workers/chunks/bc21241bc9acb83d1b1c.js +1 -0
  134. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +1 -0
  135. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +1 -0
  136. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +1 -0
  137. package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +1 -0
  138. package/assets/esri/core/workers/chunks/{5504ec9bd9ee4d10af07.js → c7f49493bd548d5dc1e0.js} +1 -1
  139. package/assets/esri/core/workers/chunks/c86d3af148b28ded5875.js +1121 -0
  140. package/assets/esri/core/workers/chunks/{692f0093c444fcc752b5.js → cadd60fa4370284c7ae3.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{947f3a1cad976bba9738.js → cb62326b6526cde429c1.js} +1 -1
  142. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +1 -0
  143. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  144. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +1 -0
  145. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +1 -0
  146. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +1 -0
  147. package/assets/esri/core/workers/chunks/{520f499d79fa71f262c7.js → dd7e4c94a88452425750.js} +1 -1
  148. package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +1 -0
  149. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +1 -0
  150. package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +1 -0
  151. package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +1 -0
  152. package/assets/esri/core/workers/chunks/{5473409fee59db80f87d.js → e5bdfef7c2cc5354be52.js} +1 -1
  153. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +1 -0
  154. package/assets/esri/core/workers/chunks/{6738b3d6bce34a1e8be2.js → eaf720dfdf6ceca31249.js} +1 -1
  155. package/assets/esri/core/workers/chunks/ef274db3fa260eadf371.js +1 -0
  156. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +1 -0
  157. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +1 -0
  158. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +1 -0
  159. package/assets/esri/core/workers/chunks/{8b5dcc4282772bf6b675.js → f11eaab5354cc6aa9569.js} +1 -1
  160. package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +1 -0
  161. package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +1 -0
  162. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +1 -0
  163. package/assets/esri/core/workers/chunks/{7452b5ae971a9ff2e6e9.js → fdffefd7de540272a8a6.js} +1 -1
  164. package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +1 -0
  165. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  166. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  167. package/assets/esri/themes/base/_core.scss +0 -2
  168. package/assets/esri/themes/dark/main.css +1 -1
  169. package/assets/esri/themes/light/main.css +1 -1
  170. package/assets/esri/themes/light/view.css +1 -1
  171. package/chunks/languageUtils.js +1 -1
  172. package/chunks/lyr3DMain.js +1 -1
  173. package/chunks/lyr3DWorker.js +1 -1
  174. package/config.js +1 -1
  175. package/core/Accessor.js +1 -1
  176. package/core/Collection.js +1 -1
  177. package/core/LRUCache.js +1 -1
  178. package/core/Logger.js +1 -1
  179. package/core/MapUtils.js +1 -1
  180. package/core/Version.js +1 -1
  181. package/core/asyncUtils.js +1 -1
  182. package/core/deprecate.js +1 -1
  183. package/core/fontUtils.js +1 -1
  184. package/core/has.js +1 -1
  185. package/core/sql/SqlInterval.js +1 -1
  186. package/core/sql/WhereClause.js +1 -1
  187. package/core/sql/writeUtils.js +1 -1
  188. package/core/sql.js +1 -1
  189. package/core/types.d.ts +0 -5
  190. package/core/urlUtils.js +1 -1
  191. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  192. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  193. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  194. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  195. package/geometry/Point.js +1 -1
  196. package/geometry/Polygon.js +1 -1
  197. package/geometry/SpatialReference.js +1 -1
  198. package/geometry/support/webMercatorUtils.js +1 -1
  199. package/interfaces.d.ts +0 -17
  200. package/kernel.js +1 -1
  201. package/layers/BuildingSceneLayer.js +1 -1
  202. package/layers/ElevationLayer.d.ts +1 -1
  203. package/layers/ElevationLayer.js +1 -1
  204. package/layers/FeatureLayer.js +1 -1
  205. package/layers/GeoJSONLayer.d.ts +5 -1
  206. package/layers/GeoRSSLayer.js +1 -1
  207. package/layers/GeospatialPDFLayer.js +1 -1
  208. package/layers/ImageryLayer.js +1 -1
  209. package/layers/ImageryTileLayer.js +1 -1
  210. package/layers/IntegratedMesh3DTilesLayer.d.ts +4 -3
  211. package/layers/IntegratedMeshLayer.d.ts +4 -3
  212. package/layers/IntegratedMeshLayer.js +1 -1
  213. package/layers/KMLLayer.js +1 -1
  214. package/layers/KnowledgeGraphLayer.js +1 -1
  215. package/layers/LineOfSightLayer.d.ts +6 -1
  216. package/layers/LinkChartLayer.js +1 -1
  217. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  218. package/layers/MapImageLayer.js +1 -1
  219. package/layers/PointCloudLayer.js +1 -1
  220. package/layers/SceneLayer.js +1 -1
  221. package/layers/StreamLayer.js +1 -1
  222. package/layers/SubtypeGroupLayer.js +1 -1
  223. package/layers/TileLayer.js +1 -1
  224. package/layers/VectorTileLayer.d.ts +53 -0
  225. package/layers/VectorTileLayer.js +1 -1
  226. package/layers/VideoLayer.js +1 -1
  227. package/layers/ViewshedLayer.d.ts +6 -1
  228. package/layers/VoxelLayer.js +1 -1
  229. package/layers/WCSLayer.js +1 -1
  230. package/layers/WMSLayer.js +1 -1
  231. package/layers/WMTSLayer.js +1 -1
  232. package/layers/WebTileLayer.js +1 -1
  233. package/layers/effects/jsonUtils.js +1 -1
  234. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  235. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  236. package/layers/graphics/data/QueryEngineResult.js +1 -1
  237. package/layers/graphics/data/projectionSupport.js +1 -1
  238. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  239. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  240. package/layers/graphics/sources/geojson/geojson.js +1 -1
  241. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  242. package/layers/graphics/sources/support/QueryTask.js +1 -1
  243. package/layers/graphics/sources/support/uploads.js +1 -1
  244. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  245. package/layers/mixins/refresh.js +1 -1
  246. package/layers/ogc/ogcFeatureUtils.js +1 -1
  247. package/layers/ogc/wfsUtils.js +1 -1
  248. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  249. package/layers/parquet.js +1 -1
  250. package/layers/raster/datasets/BaseRaster.js +1 -1
  251. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  252. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  253. package/layers/raster/datasets/RasterFactory.js +1 -1
  254. package/layers/raster/datasets/TIFFRaster.js +1 -1
  255. package/layers/raster/datasets/ZarrRaster.js +2 -0
  256. package/layers/raster/datasets/datasetUtils.js +1 -1
  257. package/layers/raster/datasets/wcsCoverageParser.js +1 -1
  258. package/layers/raster/datasets/zarrParser.js +2 -0
  259. package/layers/raster/datasets/zarrUtils.js +2 -0
  260. package/layers/raster/formats/Lerc.js +1 -1
  261. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  262. package/layers/support/ClientSideConnection.js +1 -1
  263. package/layers/support/ElevationSampler.js +1 -1
  264. package/layers/support/MultidimensionalSubset.js +1 -1
  265. package/layers/support/SceneModifications.d.ts +1 -3
  266. package/layers/support/SceneModifications.js +1 -1
  267. package/layers/support/SpriteSource.js +1 -1
  268. package/layers/support/TileInfo.js +1 -1
  269. package/layers/support/fieldUtils.js +1 -1
  270. package/layers/support/infoFor3D.js +1 -1
  271. package/layers/support/vectorTileLayerLoader.js +1 -1
  272. package/layers/support/wmsUtils.js +1 -1
  273. package/layers/support/wmtsUtils.js +1 -1
  274. package/layers/video/videoUtils.js +1 -1
  275. package/legend/ActiveLayerInfo.js +1 -1
  276. package/libs/lyr3d/Lyr3DModule.js +1 -1
  277. package/linkChart/utils.js +1 -1
  278. package/networks/support/Circuit.js +1 -1
  279. package/networks/support/CircuitSection.js +1 -1
  280. package/package.json +3 -3
  281. package/portal/Portal.js +1 -1
  282. package/portal/PortalItemResource.js +1 -1
  283. package/portal/PortalQueryParams.js +1 -1
  284. package/renderers/HeatmapRenderer.js +1 -1
  285. package/renderers/UniqueValueRenderer.js +1 -1
  286. package/rest/knowledgeGraphService.js +1 -1
  287. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  288. package/rest/query/operations/queryAttachments.js +1 -1
  289. package/support/LayersMixin.d.ts +2 -2
  290. package/symbols/PictureFillSymbol.js +1 -1
  291. package/symbols/PictureMarkerSymbol.js +1 -1
  292. package/symbols/SimpleFillSymbol.js +1 -1
  293. package/symbols/SimpleLineSymbol.js +1 -1
  294. package/symbols/SimpleMarkerSymbol.js +1 -1
  295. package/symbols/Symbol3D.js +1 -1
  296. package/symbols/TextSymbol.js +1 -1
  297. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  298. package/symbols/cim/types.d.ts +15 -11
  299. package/symbols/support/previewSymbol3D.js +1 -1
  300. package/tables/support/templateUtils.js +1 -1
  301. package/views/2d/engine/vectorTiles/SourceLayerData.js +1 -1
  302. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  303. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  304. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  305. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  306. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  307. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  308. package/views/2d/engine/vectorTiles/VectorTileSourceData.js +2 -0
  309. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  310. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  311. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  312. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  313. package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
  314. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
  315. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  316. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  317. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  318. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +4 -4
  319. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  320. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  321. package/views/2d/layers/features/Processor.js +1 -1
  322. package/views/2d/layers/features/support/TileStore.js +1 -1
  323. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  324. package/views/2d/tiling/TileKey.js +1 -1
  325. package/views/2d/tiling/TileStrategy.js +1 -1
  326. package/views/3d/analysis/Dimension/LengthDimensionComputation.js +1 -1
  327. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  328. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  329. package/views/3d/analysis/images/generateTextures.js +1 -1
  330. package/views/3d/environment/EnvironmentView.js +1 -1
  331. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  332. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  333. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  334. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  335. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  336. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  337. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  338. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  339. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  340. package/views/3d/layers/I3SMeshView3D.js +1 -1
  341. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  342. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  343. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  344. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  345. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  346. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  347. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  348. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  349. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  350. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  351. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  352. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  353. package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
  354. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  355. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  356. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  357. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  358. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  359. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  360. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  361. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  362. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  363. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  364. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +2 -0
  365. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  366. package/views/3d/layers/support/createTileBVHForLayer.js +2 -0
  367. package/views/3d/layers/support/tileBoundingVolumeUtils.js +2 -0
  368. package/views/3d/state/ConstraintsManager.js +1 -1
  369. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  370. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  371. package/views/3d/support/QualityProfile.js +1 -1
  372. package/views/3d/support/TextureCollection.js +1 -1
  373. package/views/3d/support/engineContent/line.js +1 -1
  374. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  375. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  376. package/views/3d/support/gaussianSplatting/GaussianSplatSortCoordinator.js +2 -0
  377. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  378. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  379. package/views/3d/terrain/TerrainRenderer.js +1 -1
  380. package/views/3d/terrain/Tile.js +1 -1
  381. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  382. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  383. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  384. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  385. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  386. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  387. package/views/3d/webgl-engine/lib/CutFill.js +1 -1
  388. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  389. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  390. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  391. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  392. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  393. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  394. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  395. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  396. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  397. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  398. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  399. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  400. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  401. package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
  402. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  403. package/views/3d/webgl-engine/shaders/ShadedMaterialConfiguration.js +2 -0
  404. package/views/SceneView.d.ts +2 -4
  405. package/views/SceneView.js +1 -1
  406. package/views/SelectionManager.js +1 -1
  407. package/views/View.d.ts +1 -3
  408. package/views/View2D.d.ts +2 -2
  409. package/views/analysis/ElevationProfile/ElevationProfileChart.js +2 -2
  410. package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
  411. package/views/draw/DrawAction.js +1 -1
  412. package/views/draw/support/PluginContext.js +1 -1
  413. package/views/interactive/options/ViewOptions.d.ts +0 -2
  414. package/views/interactive/sketch/normalizedPoint.js +1 -1
  415. package/views/interactive/tooltip/fields/TooltipFieldElevation.js +1 -1
  416. package/views/interactive/tooltip/fields/TooltipFieldOrientation.js +1 -1
  417. package/views/interactive/tooltip/fields/TooltipFieldSize.js +1 -1
  418. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  419. package/widgets/Attachments.js +1 -1
  420. package/widgets/Attribution/AttributionViewModel.js +1 -1
  421. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  422. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  423. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  424. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  425. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  426. package/widgets/BatchAttributeForm.js +1 -1
  427. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  428. package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
  429. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
  430. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  431. package/widgets/CatalogLayerList.js +1 -1
  432. package/widgets/Compass/CompassViewModel.js +1 -1
  433. package/widgets/CoordinateConversion/support/Format.js +1 -1
  434. package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
  435. package/widgets/Daylight/DaylightViewModel.js +1 -1
  436. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  437. package/widgets/Editor/EditorViewModel.d.ts +0 -1
  438. package/widgets/Editor/support/SketchController.js +1 -1
  439. package/widgets/Editor.d.ts +0 -1
  440. package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
  441. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  442. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  443. package/widgets/Expand/ExpandViewModel.js +1 -1
  444. package/widgets/Expand.js +1 -1
  445. package/widgets/Feature/FeatureMedia.js +1 -1
  446. package/widgets/Feature/FeatureViewModel.js +1 -1
  447. package/widgets/Feature.js +1 -1
  448. package/widgets/FeatureForm.js +1 -1
  449. package/widgets/FeatureTemplates.js +1 -1
  450. package/widgets/Features/FeaturesViewModel.js +1 -1
  451. package/widgets/Features.js +1 -1
  452. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  453. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  454. package/widgets/Histogram/HistogramViewModel.js +1 -1
  455. package/widgets/Histogram.js +1 -1
  456. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
  457. package/widgets/Home/HomeViewModel.js +1 -1
  458. package/widgets/LayerList/LayerListViewModel.js +1 -1
  459. package/widgets/Legend/LegendViewModel.js +1 -1
  460. package/widgets/Legend/styles/card/CardView.js +1 -1
  461. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  462. package/widgets/Locate/LocateViewModel.js +1 -1
  463. package/widgets/Locate.js +1 -1
  464. package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
  465. package/widgets/NavigationToggle.js +1 -1
  466. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  467. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  468. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  469. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  470. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  471. package/widgets/Search.js +1 -1
  472. package/widgets/ShadowCast/DiscreteOptions.js +1 -1
  473. package/widgets/ShadowCast/DurationOptions.js +1 -1
  474. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  475. package/widgets/ShadowCast/ThresholdOptions.js +1 -1
  476. package/widgets/Sketch/SketchViewModel.d.ts +0 -1
  477. package/widgets/Sketch.d.ts +0 -1
  478. package/widgets/Sketch.js +1 -1
  479. package/widgets/Slider/SliderViewModel.js +1 -1
  480. package/widgets/Slider.js +1 -1
  481. package/widgets/TableList/TableListViewModel.js +1 -1
  482. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  483. package/widgets/Weather/WeatherViewModel.js +1 -1
  484. package/widgets/Widget.js +1 -1
  485. package/widgets/Zoom/ZoomViewModel.js +1 -1
  486. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  487. package/widgets/support/GridControls.js +1 -1
  488. package/widgets/support/dateUtils.js +1 -1
  489. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +0 -1
  490. package/assets/esri/core/workers/chunks/059cda6f11a91dbc9e28.js +0 -1
  491. package/assets/esri/core/workers/chunks/0696fa44a04b99738d7b.js +0 -1
  492. package/assets/esri/core/workers/chunks/073f0232135f71b6c7a5.js +0 -1
  493. package/assets/esri/core/workers/chunks/091ec4fe83038f3558f4.js +0 -1
  494. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +0 -1
  495. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +0 -1
  496. package/assets/esri/core/workers/chunks/0bf43d80cb40c2b43333.js +0 -1
  497. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +0 -1
  498. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +0 -1
  499. package/assets/esri/core/workers/chunks/123541f79be7adff0818.js +0 -1
  500. package/assets/esri/core/workers/chunks/1380cec385426673f294.js +0 -1
  501. package/assets/esri/core/workers/chunks/1866f832e5f52958bc97.js +0 -1
  502. package/assets/esri/core/workers/chunks/19e51cbb354954ddafbd.js +0 -1
  503. package/assets/esri/core/workers/chunks/1b24a40c0fa197014873.js +0 -1
  504. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +0 -1
  505. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +0 -1
  506. package/assets/esri/core/workers/chunks/1deca3de77b1a9a07da4.js +0 -1
  507. package/assets/esri/core/workers/chunks/1f76f6dcdae9f55389cb.js +0 -1
  508. package/assets/esri/core/workers/chunks/1fd82fcba2758741996a.js +0 -1
  509. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +0 -1
  510. package/assets/esri/core/workers/chunks/23f3692c7426173e8352.js +0 -1
  511. package/assets/esri/core/workers/chunks/247617c0dbae2386ab3b.js +0 -1
  512. package/assets/esri/core/workers/chunks/25657f70c5f04a4ed978.js +0 -1
  513. package/assets/esri/core/workers/chunks/2853606099602f73d379.js +0 -1
  514. package/assets/esri/core/workers/chunks/28ed020d9995b6577be5.js +0 -1
  515. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +0 -1
  516. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +0 -1
  517. package/assets/esri/core/workers/chunks/2dfe6af28cd1b29d5ebc.js +0 -1
  518. package/assets/esri/core/workers/chunks/305eeaac0b4d5b79ebde.js +0 -1
  519. package/assets/esri/core/workers/chunks/353976c812ebf0c98549.js +0 -1
  520. package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +0 -1
  521. package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +0 -1
  522. package/assets/esri/core/workers/chunks/4caebb64a365da18453f.js +0 -1
  523. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +0 -1
  524. package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +0 -1
  525. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +0 -1
  526. package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +0 -1
  527. package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +0 -1
  528. package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +0 -1
  529. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +0 -1
  530. package/assets/esri/core/workers/chunks/598ba405e93ebccf7b2d.js +0 -1
  531. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +0 -1
  532. package/assets/esri/core/workers/chunks/60c8eedd06080edab3e3.js +0 -1
  533. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +0 -1
  534. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +0 -1
  535. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +0 -1
  536. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +0 -1
  537. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +0 -1
  538. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +0 -1
  539. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +0 -1
  540. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +0 -1
  541. package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +0 -1
  542. package/assets/esri/core/workers/chunks/6f2e7e663229b223b4df.js +0 -1
  543. package/assets/esri/core/workers/chunks/7390af96250e89194332.js +0 -1
  544. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +0 -1
  545. package/assets/esri/core/workers/chunks/7e0ed6e8f7b77e43f628.js +0 -1
  546. package/assets/esri/core/workers/chunks/832c887fdc5af4c08cf2.js +0 -1
  547. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +0 -1
  548. package/assets/esri/core/workers/chunks/8502274806ea52308822.js +0 -1
  549. package/assets/esri/core/workers/chunks/8b0be232723424dda320.js +0 -1
  550. package/assets/esri/core/workers/chunks/8b0efcc30184593a0812.js +0 -1121
  551. package/assets/esri/core/workers/chunks/8b38fad017c4c0d9e1ec.js +0 -1
  552. package/assets/esri/core/workers/chunks/8c3779de09291170497f.js +0 -1
  553. package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +0 -1
  554. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +0 -1
  555. package/assets/esri/core/workers/chunks/90d797ab82d4a68ba32f.js +0 -1
  556. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +0 -1
  557. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +0 -1
  558. package/assets/esri/core/workers/chunks/98958203a5ca45b24d72.js +0 -1
  559. package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +0 -1
  560. package/assets/esri/core/workers/chunks/a125650edbed802e419a.js +0 -1
  561. package/assets/esri/core/workers/chunks/a18c3cbe505a19d29569.js +0 -1
  562. package/assets/esri/core/workers/chunks/a5f17e9a025ac2b6e1bf.js +0 -1
  563. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +0 -1
  564. package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +0 -1
  565. package/assets/esri/core/workers/chunks/acf4737ba509cbd73cce.js +0 -1
  566. package/assets/esri/core/workers/chunks/af2087b75225d7d7dbd8.js +0 -1
  567. package/assets/esri/core/workers/chunks/b386e921c273de3ac7a5.js +0 -1
  568. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +0 -1
  569. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +0 -1
  570. package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +0 -1
  571. package/assets/esri/core/workers/chunks/c5364ff8dd1358af3603.js +0 -1
  572. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +0 -1
  573. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +0 -1
  574. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +0 -1
  575. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +0 -1
  576. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +0 -1
  577. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +0 -1
  578. package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +0 -1
  579. package/assets/esri/core/workers/chunks/efc1a90742813b55602e.js +0 -1
  580. package/assets/esri/core/workers/chunks/f190a3124d6d03417d73.js +0 -1
  581. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +0 -1
  582. package/assets/esri/core/workers/chunks/f6bd7b52745b82ba73dc.js +0 -1
  583. package/assets/esri/core/workers/chunks/f6f5937a1308f28bb959.js +0 -1
  584. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +0 -1
  585. package/assets/esri/core/workers/chunks/fd967a9f3cf0e2890dbb.js +0 -1
  586. package/assets/esri/core/workers/chunks/fe24e039385473bf77f9.js +0 -1
  587. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +0 -1
  588. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +0 -46
  589. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ar.json +0 -1
  590. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bg.json +0 -1
  591. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bs.json +0 -1
  592. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ca.json +0 -1
  593. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.cs.json +0 -1
  594. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.da.json +0 -1
  595. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.de.json +0 -1
  596. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.el.json +0 -1
  597. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.en.json +0 -1
  598. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.es.json +0 -1
  599. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.et.json +0 -1
  600. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fi.json +0 -1
  601. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fr.json +0 -1
  602. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.he.json +0 -1
  603. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hr.json +0 -1
  604. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hu.json +0 -1
  605. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.id.json +0 -1
  606. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.it.json +0 -1
  607. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ja.json +0 -1
  608. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ko.json +0 -1
  609. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lt.json +0 -1
  610. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lv.json +0 -1
  611. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.nl.json +0 -1
  612. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.no.json +0 -1
  613. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pl.json +0 -1
  614. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-BR.json +0 -1
  615. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-PT.json +0 -1
  616. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ro.json +0 -1
  617. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ru.json +0 -1
  618. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sk.json +0 -1
  619. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sl.json +0 -1
  620. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sr.json +0 -1
  621. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sv.json +0 -1
  622. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.th.json +0 -1
  623. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.tr.json +0 -1
  624. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.uk.json +0 -1
  625. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.vi.json +0 -1
  626. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-CN.json +0 -1
  627. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-HK.json +0 -1
  628. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-TW.json +0 -1
  629. package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +0 -2
  630. package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +0 -2
  631. package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +0 -2
  632. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +0 -72
  633. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +0 -2
  634. package/widgets/UtilityNetworkValidateTopology.d.ts +0 -130
  635. package/widgets/UtilityNetworkValidateTopology.js +0 -2
  636. /package/views/2d/engine/vectorTiles/{Feature.js → PbfFeature.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{isSome as t,equals as n}from"../../../core/arrayUtils.js";import{createTask as r}from"../../../core/asyncUtils.js";import i from"../../../core/Error.js";import"../../../core/has.js";import a from"../../../core/Logger.js";import{abortMaybe as o,destroyMaybe as s}from"../../../core/maybe.js";import{after as c,throwIfAborted as l,isPromiseLike as u}from"../../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../../core/screenUtils.js";import{convertTime as h}from"../../../core/timeUtils.js";import{property as g,subclass as _}from"../../../core/accessorSupport/decorators.js";import{create as v}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as y}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{UpdatingHandles as b}from"../../../core/support/UpdatingHandles.js";import{projectAsync as x}from"../../../geometry/projectionUtils.js";import{containsExecute as S}from"../../../geometry/operators/containsOperator.js";import{equals as C}from"../../../geometry/support/boundedPlane.js";import{polygonToVolume as w}from"../focusAreaUtils.js";import T from"./AnalysisView3D.js";import{registerAnalysisView as E,hideOtherAnalysisViews as D}from"./ShadowCast/analysisViewRegister.js";import O from"./ShadowCast/ShadowCastError.js";import{ShadowCastTooltip as k}from"./ShadowCast/ShadowCastTooltip.js";import{getSunlightIntervals as A,getDateTimeUTC as j}from"./ShadowCast/sunlightUtils.js";import{ElevationContext as M}from"../layers/graphics/ElevationContext.js";import{longitudeToTimezone as N}from"../support/earthUtils.js";import{computeDirectionsOverTime as P}from"../support/sunUtils.js";import{maxColorRampSize as F}from"../webgl-engine/shaders/colorRampParameters.js";import{breadthFirstBinaryPartitioning as I}from"../../../widgets/support/traversalUtils.js";let L=class extends T{constructor(e){super(e),this.type=`shadow-cast-view-3d`,this.analysis=null,this._updatingHandles=new b,this._visibleOverride=null,this._stopPreviewingTask=null,this._updatedRecently=!1,this._tooltip=null,this._previousVolume=null}initialize(){this.addHandles([E(this.view,this),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{o(this._stopPreviewingTask),this._updatedRecently=!0,this._stopPreviewingTask=r(async e=>{await c(W,e),l(e),this._updatedRecently=!1})},{sync:!0,initial:!0,equals:(e,t)=>H(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t},n)=>{t&&D(this.view,this),(t||n?.visible)&&e?.setParameters({shadowCast:{enabled:t}})},f),d(()=>({renderer:this._renderer,parameters:this._visualizationParameters,visible:this.visible}),({renderer:e,parameters:t,visible:n})=>{z(e,n,t)},f),d(()=>({renderer:this._renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext,visible:this.visible}),({renderer:e,lightDirections:t,lightDirectionsContext:n,visible:r})=>{z(e,r,{lightDirections:t,lightDirectionsContext:n})},f),d(()=>({renderer:this._renderer,previewing:this._previewing,visible:this.visible}),({renderer:e,previewing:t,visible:n})=>{z(e,n,{previewing:t})},{sync:!0,initial:!0,equals:()=>!1}),d(()=>({analysisVolume:this._analysisVolume,renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t,analysisVolume:n})=>{z(e,t,{analysisVolume:n})},f)]),this.interactive=!0,this._tooltip=new k({getDuration:(e,t)=>this._getDurationAtScreen(e,t),getMode:()=>this.analysis.mode,getShowsSeparateZeroBucketInHourlyMode:()=>this._showsSeparateZeroBucketInHourlyMode,getTotalDuration:()=>this._totalDuration,getTotalDurationMode:()=>this.analysis.totalDurationOptions.mode,getVisualizeSunlight:()=>this.analysis.visualizeSunlight,isVisible:()=>this.interactive&&this.visible,view:this.view})}destroy(){this.visible&&z(this._renderer,!0,{enabled:!1}),this._tooltip=s(this._tooltip),this._stopPreviewingTask=o(this._stopPreviewingTask),this._updatingHandles=s(this._updatingHandles)}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return this._previewing||this._stopPreviewingTask!=null&&!this._stopPreviewingTask.finished||this._tooltip?.updating===!0||this._updatingHandles.updating}get visible(){let e=(this.parent?.visible&&!this.parent.suspended)??!0;return(this._visibleOverride??e)&&this.error==null}set visible(e){this._visibleOverride=e}get error(){let e=this._sunlightIntervals;switch(e.state){case`ready`:break;case`unavailable`:return new O(e.state,`The camera's geographic reference position is not available.`);default:return new O(e.state,`The selected date, time zone, or daylight calculation could not be resolved.`)}let{startTimeOfDay:t,endTimeOfDay:n}=this.analysis;if(!Number.isFinite(t)||!Number.isFinite(n)||t<0||n>h(1,`days`,`milliseconds`)||n<t)return new O(`invalid`,`The selected time range must be ordered and within the calendar day.`);let r=this._startDateTimeUTC.getTime(),i=this._endDateTimeUTC.getTime();if(!Number.isFinite(r)||!Number.isFinite(i)||i<r)return new O(`invalid`,`The selected time range could not be resolved to ordered UTC instants.`);let{intervals:a}=e;return a.length?a.some(e=>r>=e.start&&i<=e.end)?null:a.length>1?new O(`split-daylight`,`Daylight crosses midnight in the selected time zone and the selected time range includes nighttime.`):new O(`outside-daylight`,`The selected time range includes nighttime at the current camera location.`):new O(`no-daylight`,`No daylight is expected at the current camera location on the selected date.`)}get _sunlightIntervals(){let{date:e,timeZone:t}=this.analysis;return A({date:e,timeZone:t,utcOffset:t==null?this._effectiveUtcOffset:0,position:this._referencePosition})}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews.some(e=>e.updating),s=!i?.suspended&&!!i?.updating;return a||o||s}get _effectiveUtcOffset(){return this.analysis.utcOffset??this._utcOffsetAuto}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:N(e[0],!1)}get _startDateTimeUTC(){return this._getDateTimeUTC(this.analysis.startTimeOfDay)}get _endDateTimeUTC(){return this._getDateTimeUTC(this.analysis.endTimeOfDay)}_getDateTimeUTC(e){let{date:t,timeZone:n}=this.analysis,r=j(t,e,n,n==null?this._effectiveUtcOffset:0);if(r==null)throw RangeError(`Invalid shadow cast date or time zone`);return r}get _referencePosition(){return this.view?.environmentView?.referencePositionGeographic}get _totalDurationInterval(){return this._totalDuration>0?Math.floor(this._totalDuration/(G-1)):G}get _interval(){let e=this._totalDurationInterval;switch(this.analysis.mode){case`min-duration`:return this._totalDuration>0?e:0;case`total-duration`:return e;case`discrete`:return this.analysis.discreteOptions.interval||e}}get _intervalContext(){let{mode:e,minDurationOptions:t}=this.analysis;return e===`min-duration`&&t.contextEnabled?t.contextOptions.interval||this._totalDurationInterval:-1}get _totalDurationSampleCount(){return this._lightDirections.length}get _totalDuration(){return this._endDateTimeUTC.getTime()-this._startDateTimeUTC.getTime()}get _lightDirections(){return this.error==null?this._calculateLightDirections(this._interval):[]}get _lightDirectionsContext(){return this.error==null?this._calculateLightDirections(this._intervalContext):[]}_calculateLightDirections(e){let{view:t}=this;if(e<=0)return[];let n=t.viewingMode===`global`?K:this._referencePosition;if(n==null)return[];let r=P(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,G),i=r.length;q.length=0;let a=I(0,i,q),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _analysisVolume(){let{geometry:e}=this.analysis;if(e==null)return this._previousVolume=null,null;try{let t=w(e,this.view,J);return t==null?(this._previousVolume=null,null):u(t)?(this._updatingHandles.consumePromise(t),this._previousVolume):(this._previousVolume=t,t)}catch(t){return a.getLogger(this).error(new i(`shadowcastanalysisview3d:projection-failed`,`Failed to project analysis area geometry to view spatial reference`,{geometry:e,error:t})),null}}get _visualizationParameters(){if(!this.visible)return null;switch(this.analysis.mode){case`min-duration`:return this._minDurationVisualizationParameters;case`total-duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _minDurationVisualizationParameters(){let{color:e,minDuration:t}=this.analysis.minDurationOptions,n=this._totalDuration;return{rendersSunlight:this.analysis.visualizeSunlight,visualization:2,thresholdColor:e.toUnitRGBA(),threshold:n>0?t/this._totalDuration:0,...this._minDurationContextVisualizationParameters}}get _minDurationContextVisualizationParameters(){let{minDurationOptions:e,visualizeSunlight:t}=this.analysis;if(!e.contextEnabled||t)return{};let{color:n,colorStops:r}=e.contextOptions,i=1/this._lightDirectionsContext.length;return{visualization:3,gradientColorRamp:this._getEffectiveShadowCastColorRamp(n,r,i)}}get _durationVisualizationParameters(){let{color:e,colorStops:t,mode:n}=this.analysis.totalDurationOptions,r=this._totalDuration,i=r>0&&n===`hourly`?U/r:0,a=this._getEffectiveShadowCastColorRamp(e,t,1/r);return i===0?{...this._discreteVisualizationParameters,gradientColorRamp:a}:{rendersSunlight:this.analysis.visualizeSunlight,bandedGradientColorRamp:a,visualization:1,bandSize:i}}get _showsSeparateZeroBucketInHourlyMode(){let{colorStops:e}=this.analysis.totalDurationOptions;return e==null||e.length===0||e.reduce((e,t)=>Math.min(e,t.value),1/0)<=0}get _discreteVisualizationParameters(){let{color:e,colorStops:t}=this.analysis.discreteOptions,n=1/this._lightDirections.length;return{rendersSunlight:this.analysis.visualizeSunlight,gradientColorRamp:this._getEffectiveShadowCastColorRamp(e,t,n),visualization:0}}get _shadowLayerViews(){return this.view.allLayerViews.items.filter(V)}get _previewDependencies(){if(this.error!=null)return null;let{view:e}=this,n=e.slice.plane,r=this._shadowLayerViews,i=r.map(e=>e.layer).filter(t),a=r.map(e=>e.suspended),o=i.map(e=>e.visible),s=i.map(e=>e.opacity),c=!!e.graphicsView?.suspended,l=i.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),u=r.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:n,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:a,graphicsViewSuspended:c,layerVisibilities:o,layerOpacities:s,filters:u,definitionExpressions:l}}get _renderer(){return this.view?.stage?.renderer}get testData(){}async getDurationAtScreen(e){return this._getDurationAtScreen(e)}async _getDurationAtScreen(e,t){if(!await this._isScreenPointInAnalysisArea(e,t))return-1;let{_renderer:n,_totalDurationSampleCount:r}=this;if(n==null||r===0)return 0;let i=this.view.state.camera.screenToRender(p(e.x,e.y),m()),a=n.readAccumulatedShadow(i);return(this.analysis.visualizeSunlight?1-a:a)*this._totalDuration}async _isScreenPointInAnalysisArea(e,t){let{geometry:n}=this.analysis;if(!n)return!0;let r=await this.view.hitTest(e);l(t);let i=r.results.find(e=>e.mapPoint)?.mapPoint??r?.ground?.mapPoint;if(!i)return!1;let a=await x(i,n.spatialReference,{signal:t});return l(t),a!=null&&S(n,a)}_getEffectiveShadowCastColorRamp(e,t,n){if(t!=null){t.length>F&&a.getLogger(this).warnOnce(`ShadowCastAnalysis supports at most 8 color stops`);let e=t.map(e=>[e.value*n,e.color.toUnitRGBA()]);return e.sort(([e],[t])=>e-t),e}return B(e)}};e([g({readOnly:!0,type:[`shadow-cast-view-3d`]})],L.prototype,`type`,void 0),e([g({constructOnly:!0,nonNullable:!0})],L.prototype,`analysis`,void 0),e([g({readOnly:!0})],L.prototype,`updating`,null),e([g()],L.prototype,`visible`,null),e([g()],L.prototype,`error`,null),e([g()],L.prototype,`_visibleOverride`,void 0),e([g()],L.prototype,`_sunlightIntervals`,null),e([g()],L.prototype,`_stopPreviewingTask`,void 0),e([g()],L.prototype,`_updatedRecently`,void 0),e([g()],L.prototype,`_tooltip`,void 0),e([g()],L.prototype,`_sceneUpdating`,null),e([g()],L.prototype,`_effectiveUtcOffset`,null),e([g()],L.prototype,`_utcOffsetAuto`,null),e([g()],L.prototype,`_startDateTimeUTC`,null),e([g()],L.prototype,`_endDateTimeUTC`,null),e([g()],L.prototype,`_referencePosition`,null),e([g()],L.prototype,`_interval`,null),e([g()],L.prototype,`_intervalContext`,null),e([g()],L.prototype,`_totalDurationSampleCount`,null),e([g()],L.prototype,`_totalDuration`,null),e([g()],L.prototype,`_lightDirections`,null),e([g()],L.prototype,`_lightDirectionsContext`,null),e([g()],L.prototype,`_analysisVolume`,null),e([g()],L.prototype,`_visualizationParameters`,null),e([g()],L.prototype,`_minDurationVisualizationParameters`,null),e([g()],L.prototype,`_minDurationContextVisualizationParameters`,null),e([g()],L.prototype,`_durationVisualizationParameters`,null),e([g()],L.prototype,`_showsSeparateZeroBucketInHourlyMode`,null),e([g()],L.prototype,`_discreteVisualizationParameters`,null),e([g()],L.prototype,`_shadowLayerViews`,null),e([g()],L.prototype,`_previewDependencies`,null),e([g()],L.prototype,`_renderer`,null),L=e([_(`esri.views.3d.analysis.ShadowCastAnalysisView3D`)],L);const R=L;function z(e,t,n){t&&n!=null&&e?.setParameters({shadowCast:n})}function B(e){let t=e.toUnitRGBA();return[[0,y(t[0],t[1],t[2],0)],[1,t]]}function V(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`gaussian-splat-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:return!1;case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function H(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let r=C(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=n(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=n(e.layerVisibilities,t.layerVisibilities),s=n(e.layerOpacities,t.layerOpacities),c=n(e.filters,t.filters),l=n(e.definitionExpressions,t.definitionExpressions);return r&&i&&a&&o&&s&&c&&l}const U=h(1,`hours`,`milliseconds`),W=500,G=255,K=v(),q=[],J=new M;export{R as default};
2
+ import{__decorate as e}from"tslib";import{isSome as t,equals as n}from"../../../core/arrayUtils.js";import{createTask as r}from"../../../core/asyncUtils.js";import i from"../../../core/Error.js";import"../../../core/has.js";import a from"../../../core/Logger.js";import{abortMaybe as o,destroyMaybe as s}from"../../../core/maybe.js";import{after as c,throwIfAborted as l,isPromiseLike as u}from"../../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../../core/screenUtils.js";import{convertTime as h}from"../../../core/timeUtils.js";import{property as g,subclass as _}from"../../../core/accessorSupport/decorators.js";import{create as v}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as y}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{UpdatingHandles as b}from"../../../core/support/UpdatingHandles.js";import{projectAsync as x}from"../../../geometry/projectionUtils.js";import{containsExecute as S}from"../../../geometry/operators/containsOperator.js";import{equals as C}from"../../../geometry/support/boundedPlane.js";import{polygonToVolume as w}from"../focusAreaUtils.js";import T from"./AnalysisView3D.js";import{registerAnalysisView as E,hideOtherAnalysisViews as D}from"./ShadowCast/analysisViewRegister.js";import O from"./ShadowCast/ShadowCastError.js";import{ShadowCastTooltip as k}from"./ShadowCast/ShadowCastTooltip.js";import{getSunlightIntervals as A,getDateTimeUTC as j}from"./ShadowCast/sunlightUtils.js";import{ElevationContext as M}from"../layers/graphics/ElevationContext.js";import{longitudeToTimezone as N}from"../support/earthUtils.js";import{computeDirectionsOverTime as P}from"../support/sunUtils.js";import{maxColorRampSize as F}from"../webgl-engine/shaders/colorRampParameters.js";import{breadthFirstBinaryPartitioning as I}from"../../../widgets/support/traversalUtils.js";let L=class extends T{constructor(e){super(e),this.type=`shadow-cast-view-3d`,this.analysis=null,this._updatingHandles=new b,this._visibleOverride=null,this._stopPreviewingTask=null,this._updatedRecently=!1,this._tooltip=null,this._previousVolume=null}initialize(){this.addHandles([E(this.view,this),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{o(this._stopPreviewingTask),this._updatedRecently=!0,this._stopPreviewingTask=r(async e=>{await c(W,e),l(e),this._updatedRecently=!1})},{sync:!0,initial:!0,equals:(e,t)=>H(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t},n)=>{t&&D(this.view,this),(t||n?.visible)&&e?.setParameters({shadowCast:{enabled:t}})},f),d(()=>({renderer:this._renderer,parameters:this._visualizationParameters,visible:this.visible}),({renderer:e,parameters:t,visible:n})=>{z(e,n,t)},f),d(()=>({renderer:this._renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext,visible:this.visible}),({renderer:e,lightDirections:t,lightDirectionsContext:n,visible:r})=>{z(e,r,{lightDirections:t,lightDirectionsContext:n})},f),d(()=>({renderer:this._renderer,previewing:this._previewing,visible:this.visible}),({renderer:e,previewing:t,visible:n})=>{z(e,n,{previewing:t})},{sync:!0,initial:!0,equals:()=>!1}),d(()=>({analysisVolume:this._analysisVolume,renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t,analysisVolume:n})=>{z(e,t,{analysisVolume:n})},f)]),this.interactive=!0,this._tooltip=new k({getDuration:(e,t)=>this._getDurationAtScreen(e,t),getMode:()=>this.analysis.mode,getShowsSeparateZeroBucketInHourlyMode:()=>this._showsSeparateZeroBucketInHourlyMode,getTotalDuration:()=>this._totalDuration,getTotalDurationMode:()=>this.analysis.totalDurationOptions.mode,getVisualizeSunlight:()=>this.analysis.visualizeSunlight,isVisible:()=>this.interactive&&this.visible,view:this.view})}destroy(){this.visible&&z(this._renderer,!0,{enabled:!1}),this._tooltip=s(this._tooltip),this._stopPreviewingTask=o(this._stopPreviewingTask),this._updatingHandles=s(this._updatingHandles)}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return this._previewing||this._stopPreviewingTask!=null&&!this._stopPreviewingTask.finished||this._tooltip?.updating===!0||this._updatingHandles.updating}get visible(){let e=(this.parent?.visible&&!this.parent.suspended)??!0;return(this._visibleOverride??e)&&this.error==null}set visible(e){this._visibleOverride=e}get error(){let e=this._sunlightIntervals;switch(e.state){case`ready`:break;case`unavailable`:return new O(e.state,`The camera's geographic reference position is not available.`);default:return new O(e.state,`The selected date, time zone, or daylight calculation could not be resolved.`)}let{startTimeOfDay:t,endTimeOfDay:n}=this.analysis;if(!Number.isFinite(t)||!Number.isFinite(n)||t<0||n>h(1,`days`,`milliseconds`)||n<t)return new O(`invalid`,`The selected time range must be ordered and within the calendar day.`);let r=this._startDateTimeUTC.getTime(),i=this._endDateTimeUTC.getTime();if(!Number.isFinite(r)||!Number.isFinite(i)||i<r)return new O(`invalid`,`The selected time range could not be resolved to ordered UTC instants.`);let{intervals:a}=e;return a.length?a.some(e=>r>=e.start&&i<=e.end)?null:a.length>1?new O(`split-daylight`,`Daylight crosses midnight in the selected time zone and the selected time range includes nighttime.`):new O(`outside-daylight`,`The selected time range includes nighttime at the current camera location.`):new O(`no-daylight`,`No daylight is expected at the current camera location on the selected date.`)}get _sunlightIntervals(){let{date:e}=this.analysis,t=this._timeZone;return A({date:e,timeZone:t,utcOffset:t==null?this._effectiveUtcOffset:0,position:this._referencePosition})}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews.some(e=>e.updating),s=!i?.suspended&&!!i?.updating;return a||o||s}get _timeZone(){return this.analysis.timeZoneMode===`region`?this.view.timeZone:null}get _effectiveUtcOffset(){return this.analysis.utcOffset??this._utcOffsetAuto}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:N(e[0],!1)}get _startDateTimeUTC(){return this._getDateTimeUTC(this.analysis.startTimeOfDay)}get _endDateTimeUTC(){return this._getDateTimeUTC(this.analysis.endTimeOfDay)}_getDateTimeUTC(e){let{date:t}=this.analysis,n=this._timeZone,r=j(t,e,n,n==null?this._effectiveUtcOffset:0);if(r==null)throw RangeError(`Invalid shadow cast date or time zone`);return r}get _referencePosition(){return this.view?.environmentView?.referencePositionGeographic}get _totalDurationInterval(){return this._totalDuration>0?Math.floor(this._totalDuration/(G-1)):G}get _interval(){let e=this._totalDurationInterval;switch(this.analysis.mode){case`min-duration`:return this._totalDuration>0?e:0;case`total-duration`:return e;case`discrete`:return this.analysis.discreteOptions.interval||e}}get _intervalContext(){let{mode:e,minDurationOptions:t}=this.analysis;return e===`min-duration`&&t.contextEnabled?t.contextOptions.interval||this._totalDurationInterval:-1}get _totalDurationSampleCount(){return this._lightDirections.length}get _totalDuration(){return this._endDateTimeUTC.getTime()-this._startDateTimeUTC.getTime()}get _lightDirections(){return this.error==null?this._calculateLightDirections(this._interval):[]}get _lightDirectionsContext(){return this.error==null?this._calculateLightDirections(this._intervalContext):[]}_calculateLightDirections(e){let{view:t}=this;if(e<=0)return[];let n=t.viewingMode===`global`?K:this._referencePosition;if(n==null)return[];let r=P(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,G),i=r.length;q.length=0;let a=I(0,i,q),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _analysisVolume(){let{geometry:e}=this.analysis;if(e==null)return this._previousVolume=null,null;try{let t=w(e,this.view,J);return t==null?(this._previousVolume=null,null):u(t)?(this._updatingHandles.consumePromise(t),this._previousVolume):(this._previousVolume=t,t)}catch(t){return a.getLogger(this).error(new i(`shadowcastanalysisview3d:projection-failed`,`Failed to project analysis area geometry to view spatial reference`,{geometry:e,error:t})),null}}get _visualizationParameters(){if(!this.visible)return null;switch(this.analysis.mode){case`min-duration`:return this._minDurationVisualizationParameters;case`total-duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _minDurationVisualizationParameters(){let{color:e,minDuration:t}=this.analysis.minDurationOptions,n=this._totalDuration;return{rendersSunlight:this.analysis.visualizeSunlight,visualization:2,thresholdColor:e.toUnitRGBA(),threshold:n>0?t/this._totalDuration:0,...this._minDurationContextVisualizationParameters}}get _minDurationContextVisualizationParameters(){let{minDurationOptions:e,visualizeSunlight:t}=this.analysis;if(!e.contextEnabled||t)return{};let{color:n,colorStops:r}=e.contextOptions,i=1/this._lightDirectionsContext.length;return{visualization:3,gradientColorRamp:this._getEffectiveShadowCastColorRamp(n,r,i)}}get _durationVisualizationParameters(){let{color:e,colorStops:t,mode:n}=this.analysis.totalDurationOptions,r=this._totalDuration,i=r>0&&n===`hourly`?U/r:0,a=this._getEffectiveShadowCastColorRamp(e,t,1/r);return i===0?{...this._discreteVisualizationParameters,gradientColorRamp:a}:{rendersSunlight:this.analysis.visualizeSunlight,bandedGradientColorRamp:a,visualization:1,bandSize:i}}get _showsSeparateZeroBucketInHourlyMode(){let{colorStops:e}=this.analysis.totalDurationOptions;return e==null||e.length===0||e.reduce((e,t)=>Math.min(e,t.value),1/0)<=0}get _discreteVisualizationParameters(){let{color:e,colorStops:t}=this.analysis.discreteOptions,n=1/this._lightDirections.length;return{rendersSunlight:this.analysis.visualizeSunlight,gradientColorRamp:this._getEffectiveShadowCastColorRamp(e,t,n),visualization:0}}get _shadowLayerViews(){return this.view.allLayerViews.items.filter(V)}get _previewDependencies(){if(this.error!=null)return null;let{view:e}=this,n=e.slice.plane,r=this._shadowLayerViews,i=r.map(e=>e.layer).filter(t),a=r.map(e=>e.suspended),o=i.map(e=>e.visible),s=i.map(e=>e.opacity),c=!!e.graphicsView?.suspended,l=i.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),u=r.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:n,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:a,graphicsViewSuspended:c,layerVisibilities:o,layerOpacities:s,filters:u,definitionExpressions:l}}get _renderer(){return this.view?.stage?.renderer}get testData(){}async getDurationAtScreen(e){return this._getDurationAtScreen(e)}async _getDurationAtScreen(e,t){if(!await this._isScreenPointInAnalysisArea(e,t))return-1;let{_renderer:n,_totalDurationSampleCount:r}=this;if(n==null||r===0)return 0;let i=this.view.state.camera.screenToRender(p(e.x,e.y),m()),a=n.readAccumulatedShadow(i);return(this.analysis.visualizeSunlight?1-a:a)*this._totalDuration}async _isScreenPointInAnalysisArea(e,t){let{geometry:n}=this.analysis;if(!n)return!0;let r=await this.view.hitTest(e);l(t);let i=r.results.find(e=>e.mapPoint)?.mapPoint??r?.ground?.mapPoint;if(!i)return!1;let a=await x(i,n.spatialReference,{signal:t});return l(t),a!=null&&S(n,a)}_getEffectiveShadowCastColorRamp(e,t,n){if(t!=null){t.length>F&&a.getLogger(this).warnOnce(`ShadowCastAnalysis supports at most 8 color stops`);let e=t.map(e=>[e.value*n,e.color.toUnitRGBA()]);return e.sort(([e],[t])=>e-t),e}return B(e)}};e([g({readOnly:!0,type:[`shadow-cast-view-3d`]})],L.prototype,`type`,void 0),e([g({constructOnly:!0,nonNullable:!0})],L.prototype,`analysis`,void 0),e([g({readOnly:!0})],L.prototype,`updating`,null),e([g()],L.prototype,`visible`,null),e([g()],L.prototype,`error`,null),e([g()],L.prototype,`_visibleOverride`,void 0),e([g()],L.prototype,`_sunlightIntervals`,null),e([g()],L.prototype,`_stopPreviewingTask`,void 0),e([g()],L.prototype,`_updatedRecently`,void 0),e([g()],L.prototype,`_tooltip`,void 0),e([g()],L.prototype,`_sceneUpdating`,null),e([g()],L.prototype,`_timeZone`,null),e([g()],L.prototype,`_effectiveUtcOffset`,null),e([g()],L.prototype,`_utcOffsetAuto`,null),e([g()],L.prototype,`_startDateTimeUTC`,null),e([g()],L.prototype,`_endDateTimeUTC`,null),e([g()],L.prototype,`_referencePosition`,null),e([g()],L.prototype,`_interval`,null),e([g()],L.prototype,`_intervalContext`,null),e([g()],L.prototype,`_totalDurationSampleCount`,null),e([g()],L.prototype,`_totalDuration`,null),e([g()],L.prototype,`_lightDirections`,null),e([g()],L.prototype,`_lightDirectionsContext`,null),e([g()],L.prototype,`_analysisVolume`,null),e([g()],L.prototype,`_visualizationParameters`,null),e([g()],L.prototype,`_minDurationVisualizationParameters`,null),e([g()],L.prototype,`_minDurationContextVisualizationParameters`,null),e([g()],L.prototype,`_durationVisualizationParameters`,null),e([g()],L.prototype,`_showsSeparateZeroBucketInHourlyMode`,null),e([g()],L.prototype,`_discreteVisualizationParameters`,null),e([g()],L.prototype,`_shadowLayerViews`,null),e([g()],L.prototype,`_previewDependencies`,null),e([g()],L.prototype,`_renderer`,null),L=e([_(`esri.views.3d.analysis.ShadowCastAnalysisView3D`)],L);const R=L;function z(e,t,n){t&&n!=null&&e?.setParameters({shadowCast:n})}function B(e){let t=e.toUnitRGBA();return[[0,y(t[0],t[1],t[2],0)],[1,t]]}function V(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`gaussian-splat-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:return!1;case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function H(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let r=C(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=n(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=n(e.layerVisibilities,t.layerVisibilities),s=n(e.layerOpacities,t.layerOpacities),c=n(e.filters,t.filters),l=n(e.definitionExpressions,t.definitionExpressions);return r&&i&&a&&o&&s&&c&&l}const U=h(1,`hours`,`milliseconds`),W=500,G=255,K=v(),q=[],J=new M;export{R as default};
@@ -3,4 +3,4 @@ function e(e,a){return i(r(t(n(e),a)),a.size)}function t(e,{accentColor:t,contra
3
3
  .contrast-fill { fill: ${a}; fill-opacity: ${o}; }
4
4
  .contrast-stroke { stroke: ${a}; stroke-opacity: ${o}; }
5
5
  .accent-fill { fill: ${r}; fill-opacity: ${i}; }
6
- .accent-stroke { stroke: ${r}; stroke-opacity: ${i}; }`),e}function n(e){let t=e.split(`,`)[1],n=atob(t);return new DOMParser().parseFromString(n,`image/svg+xml`)}function r(e){let t=new XMLSerializer().serializeToString(e);return`data:image/svg+xml;base64,${btoa(t)}`}function i(e,t){let n=new Image(t,t);return n.src=e,n}export{e as generateStyledTexture};
6
+ .accent-stroke { stroke: ${r}; stroke-opacity: ${i}; }`),e}function n(e){let t=e.split(`,`,2)[1],n=atob(t);return new DOMParser().parseFromString(n,`image/svg+xml`)}function r(e){let t=new XMLSerializer().serializeToString(e);return`data:image/svg+xml;base64,${btoa(t)}`}function i(e,t){let n=new Image(t,t);return n.src=e,n}export{e as generateStyledTexture};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../../core/Evented.js";import{watch as n,sync as r,syncAndInitial as i,when as a}from"../../../core/reactiveUtils.js";import{property as o,subclass as s}from"../../../core/accessorSupport/decorators.js";import{length as c,equals as l,copy as u,scale as d,lerp as f}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as p,create as m,fromValues as h}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{isEarth as g,getReferenceEllipsoid as _}from"../../../geometry/ellipsoidUtils.js";import{isLoadedOrLoadFor as v}from"../../../geometry/projectionUtils.js";import y from"../../../geometry/SpatialReference.js";import{projectPointToVector as b}from"../../../geometry/projection/projectPointToVector.js";import{getGCSForPlanet as x}from"../../../geometry/support/planetGCSUtils.js";import{heightLimit as S}from"./weather.js";import{positionToTimezoneInfo as C}from"../support/earthUtils.js";import{ColorAndIntensity as w,computeShadowsEnabled as T,computeColorAndIntensity as E,computeVirtualLightDirection as D}from"../support/sunUtils.js";import{MainLight as O,AmbientLight as k,FillLight as A}from"../webgl-engine/lighting/Lightsources.js";let j=class extends t{constructor(){super(),this._view=null,this._tmpLightParameters=new w,this._defaultLightParameters=new w,this._tmpDate=new Date,this._tmpTz={hours:0,minutes:0,seconds:0},this._viewHandlesKey=`viewHandles`,this._trackingEnabled=!1,this._mainLight=new O,this._ambientLight=new k,this._moonLight=new A,this.shadowsAvailable=!1,this._resetReferencePosition()}destroy(){this.disconnectView()}get updating(){return!this._canProjectCameraPosition}get weatherEnabled(){return this._view?.stage?.renderer?.weatherFader!=null&&this._view.environment.atmosphereEnabled&&this._view.state.viewingMode===1&&g(this._view.spatialReference)}get _weatherAvailable(){let e=this._view;return e!=null&&this.weatherEnabled&&c(e.state.camera.eye)-_(e.spatialReference).radius<=S}get weather(){return this._weatherAvailable?this._view?.environment.weather:null}_modifyShadowsAvailable(){if(this._view==null)return;let e=this.referencePositionGeographic,t=e==null||T(e[2],this._view.state.viewingMode);this.shadowsAvailable=this._view.environment.lighting.directShadowsEnabled&&t}get referencePositionGeographic(){return this._referencePositionGeographic}get _canProjectCameraPosition(){let e=this._view?.stateManager?.camera?.position?.spatialReference??y.WGS84,t=x(e);return v(e,t)}connectView(e){this._view=e,this.addHandles([n(()=>e.environment.lighting,e=>this._updateLightingHandler(e),r),n(()=>e.environment.lighting.type===`virtual`?null:e.environment.lighting.date,e=>this._lightingDateHandler(e),r),n(()=>e.environment.lighting.directShadowsEnabled,()=>this._modifyShadowsAvailable(),r),n(()=>e.spatialReference,()=>this._resetReferencePosition(!0),r),n(()=>[e.environment.weather.type,this.weatherEnabled],()=>this._updateLighting(null,1),r),n(()=>this._weatherAvailable,t=>e.environment.setWeatherAvailable(t),i),n(()=>e.viewingMode,()=>this._resetReferencePosition(!0),i),n(()=>e.environment.lighting.type!==`virtual`&&e.environment.lighting.cameraTrackingEnabled,e=>this._updateCameraTracking(e),i),n(()=>e.state.camera,()=>this._cameraHandler(),i),a(()=>this._canProjectCameraPosition,()=>this._resetReferencePosition(!0),r)],this._viewHandlesKey),this._modifyShadowsAvailable(),this._updateLighting(),this._cameraHandler(),this.notifyChange(`updating`)}disconnectView(){this.removeHandles(this._viewHandlesKey),this._resetReferencePosition()}_updateLightingHandler(e){this._updateCameraTracking(e.type!==`virtual`&&e.cameraTrackingEnabled),this._lightingDateHandler(e.type===`virtual`?null:e.date),this._modifyShadowsAvailable()}_updateCameraTracking(e){if(this._trackingEnabled=e,e)this._cameraHandler();else{if(!this._view)return;let e=this._view.environment.lighting;e?.type!==`virtual`&&(e.positionTimezoneInfo.autoUpdated=!1)}}_lightingDateHandler(e){if(!this._view)return;let t=this._view.environment.lighting;if(t?.type===`virtual`)this._updateLighting();else if(e){if(!t.positionTimezoneInfo.autoUpdated&&(this._preupdateTracking(e),this._referencePositionGeographic!=null)){let e=C(this._referencePositionGeographic,this._tmpTz);e!=null&&(t.autoUpdate(null,e),this._trackingEnabled&&(t.positionTimezoneInfo.autoUpdated=!0))}this._updateLighting(e)}}_preupdateTracking(e){this._view&&!this._trackingEnabled&&this._view.environment.lighting.type!==`virtual`&&this._view.environment.lighting.cameraTrackingEnabled&&this._cameraHandler(e)}_cameraHandler(e=null){let t=this._view;if(!t||!t.ready)return;let n=t.stateManager.camera;if(!n)return;let r=n.position,i=r.spatialReference??y.WGS84,a=x(i);if(b(r,P,a,F))this._referencePositionGeographic?l(this._referencePositionGeographic,P)||(u(this._referencePositionGeographic,P),this.notifyChange(`referencePositionGeographic`)):this._referencePositionGeographic=p(P),this._autoUpdateTimezone(this._referencePositionGeographic,e)||this._updateLighting(e);else{if(this._referencePositionGeographic==null)return;this._referencePositionGeographic=null,this._updateLighting()}}_updateLighting(e,t=0){let n=this._view;if(!n)return;let{lighting:r}=n.environment,i=r.type===`virtual`,a=this._referencePositionGeographic,o=a==null?this._defaultLightParameters:this._tmpLightParameters;if(a){e??=i?null:r.date;let t=this.weather?.type??`disabled`;E(e,a,n.state.viewingMode,t,n.state.camera,o)}else i&&D(n.state.camera,n.state.viewingMode,o.direct.directionToLightSource);let s=this._mainLight,c=o.direct;d(s.intensity,c.color,c.intensity*Math.PI),u(s.direction,c.directionToLightSource),s.specularStrength=o.specularStrength,s.environmentStrength=o.environmentStrength;let l=this._ambientLight;d(l.intensity,o.ambient.color,o.ambient.intensity);let p=this._moonLight;f(p.intensity,M,N,o.globalFactor);let m=(1-.5*o.globalFactor)*(1-.4*o.noonFactor*(1-o.globalFactor));d(p.intensity,p.intensity,m),u(p.direction,c.directionToLightSource),n.stage.renderer.updateLighting([s,l,p],o.noonFactor,o.globalFactor,this.weather?t:0),this._modifyShadowsAvailable()}_autoUpdateTimezone(e,t=null){if(!this._view||this._view.environment.lighting.type===`virtual`||!this._view.environment.lighting.cameraTrackingEnabled||e==null)return!1;let n=this._tmpDate;n.setTime((t||this._view.environment.lighting.date).getTime());let r=C(e,this._tmpTz);if(r==null)return!1;let i=this._view.environment.lighting.positionTimezoneInfo;if(!i.autoUpdated)i=r;else if(i.hours===r.hours&&i.minutes===r.minutes&&i.seconds===r.seconds)return!1;let a=n.getUTCHours()-(r.hours-i.hours),o=n.getUTCMinutes()-(r.minutes-i.minutes),s=n.getUTCSeconds()-(r.seconds-i.seconds);return n.setUTCHours(a),n.setUTCMinutes(o),n.setUTCSeconds(s),!t&&this._view.environment.lighting.autoUpdate(n,r)}_resetReferencePosition(e=!1){this._referencePositionGeographic=null,e&&this._cameraHandler()}};e([o()],j.prototype,`_view`,void 0),e([o({type:Boolean,readOnly:!0})],j.prototype,`updating`,null),e([o()],j.prototype,`weatherEnabled`,null),e([o()],j.prototype,`_weatherAvailable`,null),e([o()],j.prototype,`shadowsAvailable`,void 0),e([o()],j.prototype,`referencePositionGeographic`,null),e([o()],j.prototype,`_referencePositionGeographic`,void 0),e([o()],j.prototype,`_canProjectCameraPosition`,null),j=e([s(`esri.views.3d.environment.EnvironmentView`)],j);const M=h(.22,.22,.33),N=h(.22,.22,.22),P=m(),F={zConversionDisabled:!0};export{j as EnvironmentView};
2
+ import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../../core/Evented.js";import{watch as n,sync as r,syncAndInitial as i,when as a}from"../../../core/reactiveUtils.js";import{property as o,subclass as s}from"../../../core/accessorSupport/decorators.js";import{length as c,equals as l,copy as u,scale as d,lerp as f}from"../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as p,create as m,fromValues as h}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{isEarth as g,getReferenceEllipsoid as _}from"../../../geometry/ellipsoidUtils.js";import{isLoadedOrLoadFor as v}from"../../../geometry/projectionUtils.js";import y from"../../../geometry/SpatialReference.js";import{projectPointToVector as b}from"../../../geometry/projection/projectPointToVector.js";import{getGCSForPlanet as x}from"../../../geometry/support/planetGCSUtils.js";import{heightLimit as S}from"./weather.js";import{positionToTimezoneInfo as C}from"../support/earthUtils.js";import{ColorAndIntensity as w,computeShadowsEnabled as T,computeColorAndIntensity as E,computeVirtualLightDirection as D}from"../support/sunUtils.js";import{MainLight as O,AmbientLight as k,FillLight as A}from"../webgl-engine/lighting/Lightsources.js";let j=class extends t{constructor(){super(),this._view=null,this._tmpLightParameters=new w,this._defaultLightParameters=new w,this._tmpDate=new Date,this._tmpTz={hours:0,minutes:0,seconds:0},this._viewHandlesKey=`viewHandles`,this._trackingEnabled=!1,this._mainLight=new O,this._ambientLight=new k,this._moonLight=new A,this.shadowsAvailable=!1,this._resetReferencePosition()}destroy(){this.disconnectView()}get updating(){return!this._canProjectCameraPosition}get weatherEnabled(){return this._view?.stage?.renderer?.weatherFader!=null&&this._view.environment.atmosphereEnabled&&this._view.state.isGlobal&&g(this._view.spatialReference)}get _weatherAvailable(){let e=this._view;return e!=null&&this.weatherEnabled&&c(e.state.camera.eye)-_(e.spatialReference).radius<=S}get weather(){return this._weatherAvailable?this._view?.environment.weather:null}_modifyShadowsAvailable(){if(this._view==null)return;let e=this.referencePositionGeographic,t=e==null||T(e[2],this._view.state.viewingMode);this.shadowsAvailable=this._view.environment.lighting.directShadowsEnabled&&t}get referencePositionGeographic(){return this._referencePositionGeographic}get _canProjectCameraPosition(){let e=this._view?.stateManager?.camera?.position?.spatialReference??y.WGS84,t=x(e);return v(e,t)}connectView(e){this._view=e,this.addHandles([n(()=>e.environment.lighting,e=>this._updateLightingHandler(e),r),n(()=>e.environment.lighting.type===`virtual`?null:e.environment.lighting.date,e=>this._lightingDateHandler(e),r),n(()=>e.environment.lighting.directShadowsEnabled,()=>this._modifyShadowsAvailable(),r),n(()=>e.spatialReference,()=>this._resetReferencePosition(!0),r),n(()=>[e.environment.weather.type,this.weatherEnabled],()=>this._updateLighting(null,1),r),n(()=>this._weatherAvailable,t=>e.environment.setWeatherAvailable(t),i),n(()=>e.viewingMode,()=>this._resetReferencePosition(!0),i),n(()=>e.environment.lighting.type!==`virtual`&&e.environment.lighting.cameraTrackingEnabled,e=>this._updateCameraTracking(e),i),n(()=>e.state.camera,()=>this._cameraHandler(),i),a(()=>this._canProjectCameraPosition,()=>this._resetReferencePosition(!0),r)],this._viewHandlesKey),this._modifyShadowsAvailable(),this._updateLighting(),this._cameraHandler(),this.notifyChange(`updating`)}disconnectView(){this.removeHandles(this._viewHandlesKey),this._resetReferencePosition()}_updateLightingHandler(e){this._updateCameraTracking(e.type!==`virtual`&&e.cameraTrackingEnabled),this._lightingDateHandler(e.type===`virtual`?null:e.date),this._modifyShadowsAvailable()}_updateCameraTracking(e){if(this._trackingEnabled=e,e)this._cameraHandler();else{if(!this._view)return;let e=this._view.environment.lighting;e?.type!==`virtual`&&(e.positionTimezoneInfo.autoUpdated=!1)}}_lightingDateHandler(e){if(!this._view)return;let t=this._view.environment.lighting;if(t?.type===`virtual`)this._updateLighting();else if(e){if(!t.positionTimezoneInfo.autoUpdated&&(this._preupdateTracking(e),this._referencePositionGeographic!=null)){let e=C(this._referencePositionGeographic,this._tmpTz);e!=null&&(t.autoUpdate(null,e),this._trackingEnabled&&(t.positionTimezoneInfo.autoUpdated=!0))}this._updateLighting(e)}}_preupdateTracking(e){this._view&&!this._trackingEnabled&&this._view.environment.lighting.type!==`virtual`&&this._view.environment.lighting.cameraTrackingEnabled&&this._cameraHandler(e)}_cameraHandler(e=null){let t=this._view;if(!t||!t.ready)return;let n=t.stateManager.camera;if(!n)return;let r=n.position,i=r.spatialReference??y.WGS84,a=x(i);if(b(r,P,a,F))this._referencePositionGeographic?l(this._referencePositionGeographic,P)||(u(this._referencePositionGeographic,P),this.notifyChange(`referencePositionGeographic`)):this._referencePositionGeographic=p(P),this._autoUpdateTimezone(this._referencePositionGeographic,e)||this._updateLighting(e);else{if(this._referencePositionGeographic==null)return;this._referencePositionGeographic=null,this._updateLighting()}}_updateLighting(e,t=0){let n=this._view;if(!n)return;let{lighting:r}=n.environment,i=r.type===`virtual`,a=this._referencePositionGeographic,o=a==null?this._defaultLightParameters:this._tmpLightParameters;if(a){e??=i?null:r.date;let t=this.weather?.type??`disabled`;E(e,a,n.state.viewingMode,t,n.state.camera,o)}else i&&D(n.state.camera,n.state.viewingMode,o.direct.directionToLightSource);let s=this._mainLight,c=o.direct;d(s.intensity,c.color,c.intensity*Math.PI),u(s.direction,c.directionToLightSource),s.specularStrength=o.specularStrength,s.environmentStrength=o.environmentStrength;let l=this._ambientLight;d(l.intensity,o.ambient.color,o.ambient.intensity);let p=this._moonLight;f(p.intensity,M,N,o.globalFactor);let m=(1-.5*o.globalFactor)*(1-.4*o.noonFactor*(1-o.globalFactor));d(p.intensity,p.intensity,m),u(p.direction,c.directionToLightSource),n.stage.renderer.updateLighting([s,l,p],o.noonFactor,o.globalFactor,this.weather?t:0),this._modifyShadowsAvailable()}_autoUpdateTimezone(e,t=null){if(!this._view||this._view.environment.lighting.type===`virtual`||!this._view.environment.lighting.cameraTrackingEnabled||e==null)return!1;let n=this._tmpDate;n.setTime((t||this._view.environment.lighting.date).getTime());let r=C(e,this._tmpTz);if(r==null)return!1;let i=this._view.environment.lighting.positionTimezoneInfo;if(!i.autoUpdated)i=r;else if(i.hours===r.hours&&i.minutes===r.minutes&&i.seconds===r.seconds)return!1;let a=n.getUTCHours()-(r.hours-i.hours),o=n.getUTCMinutes()-(r.minutes-i.minutes),s=n.getUTCSeconds()-(r.seconds-i.seconds);return n.setUTCHours(a),n.setUTCMinutes(o),n.setUTCSeconds(s),!t&&this._view.environment.lighting.autoUpdate(n,r)}_resetReferencePosition(e=!1){this._referencePositionGeographic=null,e&&this._cameraHandler()}};e([o()],j.prototype,`_view`,void 0),e([o({type:Boolean,readOnly:!0})],j.prototype,`updating`,null),e([o()],j.prototype,`weatherEnabled`,null),e([o()],j.prototype,`_weatherAvailable`,null),e([o()],j.prototype,`shadowsAvailable`,void 0),e([o()],j.prototype,`referencePositionGeographic`,null),e([o()],j.prototype,`_referencePositionGeographic`,void 0),e([o()],j.prototype,`_canProjectCameraPosition`,null),j=e([s(`esri.views.3d.environment.EnvironmentView`)],j);const M=h(.22,.22,.33),N=h(.22,.22,.22),P=m(),F={zConversionDisabled:!0};export{j as EnvironmentView};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{handlesGroup as t,makeHandle as n}from"../../../../../core/handleUtils.js";import{destroyMaybe as r,removeMaybe as i}from"../../../../../core/maybe.js";import{watch as a,syncAndInitial as o,initial as s,when as c}from"../../../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../../../core/accessorSupport/decorators.js";import{set as d}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../../../../../geometry/Point.js";import{getEffectiveElevationInfo as m,getEffectiveElevationMode as h}from"../../../../../support/elevationInfoUtils.js";import g from"../../../../../symbols/support/ElevationInfo.js";import{SegmentLabels3D as _}from"../../SegmentLabels3D.js";import{SnappingVisualizer3D as v}from"../../SnappingVisualizer3D.js";import{meshTransformFastUpdateHandles as y}from"../meshFastUpdateUtils.js";import{Settings as b}from"../settings.js";import{ExtendedLineVisualElement as x}from"../../visualElements/ExtendedLineVisualElement.js";import{OutlineVisualElement as S}from"../../visualElements/OutlineVisualElement.js";import{VerticesVisualElement as C}from"../../visualElements/VerticesVisualElement.js";import{evaluateElevationAlignmentAtPoint as w}from"../../../layers/graphics/elevationAlignmentUtils.js";import{ElevationContext as T}from"../../../layers/graphics/ElevationContext.js";import{GraphicState as E}from"../../../layers/graphics/GraphicState.js";import{DrawGraphicTool as D,geometryTypeToDrawOperationGeometryType as O}from"../../../../draw/DrawGraphicTool.js";import{DrawOperation as k}from"../../../../draw/DrawOperation.js";import{ElevationDrawSurface as A,SceneDrawSurface as j}from"../../../../draw/drawSurfaces.js";import{updateMeshTransformFromTooltipInfo as M}from"../../../../interactive/tooltip/tooltipCommonUtils.js";import{autorun as N}from"../../../../../core/accessorSupport/trackingUtils.js";let P=class extends D{constructor(e){super(e),this._activeVertexVisualElement=null,this._createGraphicState=null,this._outlineVisualElement=null,this._verticesVisualElement=null,this._verticalLineVisualElement=null,this._settings=new b({getTheme:()=>this.view.effectiveTheme}),this.geometryType=null,this.type=`draw-3d`}initialize(){let{mode:e,offset:t,unit:n,featureExpressionInfo:r}=this.elevationInfo;this.internalGraphicsLayer.elevationInfo=new g({mode:e,offset:t,unit:n,featureExpressionInfo:r})}normalizeCtorArgs(e){if(!e.elevationInfo){let t=e.hasZ??!0;return{...e,elevationInfo:m(t)}}return e}initializeGraphic(e){let{view:n}=this,r=this._createGraphicState=new E({graphic:e});return t([n.maskOccludee(e),n.trackGraphicState(r),a(()=>({element:this._outlineVisualElement,isDraped:r.isDraped}),({element:e,isDraped:t})=>{e&&(e.isDraped=t)},o),N(()=>{M(this.tooltipInfos.mesh,this.geometryToPlace)}),this._setupLoadingIndicator(r),...y(r)])}makeDrawOperation(){let{geometryType:e}=this,t=e!==`circle`&&e!==`rectangle`;return new k({view:this.view,manipulators:this.manipulators,geometryType:O(e),drawingMode:this.mode,hasZ:this.hasZ,defaultZ:this.defaultZ,snapToSceneEnabled:this.snapToScene,drawSurface:new j(this.view,this.elevationInfo,[this.internalGraphicsLayer]),elevationDrawSurface:new A(this.elevationInfo,this.defaultZ,this.view,this.internalGraphicsLayer),hasM:!1,elevationInfo:this.elevationInfo,snappingManager:this.snappingManager,snappingVisualizer:new v,segmentLabels:t?new _:null,labelOptions:this.toolOptions.labels,isDraped:this._createGraphicState?this._createGraphicState.isDraped:h(this.hasZ,this.elevationInfo)===`on-the-ground`,cursor:this.cursor,constraintsEnabled:!0})}onActiveVertexChanged(e){let{view:i}=this;if(this._activeVertexVisualElement)return this._activeVertexVisualElement.vertices=[e],this._activeVertexVisualElement.recreate(),this._updateVerticalLineVisualElement(e),n();let a=this._settings,o=a.manipulators.vertex,c=new C({view:i,spatialReference:i.spatialReference,vertices:[e],elevationInfo:this.internalGraphicsLayer.elevationInfo,size:o.size,outlineSize:o.outlineSize,renderOccluded:o.renderOccluded,attached:!1,isDecoration:!0});this._activeVertexVisualElement=c;let l=a.visualElements.zVerticalLine,u=new x({view:i,extensionType:l.extensionType,innerWidth:1,attached:!1,writeDepthEnabled:!1,renderOccluded:4,isDecoration:!0});this._verticalLineVisualElement=u;let d=t([this._updatingHandles.add(()=>a.visualElements.zVerticalLine,e=>e.apply(u),s),this._updatingHandles.add(()=>({selectedColor:a.colors.selected.toUnitRGBA(),outlineColor:a.manipulators.vertex.outlineColor.toUnitRGBA()}),({selectedColor:e,outlineColor:t})=>{c.color=e,c.outlineColor=t},s),n(()=>{this._activeVertexVisualElement=r(this._activeVertexVisualElement),this._verticalLineVisualElement=r(this._verticalLineVisualElement)})]);return c.attached=!0,this._updateVerticalLineVisualElement(e),d}_updateVerticalLineVisualElement(e){let t=this._verticalLineVisualElement;if(!t)return;let{renderCoordsHelper:n,elevationProvider:r}=this.view;d(I,e[0],e[1],e[2]),F.setFromElevationInfo(this.elevationInfo),L.x=I[0],L.y=I[1],L.z=I[2],L.spatialReference=this.view.spatialReference,I[2]=w(L,r,F,n),n.toRenderCoords(I,this.view.spatialReference,I)?(t.setStartEndFromWorldDownAtLocation(I),t.attached=!0):t.attached=!1}onOutlineChanged(e){if(this._outlineVisualElement)return this._outlineVisualElement.geometry=e,n();let i=this.internalGraphicsLayer.elevationInfo,{view:a}=this,o=this._settings,c=new S({view:a,geometry:e,elevationInfo:i,isDraped:this._createGraphicState?this._createGraphicState.isDraped:h(this.hasZ,i)===`on-the-ground`,attached:!1,isDecoration:!0});this._outlineVisualElement=c;let l=t([this._updatingHandles.add(()=>o.visualElements.lineObjects.outline,e=>e.apply(c),s),this._updatingHandles.add(()=>o.visualElements.lineObjects.shadowStyle,e=>e.apply(c),s),n(()=>{this._outlineVisualElement=r(this._outlineVisualElement)})]);return c.attached=!0,c.laserlineEnabled=!0,l}onRegularVerticesChanged(e){if(this._verticesVisualElement)return this._verticesVisualElement.vertices=e,n();let{view:i}=this,a=this._settings,o=a.manipulators.vertex,c=new C({view:i,spatialReference:i.spatialReference,vertices:e,elevationInfo:this.internalGraphicsLayer.elevationInfo,size:o.size,outlineSize:o.outlineSize,renderOccluded:o.renderOccluded,attached:!1,isDecoration:!0}),l=t([this._updatingHandles.add(()=>({color:a.manipulators.vertex.color.toUnitRGBA(),outlineColor:a.manipulators.vertex.outlineColor.toUnitRGBA()}),({color:e,outlineColor:t})=>{c.color=e,c.outlineColor=t},s),n(()=>{this._verticesVisualElement=r(this._verticesVisualElement)})]);return c.attached=!0,this._verticesVisualElement=c,l}updateGraphicGeometry(e){if(this.geometryType===`mesh`&&e?.type===`point`){let t=this.geometryToPlace;t?.centerAt(e),M(this.tooltipInfos.mesh,t);let n=this._graphic;t&&n.geometry===t||(n.geometry=t)}else super.updateGraphicGeometry(e)}_setupLoadingIndicator(e){let{drawOperation:r}=this;if(!this.geometryToPlace||e.displaying)return r.loading=!1,null;r.loading=!0;let a=n(()=>{r.loading=!1}),s,l=()=>{s&&cancelAnimationFrame(s)},u=()=>{l(),s=requestAnimationFrame(()=>a.remove())},d=null;return d=e.on(`changed`,()=>{d=i(d),u()}),t([d,c(()=>e.displaying,u,{...o,once:!0}),n(l),a])}};e([l({constructOnly:!0})],P.prototype,`elevationInfo`,void 0),e([l({constructOnly:!0})],P.prototype,`geometryType`,void 0),e([l()],P.prototype,`type`,void 0),e([l({constructOnly:!0})],P.prototype,`view`,void 0),P=e([u(`esri.views.3d.interactive.editingTools.draw.DrawGraphicTool3D`)],P);const F=new T,I=f(),L=new p;export{P as DrawGraphicTool3D};
2
+ import{__decorate as e}from"tslib";import{handlesGroup as t,makeHandle as n}from"../../../../../core/handleUtils.js";import{destroyMaybe as r,removeMaybe as i}from"../../../../../core/maybe.js";import{watch as a,syncAndInitial as o,initial as s,when as c}from"../../../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../../../core/accessorSupport/decorators.js";import{set as d}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as f}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../../../../../geometry/Point.js";import{getEffectiveElevationMode as m,getEffectiveElevationInfo as h}from"../../../../../support/elevationInfoUtils.js";import g from"../../../../../symbols/support/ElevationInfo.js";import{SegmentLabels3D as _}from"../../SegmentLabels3D.js";import{SnappingVisualizer3D as v}from"../../SnappingVisualizer3D.js";import{meshTransformFastUpdateHandles as y}from"../meshFastUpdateUtils.js";import{Settings as b}from"../settings.js";import{ExtendedLineVisualElement as x}from"../../visualElements/ExtendedLineVisualElement.js";import{OutlineVisualElement as S}from"../../visualElements/OutlineVisualElement.js";import{VerticesVisualElement as C}from"../../visualElements/VerticesVisualElement.js";import{evaluateElevationAlignmentAtPoint as w}from"../../../layers/graphics/elevationAlignmentUtils.js";import{ElevationContext as T}from"../../../layers/graphics/ElevationContext.js";import{GraphicState as E}from"../../../layers/graphics/GraphicState.js";import{DrawGraphicTool as D,geometryTypeToDrawOperationGeometryType as O}from"../../../../draw/DrawGraphicTool.js";import{DrawOperation as k}from"../../../../draw/DrawOperation.js";import{ElevationDrawSurface as A,SceneDrawSurface as j}from"../../../../draw/drawSurfaces.js";import{updateMeshTransformFromTooltipInfo as M}from"../../../../interactive/tooltip/tooltipCommonUtils.js";import{autorun as N}from"../../../../../core/accessorSupport/trackingUtils.js";let P=class extends D{constructor(e){super(R(e)),this._activeVertexVisualElement=null,this._createGraphicState=null,this._outlineVisualElement=null,this._verticesVisualElement=null,this._verticalLineVisualElement=null,this._settings=new b({getTheme:()=>this.view.effectiveTheme}),this.geometryType=null,this.type=`draw-3d`}initialize(){let{mode:e,offset:t,unit:n,featureExpressionInfo:r}=this.elevationInfo;this.internalGraphicsLayer.elevationInfo=new g({mode:e,offset:t,unit:n,featureExpressionInfo:r})}initializeGraphic(e){let{view:n}=this,r=this._createGraphicState=new E({graphic:e});return t([n.maskOccludee(e),n.trackGraphicState(r),a(()=>({element:this._outlineVisualElement,isDraped:r.isDraped}),({element:e,isDraped:t})=>{e&&(e.isDraped=t)},o),N(()=>{M(this.tooltipInfos.mesh,this.geometryToPlace)}),this._setupLoadingIndicator(r),...y(r)])}makeDrawOperation(){let{geometryType:e}=this,t=e!==`circle`&&e!==`rectangle`;return new k({view:this.view,manipulators:this.manipulators,geometryType:O(e),drawingMode:this.mode,hasZ:this.hasZ,defaultZ:this.defaultZ,snapToSceneEnabled:this.snapToScene,drawSurface:new j(this.view,this.elevationInfo,[this.internalGraphicsLayer]),elevationDrawSurface:new A(this.elevationInfo,this.defaultZ,this.view,this.internalGraphicsLayer),hasM:!1,elevationInfo:this.elevationInfo,snappingManager:this.snappingManager,snappingVisualizer:new v,segmentLabels:t?new _:null,labelOptions:this.toolOptions.labels,isDraped:this._createGraphicState?this._createGraphicState.isDraped:m(this.hasZ,this.elevationInfo)===`on-the-ground`,cursor:this.cursor,constraintsEnabled:!0})}onActiveVertexChanged(e){let{view:i}=this;if(this._activeVertexVisualElement)return this._activeVertexVisualElement.vertices=[e],this._activeVertexVisualElement.recreate(),this._updateVerticalLineVisualElement(e),n();let a=this._settings,o=a.manipulators.vertex,c=new C({view:i,spatialReference:i.spatialReference,vertices:[e],elevationInfo:this.internalGraphicsLayer.elevationInfo,size:o.size,outlineSize:o.outlineSize,renderOccluded:o.renderOccluded,attached:!1,isDecoration:!0});this._activeVertexVisualElement=c;let l=a.visualElements.zVerticalLine,u=new x({view:i,extensionType:l.extensionType,innerWidth:1,attached:!1,writeDepthEnabled:!1,renderOccluded:4,isDecoration:!0});this._verticalLineVisualElement=u;let d=t([this._updatingHandles.add(()=>a.visualElements.zVerticalLine,e=>e.apply(u),s),this._updatingHandles.add(()=>({selectedColor:a.colors.selected.toUnitRGBA(),outlineColor:a.manipulators.vertex.outlineColor.toUnitRGBA()}),({selectedColor:e,outlineColor:t})=>{c.color=e,c.outlineColor=t},s),n(()=>{this._activeVertexVisualElement=r(this._activeVertexVisualElement),this._verticalLineVisualElement=r(this._verticalLineVisualElement)})]);return c.attached=!0,this._updateVerticalLineVisualElement(e),d}_updateVerticalLineVisualElement(e){let t=this._verticalLineVisualElement;if(!t)return;let{renderCoordsHelper:n,elevationProvider:r}=this.view;d(I,e[0],e[1],e[2]),F.setFromElevationInfo(this.elevationInfo),L.x=I[0],L.y=I[1],L.z=I[2],L.spatialReference=this.view.spatialReference,I[2]=w(L,r,F,n),n.toRenderCoords(I,this.view.spatialReference,I)?(t.setStartEndFromWorldDownAtLocation(I),t.attached=!0):t.attached=!1}onOutlineChanged(e){if(this._outlineVisualElement)return this._outlineVisualElement.geometry=e,n();let i=this.internalGraphicsLayer.elevationInfo,{view:a}=this,o=this._settings,c=new S({view:a,geometry:e,elevationInfo:i,isDraped:this._createGraphicState?this._createGraphicState.isDraped:m(this.hasZ,i)===`on-the-ground`,attached:!1,isDecoration:!0});this._outlineVisualElement=c;let l=t([this._updatingHandles.add(()=>o.visualElements.lineObjects.outline,e=>e.apply(c),s),this._updatingHandles.add(()=>o.visualElements.lineObjects.shadowStyle,e=>e.apply(c),s),n(()=>{this._outlineVisualElement=r(this._outlineVisualElement)})]);return c.attached=!0,c.laserlineEnabled=!0,l}onRegularVerticesChanged(e){if(this._verticesVisualElement)return this._verticesVisualElement.vertices=e,n();let{view:i}=this,a=this._settings,o=a.manipulators.vertex,c=new C({view:i,spatialReference:i.spatialReference,vertices:e,elevationInfo:this.internalGraphicsLayer.elevationInfo,size:o.size,outlineSize:o.outlineSize,renderOccluded:o.renderOccluded,attached:!1,isDecoration:!0}),l=t([this._updatingHandles.add(()=>({color:a.manipulators.vertex.color.toUnitRGBA(),outlineColor:a.manipulators.vertex.outlineColor.toUnitRGBA()}),({color:e,outlineColor:t})=>{c.color=e,c.outlineColor=t},s),n(()=>{this._verticesVisualElement=r(this._verticesVisualElement)})]);return c.attached=!0,this._verticesVisualElement=c,l}updateGraphicGeometry(e){if(this.geometryType===`mesh`&&e?.type===`point`){let t=this.geometryToPlace;t?.centerAt(e),M(this.tooltipInfos.mesh,t);let n=this._graphic;t&&n.geometry===t||(n.geometry=t)}else super.updateGraphicGeometry(e)}_setupLoadingIndicator(e){let{drawOperation:r}=this;if(!this.geometryToPlace||e.displaying)return r.loading=!1,null;r.loading=!0;let a=n(()=>{r.loading=!1}),s,l=()=>{s&&cancelAnimationFrame(s)},u=()=>{l(),s=requestAnimationFrame(()=>a.remove())},d=null;return d=e.on(`changed`,()=>{d=i(d),u()}),t([d,c(()=>e.displaying,u,{...o,once:!0}),n(l),a])}};e([l({constructOnly:!0})],P.prototype,`elevationInfo`,void 0),e([l({constructOnly:!0})],P.prototype,`geometryType`,void 0),e([l()],P.prototype,`type`,void 0),e([l({constructOnly:!0})],P.prototype,`view`,void 0),P=e([u(`esri.views.3d.interactive.editingTools.draw.DrawGraphicTool3D`)],P);const F=new T,I=f(),L=new p;function R(e){if(!e.elevationInfo){let t=e.hasZ??!0;return{...e,elevationInfo:h(t)}}return e}export{P as DrawGraphicTool3D};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{darken as e}from"../../../../../core/colorUtils.js";import{EventEmitter as t}from"../../../../../core/Evented.js";import{makeHandle as n}from"../../../../../core/handleUtils.js";import"../../../../../core/has.js";import{clamp as r}from"../../../../../core/mathUtils.js";import{removeMaybe as i}from"../../../../../core/maybe.js";import{watch as a}from"../../../../../core/reactiveUtils.js";import{translate as o,rotateX as s}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as c}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{dist as l,subtract as u,normalize as d,dot as f,cross as p,scale as m}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{fromValues as h,create as g}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{Manipulator3D as _}from"../../Manipulator3D.js";import{createManipulatorMaterial as v}from"../../manipulatorUtils.js";import{RenderObject as y}from"../../RenderObject.js";import{screenToZConstrained as b}from"../dragEventPipeline3D.js";import{Settings as x}from"../settings.js";import{discRadius as S}from"./config.js";import{Manipulation as C}from"./Manipulation.js";import{createManipulatedMoveDragPipeline as w}from"./moveUtils.js";import{createTubeGeometry as T,createConeGeometry as E}from"../../../webgl-engine/lib/GeometryUtil.js";import{createManipulatorDragEventPipeline as D,addScreenDelta as O}from"../../../../interactive/dragEventPipeline.js";class k extends C{constructor(e){super(),this._radius=S,this.events=new t,this._tool=e.tool,this._view=e.view;let n=new x({getTheme:()=>this._view.effectiveTheme});this._settings=n,e.radius!=null&&(this._radius=e.radius);let r=this._view.effectiveTheme.accentColor;this._materials={materialUnfocused:v(A(r,1,.25),1),materialFocused:v(A(r,1,0),1),materialOccludedUnfocused:v(A(r,.7,0),n.zManipulator.renderOccluded),materialOccludedFocused:v(A(r,.85,0),n.zManipulator.renderOccluded)},this._themeHandle=a(()=>this._view.effectiveTheme.accentColor,e=>{let t=A(e,1,.25),n=A(e,1,0),r=A(e,.7,0),i=A(e,.85,0),{materialUnfocused:a,materialFocused:o,materialOccludedUnfocused:s,materialOccludedFocused:c}=this._materials;a.setParameters({color:t}),o.setParameters({color:n}),s.setParameters({color:r}),c.setParameters({color:i})}),this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._themeHandle=i(this._themeHandle),this._manipulator.applyObjectTransform=P,this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()})}forEachManipulator(e){e(this._manipulator,0)}createManipulatedObjectDragPipeline(e,t,r){if(!t.operations)return n();let i=t.operations.data.spatialReference;return w(t,r,t=>this.createDragPipeline((n,r,i,a,o)=>({steps:r,cancel:i}=e(n,r,i,a,o),t(n,r,i)),i))}createDragPipeline(e,t){let n=this._view;return D(this._manipulator,(r,i,a,o,s)=>{e(r,i.next(e=>({...e,manipulatorType:0})).next(b(n,r.renderLocation,t)).next(O()),a,o,s)})}get radius(){return this._radius}set radius(e){e!==this._radius&&(this._radius=e,this._updateManipulator())}_updateManipulator(){let e=this._settings,t=this._radius/S,n=e.zManipulator.height*t,r=e.zManipulator.coneHeight*t,i=e.zManipulator.coneWidth*t,a=e.zManipulator.width*t,l=[h(0,0,0),h(0,0,n)],u=[h(0,0,0),h(0,0,n+r)],d=(e=>{let t=c();return o(t,t,[0,0,n]),s(t,t,Math.PI/2),t})(),{materialUnfocused:f,materialFocused:p,materialOccludedUnfocused:m,materialOccludedFocused:g}=this._materials,_=T(f,l,a/2,16,!1),v=E(f,r,i/2,16,!1);v.transformation=d,this._manipulator.renderObjects=[new y(v,1),new y(_,1),new y(v.instantiate({material:p}),2),new y(_.instantiate({material:p}),2),new y(v.instantiate({material:m}),1),new y(_.instantiate({material:m}),1),new y(v.instantiate({material:g}),2),new y(_.instantiate({material:g}),2)],this._manipulator.radius=a/2+2,this._manipulator.collisionType={type:`line`,paths:[u]}}_createManipulator(){let e=this._view,t=new _({view:e,autoScaleRenderObjects:!1,worldSized:!1,selectable:!1,cursor:`ns-resize`,elevationInfo:this.elevationInfo,worldOriented:!0,collisionPriority:1.6});t.applyObjectTransform=t=>{let n=e.state.camera,i=j;e.renderCoordsHelper.toRenderCoords(this._manipulator.elevationAlignedLocation,i);let a=l(n.eye,i),o=n.computeRenderPixelSizeAtDistance(a),s=u(M,i,n.eye);d(s,s);let c=N;e.renderCoordsHelper.worldUpAtPosition(j,c);let h=Math.abs(f(s,c)),g=p(M,s,c),_=p(M,g,c),v=r(h,.01,1),y=1-Math.sqrt(1-v*v)/v/n.fullWidth,b=this._settings,x=this._radius/S,C=b.zManipulator.width*x;m(_,d(_,_),(1/y-1)*a+o*C),t[12]-=M[0],t[13]-=M[1],t[14]-=M[2]},this._manipulator=t,this._updateManipulator()}get test(){}}function A(t,n,r){let i=e(t,r);return i.a*=n,i.toUnitRGBA()}const j=g(),M=g(),N=g(),P=()=>{};export{k as MoveZManipulation};
2
+ import{darken as e}from"../../../../../core/colorUtils.js";import{EventEmitter as t}from"../../../../../core/Evented.js";import{makeHandle as n}from"../../../../../core/handleUtils.js";import"../../../../../core/has.js";import{clamp as r}from"../../../../../core/mathUtils.js";import{removeMaybe as i}from"../../../../../core/maybe.js";import{watch as a}from"../../../../../core/reactiveUtils.js";import{translate as o,rotateX as s}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as c}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{dist as l,subtract as u,normalize as d,dot as f,cross as p,scale as m}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{fromValues as h,create as g}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{Manipulator3D as _}from"../../Manipulator3D.js";import{createManipulatorMaterial as v}from"../../manipulatorUtils.js";import{RenderObject as y}from"../../RenderObject.js";import{screenToZConstrained as b}from"../dragEventPipeline3D.js";import{Settings as x}from"../settings.js";import{discRadius as S}from"./config.js";import{Manipulation as C}from"./Manipulation.js";import{createManipulatedMoveDragPipeline as w}from"./moveUtils.js";import{createTubeGeometry as T,createConeGeometry as E}from"../../../webgl-engine/lib/GeometryUtil.js";import{createManipulatorDragEventPipeline as D,addScreenDelta as O}from"../../../../interactive/dragEventPipeline.js";class k extends C{constructor(e){super(),this._radius=S,this.events=new t,this._tool=e.tool,this._view=e.view;let n=new x({getTheme:()=>this._view.effectiveTheme});this._settings=n,e.radius!=null&&(this._radius=e.radius);let r=this._view.effectiveTheme.accentColor;this._materials={materialUnfocused:v(A(r,1,.25),1),materialFocused:v(A(r,1,0),1),materialOccludedUnfocused:v(A(r,.7,0),n.zManipulator.renderOccluded),materialOccludedFocused:v(A(r,.85,0),n.zManipulator.renderOccluded)},this._themeHandle=a(()=>this._view.effectiveTheme.accentColor,e=>{let t=A(e,1,.25),n=A(e,1,0),r=A(e,.7,0),i=A(e,.85,0),{materialUnfocused:a,materialFocused:o,materialOccludedUnfocused:s,materialOccludedFocused:c}=this._materials;a.setParameters({color:t}),o.setParameters({color:n}),s.setParameters({color:r}),c.setParameters({color:i})}),this._createManipulator(),this.forEachManipulator(e=>this._tool.manipulators.add(e))}destroy(){this._themeHandle=i(this._themeHandle),this._manipulator.applyObjectTransform=P,this.forEachManipulator(e=>{this._tool.manipulators.remove(e),e.destroy()})}forEachManipulator(e){e(this._manipulator,0)}createManipulatedObjectDragPipeline(e,t,r){if(!t.operations)return n();let i=t.operations.data.spatialReference;return w(t,r,t=>this.createDragPipeline((n,r,i,a,o)=>({steps:r,cancel:i}=e(n,r,i,a,o),t(n,r,i)),i))}createDragPipeline(e,t){let n=this._view;return D(this._manipulator,(r,i,a,o,s)=>{e(r,i.next(e=>({...e,manipulatorType:0})).next(b(n,r.renderLocation,t)).next(O()),a,o,s)})}get radius(){return this._radius}set radius(e){e!==this._radius&&(this._radius=e,this._updateManipulator())}_updateManipulator(){let e=this._settings,t=this._radius/S,n=e.zManipulator.height*t,r=e.zManipulator.coneHeight*t,i=e.zManipulator.coneWidth*t,a=e.zManipulator.width*t,l=[h(0,0,0),h(0,0,n)],u=[h(0,0,0),h(0,0,n+r)],d=c();o(d,d,[0,0,n]),s(d,d,Math.PI/2);let{materialUnfocused:f,materialFocused:p,materialOccludedUnfocused:m,materialOccludedFocused:g}=this._materials,_=T(f,l,a/2,16,!1),v=E(f,r,i/2,16,!1);v.transformation=d,this._manipulator.renderObjects=[new y(v,1),new y(_,1),new y(v.instantiate({material:p}),2),new y(_.instantiate({material:p}),2),new y(v.instantiate({material:m}),1),new y(_.instantiate({material:m}),1),new y(v.instantiate({material:g}),2),new y(_.instantiate({material:g}),2)],this._manipulator.radius=a/2+2,this._manipulator.collisionType={type:`line`,paths:[u]}}_createManipulator(){let e=this._view,t=new _({view:e,autoScaleRenderObjects:!1,worldSized:!1,selectable:!1,cursor:`ns-resize`,elevationInfo:this.elevationInfo,worldOriented:!0,collisionPriority:1.6});t.applyObjectTransform=t=>{let n=e.state.camera,i=j;e.renderCoordsHelper.toRenderCoords(this._manipulator.elevationAlignedLocation,i);let a=l(n.eye,i),o=n.computeRenderPixelSizeAtDistance(a),s=u(M,i,n.eye);d(s,s);let c=N;e.renderCoordsHelper.worldUpAtPosition(j,c);let h=Math.abs(f(s,c)),g=p(M,s,c),_=p(M,g,c),v=r(h,.01,1),y=1-Math.sqrt(1-v*v)/v/n.fullWidth,b=this._settings,x=this._radius/S,C=b.zManipulator.width*x;m(_,d(_,_),(1/y-1)*a+o*C),t[12]-=M[0],t[13]-=M[1],t[14]-=M[2]},this._manipulator=t,this._updateManipulator()}get test(){}}function A(t,n,r){let i=e(t,r);return i.a*=n,i.toUnitRGBA()}const j=g(),M=g(),N=g(),P=()=>{};export{k as MoveZManipulation};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{copy as e,subtract as t,exactEquals as n,negate as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i,fromValues as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as o,copy as s}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as c,clone as l}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{fromRay as u,getStart as d,getEnd as f,create as p}from"../../../../geometry/support/clipRay.js";import{intersectClipRay as m}from"../../../../geometry/support/frustumPlanes.js";import{fromPoints as h,pointAt as g,create as _}from"../../../../geometry/support/lineSegment.js";import{create as v,fromPoints as y}from"../../../../geometry/support/ray.js";import{EngineVisualElement as b}from"./EngineVisualElement.js";import{LaserlineVisualElement as x}from"./LaserlineVisualElement.js";import{drapedZ as S}from"../../terrain/DrapedZ.js";import{createPolylineGeometry as C}from"../../webgl-engine/lib/GeometryUtil.js";import{RenderGeometry as w}from"../../webgl-engine/lib/RenderGeometry.js";import{RibbonLineMaterial as T}from"../../webgl-engine/materials/RibbonLineMaterial.js";class E extends b{constructor(e){super(e),this._ray=v(),this._isWorldDown=!1,this._start=i(),this._end=a(1,0,0),this._width=1,this._color=c(1,0,1,1),this._polygonOffset=!1,this._writeDepthEnabled=!0,this._innerWidth=0,this._innerColor=c(1,1,1,1),this._stipplePattern=null,this._stippleOffColor=null,this._stipplePreferContinuous=!0,this._falloff=0,this._extensionType=0,this._laserlineStyle=null,this._laserlineEnabled=!1,this._renderOccluded=4,this._transparentRenderOrder=0,this._fadedExtensions=N,this._laserline=new x({view:this.view,isDecoration:e.isDecoration}),this.applyProperties(e)}destroy(){this._laserline.destroy(),super.destroy()}createObject3DResourceFactory(e){return{view:e,createResources:e=>this._createObject3DResources(e),destroyResources:D,recreateGeometry:(e,t)=>this._recreateObject3DGeometry(e,t),cameraChanged:()=>this._updateGeometry(),forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:D,recreateGeometry:e=>this._recreateDrapedGeometry(e),forEachMaterial:(e,t)=>t(e.material)}}updateVisibility(e){super.updateVisibility(e),this._laserline.visible=e}onAttachedChange(){this._laserline.attached=this._laserlineAttached}setStartEndFromWorldDownAtLocation(n){this._isWorldDown=!0,e(this._start,n),this.view.renderCoordsHelper.worldUpAtPosition(n,this._end),t(this._end,n,this._end),y(this._start,this._end,this._ray),this._updateGeometry()}get start(){return this._start}set start(t){this._isWorldDown=!1,n(this._start,t)||(e(this._start,t),y(this._start,this._end,this._ray),this._updateGeometry())}get end(){return this._end}set end(t){this._isWorldDown=!1,n(this._end,t)||(e(this._end,t),y(this._start,this._end,this._ray),this._updateGeometry())}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get color(){return this._color}set color(e){o(e,this._color)||(s(this._color,e),this._updateMaterial())}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){e!==this._polygonOffset&&(this._polygonOffset=e,this._updateMaterial())}get writeDepthEnabled(){return this._writeDepthEnabled}set writeDepthEnabled(e){this._writeDepthEnabled!==e&&(this._writeDepthEnabled=e,this._updateMaterial())}get innerWidth(){return this._innerWidth}set innerWidth(e){e!==this._innerWidth&&(this._innerWidth=e,this._updateMaterial())}get innerColor(){return this._innerColor}set innerColor(e){o(e,this._innerColor)||(s(this._innerColor,e),this._updateMaterial())}get stipplePattern(){return this._stipplePattern}set stipplePattern(e){let t=e!=null!=(this._stipplePattern!=null);this._stipplePattern=e,t?this.recreate():this._updateMaterial()}get stippleOffColor(){return this._stippleOffColor}set stippleOffColor(e){e!=null&&this._stippleOffColor!=null&&o(e,this._stippleOffColor)||(this._stippleOffColor=e==null?null:l(e),this._updateMaterial())}get stipplePreferContinuous(){return this._stipplePreferContinuous}set stipplePreferContinuous(e){e!==this._stipplePreferContinuous&&(this._stipplePreferContinuous=e,this._updateMaterial())}get falloff(){return this._falloff}set falloff(e){e!==this._falloff&&(this._falloff=e,this._updateMaterial())}get extensionType(){return this._extensionType}set extensionType(e){e!==this._extensionType&&(this._extensionType=e,this.recreateGeometry())}get _laserlineAttached(){return this._laserlineEnabled&&this._laserlineStyle!=null&&this.attached&&!this.isDraped}get laserlineStyle(){return this._laserlineStyle}set laserlineStyle(e){this._laserlineStyle=e,this._laserline.attached=this._laserlineAttached,e!=null&&(this._laserline.style=e)}get laserlineEnabled(){return this._laserlineEnabled}set laserlineEnabled(e){this._laserlineEnabled!==e&&(this._laserlineEnabled=e,this._laserline.attached=this._laserlineAttached)}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){e!==this._transparentRenderOrder&&(this._transparentRenderOrder=e,this._updateMaterial())}get _normalizedRenderOccluded(){return this.isDraped&&this._renderOccluded===8?4:this._renderOccluded}get fadedExtensions(){return this._fadedExtensions}set fadedExtensions(e){this._fadedExtensions=e??N,this.recreateGeometry()}_updateMaterial(){let{materialParameters:e}=this;this.object3dResources.resources?.material.setParameters(e),this.drapedResources.resources?.material.setParameters(e)}get materialParameters(){return{width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:this._stipplePreferContinuous,innerWidth:this._innerWidth,innerColor:this._innerColor,falloff:this._falloff,polygonOffset:this._polygonOffset?3:0,renderOccluded:this._normalizedRenderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration,writeDepth:this._writeDepthEnabled}}_createObject3DResources(e){let t=new T(this.materialParameters,this.view),n=[];return this._createObject3DGeometry(t,e,n),{material:t,geometries:n}}_recreateObject3DGeometry(e,t){e.geometries.length=0,this._createObject3DGeometry(e.material,t,e.geometries)}_createObject3DGeometry(e,t,n){let r=this._createGeometry(e);n.push(r),t.addGeometry(r),this._updateVerticesObject3D(t)}_createDrapedResources(){let e=new T(this.materialParameters,this.view);return{material:e,geometries:[this._createDrapedGeometry(e)]}}_recreateDrapedGeometry(e){e.geometries=[this._createDrapedGeometry(e.material)]}_createDrapedGeometry(e){let t=this._createGeometry(e);return this._updateVerticesDraped(t),new w(t)}_createGeometry(e){let t=this.extensionType===3,n=t?[i(),i(),i(),i()]:[i(),i()];return C(e,n,null,t?[1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0]:null)}_updateGeometry(){if(this.isDraped)this.drapedResources.recreateGeometry();else{let e=this.object3dResources.object;e&&this._updateVerticesObject3D(e)}}_updateVerticesObject3D(e){let t=this._lineSegment;this._updateVertexAttributesObject3D(e,t),this._laserline.intersectsLine=t}_updateVerticesDraped(e){this._updateVertexAttributesDraped(e,this._lineSegment)}get _lineSegment(){return this._extensionType===3?this._updateLineSegmentFinite(j):this._updateLineSegmentInfinite(this._extensionType,j)}_updateLineSegmentFinite(e){return h(this._start,this._end,e)}_updateLineSegmentInfinite(e,t){let n=this.view.state.camera;switch(u(this._ray,O),e){case 0:O.c0=-Number.MAX_VALUE;break;case 1:case 2:{let e=this._ray.origin,t=this.view.elevationProvider.getElevation(e[0],e[1],e[2],this.view.renderCoordsHelper.spatialReference,`ground`)??0,n=this.view.renderCoordsHelper.getAltitude(e);this._isWorldDown&&n<t&&r(O.ray.direction,O.ray.direction),this._extensionType===2&&t!=null&&(O.c1=Math.abs(n-t));break}}if(!m(n.frustum,O))return this._updateLineSegmentFinite(t);let i=d(O,k),a=f(O,A);return h(i,a,t)}_updateVertexAttributesObject3D(e,t){let n=e.geometries[0].getMutableAttribute(`position`)?.data;if(!n)return;let r=0;for(let e of this._lineVertices(t))n[r++]=e[0],n[r++]=e[1],n[r++]=e[2];e.geometryVertexAttributeUpdated(e.geometries[0],`position`)}_updateVertexAttributesDraped(e,t){let n=e.getMutableAttribute(`position`)?.data;if(!n)return;let r=0;for(let e of this._lineVertices(t))n[r++]=e[0],n[r++]=e[1],n[r++]=S;e.invalidateBoundingInfo()}*_lineVertices(e){this.extensionType===3?(yield g(e,-this.fadedExtensions.start,k),yield g(e,0,k),yield g(e,1,k),yield g(e,1+this.fadedExtensions.end,k)):(yield g(e,0,k),yield g(e,1,k))}}function D(e){e.geometries=[]}const O=p(),k=i(),A=i(),j=_(),M=1/3,N={start:M,end:M};export{E as ExtendedLineVisualElement};
2
+ import{copy as e,subtract as t,exactEquals as n,negate as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i,fromValues as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as o,copy as s}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as c,clone as l}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{fromRay as u,getStart as d,getEnd as f,create as p}from"../../../../geometry/support/clipRay.js";import{intersectClipRay as m}from"../../../../geometry/support/frustumPlanes.js";import{fromPoints as h,pointAt as g,create as _}from"../../../../geometry/support/lineSegment.js";import{create as v,fromPoints as y}from"../../../../geometry/support/ray.js";import{EngineVisualElement as b}from"./EngineVisualElement.js";import{LaserlineVisualElement as x}from"./LaserlineVisualElement.js";import{drapedZ as S}from"../../terrain/DrapedZ.js";import{createPolylineGeometry as C}from"../../webgl-engine/lib/GeometryUtil.js";import{Object3D as w}from"../../webgl-engine/lib/Object3D.js";import{RenderGeometry as T}from"../../webgl-engine/lib/RenderGeometry.js";import{RibbonLineMaterial as E}from"../../webgl-engine/materials/RibbonLineMaterial.js";class D extends b{constructor(e){super(e),this._ray=v(),this._isWorldDown=!1,this._start=i(),this._end=a(1,0,0),this._width=1,this._color=c(1,0,1,1),this._polygonOffset=!1,this._writeDepthEnabled=!0,this._innerWidth=0,this._innerColor=c(1,1,1,1),this._stipplePattern=null,this._stippleOffColor=null,this._stipplePreferContinuous=!0,this._falloff=0,this._extensionType=0,this._laserlineStyle=null,this._laserlineEnabled=!1,this._renderOccluded=4,this._transparentRenderOrder=0,this._fadedExtensions=P,this._laserline=new x({view:this.view,isDecoration:e.isDecoration}),this.applyProperties(e)}destroy(){this._laserline.destroy(),super.destroy()}createObject3DResourceFactory(e){return{view:e,createObject:()=>new w({castShadow:!1}),createResources:e=>this._createObject3DResources(e),destroyResources:O,recreateGeometry:(e,t)=>this._recreateObject3DGeometry(e,t),cameraChanged:()=>this._updateGeometry(),forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:O,recreateGeometry:e=>this._recreateDrapedGeometry(e),forEachMaterial:(e,t)=>t(e.material)}}updateVisibility(e){super.updateVisibility(e),this._laserline.visible=e}onAttachedChange(){this._laserline.attached=this._laserlineAttached}setStartEndFromWorldDownAtLocation(n){this._isWorldDown=!0,e(this._start,n),this.view.renderCoordsHelper.worldUpAtPosition(n,this._end),t(this._end,n,this._end),y(this._start,this._end,this._ray),this._updateGeometry()}get start(){return this._start}set start(t){this._isWorldDown=!1,n(this._start,t)||(e(this._start,t),y(this._start,this._end,this._ray),this._updateGeometry())}get end(){return this._end}set end(t){this._isWorldDown=!1,n(this._end,t)||(e(this._end,t),y(this._start,this._end,this._ray),this._updateGeometry())}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get color(){return this._color}set color(e){o(e,this._color)||(s(this._color,e),this._updateMaterial())}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){e!==this._polygonOffset&&(this._polygonOffset=e,this._updateMaterial())}get writeDepthEnabled(){return this._writeDepthEnabled}set writeDepthEnabled(e){this._writeDepthEnabled!==e&&(this._writeDepthEnabled=e,this._updateMaterial())}get innerWidth(){return this._innerWidth}set innerWidth(e){e!==this._innerWidth&&(this._innerWidth=e,this._updateMaterial())}get innerColor(){return this._innerColor}set innerColor(e){o(e,this._innerColor)||(s(this._innerColor,e),this._updateMaterial())}get stipplePattern(){return this._stipplePattern}set stipplePattern(e){let t=e!=null!=(this._stipplePattern!=null);this._stipplePattern=e,t?this.recreate():this._updateMaterial()}get stippleOffColor(){return this._stippleOffColor}set stippleOffColor(e){e!=null&&this._stippleOffColor!=null&&o(e,this._stippleOffColor)||(this._stippleOffColor=e==null?null:l(e),this._updateMaterial())}get stipplePreferContinuous(){return this._stipplePreferContinuous}set stipplePreferContinuous(e){e!==this._stipplePreferContinuous&&(this._stipplePreferContinuous=e,this._updateMaterial())}get falloff(){return this._falloff}set falloff(e){e!==this._falloff&&(this._falloff=e,this._updateMaterial())}get extensionType(){return this._extensionType}set extensionType(e){e!==this._extensionType&&(this._extensionType=e,this.recreateGeometry())}get _laserlineAttached(){return this._laserlineEnabled&&this._laserlineStyle!=null&&this.attached&&!this.isDraped}get laserlineStyle(){return this._laserlineStyle}set laserlineStyle(e){this._laserlineStyle=e,this._laserline.attached=this._laserlineAttached,e!=null&&(this._laserline.style=e)}get laserlineEnabled(){return this._laserlineEnabled}set laserlineEnabled(e){this._laserlineEnabled!==e&&(this._laserlineEnabled=e,this._laserline.attached=this._laserlineAttached)}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){e!==this._transparentRenderOrder&&(this._transparentRenderOrder=e,this._updateMaterial())}get _normalizedRenderOccluded(){return this.isDraped&&this._renderOccluded===8?4:this._renderOccluded}get fadedExtensions(){return this._fadedExtensions}set fadedExtensions(e){this._fadedExtensions=e??P,this.recreateGeometry()}_updateMaterial(){let{materialParameters:e}=this;this.object3dResources.resources?.material.setParameters(e),this.drapedResources.resources?.material.setParameters(e)}get materialParameters(){return{width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:this._stipplePreferContinuous,innerWidth:this._innerWidth,innerColor:this._innerColor,falloff:this._falloff,polygonOffset:this._polygonOffset?3:0,renderOccluded:this._normalizedRenderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration,writeDepth:this._writeDepthEnabled}}_createObject3DResources(e){let t=new E(this.materialParameters,this.view),n=[];return this._createObject3DGeometry(t,e,n),{material:t,geometries:n}}_recreateObject3DGeometry(e,t){e.geometries.length=0,this._createObject3DGeometry(e.material,t,e.geometries)}_createObject3DGeometry(e,t,n){let r=this._createGeometry(e);n.push(r),t.addGeometry(r),this._updateVerticesObject3D(t)}_createDrapedResources(){let e=new E(this.materialParameters,this.view);return{material:e,geometries:[this._createDrapedGeometry(e)]}}_recreateDrapedGeometry(e){e.geometries=[this._createDrapedGeometry(e.material)]}_createDrapedGeometry(e){let t=this._createGeometry(e);return this._updateVerticesDraped(t),new T(t)}_createGeometry(e){let t=this.extensionType===3,n=t?[i(),i(),i(),i()]:[i(),i()];return C(e,n,null,t?[1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0]:null)}_updateGeometry(){if(this.isDraped)this.drapedResources.recreateGeometry();else{let e=this.object3dResources.object;e&&this._updateVerticesObject3D(e)}}_updateVerticesObject3D(e){let t=this._lineSegment;this._updateVertexAttributesObject3D(e,t),this._laserline.intersectsLine=t}_updateVerticesDraped(e){this._updateVertexAttributesDraped(e,this._lineSegment)}get _lineSegment(){return this._extensionType===3?this._updateLineSegmentFinite(M):this._updateLineSegmentInfinite(this._extensionType,M)}_updateLineSegmentFinite(e){return h(this._start,this._end,e)}_updateLineSegmentInfinite(e,t){let n=this.view.state.camera;switch(u(this._ray,k),e){case 0:k.c0=-Number.MAX_VALUE;break;case 1:case 2:{let e=this._ray.origin,t=this.view.elevationProvider.getElevation(e[0],e[1],e[2],this.view.renderCoordsHelper.spatialReference,`ground`)??0,n=this.view.renderCoordsHelper.getAltitude(e);this._isWorldDown&&n<t&&r(k.ray.direction,k.ray.direction),this._extensionType===2&&t!=null&&(k.c1=Math.abs(n-t));break}}if(!m(n.frustum,k))return this._updateLineSegmentFinite(t);let i=d(k,A),a=f(k,j);return h(i,a,t)}_updateVertexAttributesObject3D(e,t){let n=e.geometries[0].getMutableAttribute(`position`)?.data;if(!n)return;let r=0;for(let e of this._lineVertices(t))n[r++]=e[0],n[r++]=e[1],n[r++]=e[2];e.geometryVertexAttributeUpdated(e.geometries[0],`position`)}_updateVertexAttributesDraped(e,t){let n=e.getMutableAttribute(`position`)?.data;if(!n)return;let r=0;for(let e of this._lineVertices(t))n[r++]=e[0],n[r++]=e[1],n[r++]=S;e.invalidateBoundingInfo()}*_lineVertices(e){this.extensionType===3?(yield g(e,-this.fadedExtensions.start,A),yield g(e,0,A),yield g(e,1,A),yield g(e,1+this.fadedExtensions.end,A)):(yield g(e,0,A),yield g(e,1,A))}}function O(e){e.geometries=[]}const k=p(),A=i(),j=i(),M=_(),N=1/3,P={start:N,end:N};export{D as ExtendedLineVisualElement};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{EventEmitter as e}from"../../../../core/Evented.js";import{set as t,add as n,scale as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as a,copy as o}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as s,clone as c}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{projectBuffer as l}from"../../../../geometry/projection/projectBuffer.js";import{expandWithBuffer as u}from"../../../../geometry/support/aaBoundingBox.js";import{newDoubleArray as d}from"../../../../geometry/support/DoubleArray.js";import{makeDehydratedPoint as f}from"../../../../layers/graphics/dehydratedPoint.js";import{getGeometryEffectiveElevationMode as p}from"../../../../support/elevationInfoUtils.js";import m from"../../../../symbols/support/ElevationInfo.js";import{EngineVisualElement as h}from"./EngineVisualElement.js";import{LaserlineVisualElement as g}from"./LaserlineVisualElement.js";import{ElevationContext as _}from"../../layers/graphics/ElevationContext.js";import{createGeometry as v}from"../../support/engineContent/line.js";import{geometryToRenderInfoDraped as y,geometryToRenderInfo as b}from"../../support/renderInfoUtils/line.js";import{RenderGeometry as x}from"../../webgl-engine/lib/RenderGeometry.js";import{RibbonLineMaterial as S}from"../../webgl-engine/materials/RibbonLineMaterial.js";class C extends h{constructor(t){super(t),this._attachmentOrigin=f(0,0,0,null),this._attachmentOriginDirty=!0,this.events=new e,this._geometry=null,this._width=1,this._color=s(1,0,1,1),this._innerWidth=0,this._innerColor=s(1,1,1,1),this._stipplePattern=null,this._stippleOffColor=null,this._falloff=0,this._elevationInfo=null,this._laserlineStyle=null,this._laserlineEnabled=!1,this._renderOccluded=8,this._attachmentOrigin.spatialReference=t.view.spatialReference,this._laserline=new g({view:t.view,isDecoration:t.isDecoration}),this.applyProperties(t),this.attached=t.attached??!0}destroy(){this._laserline.destroy(),super.destroy()}createObject3DResourceFactory(e){return{view:e,createResources:e=>this._createObject3DResources(e),destroyResources:w,recreateGeometry:(e,t)=>{e.geometries.length=0,this._recreateGeometry(t,e.material,e.geometries)},forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:w,recreateGeometry:e=>{e.geometries=this._createRenderGeometriesDraped(e.material),this._attachmentOriginChanged()},forEachMaterial:(e,t)=>t(e.material)}}get _laserlineAttached(){return this.attached&&this.visible&&this._laserlineStyle!=null&&!this.isDraped&&this.laserlineEnabled}onAttachedChange(e){this._laserline.attached=this._laserlineAttached,e&&this._attachmentOriginChanged()}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateMaterial()}get geometry(){return this._geometry}set geometry(e){let t=this._isClosed;this._geometry=e,this.recreateGeometry(),t!==this._isClosed&&this._updateMaterial()}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get color(){return this._color}set color(e){a(e,this._color)||(o(this._color,e),this._updateMaterial())}get innerWidth(){return this._innerWidth}set innerWidth(e){e!==this._innerWidth&&(this._innerWidth=e,this._updateMaterial())}get innerColor(){return this._innerColor}set innerColor(e){a(e,this._innerColor)||(o(this._innerColor,e),this._updateMaterial())}get stipplePattern(){return this._stipplePattern}set stipplePattern(e){let t=e!=null!=(this._stipplePattern!=null);this._stipplePattern=e,t?this.recreate():this._updateMaterial()}get stippleOffColor(){return this._stippleOffColor}set stippleOffColor(e){e&&this._stippleOffColor&&a(e,this._stippleOffColor)||(this._stippleOffColor=e?c(e):null,this._updateMaterial())}get falloff(){return this._falloff}set falloff(e){e!==this._falloff&&(this._falloff=e,this._updateMaterial())}get elevationInfo(){return this._elevationInfo}set elevationInfo(e){this._elevationInfo=e,this.recreateGeometry()}get laserlineStyle(){return this._laserlineStyle}set laserlineStyle(e){this._laserlineStyle=e,this._laserline.attached=this._laserlineAttached,e!=null&&(this._laserline.style=e)}get laserlineEnabled(){return this._laserlineEnabled}set laserlineEnabled(e){this._laserlineEnabled!==e&&(this._laserlineEnabled=e,this._laserline.attached=this._laserlineAttached)}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get attachmentOrigin(){if(!this._attachmentOriginDirty)return this._attachmentOrigin;let e=this.object3dResources.resources?.geometries;if(!e||e.length===0)return null;t(E,0,0,0);let i=0;for(let t of e)t.computeAttachmentOrigin(T)&&(n(E,E,T),i++);return i===0?null:(r(E,E,1/i),this.view.renderCoordsHelper.fromRenderCoords(E,this._attachmentOrigin),this._attachmentOriginDirty=!1,this._attachmentOrigin)}_updateMaterial(){this.object3dResources.resources?.material.setParameters(this._materialParameters),this.drapedResources.resources?.material.setParameters(this._materialParameters)}get _isClosed(){return this.geometry!=null&&this.geometry.type===`polygon`}get _materialParameters(){return{width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:!1,isClosed:this._isClosed,falloff:this._falloff,innerColor:this._innerColor,innerWidth:this._innerWidth,join:`round`,polygonOffset:3,renderOccluded:this._normalizedRenderOccluded,isDecoration:this.isDecoration}}get _normalizedRenderOccluded(){return this.isDraped&&this._renderOccluded===8?4:this._renderOccluded}_recreateGeometry(e,t,n){this._createRenderGeometries(t,n);for(let t of n)e.addGeometry(t);this._attachmentOriginChanged()}_attachmentOriginChanged(){this._attachmentOriginDirty=!0,this.events.emit(`attachment-origin-changed`)}_createObject3DResources(e){let t=new S(this._materialParameters,this.view),n=[];return this._recreateGeometry(e,t,n),{material:t,geometries:n}}_createDrapedResources(){let e=new S(this._materialParameters,this.view);return{material:e,geometries:this._createRenderGeometriesDraped(e)}}_createRenderGeometriesDraped(e){let{geometry:t,view:n}=this,r=n.groundView.spatialReference;return t==null||r==null?[]:y(t,r).lines.map(({position:t})=>{let i={overlayInfo:{spatialReference:r,renderCoordsHelper:n.renderCoordsHelper},attributeData:{position:t},removeDuplicateStartEnd:this._isClosed};return new x(v(e,i))})}calculateMapBounds(e){if(this.object3dResources.resources==null)return!1;let t=this.view.renderCoordsHelper;for(let n of this.object3dResources.resources.geometries){let r=n.attributes.get(`position`),i=d(r.data.length);l(r.data,t.spatialReference,0,i,this.view.spatialReference,0),u(e,i)}return!0}_createRenderGeometries(e,t){let n=this.geometry;if(n==null)return;let r=b(n,this.view.elevationProvider,this.view.renderCoordsHelper,_.fromElevationInfo(this.elevationInfo??new m({mode:p(n,null)}))),i=[];for(let{position:n,mapPositions:a}of r.lines){let r={mapPositions:a,attributeData:{position:n},removeDuplicateStartEnd:this._isClosed};t.push(v(e,r)),i.push(n)}this._laserline.pathVerticalPlane=i}}function w(e){e.geometries=[]}const T=i(),E=i();export{C as OutlineVisualElement};
2
+ import{EventEmitter as e}from"../../../../core/Evented.js";import{set as t,add as n,scale as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as a,copy as o}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as s,clone as c}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{projectBuffer as l}from"../../../../geometry/projection/projectBuffer.js";import{expandWithBuffer as u}from"../../../../geometry/support/aaBoundingBox.js";import{newDoubleArray as d}from"../../../../geometry/support/DoubleArray.js";import{makeDehydratedPoint as f}from"../../../../layers/graphics/dehydratedPoint.js";import{getGeometryEffectiveElevationMode as p}from"../../../../support/elevationInfoUtils.js";import m from"../../../../symbols/support/ElevationInfo.js";import{EngineVisualElement as h}from"./EngineVisualElement.js";import{LaserlineVisualElement as g}from"./LaserlineVisualElement.js";import{ElevationContext as _}from"../../layers/graphics/ElevationContext.js";import{createGeometry as v}from"../../support/engineContent/line.js";import{geometryToRenderInfoDraped as y,geometryToRenderInfo as b}from"../../support/renderInfoUtils/line.js";import{Object3D as x}from"../../webgl-engine/lib/Object3D.js";import{RenderGeometry as S}from"../../webgl-engine/lib/RenderGeometry.js";import{RibbonLineMaterial as C}from"../../webgl-engine/materials/RibbonLineMaterial.js";class w extends h{constructor(t){super(t),this._attachmentOrigin=f(0,0,0,null),this._attachmentOriginDirty=!0,this.events=new e,this._geometry=null,this._width=1,this._color=s(1,0,1,1),this._innerWidth=0,this._innerColor=s(1,1,1,1),this._stipplePattern=null,this._stippleOffColor=null,this._falloff=0,this._elevationInfo=null,this._laserlineStyle=null,this._laserlineEnabled=!1,this._renderOccluded=8,this._attachmentOrigin.spatialReference=t.view.spatialReference,this._laserline=new g({view:t.view,isDecoration:t.isDecoration}),this.applyProperties(t),this.attached=t.attached??!0}destroy(){this._laserline.destroy(),super.destroy()}createObject3DResourceFactory(e){return{view:e,createObject:()=>new x({castShadow:!1}),createResources:e=>this._createObject3DResources(e),destroyResources:T,recreateGeometry:(e,t)=>{e.geometries.length=0,this._recreateGeometry(t,e.material,e.geometries)},forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:T,recreateGeometry:e=>{e.geometries=this._createRenderGeometriesDraped(e.material),this._attachmentOriginChanged()},forEachMaterial:(e,t)=>t(e.material)}}get _laserlineAttached(){return this.attached&&this.visible&&this._laserlineStyle!=null&&!this.isDraped&&this.laserlineEnabled}onAttachedChange(e){this._laserline.attached=this._laserlineAttached,e&&this._attachmentOriginChanged()}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateMaterial()}get geometry(){return this._geometry}set geometry(e){let t=this._isClosed;this._geometry=e,this.recreateGeometry(),t!==this._isClosed&&this._updateMaterial()}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get color(){return this._color}set color(e){a(e,this._color)||(o(this._color,e),this._updateMaterial())}get innerWidth(){return this._innerWidth}set innerWidth(e){e!==this._innerWidth&&(this._innerWidth=e,this._updateMaterial())}get innerColor(){return this._innerColor}set innerColor(e){a(e,this._innerColor)||(o(this._innerColor,e),this._updateMaterial())}get stipplePattern(){return this._stipplePattern}set stipplePattern(e){let t=e!=null!=(this._stipplePattern!=null);this._stipplePattern=e,t?this.recreate():this._updateMaterial()}get stippleOffColor(){return this._stippleOffColor}set stippleOffColor(e){e&&this._stippleOffColor&&a(e,this._stippleOffColor)||(this._stippleOffColor=e?c(e):null,this._updateMaterial())}get falloff(){return this._falloff}set falloff(e){e!==this._falloff&&(this._falloff=e,this._updateMaterial())}get elevationInfo(){return this._elevationInfo}set elevationInfo(e){this._elevationInfo=e,this.recreateGeometry()}get laserlineStyle(){return this._laserlineStyle}set laserlineStyle(e){this._laserlineStyle=e,this._laserline.attached=this._laserlineAttached,e!=null&&(this._laserline.style=e)}get laserlineEnabled(){return this._laserlineEnabled}set laserlineEnabled(e){this._laserlineEnabled!==e&&(this._laserlineEnabled=e,this._laserline.attached=this._laserlineAttached)}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get attachmentOrigin(){if(!this._attachmentOriginDirty)return this._attachmentOrigin;let e=this.object3dResources.resources?.geometries;if(!e||e.length===0)return null;t(D,0,0,0);let i=0;for(let t of e)t.computeAttachmentOrigin(E)&&(n(D,D,E),i++);return i===0?null:(r(D,D,1/i),this.view.renderCoordsHelper.fromRenderCoords(D,this._attachmentOrigin),this._attachmentOriginDirty=!1,this._attachmentOrigin)}_updateMaterial(){this.object3dResources.resources?.material.setParameters(this._materialParameters),this.drapedResources.resources?.material.setParameters(this._materialParameters)}get _isClosed(){return this.geometry!=null&&this.geometry.type===`polygon`}get _materialParameters(){return{width:this._width,color:this._color,stippleOffColor:this._stippleOffColor,stipplePattern:this._stipplePattern,stipplePreferContinuous:!1,isClosed:this._isClosed,falloff:this._falloff,innerColor:this._innerColor,innerWidth:this._innerWidth,join:`round`,polygonOffset:3,renderOccluded:this._normalizedRenderOccluded,isDecoration:this.isDecoration}}get _normalizedRenderOccluded(){return this.isDraped&&this._renderOccluded===8?4:this._renderOccluded}_recreateGeometry(e,t,n){this._createRenderGeometries(t,n);for(let t of n)e.addGeometry(t);this._attachmentOriginChanged()}_attachmentOriginChanged(){this._attachmentOriginDirty=!0,this.events.emit(`attachment-origin-changed`)}_createObject3DResources(e){let t=new C(this._materialParameters,this.view),n=[];return this._recreateGeometry(e,t,n),{material:t,geometries:n}}_createDrapedResources(){let e=new C(this._materialParameters,this.view);return{material:e,geometries:this._createRenderGeometriesDraped(e)}}_createRenderGeometriesDraped(e){let{geometry:t,view:n}=this,r=n.groundView.spatialReference;return t==null||r==null?[]:y(t,r).lines.map(({position:t})=>{let i={overlayInfo:{spatialReference:r,renderCoordsHelper:n.renderCoordsHelper},attributeData:{position:t},removeDuplicateStartEnd:this._isClosed};return new S(v(e,i))})}calculateMapBounds(e){if(this.object3dResources.resources==null)return!1;let t=this.view.renderCoordsHelper;for(let n of this.object3dResources.resources.geometries){let r=n.attributes.get(`position`),i=d(r.data.length);l(r.data,t.spatialReference,0,i,this.view.spatialReference,0),u(e,i)}return!0}_createRenderGeometries(e,t){let n=this.geometry;if(n==null)return;let r=b(n,this.view.elevationProvider,this.view.renderCoordsHelper,_.fromElevationInfo(this.elevationInfo??new m({mode:p(n,null)}))),i=[];for(let{position:n,mapPositions:a}of r.lines){let r={mapPositions:a,attributeData:{position:n},removeDuplicateStartEnd:this._isClosed};t.push(v(e,r)),i.push(n)}this._laserline.pathVerticalPlane=i}}function T(e){e.geometries=[]}const E=i(),D=i();export{w as OutlineVisualElement};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{watch as e}from"../../../../core/reactiveUtils.js";import{castScreenPointArray as t,createScreenPointArray as n}from"../../../../core/screenUtils.js";import{normalize as r,subtract as i,scale as a,set as o,add as s}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as c}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{exactEquals as l,copy as u,normalize as d,subtract as f,add as p}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as m,fromValues as h}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as g,copy as _}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as v}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{makeDehydratedPoint as y}from"../../../../layers/graphics/dehydratedPoint.js";import{EngineVisualElement as b}from"./EngineVisualElement.js";import{drapedZ as x}from"../../terrain/DrapedZ.js";import{createPolylineGeometry as S}from"../../webgl-engine/lib/GeometryUtil.js";import{RenderGeometry as C}from"../../webgl-engine/lib/RenderGeometry.js";import{RibbonLineMaterial as w}from"../../webgl-engine/materials/RibbonLineMaterial.js";class T extends b{constructor(e){super(e),this._location=m(),this._direction=h(1,0,0),this._width=1,this._offset=1,this._length=18,this._color=v(1,0,1,1),this._renderOccluded=4,this._transparentRenderOrder=0,this.applyProperties(e)}createObject3DResourceFactory(e){return{view:e,createResources:e=>this._createObject3DResources(e),destroyResources:O,recreateGeometry:(e,t)=>this._recreateObject3DGeometry(e,t),cameraChanged:()=>this._updateGeometry(),forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:k,recreateGeometry:e=>this._recreateDrapedGeometry(e),forEachMaterial:(e,t)=>t(e.material)}}get location(){return this._location}set location(e){l(this._location,e)||(u(this._location,e),this._updateGeometry())}get direction(){return this._direction}set direction(e){l(this._direction,e)||(u(this._direction,e),this._updateGeometry())}setDirectionFromPoints(e,t){d(this._direction,f(this._direction,t,e)),this._updateGeometry()}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get offset(){return this._offset}set offset(e){e!==this._offset&&(this._offset=e,this._updateGeometry())}get length(){return this._length}set length(e){e!==this._length&&(this._length=e,this._updateGeometry())}get color(){return this._color}set color(e){g(e,this._color)||(_(this._color,e),this._updateMaterial())}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){e!==this._transparentRenderOrder&&(this._transparentRenderOrder=e,this._updateMaterial())}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateMaterial()}_createObject3DResources(e){let t=new w(this.materialParameters,this.view),n=[];return this._createObject3DGeometry(t,e,n),{material:t,geometries:n}}_recreateObject3DGeometry(e,t){e.geometries.length=0,this._createObject3DGeometry(e.material,t,e.geometries)}_createObject3DGeometry(e,t,n){let[r,i]=E(e);t.addGeometry(r),t.addGeometry(i),n.push(r),n.push(i),this._updateVerticesObject3D(t)}_createDrapedResources(){let t=new w(this.materialParameters,this.view),n=e(()=>this.view.state.contentPixelRatio,()=>this.drapedResources.recreateGeometry());return{material:t,geometries:this._createDrapedGeometry(t),pixelRatioHandle:n}}_recreateDrapedGeometry(e){e.geometries=this._createDrapedGeometry(e.material)}_createDrapedGeometry(e){let t=E(e);return this._updateVerticesDraped(t),t.map(e=>new C(e))}_updateMaterial(){let{materialParameters:e}=this;this.object3dResources.resources?.material.setParameters(e),this.drapedResources.resources?.material.setParameters(e)}get materialParameters(){return{width:this._width,color:this._color,renderOccluded:this._renderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration}}_updateGeometry(){if(this.isDraped)this.drapedResources.recreateGeometry();else{let e=this.object3dResources.object;e&&this._updateVerticesObject3D(e)}}_updateVerticesObject3D(e){let t=this.view.state.camera;t.projectToScreen(this.location,P),p(A,this.location,this.direction),t.projectToScreen(A,F),r(F,i(F,F,P)),this._updateVertexAttributesObject3D(t,e,0,P,F,1),this._updateVertexAttributesObject3D(t,e,1,P,F,-1)}_updateVertexAttributesObject3D(e,n,r,i,a,o){let s=n.geometries[r],c=s.getMutableAttribute(`position`)?.data;if(!c)return;let{start:l,end:u}=D(a,i,o,this.offset,this.width,this.length);e.unprojectFromScreen(t(l),A),c[0]=A[0],c[1]=A[1],c[2]=A[2],e.unprojectFromScreen(t(u),A),c[3]=A[0],c[4]=A[1],c[5]=A[2],n.geometryVertexAttributeUpdated(s,`position`)}_updateVerticesDraped(e){let{view:{overlayManager:t,state:{contentPixelRatio:n}}}=this,{location:r,width:i,length:a,offset:o}=this,s=I;s.spatialReference=t.spatialReference,s.x=r[0],s.y=r[1];let c=this.view.overlayPixelSizeInMapUnits(s)*n,l=i*c,u=a*c,d=o*c;this._updateVertexAttributesDraped(e[0],l,u,d,-1),this._updateVertexAttributesDraped(e[1],l,u,d,1)}_updateVertexAttributesDraped(e,t,n,r,i){let a=e.getMutableAttribute(`position`)?.data;if(!a)return;let{location:o,direction:s}=this,{start:c,end:l}=D(s,o,i,r,t,n);a[0]=c[0],a[1]=c[1],a[2]=x,a[3]=l[0],a[4]=l[1],a[5]=x,e.invalidateBoundingInfo()}}function E(e){return[S(e,[m(),m()]),S(e,[m(),m()])]}function D(e,t,n,r,i,c){let l=a(j,o(j,e[1]*n,e[0]*-n),r+i/2),u=s(M,s(M,s(M,t,a(M,e,c/2)),l),l);return{start:u,end:s(N,u,a(N,e,-c))}}function O(e){e.geometries.length=0}function k(e){e.pixelRatioHandle.remove(),e.geometries=[]}const A=m(),j=c(),M=c(),N=c(),P=n(),F=n(),I=y(0,0,void 0,null);export{T as ParallelLineVisualElement};
2
+ import{watch as e}from"../../../../core/reactiveUtils.js";import{castScreenPointArray as t,createScreenPointArray as n}from"../../../../core/screenUtils.js";import{normalize as r,subtract as i,scale as a,set as o,add as s}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as c}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{exactEquals as l,copy as u,normalize as d,subtract as f,add as p}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as m,fromValues as h}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as g,copy as _}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as v}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{newDoubleArray as y}from"../../../../geometry/support/DoubleArray.js";import{makeDehydratedPoint as b}from"../../../../layers/graphics/dehydratedPoint.js";import{EngineVisualElement as x}from"./EngineVisualElement.js";import{needsBufferGeometryOriginUpdate as S,updateBufferGeometry as C,createBufferGeometry as w,selectLocalOrigin as T}from"../../support/engineContent/line.js";import{drapedZ as E}from"../../terrain/DrapedZ.js";import{BufferObject3D as D}from"../../webgl-engine/lib/BufferObject3D.js";import{RibbonLineMaterial as O}from"../../webgl-engine/materials/RibbonLineMaterial.js";class k extends x{constructor(e){super(e),this._location=m(),this._direction=h(1,0,0),this._width=1,this._offset=1,this._length=18,this._color=v(1,0,1,1),this._renderOccluded=4,this._transparentRenderOrder=0,this.applyProperties(e)}createObject3DResourceFactory(e){return{view:e,createObject:()=>new D({geometries:[]}),createResources:e=>this._createObject3DResources(e),destroyResources:M,recreateGeometry:(e,t)=>this._recreateObject3DGeometry(e,t),cameraChanged:()=>this._updateGeometry(),forEachMaterial:(e,t)=>t(e.material)}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:N,recreateGeometry:e=>this._recreateDrapedGeometry(e),forEachMaterial:(e,t)=>t(e.material)}}get location(){return this._location}set location(e){l(this._location,e)||(u(this._location,e),this._updateGeometry())}get direction(){return this._direction}set direction(e){l(this._direction,e)||(u(this._direction,e),this._updateGeometry())}setDirectionFromPoints(e,t){d(this._direction,f(this._direction,t,e)),this._updateGeometry()}get width(){return this._width}set width(e){e!==this._width&&(this._width=e,this._updateMaterial())}get offset(){return this._offset}set offset(e){e!==this._offset&&(this._offset=e,this._updateGeometry())}get length(){return this._length}set length(e){e!==this._length&&(this._length=e,this._updateGeometry())}get color(){return this._color}set color(e){g(e,this._color)||(_(this._color,e),this._updateMaterial())}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){e!==this._transparentRenderOrder&&(this._transparentRenderOrder=e,this._updateMaterial())}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateMaterial()}_createObject3DResources(e){let t=new O(this.materialParameters,this.view),n=[];return this._createObject3DGeometry(t,e,n),{material:t,geometries:n}}_recreateObject3DGeometry(e,t){e.geometries.length=0,this._createObject3DGeometry(e.material,t,e.geometries)}_createObject3DGeometry(e,t,n){this._computeLinePositionsObject3D(F);let[r,i]=A(e,F,this.view.stage.localOriginFactory);t.addGeometry(r),t.addGeometry(i),n.push(r),n.push(i)}_createDrapedResources(){let t=new O(this.materialParameters,this.view),n=e(()=>this.view.state.contentPixelRatio,()=>this.drapedResources.recreateGeometry());return{material:t,geometries:this._createDrapedGeometry(t),pixelRatioHandle:n}}_recreateDrapedGeometry(e){e.geometries=this._createDrapedGeometry(e.material)}_createDrapedGeometry(e){return this._computePositionsDraped(F),A(e,F,this.view.overlayManager.renderer.localOriginFactory)}_updateMaterial(){let{materialParameters:e}=this;this.object3dResources.resources?.material.setParameters(e),this.drapedResources.resources?.material.setParameters(e)}get materialParameters(){return{width:this._width,color:this._color,renderOccluded:this._renderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration}}_updateGeometry(){if(this.isDraped)this.drapedResources.recreateGeometry();else{let e=this.object3dResources.object;e&&this._updateVerticesObject3D(e)}}_updateVerticesObject3D(e){this._computeLinePositionsObject3D(F);let[t,n]=e.geometries,[r,i]=F,{localOriginFactory:a}=this.view.stage;S(t.localOrigin,a,r)||S(n.localOrigin,a,i)?this.object3dResources.recreateGeometry():(C(t,r),e.geometryVertexAttributeUpdated(t,`position`),C(n,i),e.geometryVertexAttributeUpdated(n,`position`))}_computeLinePositionsObject3D(e){let t=this.view.state.camera;t.projectToScreen(this.location,z),p(P,this.location,this.direction),t.projectToScreen(P,B),r(B,i(B,B,z)),this._computeSegmentPositionsObject3D(t,e[0],z,B,1),this._computeSegmentPositionsObject3D(t,e[1],z,B,-1)}_computeSegmentPositionsObject3D(e,n,r,i,a){let{start:o,end:s}=j(i,r,a,this.offset,this.width,this.length);e.unprojectFromScreen(t(o),P),n[0]=P[0],n[1]=P[1],n[2]=P[2],e.unprojectFromScreen(t(s),P),n[3]=P[0],n[4]=P[1],n[5]=P[2]}_computePositionsDraped(e){let{view:{overlayManager:t,state:{contentPixelRatio:n}}}=this,{location:r,width:i,length:a,offset:o}=this,s=V;s.spatialReference=t.spatialReference,s.x=r[0],s.y=r[1];let c=this.view.overlayPixelSizeInMapUnits(s)*n,l=i*c,u=a*c,d=o*c;this._computeLinePositionsDraped(e[0],l,u,d,-1),this._computeLinePositionsDraped(e[1],l,u,d,1)}_computeLinePositionsDraped(e,t,n,r,i){let{location:a,direction:o}=this,{start:s,end:c}=j(o,a,i,r,t,n);e[0]=s[0],e[1]=s[1],e[2]=E,e[3]=c[0],e[4]=c[1],e[5]=E}}function A(e,[t,n],r){return[w(e,{attributeData:{position:t}},T(t,r)),w(e,{attributeData:{position:n}},T(n,r))]}function j(e,t,n,r,i,c){let l=a(I,o(I,e[1]*n,e[0]*-n),r+i/2),u=s(L,s(L,s(L,t,a(L,e,c/2)),l),l);return{start:u,end:s(R,u,a(R,e,-c))}}function M(e){e.geometries.length=0}function N(e){e.pixelRatioHandle.remove(),e.geometries=[]}const P=m(),F=[y(6),y(6)],I=c(),L=c(),R=c(),z=n(),B=n(),V=b(0,0,void 0,null);export{k as ParallelLineVisualElement};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{clamp as e}from"../../../../core/mathUtils.js";import{normalFromMat4 as t,identity as n}from"../../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromValues as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{subtract as a,add as o,set as s,transformMat4 as c,transformMat3 as l,normalize as u}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{UNIT_Z as d,create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as p,copy as m}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as h}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{projectVectorToVector as g}from"../../../../geometry/projection/projectVectorToVector.js";import{expandWithBuffer as _}from"../../../../geometry/support/aaBoundingBox.js";import{StageObjectVisualElement as v}from"./StageObjectVisualElement.js";import{evaluateElevationAlignmentAtPoint as y}from"../../layers/graphics/elevationAlignmentUtils.js";import{ElevationContext as b}from"../../layers/graphics/ElevationContext.js";import{defaultBoundingBox as x,requiresHalfTexelOffset as S,defaultSymbolSizeRatio as C,createTexture as w}from"../../support/engineContent/sdfPrimitives.js";import{updateObjectVertexField as T,updateVertexFieldVec3f as E}from"../../webgl-engine/lib/bufferGeometryUtils.js";import{BufferObject3D as D}from"../../webgl-engine/lib/BufferObject3D.js";import{createPointBufferGeometry as O}from"../../webgl-engine/lib/GeometryUtil.js";import{HUDMaterial as k}from"../../webgl-engine/materials/HUDMaterial.js";class A extends v{constructor(e){super(e),this._material=null,this._texture=null,this._geometry=null,this._size=3,this._color=h(1,0,1,1),this._pixelSnappingEnabled=!0,this._primitive=`square`,this._outlineSize=1,this._outlineColor=h(1,1,1,1),this._elevationInfo=null,this.applyProperties(e)}get geometry(){return this._geometry}set geometry(e){this._geometry=e,this.recreateGeometry()}get size(){return this._size}set size(e){if(e!==this._size){let t=this._preferredTextureSize;this._size=e,t<this._preferredTextureSize?this.recreate():this._updateSizeParameter()}}get color(){return this._color}set color(e){p(e,this._color)||(m(this._color,e),this._updateMaterial())}get pixelSnappingEnabled(){return this._pixelSnappingEnabled}set pixelSnappingEnabled(e){this._pixelSnappingEnabled!==e&&(this._pixelSnappingEnabled=e,this._updateMaterial())}get primitive(){return this._primitive}set primitive(e){this._primitive!==e&&(this._primitive=e,this.recreate())}get outlineSize(){return this._outlineSize}set outlineSize(e){e!==this._outlineSize&&(this._outlineSize=e,this._updateMaterial())}get outlineColor(){return this._outlineColor}set outlineColor(e){p(e,this._outlineColor)||(m(this._outlineColor,e),this._updateMaterial())}get elevationInfo(){return this._elevationInfo}set elevationInfo(e){this._elevationInfo=e,this.recreateGeometry()}_updateMaterial(){this._material?.setParameters(this._materialParameters)}_updateSizeParameter(){if(this.object?.geometries[0]==null)return;let e=this._geometrySize;this._material?.setParameters({size:i(e,e)})}get _materialParameters(){let e=this._geometrySize;return{color:this._color,textureIsSignedDistanceField:!0,sampleSignedDistanceFieldTexelCenter:S(this._primitive),distanceFieldBoundingBox:x,outlineColor:this._outlineColor,outlineSize:this._outlineSize,textureId:this._texture?.id,shaderPolygonOffset:0,drawAsLabel:!0,depthEnabled:!1,pixelSnappingEnabled:this.pixelSnappingEnabled,isDecoration:this.isDecoration,size:i(e,e)}}get _geometrySize(){return this._size/C}createExternalResources(){this._texture=w(this._primitive,this._preferredTextureSize),this._material=new k(this._materialParameters,this.view.state.viewingMode===1);let e=this.view.stage;this._texture.load(e.renderView.renderingContext),e.addTexture(this._texture)}destroyExternalResources(){this._texture&&=(this.view.stage.removeTexture(this._texture),this._texture.dispose(),null),this._material=null}createObject(){return new D({geometries:[]})}updateObjectTransform(e){let t=e.geometries[0],n=this.geometry;t!=null&&n!=null&&(this._computeRenderPositionAndNormal(j,M,n),this.view.stage.localOriginFactory.needsOriginUpdate(t.localOrigin,j,0)?this.recreateGeometry():(a(j,j,t.localOrigin.vec3),T(e,E,t,`position`,0,j),T(e,E,t,`normal`,0,M)))}createGeometries(e){let t=this._createRenderGeometry();t!=null&&e.addGeometry(t)}forEachMaterial(e){e(this._material)}get _preferredTextureSize(){return e(this._geometrySize*2,16,128)}calculateMapBounds(e){let t=this.object?.geometries[0];return t?(t.readPrimitivePosition(j,0),o(j,j,t.localOrigin.vec3),g(j,this.view.renderCoordsHelper.spatialReference,j,this.view.spatialReference),_(e,j),!0):!1}_createRenderGeometry(){let{geometry:e,_material:t}=this;if(e==null||t==null)return null;this._computeRenderPositionAndNormal(j,M,e);let n=this.view.stage.localOriginFactory.getOrigin(j);return O(t,n,{position:j,normal:M})}_computeRenderPositionAndNormal(e,r,i){let{renderCoordsHelper:a,elevationProvider:o}=this.view,f=y(i,o,b.fromElevationInfo(this.elevationInfo),a);s(j,i.x,i.y,f),g(j,i.spatialReference,e,a.spatialReference),c(e,e,this.transform),t(N,this.transform)??n(N),l(r,d,N),u(r,r)}}const j=f(),M=f(),N=r();export{A as PointVisualElement};
2
+ import{clamp as e}from"../../../../core/mathUtils.js";import{normalFromMat4 as t,identity as n}from"../../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromValues as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{subtract as a,add as o,set as s,transformMat4 as c,transformMat3 as l,normalize as u}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{UNIT_Z as d,create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{exactEquals as p,copy as m}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as h}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{projectVectorToVector as g}from"../../../../geometry/projection/projectVectorToVector.js";import{expandWithBuffer as _}from"../../../../geometry/support/aaBoundingBox.js";import{StageObjectVisualElement as v}from"./StageObjectVisualElement.js";import{evaluateElevationAlignmentAtPoint as y}from"../../layers/graphics/elevationAlignmentUtils.js";import{ElevationContext as b}from"../../layers/graphics/ElevationContext.js";import{defaultBoundingBox as x,requiresHalfTexelOffset as S,defaultSymbolSizeRatio as C,createTexture as w}from"../../support/engineContent/sdfPrimitives.js";import{updateObjectVertexField as T,updateVertexFieldVec3f as E}from"../../webgl-engine/lib/bufferGeometryUtils.js";import{BufferObject3D as D}from"../../webgl-engine/lib/BufferObject3D.js";import{createPointBufferGeometry as O}from"../../webgl-engine/lib/GeometryUtil.js";import{HUDMaterial as k}from"../../webgl-engine/materials/HUDMaterial.js";class A extends v{constructor(e){super(e),this._material=null,this._texture=null,this._geometry=null,this._size=3,this._color=h(1,0,1,1),this._pixelSnappingEnabled=!0,this._primitive=`square`,this._outlineSize=1,this._outlineColor=h(1,1,1,1),this._elevationInfo=null,this.applyProperties(e)}get geometry(){return this._geometry}set geometry(e){this._geometry=e,this.recreateGeometry()}get size(){return this._size}set size(e){if(e!==this._size){let t=this._preferredTextureSize;this._size=e,t<this._preferredTextureSize?this.recreate():this._updateSizeParameter()}}get color(){return this._color}set color(e){p(e,this._color)||(m(this._color,e),this._updateMaterial())}get pixelSnappingEnabled(){return this._pixelSnappingEnabled}set pixelSnappingEnabled(e){this._pixelSnappingEnabled!==e&&(this._pixelSnappingEnabled=e,this._updateMaterial())}get primitive(){return this._primitive}set primitive(e){this._primitive!==e&&(this._primitive=e,this.recreate())}get outlineSize(){return this._outlineSize}set outlineSize(e){e!==this._outlineSize&&(this._outlineSize=e,this._updateMaterial())}get outlineColor(){return this._outlineColor}set outlineColor(e){p(e,this._outlineColor)||(m(this._outlineColor,e),this._updateMaterial())}get elevationInfo(){return this._elevationInfo}set elevationInfo(e){this._elevationInfo=e,this.recreateGeometry()}_updateMaterial(){this._material?.setParameters(this._materialParameters)}_updateSizeParameter(){if(this.object?.geometries[0]==null)return;let e=this._geometrySize;this._material?.setParameters({size:i(e,e)})}get _materialParameters(){let e=this._geometrySize;return{color:this._color,textureIsSignedDistanceField:!0,sampleSignedDistanceFieldTexelCenter:S(this._primitive),distanceFieldBoundingBox:x,outlineColor:this._outlineColor,outlineSize:this._outlineSize,textureId:this._texture?.id,shaderPolygonOffset:0,drawAsLabel:!0,depthEnabled:!1,pixelSnappingEnabled:this.pixelSnappingEnabled,isDecoration:this.isDecoration,size:i(e,e)}}get _geometrySize(){return this._size/C}createExternalResources(){this._texture=w(this._primitive,this._preferredTextureSize),this._material=new k(this._materialParameters,this.view.state.isGlobal);let e=this.view.stage;this._texture.load(e.renderView.renderingContext),e.addTexture(this._texture)}destroyExternalResources(){this._texture&&=(this.view.stage.removeTexture(this._texture),this._texture.dispose(),null),this._material=null}createObject(){return new D({geometries:[]})}updateObjectTransform(e){let t=e.geometries[0],n=this.geometry;t!=null&&n!=null&&(this._computeRenderPositionAndNormal(j,M,n),this.view.stage.localOriginFactory.needsOriginUpdate(t.localOrigin,j,0)?this.recreateGeometry():(a(j,j,t.localOrigin.vec3),T(e,E,t,`position`,0,j),T(e,E,t,`normal`,0,M)))}createGeometries(e){let t=this._createRenderGeometry();t!=null&&e.addGeometry(t)}forEachMaterial(e){e(this._material)}get _preferredTextureSize(){return e(this._geometrySize*2,16,128)}calculateMapBounds(e){let t=this.object?.geometries[0];return t?(t.readPrimitivePosition(j,0),o(j,j,t.localOrigin.vec3),g(j,this.view.renderCoordsHelper.spatialReference,j,this.view.spatialReference),_(e,j),!0):!1}_createRenderGeometry(){let{geometry:e,_material:t}=this;if(e==null||t==null)return null;this._computeRenderPositionAndNormal(j,M,e);let n=this.view.stage.localOriginFactory.getOrigin(j);return O(t,n,{position:j,normal:M})}_computeRenderPositionAndNormal(e,r,i){let{renderCoordsHelper:a,elevationProvider:o}=this.view,f=y(i,o,b.fromElevationInfo(this.elevationInfo),a);s(j,i.x,i.y,f),g(j,i.spatialReference,e,a.spatialReference),c(e,e,this.transform),t(N,this.transform)??n(N),l(r,d,N),u(r,r)}}const j=f(),M=f(),N=r();export{A as PointVisualElement};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{watch as e}from"../../../../core/reactiveUtils.js";import{fromTranslation as t,scale as n}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{distance as i,normalize as a,subtract as o,copy as s,exactEquals as c,add as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u,ZEROS as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{copy as f}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as p}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{sv3d as m}from"../../../../geometry/support/vectorStacks.js";import{makeDehydratedPoint as h}from"../../../../layers/graphics/dehydratedPoint.js";import{EngineVisualElement as g}from"./EngineVisualElement.js";import{drapedZ as _}from"../../terrain/DrapedZ.js";import{Attribute as v}from"../../webgl-engine/lib/Attribute.js";import{Geometry as y}from"../../webgl-engine/lib/Geometry.js";import{createPolylineGeometry as b}from"../../webgl-engine/lib/GeometryUtil.js";import{RenderGeometry as x}from"../../webgl-engine/lib/RenderGeometry.js";import{ColorMaterial as S}from"../../webgl-engine/materials/ColorMaterial.js";import{RibbonLineMaterial as C}from"../../webgl-engine/materials/RibbonLineMaterial.js";class w extends g{constructor(e){super(e),this._maxSize=0,this._position=u(),this._up=u(),this._right=u(),this._renderOccluded=4,this._color=p(1,0,0,1),this._outlineColor=p(0,0,0,1),this._outlineSize=0,this._size=32,this._outlineRenderOccluded=16,this.applyProperties(e)}createObject3DResourceFactory(e){return{view:e,createResources:e=>this._createObject3DResources(e),destroyResources:()=>{},cameraChanged:()=>this._updateTransformObject3D(),forEachMaterial:(e,t)=>{t(e.outlineMaterial),t(e.quadMaterial)}}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:T,forEachMaterial:(e,t)=>{t(e.outlineMaterial),t(e.quadMaterial)}}}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateQuadMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){this._transparentRenderOrder=e,this._updateOutlineMaterial(),this._updateQuadMaterial()}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateOutlineMaterial(),this._updateQuadMaterial()}get color(){return this._color}set color(e){f(this._color,e),this._updateQuadMaterial()}get outlineColor(){return this._outlineColor}set outlineColor(e){f(this._outlineColor,e),this._updateOutlineMaterial()}get outlineSize(){return this._outlineSize}set outlineSize(e){let t=this._outlineSize===0!=(e===0);this._outlineSize=e,t?this.recreateGeometry():this._updateOutlineMaterial()}get size(){return this._size}set size(e){e!==this._size&&(this._size=e,this._updateTransform())}get outlineRenderOccluded(){return this._outlineRenderOccluded}set outlineRenderOccluded(e){this._outlineRenderOccluded=e,this._updateOutlineMaterial()}set geometry({previous:e,center:t,next:n}){this._maxSize=Math.min(i(t,e),i(t,n))/3,a(this._up,o(this._up,e,t)),a(this._right,o(this._right,n,t)),s(this._position,t),this.recreateGeometry()}_createObject3DResources(e){let t=new S(this._quadMaterialParameters),n=this._outlineSize===0?void 0:new C(this._outlineMaterialParameters,this.view);return this._createObject3DGeometries(e,t,n),{quadMaterial:t,outlineMaterial:n}}_createObject3DGeometries(e,t,n){if(c(this._up,d)&&c(this._right,d))return;let r=this._createGeometries(t,n);for(let t of r)e.addGeometry(t);this._updateTransformObject3D(e)}_createDrapedResources(){let t=new S(this._quadMaterialParameters),n=this._outlineSize===0?void 0:new C(this._outlineMaterialParameters,this.view),r=this._createGeometries(t,n).map(e=>new x(e));return this._setTransformDraped(r),{quadMaterial:t,outlineMaterial:n,geometries:r,pixelRatioHandle:e(()=>this.view.state.contentPixelRatio,()=>this.drapedResources.recreateGeometry())}}_createGeometries(e,t){let{up:n,right:r,corner:i}=this._getVertices(),a=E(n,r,i,e);return t?[a,b(t,[n,i,r])]:[a]}_getVertices(){let e=this._up,t=this._right,n=l(m.get(),e,t);return this.isDraped&&(e=s(m.get(),e),t=s(m.get(),t),e[2]=0,t[2]=0,n[2]=0),{up:e,right:t,corner:n}}_updateTransform(){this.isDraped?this.drapedResources.recreateGeometry():this._updateTransformObject3D()}_updateTransformObject3D(e=this.object3dResources.object){if(!e)return;let r=this.view.state.camera,i=this._size*r.computeScreenPixelSizeAt(this._position),a=Math.min(this._maxSize,i);t(D,this._position),n(D,D,[a,a,a]),e.transformation=D}_setTransformDraped(e){if(e.length===0)return;let{view:{overlayManager:r,state:{contentPixelRatio:i}}}=this,{_position:a,_size:o}=this,c=s(m.get(),a);c[2]=_;let l=O;l.spatialReference=r.spatialReference,l.x=c[0],l.y=c[1];let u=o*(this.view.overlayPixelSizeInMapUnits(l)*i),d=Math.min(this._maxSize,u);t(D,c),n(D,D,[d,d,1]);for(let t of e)t.transformation=D}get _quadMaterialParameters(){return{color:this._color,forceTransparentMode:!0,writeDepth:!1,polygonOffset:1,renderOccluded:this._renderOccluded,isDecoration:this.isDecoration,testsTransparentRenderOrder:this._transparentRenderOrder}}_updateQuadMaterial(){this.object3dResources.resources?.quadMaterial.setParameters(this._quadMaterialParameters),this.drapedResources.resources?.quadMaterial.setParameters(this._quadMaterialParameters)}get _outlineMaterialParameters(){return{color:this._outlineColor,width:this._outlineSize,renderOccluded:this._outlineRenderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration}}_updateOutlineMaterial(){this.object3dResources.resources?.outlineMaterial?.setParameters(this._outlineMaterialParameters),this.drapedResources.resources?.outlineMaterial?.setParameters(this._outlineMaterialParameters)}}function T(e){e.pixelRatioHandle.remove(),e.geometries=[]}function E(e,t,n,r){return new y(r,[[`position`,new v([0,0,0,...t,...e,...n],[0,1,2,1,2,3],3,!0)]])}const D=r(),O=h(0,0,void 0,null);export{w as RightAngleQuadVisualElement};
2
+ import{watch as e}from"../../../../core/reactiveUtils.js";import{fromTranslation as t,scale as n}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{distance as i,normalize as a,subtract as o,copy as s,exactEquals as c,add as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u,ZEROS as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{copy as f}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as p}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{sv3d as m}from"../../../../geometry/support/vectorStacks.js";import{makeDehydratedPoint as h}from"../../../../layers/graphics/dehydratedPoint.js";import{EngineVisualElement as g}from"./EngineVisualElement.js";import{drapedZ as _}from"../../terrain/DrapedZ.js";import{Attribute as v}from"../../webgl-engine/lib/Attribute.js";import{Geometry as y}from"../../webgl-engine/lib/Geometry.js";import{createPolylineGeometry as b}from"../../webgl-engine/lib/GeometryUtil.js";import{Object3D as x}from"../../webgl-engine/lib/Object3D.js";import{RenderGeometry as S}from"../../webgl-engine/lib/RenderGeometry.js";import{ColorMaterial as C}from"../../webgl-engine/materials/ColorMaterial.js";import{RibbonLineMaterial as w}from"../../webgl-engine/materials/RibbonLineMaterial.js";class T extends g{constructor(e){super(e),this._maxSize=0,this._position=u(),this._up=u(),this._right=u(),this._renderOccluded=4,this._color=p(1,0,0,1),this._outlineColor=p(0,0,0,1),this._outlineSize=0,this._size=32,this._outlineRenderOccluded=16,this.applyProperties(e)}createObject3DResourceFactory(e){return{view:e,createObject:()=>new x({castShadow:!1}),createResources:e=>this._createObject3DResources(e),destroyResources:()=>{},cameraChanged:()=>this._updateTransformObject3D(),forEachMaterial:(e,t)=>{t(e.outlineMaterial),t(e.quadMaterial)}}}createDrapedResourceFactory(e){return{view:e,createResources:()=>this._createDrapedResources(),destroyResources:E,forEachMaterial:(e,t)=>{t(e.outlineMaterial),t(e.quadMaterial)}}}get renderOccluded(){return this._renderOccluded}set renderOccluded(e){e!==this._renderOccluded&&(this._renderOccluded=e,this._updateQuadMaterial())}get transparentRenderOrder(){return this._transparentRenderOrder}set transparentRenderOrder(e){this._transparentRenderOrder=e,this._updateOutlineMaterial(),this._updateQuadMaterial()}get isDecoration(){return this._isDecoration}set isDecoration(e){this._isDecoration=e,this._updateOutlineMaterial(),this._updateQuadMaterial()}get color(){return this._color}set color(e){f(this._color,e),this._updateQuadMaterial()}get outlineColor(){return this._outlineColor}set outlineColor(e){f(this._outlineColor,e),this._updateOutlineMaterial()}get outlineSize(){return this._outlineSize}set outlineSize(e){let t=this._outlineSize===0!=(e===0);this._outlineSize=e,t?this.recreateGeometry():this._updateOutlineMaterial()}get size(){return this._size}set size(e){e!==this._size&&(this._size=e,this._updateTransform())}get outlineRenderOccluded(){return this._outlineRenderOccluded}set outlineRenderOccluded(e){this._outlineRenderOccluded=e,this._updateOutlineMaterial()}set geometry({previous:e,center:t,next:n}){this._maxSize=Math.min(i(t,e),i(t,n))/3,a(this._up,o(this._up,e,t)),a(this._right,o(this._right,n,t)),s(this._position,t),this.recreateGeometry()}_createObject3DResources(e){let t=new C(this._quadMaterialParameters),n=this._outlineSize===0?void 0:new w(this._outlineMaterialParameters,this.view);return this._createObject3DGeometries(e,t,n),{quadMaterial:t,outlineMaterial:n}}_createObject3DGeometries(e,t,n){if(c(this._up,d)&&c(this._right,d))return;let r=this._createGeometries(t,n);for(let t of r)e.addGeometry(t);this._updateTransformObject3D(e)}_createDrapedResources(){let t=new C(this._quadMaterialParameters),n=this._outlineSize===0?void 0:new w(this._outlineMaterialParameters,this.view),r=this._createGeometries(t,n).map(e=>new S(e));return this._setTransformDraped(r),{quadMaterial:t,outlineMaterial:n,geometries:r,pixelRatioHandle:e(()=>this.view.state.contentPixelRatio,()=>this.drapedResources.recreateGeometry())}}_createGeometries(e,t){let{up:n,right:r,corner:i}=this._getVertices(),a=D(n,r,i,e);return t?[a,b(t,[n,i,r])]:[a]}_getVertices(){let e=this._up,t=this._right,n=l(m.get(),e,t);return this.isDraped&&(e=s(m.get(),e),t=s(m.get(),t),e[2]=0,t[2]=0,n[2]=0),{up:e,right:t,corner:n}}_updateTransform(){this.isDraped?this.drapedResources.recreateGeometry():this._updateTransformObject3D()}_updateTransformObject3D(e=this.object3dResources.object){if(!e)return;let r=this.view.state.camera,i=this._size*r.computeScreenPixelSizeAt(this._position),a=Math.min(this._maxSize,i);t(O,this._position),n(O,O,[a,a,a]),e.transformation=O}_setTransformDraped(e){if(e.length===0)return;let{view:{overlayManager:r,state:{contentPixelRatio:i}}}=this,{_position:a,_size:o}=this,c=s(m.get(),a);c[2]=_;let l=k;l.spatialReference=r.spatialReference,l.x=c[0],l.y=c[1];let u=o*(this.view.overlayPixelSizeInMapUnits(l)*i),d=Math.min(this._maxSize,u);t(O,c),n(O,O,[d,d,1]);for(let t of e)t.transformation=O}get _quadMaterialParameters(){return{color:this._color,forceTransparentMode:!0,writeDepth:!1,polygonOffset:1,renderOccluded:this._renderOccluded,isDecoration:this.isDecoration,testsTransparentRenderOrder:this._transparentRenderOrder}}_updateQuadMaterial(){this.object3dResources.resources?.quadMaterial.setParameters(this._quadMaterialParameters),this.drapedResources.resources?.quadMaterial.setParameters(this._quadMaterialParameters)}get _outlineMaterialParameters(){return{color:this._outlineColor,width:this._outlineSize,renderOccluded:this._outlineRenderOccluded,testsTransparentRenderOrder:this._transparentRenderOrder,isDecoration:this.isDecoration}}_updateOutlineMaterial(){this.object3dResources.resources?.outlineMaterial?.setParameters(this._outlineMaterialParameters),this.drapedResources.resources?.outlineMaterial?.setParameters(this._outlineMaterialParameters)}}function E(e){e.pixelRatioHandle.remove(),e.geometries=[]}function D(e,t,n,r){return new y(r,[[`position`,new v([0,0,0,...t,...e,...n],[0,1,2,1,2,3],3,!0)]])}const O=r(),k=h(0,0,void 0,null);export{T as RightAngleQuadVisualElement};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{watch as e,initial as t}from"../../../../core/reactiveUtils.js";import{Object3D as n}from"../../webgl-engine/lib/Object3D.js";import{WebGLLayer as r}from"../../webgl-engine/lib/WebGLLayer.js";class i{constructor(e){this._resourceFactory=e,this._resources=null,this._visible=!0,this._attached=!1}destroy(){this._destroyResources()}get object(){return this._resources==null?null:this._resources.object}get resources(){return this._resources==null?null:this._resources.external}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this._syncVisible())}get attached(){return this._attached}set attached(e){e!==this._attached&&(this._attached=e,this._createOrDestroyResources())}recreate(){this.attached&&this._createResources()}recreateGeometry(){if(!this._resourceFactory.recreateGeometry){this.recreate();return}let e=this._resourceFactory.view.stage;if(this._resources==null||!e)return;let t=this._resources.object;t.removeAllGeometries(),this._resourceFactory.recreateGeometry(this._resources.external,t,this._resources.layer)}forEachMaterial(e){this._resources&&this._resourceFactory.forEachMaterial(this._resources.external,e)}_createOrDestroyResources(){this._attached?this._resources||this._createResources():this._destroyResources()}_createResources(){this._destroyResources();let i=this._resourceFactory,a=i.view,o=a.stage;if(!o)return;let s=new r(o,{pickable:!1,updatePolicy:1}),c=new n({castShadow:!1}),l=i.createResources(c,s);s.add(c);let u=i.cameraChanged,d=u?e(()=>a.state.camera,e=>u(e),t):null;this._resources={layer:s,object:c,external:l,cameraHandle:d},this._syncVisible()}_destroyResources(){this._resources!=null&&(this._resources.layer.destroy(),this._resources.object.dispose(),this._resources.cameraHandle?.remove(),this._resourceFactory.destroyResources(this._resources.external),this._resources=null)}_syncVisible(){this._resources!=null&&(this._resources.object.visible=this._visible)}}export{i as VisualElementResources};
2
+ import{watch as e,initial as t}from"../../../../core/reactiveUtils.js";import{WebGLLayer as n}from"../../webgl-engine/lib/WebGLLayer.js";class r{constructor(e){this._resourceFactory=e,this._resources=null,this._visible=!0,this._attached=!1}destroy(){this._destroyResources()}get object(){return this._resources==null?null:this._resources.object}get resources(){return this._resources==null?null:this._resources.external}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this._syncVisible())}get attached(){return this._attached}set attached(e){e!==this._attached&&(this._attached=e,this._createOrDestroyResources())}recreate(){this.attached&&this._createResources()}recreateGeometry(){if(!this._resourceFactory.recreateGeometry){this.recreate();return}let e=this._resourceFactory.view.stage;if(this._resources==null||!e)return;let t=this._resources.object;t.removeAllGeometries(),this._resourceFactory.recreateGeometry(this._resources.external,t,this._resources.layer)}forEachMaterial(e){this._resources&&this._resourceFactory.forEachMaterial(this._resources.external,e)}_createOrDestroyResources(){this._attached?this._resources||this._createResources():this._destroyResources()}_createResources(){this._destroyResources();let r=this._resourceFactory,i=r.view,a=i.stage;if(!a)return;let o=new n(a,{pickable:!1,updatePolicy:1}),s=r.createObject(),c=r.createResources(s,o);o.add(s);let l=r.cameraChanged,u=l?e(()=>i.state.camera,e=>l(e),t):null;this._resources={layer:o,object:s,external:c,cameraHandle:u},this._syncVisible()}_destroyResources(){this._resources!=null&&(this._resources.layer.destroy(),this._resources.object.dispose(),this._resources.cameraHandle?.remove(),this._resourceFactory.destroyResources(this._resources.external),this._resources=null)}_syncVisible(){this._resources!=null&&(this._resources.object.visible=this._visible)}}export{r as VisualElementResources};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import"../../../core/has.js";import t from"../../../core/Logger.js";import{abortMaybe as n,removeMaybe as r,destroyMaybe as i}from"../../../core/maybe.js";import{throwIfAborted as a}from"../../../core/promiseUtils.js";import{watch as o,whenOnce as s,initial as c}from"../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../core/accessorSupport/decorators.js";import{getReferenceEllipsoid as d}from"../../../geometry/ellipsoidUtils.js";import{create as f}from"../../../geometry/support/aaBoundingBox.js";import{isInEffectiveScaleRange as p}from"../../../geometry/support/scaleUtils.js";import{makeCacheKey as m}from"../../../layers/support/tiles3DUtils.js";import{getElevationOffsetInMeters as h}from"../../../support/elevationInfoUtils.js";import{getMetersPerUnit as g}from"../../../symbols/support/unitConversionUtils.js";import{GaussianSplatLayerViewPerformanceInfo as _}from"./GaussianSplatLayerViewPerformanceInfo.js";import{LayerView3D as v}from"./LayerView3D.js";import{addLayerViewToWasm as y,getLyr3DWasm as b,removeLayerViewFromWasm as x}from"./Lyr3DWasm.js";import{LayerElevationProvider as S}from"./i3s/LayerElevationProvider.js";import{selectTiles3DSpatialReference as C}from"./support/selectTiles3DSpatialReference.js";import{projectToBoundingBox as w}from"../support/extentUtils.js";import{GaussianSplatDataStore as T}from"../support/gaussianSplatting/GaussianSplatDataStore.js";import{GaussianSplatFadeHelper as E}from"../support/gaussianSplatting/GaussianSplatFadeHelper.js";import{GaussianSplatIntersectionHandler as D}from"../support/gaussianSplatting/GaussianSplatIntersectionHandler.js";import{GaussianTileBuilder as O}from"../support/gaussianSplatting/GaussianTileBuilder.js";import{GaussianTileLifecycle as k}from"../support/gaussianSplatting/GaussianTileLifecycle.js";import{GaussianSplatDepthRenderer as A}from"../webgl-engine/lib/GaussianSplatDepthRenderer.js";import{GaussianSplatRenderer as j}from"../webgl-engine/lib/GaussianSplatRenderer.js";import{GaussianSplatShadows as M}from"../webgl-engine/lib/GaussianSplatShadows.js";import N from"../../layers/LayerView.js";import{spatialReferenceIncompatibleError as P}from"../../support/layerViewUtils.js";import{TaskPriority as F}from"../../support/Scheduler.js";const I=()=>t.getLogger(`esri.views.3d.layers.GaussianSplatLayerView3D`);let L=class extends v(N){constructor(e){super(e),this.type=`gaussian-splat-3d`,this.ignoresMemoryFactor=!1,this._tileHandles=new Map,this._renderablesBeingCreated=new Set,this._tileLifecycle=new k(this),this._createRenderableAbortController=new AbortController,this.skipHeightModelInfoValidation=!0,this._initializationController=null,this._wasmLayerId=-1,this._metersPerVCSUnit=1,this._usedTileMemory=0,this._cacheTileMemory=0,this._useEsriCrs=!1,this.fullExtentInLocalViewSpatialReference=null,this._suspendedHandle=null;let t=e.view.resourceController;this._memCache=t.memoryController.newCache(`GaussianSplat-${this.uid}`,e=>this._deleteTile(e)),this._frameTask=t.scheduler.registerTask(F.GAUSSIAN_SPLAT_TEXTURE_ATLAS)}get _clippingBox(){if(!this.view?.clippingArea)return null;let e=f();return w(this.view.clippingArea,e,this.view.renderSpatialReference)?e:null}get clippingBox(){return this._renderer?.clippingBox??null}initialize(){let{view:e}=this;this.addHandles([o(()=>e.qualitySettings.fadeDuration,e=>{this.data&&(this.fadeHelper.onFadeDurationChanged(e),this.updateFadingTexture())})]),this.addResolvingPromise(this._initializeAsync(e))}async _initializeAsync(e){this._initializationController=new AbortController;let{signal:t}=this._initializationController;await s(()=>e?.defaultsFromMap.heightModelInfoReady,t),a(t);let n=C({viewingMode:e.state.viewingMode,renderSpatialReference:e.renderSpatialReference,esriCrsSpatialReference:this.layer.esriCrsSpatialReference,heightModelInfo:e.heightModelInfo});if(!n)throw P(`layer`,this.layer.spatialReference.wkid,e.renderSpatialReference?.wkid);this._useEsriCrs=n.useEsriCrs,this._metersPerVCSUnit=n.metersPerVCSUnit,n.useEsriCrs&&(this.fullExtentInLocalViewSpatialReference=this.layer.esriCrsFullExtent),this._wasmLayerId=await y(this,t),a(t),this._renderer=new j({view:e,layerView:this}),this.data=new T(this._renderer,(e,t)=>this._tileLifecycle.onSortComplete(e,t),()=>this._freeInvisibleTiles()),this._tileBuilder=new O(this.data.textureAtlas,this.data.headerTexture,()=>this._freeInvisibleTiles()),this._shadows=new M({view:e,layerView:this}),this.fadeHelper=new E(this,e=>this._tileLifecycle.onTileFullyFadedOut(e)),this._prepassDepthRenderer=new A({view:e,layerView:this});let r=new D(this);this._intersectionHandler=r,e.sceneIntersectionHelper.addIntersectionHandler(r),this._elevationProvider=new S({view:e,layerElevationSource:this,intersectionHandler:r}),e.elevationProvider.register(2,this._elevationProvider),this.addHandles([o(()=>this.layer.elevationInfo,e=>this._elevationInfoChanged(e)),o(()=>this.slicePlaneEnabled,e=>this._slicePlaneEnabledChanged(e),c)]),this._suspendedHandle=o(()=>this.suspended,e=>this._wasm?.setEnabled(this,!e),c),this.addHandles([o(()=>this._clippingBox,e=>{this._renderer&&(this._renderer.clippingBox=e)},c),o(()=>this.maximumGaussianCount,e=>this._wasm?.setMaximumGaussianSplatCount(Math.min(e,this.data.textureAtlas.maximumSupportedVisibleGaussians)),c)]),this._initializationController=null}get wasmLayerId(){return this._wasmLayerId}get metersPerVCSUnit(){return this._metersPerVCSUnit}get tileHandles(){return this._tileHandles}updateFadingTexture(){this.data.fadingTexture.updateTexture(this.data.textureAtlas.pageAllocator.pageCount)}get _wasm(){return b(this.view)}get usedMemory(){return this._usedTileMemory+(this.data?.usedMemory??0)}get cachedMemory(){return this._cacheTileMemory}get unloadedMemory(){return 0}get useEsriCrs(){return this._useEsriCrs}get elevationProvider(){return this._elevationProvider}get elevationOffset(){return h(this.layer.elevationInfo)}get elevationRange(){return this._intersectionHandler?.elevationRange}getElevationRange(e){return this._intersectionHandler.getElevationRange(e)}get fullExtent(){return this.layer.fullExtent}get visibleAtCurrentScale(){return p(this.layer.effectiveScaleRange,this.view.scale)}isUpdating(){let e=this._wasm;return this._wasmLayerId<0||e==null?!1:e.isUpdating(this._wasmLayerId)||this.data.updating||this.fadeHelper.updating}updatingFlagChanged(){this.notifyChange(`updating`)}async createRenderable(e){if(this.destroyed||this.destroying)throw Error(`IntegratedMesh3DTilesLayerView3D: createRenderable called after destroy`);let t=this._tileBuilder.prepare(e);if(!t)return I().warnOnce(`encountered tile with zero Gaussians`),()=>({memUsageBytes:0,numGaussians:0});let n=this.view.state.isGlobal,r=n?d(this.view.spatialReference).radius:0,i={...t,isGlobal:n,ellipsoidRadius:r};this._renderablesBeingCreated.add(e.handle);let a;try{a=await this._frameTask.scheduleGenerator(e=>this._createRenderableTask(i,e),this._createRenderableAbortController.signal)}finally{this._renderablesBeingCreated.delete(e.handle)}return()=>a}*_createRenderableTask(e,t){let n=yield*this._tileBuilder.build(e,t);return this._tileHandles.set(n.handle,n),this._cacheTileMemory+=n.usedMemory,this._memCache.put(`${n.handle}`,n),{memUsageBytes:n.usedMemory,numGaussians:n.gaussianCount}}freeRenderable(e){this._tileLifecycle.freeTile(e)}releaseTile(e,t){let n=this.data?.textureAtlas;t?(this._usedTileMemory-=e.usedMemory,this._intersectionHandler.removeTile(e)):this._cacheTileMemory-=e.usedMemory,n&&e.pageIds.forEach(e=>n.freePage(e)),this._removeTileCacheEntry(e),this._tileHandles.delete(e.handle)}_removeTileCacheEntry(e){this._memCache.pop(`${e.handle}`)}notifyTileObbsChanged(e){this._elevationProvider&&this._elevationProvider.notifyObjectsChangedFunctional(e.length,t=>{for(let{obb:n}of e)if(!t(n))break})}setRenderableVisibility(e,t,n){this._tileLifecycle.setVisibility(e,t,n)}activateTile(e){this._usedTileMemory+=e.usedMemory,this._cacheTileMemory-=e.usedMemory,this._intersectionHandler.addTile(e),this._memCache.pop(m(e.handle))}cacheTile(e){this._usedTileMemory-=e.usedMemory,this._cacheTileMemory+=e.usedMemory,this._intersectionHandler.removeTile(e),this._memCache.put(m(e.handle),e)}destroy(){this._initializationController=n(this._initializationController),this._createRenderableAbortController.abort(),x(this),this._suspendedHandle&&=r(this._suspendedHandle),this._intersectionHandler&&=(this.view.sceneIntersectionHelper.removeIntersectionHandler(this._intersectionHandler),null),this._elevationProvider&&this.view.elevationProvider&&(this._elevationProvider.notifyObjectsChangedFunctional(this._tileHandles.size,e=>{for(let{obb:t}of this._tileHandles.values())if(!e(t))break}),this.view.elevationProvider.unregister(this._elevationProvider),this._elevationProvider=null),this._frameTask.remove(),this._tileBuilder=null,this._shadows=i(this._shadows),this._prepassDepthRenderer=i(this._prepassDepthRenderer),this._renderer=i(this._renderer),this._memCache.destroy(),this.data=i(this.data)}_elevationInfoChanged(e){if(!e?.offset)this._wasm?.setLayerOffset(this,0);else if(!this._useEsriCrs)this._wasm?.setLayerOffset(this,h(e));else{let t=g(e?.unit)/this._metersPerVCSUnit,n=e?.offset??0;this._wasm?.setLayerOffset(this,n*t)}}_slicePlaneEnabledChanged(e){this._renderer&&(this._renderer.slicePlaneEnabled=e),this._intersectionHandler&&(this._intersectionHandler.slicePlaneEnabled=e)}updateActiveTileVisibility(){let e=[];for(let t of this._tileHandles.values())t.lifecycleState!==0&&e.push(t);this.data.updateGaussianVisibility(e,this._tileLifecycle.visibilityChange),this.notifyChange(`updating`)}get maximumGaussianCount(){return this.view.qualitySettings.gaussianSplat.maximumNumberOfGaussians*this.view.quality}set maximumGaussianCount(e){this._set(`maximumGaussianCount`,e)}_freeInvisibleTiles(){for(let e of this._tileHandles.values())e.lifecycleState===0&&!this._renderablesBeingCreated.has(e.handle)&&this._deleteTile(e)}_deleteTile(e){this._renderablesBeingCreated.has(e.handle)||this._wasm?.onRenderableEvicted(this,e.handle,e.usedMemory),this.freeRenderable(e.handle)}get performanceInfo(){let e=0,t=0;this._tileHandles.forEach(n=>{n.lifecycleState===0?t++:e++});let n=this.data?.textureAtlasMemory??0,r=this.data?.headerTextureMemory??0,i=this.data?.orderTextureMemory??0,a=this.data?.fadingTextureMemory??0,o=this.data?.sortBufferMemory??0;return new _(this.usedMemory,e,this._usedTileMemory,t,this._cacheTileMemory,n,r,i,a,o)}get test(){}};e([l()],L.prototype,`layer`,void 0),e([l({readOnly:!0})],L.prototype,`_clippingBox`,null),e([l()],L.prototype,`elevationOffset`,null),e([l({readOnly:!0})],L.prototype,`visibleAtCurrentScale`,null),e([l()],L.prototype,`fullExtentInLocalViewSpatialReference`,void 0),e([l()],L.prototype,`maximumGaussianCount`,null),L=e([u(`esri.views.3d.layers.GaussianSplatLayerView3D`)],L);const R=L;export{R as default};
2
+ import{__decorate as e}from"tslib";import"../../../core/has.js";import t from"../../../core/Logger.js";import{abortMaybe as n,destroyMaybe as r}from"../../../core/maybe.js";import{watch as i,initial as a}from"../../../core/reactiveUtils.js";import{property as o,subclass as s}from"../../../core/accessorSupport/decorators.js";import{getReferenceEllipsoid as c}from"../../../geometry/ellipsoidUtils.js";import{create as l}from"../../../geometry/support/aaBoundingBox.js";import{isInEffectiveScaleRange as u}from"../../../geometry/support/scaleUtils.js";import{makeCacheKey as d}from"../../../layers/support/tiles3DUtils.js";import{getElevationOffsetInMeters as f}from"../../../support/elevationInfoUtils.js";import{getMetersPerUnit as p}from"../../../symbols/support/unitConversionUtils.js";import{GaussianSplatLayerViewPerformanceInfo as m}from"./GaussianSplatLayerViewPerformanceInfo.js";import{LayerView3D as h}from"./LayerView3D.js";import{getLyr3DWasm as g}from"./Lyr3DWasm.js";import{Tiles3DLayerViewRegistration as _}from"./support/Tiles3DLayerViewRegistration.js";import{projectToBoundingBox as v}from"../support/extentUtils.js";import{GaussianSplatDataStore as y}from"../support/gaussianSplatting/GaussianSplatDataStore.js";import{GaussianSplatFadeHelper as b}from"../support/gaussianSplatting/GaussianSplatFadeHelper.js";import{GaussianSplatIntersectionHandler as x}from"../support/gaussianSplatting/GaussianSplatIntersectionHandler.js";import{GaussianTileBuilder as S}from"../support/gaussianSplatting/GaussianTileBuilder.js";import{GaussianTileLifecycle as C}from"../support/gaussianSplatting/GaussianTileLifecycle.js";import{GaussianSplatDepthRenderer as w}from"../webgl-engine/lib/GaussianSplatDepthRenderer.js";import{GaussianSplatRenderer as T}from"../webgl-engine/lib/GaussianSplatRenderer.js";import{GaussianSplatShadows as E}from"../webgl-engine/lib/GaussianSplatShadows.js";import D from"../../layers/LayerView.js";import{TaskPriority as O}from"../../support/Scheduler.js";const k=()=>t.getLogger(`esri.views.3d.layers.GaussianSplatLayerView3D`);let A=class extends h(D){constructor(e){super(e),this.type=`gaussian-splat-3d`,this.ignoresMemoryFactor=!1,this._registration=new _(this),this._tileHandles=new Map,this._renderablesBeingCreated=new Set,this._tileLifecycle=new C(this),this._createRenderableAbortController=new AbortController,this.skipHeightModelInfoValidation=!0,this._initializationController=null,this._usedTileMemory=0,this._cacheTileMemory=0,this.fullExtentInLocalViewSpatialReference=null;let t=e.view.resourceController;this._memCache=t.memoryController.newCache(`GaussianSplat-${this.uid}`,e=>this._deleteTile(e)),this._frameTask=t.scheduler.registerTask(O.GAUSSIAN_SPLAT_TEXTURE_ATLAS)}get _clippingBox(){if(!this.view?.clippingArea)return null;let e=l();return v(this.view.clippingArea,e,this.view.renderSpatialReference)?e:null}get clippingBox(){return this._renderer?.clippingBox??null}initialize(){let{view:e}=this;this.addHandles([i(()=>e.qualitySettings.fadeDuration,e=>{this.data&&(this.fadeHelper.onFadeDurationChanged(e),this.updateFadingTexture())})]),this._initializationController=new AbortController,this.addResolvingPromise(this._registration.initialize(this._initializationController.signal,()=>this._initializeRegistered(e)))}_initializeRegistered(e){this._renderer=new T({view:e,layerView:this}),this.data=new y(this._renderer,(e,t)=>this._tileLifecycle.onSortComplete(e,t),()=>this._freeInvisibleTiles()),this._tileBuilder=new S(this.data.textureAtlas,this.data.headerTexture,()=>this._freeInvisibleTiles()),this._shadows=new E({view:e,layerView:this}),this.fadeHelper=new b(this,e=>this._tileLifecycle.onTileFullyFadedOut(e)),this._prepassDepthRenderer=new w({view:e,layerView:this});let t=new x(this);this._intersectionHandler=t,this._registration.registerQueries(t,2),this.addHandles([i(()=>this.layer.elevationInfo,e=>this._elevationInfoChanged(e)),i(()=>this.slicePlaneEnabled,e=>this._slicePlaneEnabledChanged(e),a)]),this._registration.synchronizeSuspension(),this.addHandles([i(()=>this._clippingBox,e=>{this._renderer&&(this._renderer.clippingBox=e)},a),i(()=>this.maximumGaussianCount,e=>this._wasm?.setMaximumGaussianSplatCount(Math.min(e,this.data.textureAtlas.maximumSupportedVisibleGaussians)),a)]),this._initializationController=null}get wasmLayerId(){return this._registration.wasmLayerId}get metersPerVCSUnit(){return this._registration.metersPerVCSUnit}get tileHandles(){return this._tileHandles}updateFadingTexture(){this.data.fadingTexture.updateTexture(this.data.textureAtlas.pageAllocator.pageCount)}get _wasm(){return g(this.view)}get usedMemory(){return this._usedTileMemory+(this.data?.usedMemory??0)}get cachedMemory(){return this._cacheTileMemory}get unloadedMemory(){return 0}get useEsriCrs(){return this._registration.useEsriCrs}get elevationProvider(){return this._registration.elevationProvider}get elevationOffset(){return f(this.layer.elevationInfo)}get elevationRange(){return this._intersectionHandler?.elevationRange}getElevationRange(e){return this._intersectionHandler.getElevationRange(e)}get fullExtent(){return this.layer.fullExtent}get visibleAtCurrentScale(){return u(this.layer.effectiveScaleRange,this.view.scale)}isUpdating(){let e=this._wasm;return this.wasmLayerId<0||e==null?!1:e.isUpdating(this.wasmLayerId)||this.data.updating||this.fadeHelper.updating}updatingFlagChanged(){this.notifyChange(`updating`)}async createRenderable(e){if(this.destroyed||this.destroying)throw Error(`IntegratedMesh3DTilesLayerView3D: createRenderable called after destroy`);let t=this._tileBuilder.prepare(e);if(!t)return k().warnOnce(`encountered tile with zero Gaussians`),()=>({memUsageBytes:0,numGaussians:0});let n=this.view.state.isGlobal,r=n?c(this.view.spatialReference).radius:0,i={...t,isGlobal:n,ellipsoidRadius:r};this._renderablesBeingCreated.add(e.handle);let a;try{a=await this._frameTask.scheduleGenerator(e=>this._createRenderableTask(i,e),this._createRenderableAbortController.signal)}finally{this._renderablesBeingCreated.delete(e.handle)}return()=>a}*_createRenderableTask(e,t){let n=yield*this._tileBuilder.build(e,t);return this._tileHandles.set(n.handle,n),this._cacheTileMemory+=n.usedMemory,this._memCache.put(`${n.handle}`,n),{memUsageBytes:n.usedMemory,numGaussians:n.gaussianCount}}freeRenderable(e){this._tileLifecycle.freeTile(e)}releaseTile(e,t){let n=this.data?.textureAtlas;t?(this._usedTileMemory-=e.usedMemory,this._intersectionHandler.removeTile(e)):this._cacheTileMemory-=e.usedMemory,n&&e.pageIds.forEach(e=>n.freePage(e)),this._removeTileCacheEntry(e),this._tileHandles.delete(e.handle)}_removeTileCacheEntry(e){this._memCache.pop(`${e.handle}`)}notifyTileObbsChanged(e){this.elevationProvider&&this.elevationProvider.notifyObjectsChangedFunctional(e.length,t=>{for(let{obb:n}of e)if(!t(n))break})}setRenderableVisibility(e,t,n){this._tileLifecycle.setVisibility(e,t,n)}activateTile(e){this._usedTileMemory+=e.usedMemory,this._cacheTileMemory-=e.usedMemory,this._intersectionHandler.addTile(e),this._memCache.pop(d(e.handle))}cacheTile(e){this._usedTileMemory-=e.usedMemory,this._cacheTileMemory+=e.usedMemory,this._intersectionHandler.removeTile(e),this._memCache.put(d(e.handle),e)}destroy(){this._initializationController=n(this._initializationController),this._createRenderableAbortController.abort(),this._registration.unregisterWasm(),this._registration.unregisterQueries(e=>{e.notifyObjectsChangedFunctional(this._tileHandles.size,e=>{for(let{obb:t}of this._tileHandles.values())if(!e(t))break})}),this._intersectionHandler=null,this._frameTask.remove(),this._tileBuilder=null,this._shadows=r(this._shadows),this._prepassDepthRenderer=r(this._prepassDepthRenderer),this._renderer=r(this._renderer),this._memCache.destroy(),this.data=r(this.data)}_elevationInfoChanged(e){if(!e?.offset)this._wasm?.setLayerOffset(this,0);else if(!this.useEsriCrs)this._wasm?.setLayerOffset(this,f(e));else{let t=p(e?.unit)/this.metersPerVCSUnit,n=e?.offset??0;this._wasm?.setLayerOffset(this,n*t)}}_slicePlaneEnabledChanged(e){this._renderer&&(this._renderer.slicePlaneEnabled=e),this._intersectionHandler&&(this._intersectionHandler.slicePlaneEnabled=e)}updateActiveTileVisibility(){let e=[];for(let t of this._tileHandles.values())t.lifecycleState!==0&&e.push(t);this.data.updateGaussianVisibility(e,this._tileLifecycle.visibilityChange),this.notifyChange(`updating`)}get maximumGaussianCount(){return this.view.qualitySettings.gaussianSplat.maximumNumberOfGaussians*this.view.quality}set maximumGaussianCount(e){this._set(`maximumGaussianCount`,e)}_freeInvisibleTiles(){for(let e of this._tileHandles.values())e.lifecycleState===0&&!this._renderablesBeingCreated.has(e.handle)&&this._deleteTile(e)}_deleteTile(e){this._renderablesBeingCreated.has(e.handle)||this._wasm?.onRenderableEvicted(this,e.handle,e.usedMemory),this.freeRenderable(e.handle)}get performanceInfo(){let e=0,t=0;this._tileHandles.forEach(n=>{n.lifecycleState===0?t++:e++});let n=this.data?.textureAtlasMemory??0,r=this.data?.headerTextureMemory??0,i=this.data?.orderTextureMemory??0,a=this.data?.fadingTextureMemory??0,o=this.data?.sortBufferMemory??0;return new m(this.usedMemory,e,this._usedTileMemory,t,this._cacheTileMemory,n,r,i,a,o)}get test(){}};e([o()],A.prototype,`layer`,void 0),e([o({readOnly:!0})],A.prototype,`_clippingBox`,null),e([o()],A.prototype,`elevationOffset`,null),e([o({readOnly:!0})],A.prototype,`visibleAtCurrentScale`,null),e([o()],A.prototype,`fullExtentInLocalViewSpatialReference`,void 0),e([o()],A.prototype,`maximumGaussianCount`,null),A=e([s(`esri.views.3d.layers.GaussianSplatLayerView3D`)],A);const j=A;export{j as default};