@arcgis/core 6.0.0-next.57 → 6.0.0-next.58

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 (629) hide show
  1. package/WebLinkChart.d.ts +0 -12
  2. package/WebLinkChart.js +1 -1
  3. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  4. package/applications/WebEditor/sketchUtils.js +1 -1
  5. package/arcade/arcadeCompiler.js +5 -5
  6. package/arcade/containerUtils.js +1 -1
  7. package/arcade/featureset/actions/Adapted.js +1 -1
  8. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  9. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  10. package/arcade/featureset/support/shared.js +1 -1
  11. package/arcade/featureset/support/sqlUtils.js +1 -1
  12. package/assets/esri/core/workers/RemoteClient.js +1 -1
  13. package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
  14. package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
  15. package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
  16. package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
  17. package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
  20. package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
  21. package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
  22. package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
  23. package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
  24. package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
  25. package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
  26. package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
  27. package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
  28. package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
  29. package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
  30. package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
  31. package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
  32. package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
  33. package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
  34. package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
  35. package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
  36. package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
  37. package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
  38. package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
  40. package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
  41. package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
  42. package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
  43. package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
  44. package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
  45. package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
  46. package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
  47. package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
  48. package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
  49. package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
  50. package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
  51. package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
  52. package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
  54. package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
  55. package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
  56. package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
  57. package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
  58. package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
  59. package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
  60. package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
  61. package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
  62. package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
  63. package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
  64. package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 5e4de4ddd3bdc74100e0.js} +33 -32
  65. package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
  66. package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
  67. package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
  68. package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
  69. package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
  70. package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
  71. package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
  72. package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
  73. package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
  74. package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
  75. package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
  76. package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
  77. package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
  78. package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
  79. package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
  81. package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
  82. package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
  83. package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
  84. package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
  85. package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
  86. package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
  87. package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
  88. package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
  89. package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
  90. package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
  91. package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
  92. package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
  93. package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
  94. package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
  95. package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
  96. package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
  97. package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
  98. package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
  99. package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
  100. package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
  101. package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
  102. package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
  103. package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
  104. package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
  105. package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
  106. package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
  107. package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
  108. package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
  109. package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
  110. package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
  111. package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
  112. package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
  113. package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
  114. package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
  115. package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
  119. package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
  120. package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
  121. package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
  122. package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
  123. package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
  124. package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
  125. package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
  126. package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
  127. package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
  128. package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
  129. package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
  130. package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
  131. package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
  132. package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
  133. package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
  134. package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
  135. package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
  136. package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
  137. package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
  138. package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
  139. package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
  140. package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
  141. package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
  142. package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
  143. package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
  144. package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
  145. package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
  146. package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
  147. package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
  148. package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
  149. package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
  150. package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
  151. package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
  152. package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
  153. package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
  154. package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
  155. package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
  157. package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
  158. package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
  159. package/chunks/BlurEmission.glsl.js +4 -17
  160. package/chunks/Bufferer-CclWhXVb.js +1 -1
  161. package/chunks/ColorMaterial.glsl.js +1 -1
  162. package/chunks/Component.glsl.js +1 -1
  163. package/chunks/EmissionComposite.glsl.js +2 -2
  164. package/chunks/Envelope.js +1 -1
  165. package/chunks/Envelope2D.js +1 -1
  166. package/chunks/Fog.glsl.js +3 -3
  167. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  168. package/chunks/ImageMaterial.glsl.js +1 -1
  169. package/chunks/LineMarker.glsl.js +2 -2
  170. package/chunks/MultiPathImpl.js +1 -1
  171. package/chunks/OperatorGeodesicBuffer.js +1 -1
  172. package/chunks/OperatorGeodeticArea.js +1 -1
  173. package/chunks/OperatorShapePreservingProject.js +1 -1
  174. package/chunks/Point2D.js +1 -1
  175. package/chunks/RealisticAtmosphere.glsl.js +7 -9
  176. package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
  177. package/chunks/RibbonLine.glsl.js +2 -2
  178. package/chunks/Terrain.glsl.js +27 -27
  179. package/chunks/UPCPointRenderer.glsl.js +100 -0
  180. package/chunks/UnitFactory.js +1 -1
  181. package/chunks/Water.glsl.js +24 -24
  182. package/chunks/arcade.js +1 -1
  183. package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
  184. package/chunks/arcgis-knowledge-client-core.js +4 -4
  185. package/chunks/array.js +1 -1
  186. package/chunks/basis_encoder.js +3 -3
  187. package/chunks/basis_transcoder.js +2 -2
  188. package/chunks/draco_mesh_decoder.js +2 -2
  189. package/chunks/dxt_encoder.js +3 -3
  190. package/chunks/i3s.js +2 -2
  191. package/chunks/languageUtils.js +1 -1
  192. package/chunks/lclayout.js +3 -3
  193. package/chunks/lerc-wasm.js +1 -1
  194. package/chunks/lyr3DWorker.js +2 -2
  195. package/chunks/pe.js +1 -1
  196. package/chunks/projector.js +1 -1
  197. package/chunks/qb3-wasm.js +1 -1
  198. package/chunks/vxlLayer.js +2 -2
  199. package/colorUtils.js +1 -1
  200. package/config.js +1 -1
  201. package/core/AsyncUpdate.js +1 -1
  202. package/core/Clonable.js +1 -1
  203. package/core/Identifiable.js +1 -1
  204. package/core/Loadable.js +1 -1
  205. package/core/MultiOriginJSONSupport.js +1 -1
  206. package/core/NumericIdentifiable.js +1 -1
  207. package/core/Promise.js +1 -1
  208. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  209. package/core/accessorSupport/metadata.js +1 -1
  210. package/core/accessorSupport/trackingUtils.js +1 -1
  211. package/core/asyncUtils.js +1 -1
  212. package/core/handleUtils.js +1 -1
  213. package/core/mapCollectionUtils.js +1 -1
  214. package/core/reactiveUtils.js +1 -1
  215. package/core/sql/SqlTimestampOffset.js +1 -1
  216. package/core/sql/WhereClause.js +1 -1
  217. package/core/sql/WhereGrammar.js +1 -1
  218. package/core/sql/writeUtils.js +1 -1
  219. package/core/sql.js +1 -1
  220. package/core/urlUtils.js +1 -1
  221. package/core/workers/workers.js +1 -1
  222. package/geohash/GeohashCell.js +1 -1
  223. package/geohash/GeohashTree.js +1 -1
  224. package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
  225. package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
  226. package/geometry/coordinateConversion/support/Format.d.ts +6 -30
  227. package/geometry/coordinateConversion/types.d.ts +15 -15
  228. package/geometry/operators/reshapeOperator.js +1 -1
  229. package/geometry/support/MeshMaterial.js +1 -1
  230. package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
  231. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  232. package/graphic/AggregateGraphicOrigin.js +1 -1
  233. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  234. package/graphic/BuildingGraphicOrigin.js +1 -1
  235. package/graphic/CSVGraphicOrigin.js +1 -1
  236. package/graphic/CatalogGraphicOrigin.js +1 -1
  237. package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
  238. package/graphic/FeatureGraphicOrigin.js +1 -1
  239. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  240. package/graphic/GeoRSSGraphicOrigin.js +1 -1
  241. package/graphic/ImageryGraphicOrigin.js +1 -1
  242. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  243. package/graphic/KMLGraphicOrigin.js +1 -1
  244. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  245. package/graphic/LinkChartGraphicOrigin.js +1 -1
  246. package/graphic/MapImageGraphicOrigin.js +1 -1
  247. package/graphic/MapNotesGraphicOrigin.js +1 -1
  248. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  249. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  250. package/graphic/ParquetGraphicOrigin.js +1 -1
  251. package/graphic/PointCloudGraphicOrigin.js +1 -1
  252. package/graphic/SceneGraphicOrigin.js +1 -1
  253. package/graphic/SketchGraphicOrigin.js +1 -1
  254. package/graphic/StreamGraphicOrigin.js +1 -1
  255. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  256. package/graphic/TileGraphicOrigin.js +1 -1
  257. package/graphic/TrackGraphicOrigin.js +1 -1
  258. package/graphic/VectorTileGraphicOrigin.js +1 -1
  259. package/graphic/VoxelGraphicOrigin.js +1 -1
  260. package/graphic/WCSGraphicOrigin.js +1 -1
  261. package/graphic/WFSGraphicOrigin.js +1 -1
  262. package/graphic/getLayerViewLayer.js +2 -0
  263. package/identity/IdentityManagerBase.js +1 -1
  264. package/kernel.js +1 -1
  265. package/layers/ElevationLayer.js +1 -1
  266. package/layers/LinkChartLayer.d.ts +1 -1
  267. package/layers/LinkChartLayer.js +1 -1
  268. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  269. package/layers/PointCloudLayer.js +3 -3
  270. package/layers/VectorTileLayer.d.ts +17 -10
  271. package/layers/VoxelWasmPerSceneView.js +1 -1
  272. package/layers/WMTSLayer.js +1 -1
  273. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
  274. package/layers/mixins/APIKeyMixin.js +1 -1
  275. package/layers/mixins/ArcGISCachedService.js +1 -1
  276. package/layers/mixins/ArcGISImageService.js +1 -1
  277. package/layers/mixins/ArcGISMapService.js +1 -1
  278. package/layers/mixins/ArcGISService.js +1 -1
  279. package/layers/mixins/BlendLayer.js +1 -1
  280. package/layers/mixins/CustomParametersMixin.js +1 -1
  281. package/layers/mixins/DataElementMixin.js +1 -1
  282. package/layers/mixins/DataSeriesLayer.js +1 -1
  283. package/layers/mixins/DisplayFilteredLayer.js +1 -1
  284. package/layers/mixins/EditBusLayer.js +1 -1
  285. package/layers/mixins/FeatureEffectLayer.js +1 -1
  286. package/layers/mixins/FeatureLayerBase.js +1 -1
  287. package/layers/mixins/FeatureReductionLayer.js +1 -1
  288. package/layers/mixins/HeightModelInfoMixin.js +1 -1
  289. package/layers/mixins/OperationalLayer.js +1 -1
  290. package/layers/mixins/OrderedLayer.js +1 -1
  291. package/layers/mixins/PortalLayer.js +1 -1
  292. package/layers/mixins/PublishableLayer.js +1 -1
  293. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  294. package/layers/mixins/RasterPresetRendererMixin.js +1 -1
  295. package/layers/mixins/RefreshableLayer.js +1 -1
  296. package/layers/mixins/ReloadableLayer.js +1 -1
  297. package/layers/mixins/ScaleRangeLayer.js +1 -1
  298. package/layers/mixins/SceneService.js +1 -1
  299. package/layers/mixins/SublayersOwner.js +1 -1
  300. package/layers/mixins/TemporalLayer.js +1 -1
  301. package/layers/mixins/TrackableLayer.js +1 -1
  302. package/layers/orientedImagery/transformations/utils.js +1 -1
  303. package/layers/raster/datasets/TIFFRaster.js +1 -1
  304. package/layers/raster/datasets/pixelReader.js +1 -1
  305. package/layers/raster/datasets/xmlUtilities.js +1 -1
  306. package/layers/raster/formats/Lerc.js +1 -1
  307. package/layers/raster/formats/Qb3.js +1 -1
  308. package/layers/raster/formats/TiffDecoder.js +1 -1
  309. package/layers/raster/formats/blosc.js +1 -1
  310. package/layers/raster/formats/tiffParser.js +1 -1
  311. package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
  312. package/layers/raster/formats/tiffTag.js +1 -1
  313. package/layers/raster/functions/colormaps.js +1 -1
  314. package/layers/support/TitleCreator.js +1 -1
  315. package/layers/support/WMTSSublayer.js +1 -1
  316. package/layers/support/geospatialPDFUtils.js +1 -1
  317. package/layers/support/imageUtils.js +1 -1
  318. package/layers/support/labelUtils.js +1 -1
  319. package/layers/support/tiles3DUtils.js +1 -1
  320. package/layers/video/VideoController.js +14 -14
  321. package/legend/ActiveLayerInfo.js +1 -1
  322. package/legend/support/sizeRampUtils.js +1 -1
  323. package/libs/basisu/BasisUEncoder.js +1 -1
  324. package/libs/basisu/BasisUTranscoder.js +1 -1
  325. package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
  326. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  327. package/libs/i3s/I3SModule.js +1 -1
  328. package/libs/librust-parquet/loadParquetModule.js +1 -1
  329. package/libs/librust-text/loadTextModule.js +1 -1
  330. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  331. package/libs/maquette-advanced-projector/projector.js +1 -1
  332. package/package.json +2 -2
  333. package/popup/FeaturesModel.d.ts +6 -0
  334. package/popup/FeaturesModel.js +1 -1
  335. package/portal/PortalUser.js +1 -1
  336. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  337. package/renderers/visualVariables/VisualVariableFactory.js +1 -1
  338. package/rest/identify.js +1 -1
  339. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  340. package/rest/layerSources/utils.js +1 -1
  341. package/rest/networks/validateNetworkTopology.js +1 -1
  342. package/rest/support/CameraInfoMixin.js +1 -1
  343. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  344. package/rest/support/generateRendererUtils.js +1 -1
  345. package/smartMapping/raster/renderers/vectorField.js +1 -1
  346. package/smartMapping/renderers/type.js +1 -1
  347. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  348. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  349. package/smartMapping/symbology/color.js +1 -1
  350. package/smartMapping/symbology/support/Theme.js +1 -1
  351. package/support/BasemapStyle.js +1 -1
  352. package/support/LayersMixin.js +1 -1
  353. package/support/TablesMixin.js +1 -1
  354. package/support/actions/ActionBase.d.ts +14 -2
  355. package/support/actions/ActionBase.js +1 -1
  356. package/support/actions/ActionButton.js +1 -1
  357. package/support/actions/ActionToggle.js +1 -1
  358. package/support/loadArcade.js +1 -1
  359. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  360. package/views/2d/engine/flow/utils.js +1 -1
  361. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  362. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  363. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  364. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  365. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  366. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  367. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  368. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
  369. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
  370. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  371. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  372. package/views/2d/layerViewModuleImportUtils.js +1 -1
  373. package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
  374. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  375. package/views/2d/layers/LayerView2D.js +1 -1
  376. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  377. package/views/2d/layers/TileLayerView2D.js +1 -1
  378. package/views/2d/layers/features/FeatureContainer.js +1 -1
  379. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  380. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  381. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  382. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  383. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  384. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  385. package/views/3d/layerViewModuleImportUtils.js +1 -1
  386. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  387. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  388. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  389. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  390. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  391. package/views/3d/layers/I3SMeshView3D.js +1 -1
  392. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  393. package/views/3d/layers/LayerView3D.js +1 -1
  394. package/views/3d/layers/Lyr3DWorker.js +1 -1
  395. package/views/3d/layers/PointCloudIntersector.js +2 -0
  396. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  397. package/views/3d/layers/SceneLayerWorker.js +1 -1
  398. package/views/3d/layers/TiledLayerView3D.js +1 -1
  399. package/views/3d/layers/UPCPointRenderer.js +2 -0
  400. package/views/3d/layers/UPCPointRendererNode.js +2 -0
  401. package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
  402. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  403. package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
  404. package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
  405. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  406. package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
  407. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  408. package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
  409. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  410. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  411. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
  412. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  413. package/views/3d/support/QualityProfile.js +1 -1
  414. package/views/3d/support/QualitySettings.js +1 -1
  415. package/views/3d/support/cameraUtils.js +1 -1
  416. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  417. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  418. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  419. package/views/3d/terrain/TerrainRenderer.js +1 -1
  420. package/views/3d/webgl/RenderNode.js +1 -1
  421. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  422. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
  423. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  424. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  425. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
  426. package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
  427. package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
  428. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
  429. package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
  430. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
  431. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  432. package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
  433. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  434. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  435. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  436. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  437. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  438. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
  439. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
  440. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
  441. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
  442. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  443. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
  444. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  445. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  446. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  447. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  448. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  449. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  450. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  451. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  452. package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
  453. package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
  454. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  455. package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
  456. package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
  457. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
  458. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  460. package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
  461. package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
  462. package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
  463. package/views/BreakpointsOwner.js +1 -1
  464. package/views/DOMContainer.js +1 -1
  465. package/views/PopupView.js +1 -1
  466. package/views/View.d.ts +27 -1
  467. package/views/View.js +1 -1
  468. package/views/Viewport2DBaseMixin.js +1 -1
  469. package/views/Viewport2DMixin.js +1 -1
  470. package/views/animation/pointToPoint/Animation.js +1 -1
  471. package/views/interactive/Tooltip.d.ts +1 -1
  472. package/views/interactive/Tooltip.js +1 -1
  473. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  474. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  475. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  476. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  477. package/views/layers/MapImageLayerView.js +1 -1
  478. package/views/layers/PointCloudLayerView.js +1 -1
  479. package/views/layers/RefreshableLayerView.js +1 -1
  480. package/views/layers/WMSLayerView.js +1 -1
  481. package/views/overlay/ViewOverlay.js +1 -1
  482. package/views/support/flow/utils.js +1 -1
  483. package/views/support/screenshotUtils.js +1 -1
  484. package/views/types.d.ts +15 -0
  485. package/views/webgl/AllocationTracer.js +1 -1
  486. package/views/webgl/InstanceCounter.js +1 -1
  487. package/views/webgl/RenderingContext.js +1 -1
  488. package/views/webgl/ShaderBuilder.js +23 -23
  489. package/views/webgl/ShaderTranspiler.js +1 -1
  490. package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
  491. package/views/webgl/capabilities.js +1 -1
  492. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
  493. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
  494. package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
  495. package/widgets/Editor/EditorViewModel.js +1 -1
  496. package/widgets/Editor/workflowUtils.js +1 -1
  497. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  498. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
  499. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  500. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  501. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  502. package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
  503. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  504. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  505. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  506. package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
  507. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  508. package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
  509. package/widgets/smartMapping/support/utils.js +1 -1
  510. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  511. package/widgets/support/AnchorElementViewModel.js +1 -1
  512. package/widgets/support/GoTo.js +1 -1
  513. package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
  514. package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
  515. package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
  516. package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
  517. package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
  518. package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
  519. package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
  520. package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
  521. package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
  522. package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
  523. package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
  524. package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
  525. package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
  526. package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
  527. package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
  528. package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
  529. package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
  530. package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
  531. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
  532. package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
  533. package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
  534. package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
  535. package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
  536. package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
  537. package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
  538. package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
  539. package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
  540. package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
  541. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
  542. package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
  543. package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
  544. package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
  545. package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
  546. package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
  547. package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
  548. package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
  549. package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
  550. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
  551. package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
  552. package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
  553. package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
  554. package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
  555. package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
  556. package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
  557. package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
  558. package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
  559. package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
  560. package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
  561. package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
  562. package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
  563. package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
  564. package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
  565. package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
  566. package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
  567. package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
  568. package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
  569. package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
  570. package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
  571. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
  572. package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
  573. package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
  574. package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
  575. package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
  576. package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
  577. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
  578. package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
  579. package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
  580. package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
  581. package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
  582. package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
  583. package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
  584. package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
  585. package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
  586. package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
  587. package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
  588. package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
  589. package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
  590. package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
  591. package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
  592. package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
  593. package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
  594. package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
  595. package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
  596. package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
  597. package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
  598. package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
  599. package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
  600. package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
  601. package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
  602. package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
  603. package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
  604. package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
  605. package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
  606. package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
  607. package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
  608. package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
  609. package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
  610. package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
  611. package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
  612. package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
  613. package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
  614. package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
  615. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
  616. package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
  617. package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
  618. package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
  619. package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
  620. package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
  621. package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
  622. package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
  623. package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
  624. package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
  625. package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
  626. package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
  627. package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
  628. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
  629. package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{create as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{hasArea as t,width as n,height as r}from"../../../../../../geometry/support/aaBoundingRect.js";import{Uniform as i}from"../../../../../webgl/Uniform.js";import{getWaterColor as a}from"../../../materials/getWaterColor.glsl.js";import{Float4DrawUniform as o}from"../../shaderModules/Float4DrawUniform.js";import{FloatPassUniform as s}from"../../shaderModules/FloatPassUniform.js";import{glsl as c,If as l}from"../../shaderModules/glsl.js";import{Texture2DPassUniform as u}from"../../shaderModules/Texture2DPassUniform.js";import{Texture2DUintPassUniform as d}from"../../shaderModules/Texture2DUintPassUniform.js";import{isColor as f}from"../ShaderOutput.js";import{mainLightDirection as p,mainLightIntensity as m}from"../shading/lightingUniforms.js";import{BlendColorsPremultiplied as h}from"../util/BlendColorsPremultiplied.glsl.js";function g(e,t){let{vertex:n,fragment:r}=e;n.uniforms.add(new o(`overlayTexOffset`,(e,n)=>w(t.spherical,e,n)),new o(`overlayTexScale`,(e,n)=>T(t.spherical,e,n))),r.uniforms.add(new o(`overlayTexOffset`,(e,n)=>w(t.spherical,e,n)),new o(`overlayTexScale`,(e,n)=>T(t.spherical,e,n))),r.constants.add(`overlayOpacity`,`float`,1),r.uniforms.add(new u(`ovColorTex`,(e,n)=>_(e,n,t.shouldDrapeRaster===!0))),S(e,t)}function _(e,t,n){let r=v(e,t,n);return r==null?null:t.overlay?.getTexture(r)}function v(e,t,n){return e.identifier===0?f(t.output)?!e.occludedGround||t.overlay?.allSourcesOccluders?y(n):4:t.output===3||t.output===4?y(n):t.output===11?5:null:e.identifier===2?2:null}function y(e){return+!e}function b(e,t){let{vertex:n,fragment:r}=e;n.uniforms.add(new D(`overlayTexOffset`),new D(`overlayTexScale`)),r.uniforms.add(new s(`overlayOpacity`,e=>e.overlayOpacity)),t.output!==10&&r.uniforms.add(new u(`ovColorTex`,(e,t)=>t.overlay?.getTexture(e.overlayContent))),S(e,t)}function x(e,t){switch(e){case 0:case 1:case 2:return t.slot===9&&!t.overlay?.allSourcesOccluders?4:0;case 3:case 4:return 0;case 10:return 2;case 5:case 7:case 8:case 9:return null;case 11:return 5}return null}function S(e,t){let{hasWater:n,output:r}=t;n&&e.include(a,t);let{vertex:i,fragment:o,varyings:s}=e;s.add(`vtcOverlay`,`vec4`);let u=r===10;i.code.add(c`void setOverlayVTC(in vec2 uv) {
2
+ import{create as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{hasArea as t,width as n,height as r}from"../../../../../../geometry/support/aaBoundingRect.js";import{Uniform as i}from"../../../../../webgl/Uniform.js";import{getWaterColor as a}from"../../../materials/getWaterColor.glsl.js";import{Float4DrawUniform as o}from"../../shaderModules/Float4DrawUniform.js";import{FloatPassUniform as s}from"../../shaderModules/FloatPassUniform.js";import{glsl as c,If as l}from"../../shaderModules/glsl.js";import{Texture2DPassUniform as u}from"../../shaderModules/Texture2DPassUniform.js";import{Texture2DUintPassUniform as d}from"../../shaderModules/Texture2DUintPassUniform.js";import{isColor as f}from"../ShaderOutput.js";import{mainLightDirection as p,mainLightIntensity as m}from"../shading/lightingUniforms.js";import{BlendColorsPremultiplied as h}from"../util/BlendColorsPremultiplied.glsl.js";function g(e,t){let{vertex:n,fragment:r}=e;n.uniforms.add(new o(`overlayTexOffset`,(e,n)=>w(t.spherical,e,n)),new o(`overlayTexScale`,(e,n)=>T(t.spherical,e,n))),r.uniforms.add(new o(`overlayTexOffset`,(e,n)=>w(t.spherical,e,n)),new o(`overlayTexScale`,(e,n)=>T(t.spherical,e,n))),r.constants.add(`overlayOpacity`,`float`,1),r.uniforms.add(new u(`ovColorTex`,(e,n)=>_(e,n,t.shouldDrapeRaster===!0))),S(e,t)}function _(e,t,n){let r=v(e,t,n);return r==null?null:t.overlay?.getTexture(r)}function v(e,t,n){return e.identifier===0?f(t.output)?!e.occludedGround||t.overlay?.allSourcesOccluders?y(n):4:t.output===3||t.output===4?y(n):t.output===11?5:null:e.identifier===2?2:null}function y(e){return+!e}function b(e,t){let{vertex:n,fragment:r}=e;n.uniforms.add(new D(`overlayTexOffset`),new D(`overlayTexScale`)),t.output!==10&&t.output!==11?r.uniforms.add(new s(`overlayOpacity`,e=>e.overlayOpacity)):r.constants.add(`overlayOpacity`,`float`,1),t.output!==10&&r.uniforms.add(new u(`ovColorTex`,(e,t)=>t.overlay?.getTexture(e.overlayContent))),S(e,t)}function x(e,t){switch(e){case 0:case 1:case 2:return t.slot===9&&!t.overlay?.allSourcesOccluders?4:0;case 3:case 4:return 0;case 10:return 2;case 5:case 7:case 8:case 9:return null;case 11:return 5}return null}function S(e,t){let{hasWater:n,output:r}=t;n&&e.include(a,t);let{vertex:i,fragment:o,varyings:s}=e;s.add(`vtcOverlay`,`vec4`);let u=r===10;i.code.add(c`void setOverlayVTC(in vec2 uv) {
3
3
  vtcOverlay = vec4(uv, uv) * overlayTexScale + overlayTexOffset;
4
4
  }`),o.code.add(c`bool isValid(vec2 uv, vec2 dxdy) {
5
5
  return (uv.x >= 0.0 + dxdy.x) && (uv.x <= 1.0 - dxdy.x) && (uv.y >= 0.0 + dxdy.y) && (uv.y <= 1.0 - dxdy.y);
@@ -1,16 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{ZEROS as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{NoParameters as t}from"../../../../../webgl/NoParameters.js";import{Float3PassUniform as n}from"../../shaderModules/Float3PassUniform.js";import{FloatPassUniform as r}from"../../shaderModules/FloatPassUniform.js";import{If as i,glsl as a}from"../../shaderModules/glsl.js";import{Texture2DPassUniform as o}from"../../shaderModules/Texture2DPassUniform.js";import{BlendModes as s}from"../util/BlendModes.glsl.js";import{BackgroundGrid as c}from"./BackgroundGrid.glsl.js";class l extends t{constructor(){super(...arguments),this.baseOpacity=1,this.backgroundColor=e,this.fboTexture=null}}function u(e,t){let{output:l,blendMode:u,applyBaseOpacity:d,premultipliedAlphaSource:f}=t,p=e.fragment;d&&p.uniforms.add(new r(`baseOpacity`,e=>e.baseOpacity)),p.include(s,t);let m=``;switch(l){case 4:case 0:m=`vec4(0.0)`;break;case 2:p.uniforms.add(new n(`backgroundColor`,e=>e.backgroundColor)),m=`vec4(backgroundColor, 1.0)`;break;case 3:p.include(c),m=`vec4(gridColor(uv), 1.0)`;break;case 1:p.uniforms.add(new o(`fboColor`,e=>e.fboTexture)),m=`texelFetch(fboColor, ivec2(gl_FragCoord.xy), 0)`}p.code.add(a`
3
- vec4 getBackground(vec2 uv) {
4
- return ${i(d,`baseOpacity *`)} ${m};
5
- }`),u===0?!f&&(l===1&&!d||l===4)?p.code.add(a`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
2
+ import{ZEROS as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{NoParameters as t}from"../../../../../webgl/NoParameters.js";import{Float3PassUniform as n}from"../../shaderModules/Float3PassUniform.js";import{FloatPassUniform as r}from"../../shaderModules/FloatPassUniform.js";import{glsl as i,If as a}from"../../shaderModules/glsl.js";import{Texture2DPassUniform as o}from"../../shaderModules/Texture2DPassUniform.js";import{BlendModes as s}from"../util/BlendModes.glsl.js";import{BackgroundGrid as c}from"./BackgroundGrid.glsl.js";class l extends t{constructor(){super(...arguments),this.baseOpacity=1,this.backgroundColor=e,this.fboTexture=null}}function u(e,t){let{output:l,blendMode:u,applyBaseOpacity:d,premultipliedAlphaSource:f}=t,p=e.fragment,m=u!==0;if(!m&&!f&&(l===1&&!d||l===4)){p.code.add(i`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
6
3
  return colorLayer * opacity;
7
- }`):p.code.add(a`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
8
- float composeAlpha = colorLayer.a * opacity;
9
- vec4 bgColor = getBackground(bgUV);
10
- return bgColor * (1.0 - composeAlpha) + colorLayer * opacity;
11
- }`):p.code.add(a`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
4
+ }`);return}d&&p.uniforms.add(new r(`baseOpacity`,e=>e.baseOpacity)),p.include(s,t);let h=``;switch(l){case 4:case 0:h=`vec4(0.0)`;break;case 2:p.uniforms.add(new n(`backgroundColor`,e=>e.backgroundColor)),h=`vec4(backgroundColor, 1.0)`;break;case 3:p.include(c),h=`vec4(gridColor(uv), 1.0)`;break;case 1:p.uniforms.add(new o(`fboColor`,e=>e.fboTexture)),h=`texelFetch(fboColor, ivec2(gl_FragCoord.xy), 0)`}p.code.add(i`
5
+ vec4 getBackground(vec2 uv) {
6
+ return ${a(d,`baseOpacity *`)} ${h};
7
+ }`),m?p.code.add(i`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
12
8
  vec3 cl = colorLayer.a == 0.0 ? colorLayer.rgb : colorLayer.rgb / colorLayer.a;
13
9
  vec4 bgColor = getBackground(bgUV);
14
10
  vec3 cb = bgColor.a == 0.0 ? bgColor.rgb : bgColor.rgb / bgColor.a;
15
11
  return applyBlendMode(clamp(cl, vec3(0.0), vec3(1.0)), colorLayer.a * opacity, cb, bgColor.a);
12
+ }`):p.code.add(i`vec4 blendLayers(vec2 bgUV, vec4 colorLayer, float opacity) {
13
+ float composeAlpha = colorLayer.a * opacity;
14
+ vec4 bgColor = getBackground(bgUV);
15
+ return bgColor * (1.0 - composeAlpha) + colorLayer * opacity;
16
16
  }`)}export{l as TileBackgroundPassParameters,u as blendLayers};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{translate as e}from"../../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as t}from"../../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{set as n}from"../../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as r,create as i}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{Float3BindUniform as a}from"../../shaderModules/Float3BindUniform.js";import{Float3DrawUniform as o}from"../../shaderModules/Float3DrawUniform.js";import{Matrix4BindUniform as s}from"../../shaderModules/Matrix4BindUniform.js";import{Matrix4DrawUniform as c}from"../../shaderModules/Matrix4DrawUniform.js";import{projMatrix as l}from"./cameraUniforms.js";function u(e,t){t.instancedDoublePrecision?e.constants.add(`cameraPosition`,`vec3`,r):e.uniforms.add(new o(`cameraPosition`,({origin:e},{camera:t})=>n(h,t.viewInverseTransposeMatrix[3]-e[0],t.viewInverseTransposeMatrix[7]-e[1],t.viewInverseTransposeMatrix[11]-e[2])))}function d(e,t){f(e,t),e.uniforms.add(t.instancedDoublePrecision?new a(`localOrigin`,e=>p(e)):new o(`localOrigin`,e=>e.origin))}function f(t,n){t.uniforms.add(l,n.instancedDoublePrecision?new s(`view`,t=>e(m,t.camera.viewMatrix,p(t))):new c(`view`,(t,n)=>e(m,n.camera.viewMatrix,t.origin)))}function p({camera:e}){return n(h,e.viewInverseTransposeMatrix[3],e.viewInverseTransposeMatrix[7],e.viewInverseTransposeMatrix[11])}const m=t(),h=i();export{u as addCameraPosition,f as addProjView,d as addProjViewLocalOrigin};
2
+ import{translate as e}from"../../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as t}from"../../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{set as n}from"../../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as r,create as i}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{Float3BindUniform as a}from"../../shaderModules/Float3BindUniform.js";import{Float3DrawUniform as o}from"../../shaderModules/Float3DrawUniform.js";import{Matrix4BindUniform as s}from"../../shaderModules/Matrix4BindUniform.js";import{Matrix4DrawUniform as c}from"../../shaderModules/Matrix4DrawUniform.js";import{projMatrix as l}from"./cameraUniforms.js";function u(e,t){t.instancedDoublePrecision?e.constants.add(`cameraPosition`,`vec3`,r):e.uniforms.add(new o(`cameraPosition`,({origin:e},{camera:t})=>n(g,t.viewInverseTransposeMatrix[3]-e[0],t.viewInverseTransposeMatrix[7]-e[1],t.viewInverseTransposeMatrix[11]-e[2])))}function d(e,t){f(e,t),p(e,t)}function f(t,n){t.uniforms.add(l,n.instancedDoublePrecision?new s(`view`,t=>e(h,t.camera.viewMatrix,m(t))):new c(`view`,(t,n)=>e(h,n.camera.viewMatrix,t.origin)))}function p(e,t){e.uniforms.add(t.instancedDoublePrecision?new a(`localOrigin`,e=>m(e)):new o(`localOrigin`,({origin:e})=>e))}function m({camera:e}){return n(g,e.viewInverseTransposeMatrix[3],e.viewInverseTransposeMatrix[7],e.viewInverseTransposeMatrix[11])}const h=t(),g=i();export{u as addCameraPosition,p as addLocalOrigin,f as addProjView,d as addProjViewLocalOrigin};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- const e=((e,...t)=>{let n=``;for(let r=0;r<t.length;r++)n+=e[r]+t[r];return n+=e[e.length-1],n});e.int=e=>e.toFixed(),e.uint=e=>`${Math.max(0,e).toFixed()}u`,e.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,e.float=e=>e.toPrecision(8);function t(e,t,n=``){return e?t:n}export{t as If,e as glsl};
2
+ const e=((e,...t)=>{let n=``;for(let r=0;r<t.length;r++)n+=e[r]+t[r];return n+=e[e.length-1]});e.int=e=>e.toFixed(),e.uint=e=>`${Math.max(0,e).toFixed()}u`,e.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,e.float=e=>e.toPrecision(8);function t(e,t,n=``){return e?t:n}export{t as If,e as glsl};
@@ -4,4 +4,4 @@ import e from"../../../../../core/Error.js";import"../../../../../core/has.js";i
4
4
  cached configurations:
5
5
  `;return t+=Array.from(n.values()).map(([t,n])=>`at frame ${n}: ${e.decode(t.key)}`).sort().join(`
6
6
 
7
- `),t}return``}}class i{constructor(e,t){this.configuration=e,this.stack=t}}async function a(e){let t=!0;e.forEach(async([e])=>{await e.reload(t),t=!1})}const o=new n;export{o as NoConfiguration,r as ShaderTechniqueRepository};
7
+ `)}return``}}class i{constructor(e,t){this.configuration=e,this.stack=t}}async function a(e){let t=!0;e.forEach(async([e])=>{await e.reload(t),t=!1})}const o=new n;export{o as NoConfiguration,r as ShaderTechniqueRepository};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import e from"../../../../core/Error.js";import"../../../../core/has.js";import t from"../../../../core/Logger.js";import n from"../../../../core/PooledArray.js";import{DepthRange as r}from"../lib/DepthRange.js";class i{constructor(e){this._context=e,this._nodes=new n,this._debug=!1}destroy(){this._nodes.forEach(e=>e.destroy()),this._nodes.prune()}add(e){this._nodes.push(e)}remove(e){this._nodes.remove(e)}produces(e){return this._nodes.some(({produces:t})=>t===e)}require(e,...t){let n=this._nodes,r=t=>n.reduce((n,{consumes:r,produces:i})=>n+(r.required.includes(e)&&(t==null||i===t)?1:0),0);return t.length===0?r():t.reduce((e,t)=>e+r(t),0)}optional(e,...t){let n=this._nodes,r=t=>n.reduce((n,{consumes:r,produces:i})=>n+(r.optional?.includes(e)&&(t==null||i===t)?1:0),0);return t.length===0?r():t.reduce((e,t)=>e+r(t),0)}updateAnimation(e){return this._nodes.reduce((t,n)=>n.updateAnimation(e)||t,!1)}precompile(...e){++this._context.techniques.precompiling;for(let t of e)this._nodes.forEach(e=>{e.produces===t&&e.precompile()});--this._context.techniques.precompiling}queryDepthRange(e,n){return this._nodes.reduce((r,i)=>{if(i.produces!==e)return r;try{return r.union(i.queryDepthRange(n))}catch(e){return t.getLogger(i).errorOnce(e),r}},new r)}render(e,t,n=()=>{}){return this._render(e,t,n)??e}produce(e,t,n=()=>{}){return this._render(e,t,n)}_render(n,r,i=()=>{}){let a=typeof n==`string`?n:n.name,o=this._nodes.filter(({produces:e})=>e===a);if(o.length===0)return;let s=typeof n==`string`?null:n;return o.some(n=>{let o=[],c=s==null;for(let e of n.consumes.required){let t=r.get(e);if(t)o.push(t);else return i?.(o),!1}if(n.consumes.optional)for(let e of n.consumes.optional){if(e===a)continue;let t=r.get(e);t&&o.push(t)}try{let i=n.doRender(o);if(this._debug&&!i&&!c)throw new e(`render-node:invalid-output`,`${n.declaredClass} did not produce an output`);if(i&&i!==s){if(a!==i.name&&(t.getLogger(n).errorOnce(`RenderNode produced ${i.name}, expected ${a}`),i.setName(a)),this._debug&&s&&i.fbo.usedMemory!==s.usedMemory)throw new e(`render-node:invalid-output`,`${n.declaredClass} did not return a framebuffer with the same attachments as the input framebuffer`);s?.release(),s=i,r.set(a,s)}}catch(r){if(t.getLogger(n).errorOnce(r),r instanceof e)throw r}return i?.(o),c&&s!=null}),this._context.rctx.enforceState(),s}get requireGeometryDepth(){return this._nodes.some(e=>e.produces!==`disabled`&&e.requireGeometryDepth)}get test(){return{nodes:this._nodes}}}export{i as RenderNodes};
2
+ import e from"../../../../core/Error.js";import"../../../../core/has.js";import t from"../../../../core/Logger.js";import n from"../../../../core/PooledArray.js";class r{constructor(e){this._context=e,this._nodes=new n,this._debug=!1}destroy(){this._nodes.forEach(e=>e.destroy()),this._nodes.prune()}add(e){this._nodes.push(e)}remove(e){this._nodes.remove(e)}produces(e){return this._nodes.some(({produces:t})=>t===e)}require(e,...t){let n=this._nodes,r=t=>n.reduce((n,{consumes:r,produces:i})=>n+(r.required.includes(e)&&(t==null||i===t)?1:0),0);return t.length===0?r():t.reduce((e,t)=>e+r(t),0)}optional(e,...t){let n=this._nodes,r=t=>n.reduce((n,{consumes:r,produces:i})=>n+(r.optional?.includes(e)&&(t==null||i===t)?1:0),0);return t.length===0?r():t.reduce((e,t)=>e+r(t),0)}updateAnimation(e){return this._nodes.reduce((t,n)=>n.updateAnimation(e)||t,!1)}precompile(...e){++this._context.techniques.precompiling;for(let t of e)this._nodes.forEach(e=>{e.produces===t&&e.precompile()});--this._context.techniques.precompiling}unionDepthRange(e,n,r){this._nodes.forAll(i=>{if(i.produces===e)try{i.unionDepthRange(n,r)}catch(e){t.getLogger(i).errorOnce(e)}})}render(e,t,n=()=>{}){return this._render(e,t,n)??e}produce(e,t,n=()=>{}){return this._render(e,t,n)}_render(n,r,i=()=>{}){let a=typeof n==`string`?n:n.name,o=this._nodes.filter(({produces:e})=>e===a);if(o.length===0)return;let s=typeof n==`string`?null:n;return o.some(n=>{let o=[],c=s==null;for(let e of n.consumes.required){let t=r.get(e);if(t)o.push(t);else return i?.(o),!1}if(n.consumes.optional)for(let e of n.consumes.optional){if(e===a)continue;let t=r.get(e);t&&o.push(t)}try{let i=n.doRender(o);if(this._debug&&!i&&!c)throw new e(`render-node:invalid-output`,`${n.declaredClass} did not produce an output`);if(i&&i!==s){if(a!==i.name&&(t.getLogger(n).errorOnce(`RenderNode produced ${i.name}, expected ${a}`),i.setName(a)),this._debug&&s&&i.fbo.usedMemory!==s.usedMemory)throw new e(`render-node:invalid-output`,`${n.declaredClass} did not return a framebuffer with the same attachments as the input framebuffer`);s?.release(),s=i,r.set(a,s)}}catch(r){if(t.getLogger(n).errorOnce(r),r instanceof e)throw r}return i?.(o),c&&s!=null}),this._context.rctx.enforceState(),s}get requireGeometryDepth(){return this._nodes.some(e=>e.produces!==`disabled`&&e.requireGeometryDepth)}get test(){return{nodes:this._nodes}}}export{r as RenderNodes};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{remove as e}from"../../../../core/arrayUtils.js";import"../../../../core/has.js";import{isPromiseLike as t,createAbortError as n}from"../../../../core/promiseUtils.js";import{signal as r}from"../../../../core/signal.js";import{DepthRange as i}from"../lib/DepthRange.js";import{getEmissions as a}from"./emissive/emissions.js";class o{constructor(e){this.context=e,this._renderPlugins=[],this._slots=[],this._version=r(0);for(let e=0;e<20;++e)this._slots[e]=[]}destroy(){this._renderPlugins.forEach(e=>e.destroy()),this._renderPlugins.length=0}get plugins(){return this._renderPlugins}add(e,r){let i=()=>{if(r?.aborted)throw e.uninitializeRenderContext(),n();this._renderPlugins.push(e),e.produces.forEach((t,n)=>this._slots[n].push(e)),this.context.requestRender(),this._version.value++},a=e.initializeRenderContext(this.context,r);if(t(a))return a.then(i);i()}remove(t){e(this._renderPlugins,t),t.uninitializeRenderContext();for(let e=0;e<this._slots.length;++e)this._slots[e]=this._slots[e].filter(e=>e!==t);this.context.requestRender(),this._version.value++}sortTestsTransparentOrderedSlots(e){if(process.env.NODE_ENV===`test`&&this._renderPlugins.some(e=>e.testsTransparentRenderOrder!==0))for(let t of e)this._slots[t].sort((e,t)=>(e.testsTransparentRenderOrder??0)-(t.testsTransparentRenderOrder??0))}prepareRender(){this._renderPlugins.forEach(e=>e.prepareRender?.(this.context.renderContext))}updateAnimation(e){let t=!1;return this._renderPlugins.forEach(n=>t=n.updateAnimation?.(e)||t),t}precompile(...e){++this.context.techniques.precompiling;let t=this.context.renderContext.bind.slot;for(let t of e)this.context.renderContext.bind.slot=t,this._forEachRender(()=>{});this.context.renderContext.bind.slot=t,--this.context.techniques.precompiling}render(...e){for(let t of e)this.context.renderContext.bind.slot=t,this._forEachRender((e,t)=>e.render(this.context.renderContext,t))}_forEachRender(e){let t=this.context.renderContext.bind.slot,n=this.context.renderContext.output;this._slots[t].forEach(r=>{if(!r.produces.get(t)?.(n)||r.isDecoration&&!this.context.renderContext.bind.decorations)return;let i=r.acquireTechniques(this.context.renderContext);i&&e(r,i)})}queryDepthRange(e){return this._renderPlugins.reduce((t,n)=>t.union(n.queryDepthRange?.(e)),new i)}get updating(){return this._version.value>=0&&this._renderPlugins.some(e=>e.readyToRun)}produces(e,...t){return t.some(t=>this._slots[t].some(n=>{let r=n.produces.get(t);return r?r(e):!1}))}hasHighlight(e){return s.some(t=>this._slots[t].some(t=>t.hasHighlight(e)))}get hasDecorations(){return this._renderPlugins.some(e=>e.isDecoration)}get hasOccludees(){return this._renderPlugins.some(e=>e.hasOccludees)}get emissions(){return a(this._renderPlugins)}get renderOccludedFlags(){return this._renderPlugins.reduce((e,t)=>e|(t.renderOccludedFlags??0),0)}get usedMemory(){return this._renderPlugins.reduce((e,t)=>t.material?e:e+(t.usedMemory??0),0)}get test(){}}const s=[2,4,18,12,13,14];export{o as RenderPluginManager};
2
+ import{remove as e}from"../../../../core/arrayUtils.js";import"../../../../core/has.js";import{isPromiseLike as t,createAbortError as n}from"../../../../core/promiseUtils.js";import{signal as r}from"../../../../core/signal.js";import{getEmissions as i}from"./emissive/emissions.js";class a{constructor(e){this.context=e,this._renderPlugins=[],this._slots=[],this._version=r(0);for(let e=0;e<20;++e)this._slots[e]=[]}destroy(){this._renderPlugins.forEach(e=>e.destroy()),this._renderPlugins.length=0}get plugins(){return this._renderPlugins}add(e,r){let i=()=>{if(r?.aborted)throw e.uninitializeRenderContext(),n();this._renderPlugins.push(e),e.produces.forEach((t,n)=>this._slots[n].push(e)),this.context.requestRender(),this._version.value++},a=e.initializeRenderContext(this.context,r);if(t(a))return a.then(i);i()}remove(t){e(this._renderPlugins,t),t.uninitializeRenderContext();for(let e=0;e<this._slots.length;++e)this._slots[e]=this._slots[e].filter(e=>e!==t);this.context.requestRender(),this._version.value++}sortTestsTransparentOrderedSlots(e){if(process.env.NODE_ENV===`test`&&this._renderPlugins.some(e=>e.testsTransparentRenderOrder!==0))for(let t of e)this._slots[t].sort((e,t)=>(e.testsTransparentRenderOrder??0)-(t.testsTransparentRenderOrder??0))}prepareRender(){this._renderPlugins.forEach(e=>e.prepareRender?.(this.context.renderContext))}updateAnimation(e){let t=!1;return this._renderPlugins.forEach(n=>t=n.updateAnimation?.(e)||t),t}precompile(...e){++this.context.techniques.precompiling;let t=this.context.renderContext.bind.slot;for(let t of e)this.context.renderContext.bind.slot=t,this._forEachRender(()=>{});this.context.renderContext.bind.slot=t,--this.context.techniques.precompiling}render(...e){for(let t of e)this.context.renderContext.bind.slot=t,this._forEachRender((e,t)=>e.render(this.context.renderContext,t))}_forEachRender(e){let t=this.context.renderContext.bind.slot,n=this.context.renderContext.output;this._slots[t].forEach(r=>{if(!r.produces.get(t)?.(n)||r.isDecoration&&!this.context.renderContext.bind.decorations)return;let i=r.acquireTechniques(this.context.renderContext);i&&e(r,i)})}unionDepthRange(e,t){this._renderPlugins.forEach(n=>n.unionDepthRange?.(e,t))}get updating(){return this._version.value>=0&&this._renderPlugins.some(e=>e.readyToRun)}produces(e,...t){return t.some(t=>this._slots[t].some(n=>{let r=n.produces.get(t);return r?r(e):!1}))}hasHighlight(e){return o.some(t=>this._slots[t].some(t=>t.hasHighlight(e)))}get hasDecorations(){return this._renderPlugins.some(e=>e.isDecoration)}get hasOccludees(){return this._renderPlugins.some(e=>e.hasOccludees)}get emissions(){return i(this._renderPlugins)}get renderOccludedFlags(){return this._renderPlugins.reduce((e,t)=>e|(t.renderOccludedFlags??0),0)}get usedMemory(){return this._renderPlugins.reduce((e,t)=>t.material?e:e+(t.usedMemory??0),0)}get test(){}}const o=[2,4,18,12,13,14];export{a as RenderPluginManager};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderLibrary/util/CloudsParallaxShading.glsl.js";import"../../core/shaderModules/BooleanPassUniform.js";import"../../core/shaderModules/Float3PassUniform.js";import"../../core/shaderModules/Float4PassUniform.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/FloatsPassUniform.js";import"../../core/shaderModules/glsl.js";import"../../shaders/ditherNoise.glsl.js";import"../../shaders/floatBlendScale.glsl.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/SphereIntersect.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"./ChapmanApproximation.glsl.js";import"./ChapmanRaymarching.glsl.js";export{b as build}from"../../../../../chunks/RealisticAtmosphere.glsl.js";
2
+ import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/outputEmission.glsl.js";import"../../core/shaderLibrary/renderClouds.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderModules/BooleanPassUniform.js";import"../../core/shaderModules/Float3PassUniform.js";import"../../core/shaderModules/Float4PassUniform.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/FloatsPassUniform.js";import"../../core/shaderModules/glsl.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/SphereIntersect.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"./ChapmanApproximation.glsl.js";import"./ChapmanRaymarching.glsl.js";export{b as build}from"../../../../../chunks/RealisticAtmosphere.glsl.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import has from"../../../../../core/has.js";import{copy as n,set as r}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{set as i,length as a}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as o}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{lerp as s}from"../../../../../core/mathUtils.js";import{disposeMaybe as c}from"../../../../../core/maybe.js";import{watch as l,syncAndInitial as u,initial as d}from"../../../../../core/reactiveUtils.js";import{earth as f}from"../../../../../geometry/support/Ellipsoid.js";import p from"../../../../../webscene/background/ColorBackground.js";import{DepthStencilAttachment as m,ColorAttachment0 as h,PrimitiveType as g}from"../../../../webgl/enums.js";import{createQuadVAO as _}from"../../lib/glUtil3D.js";import{applyTextureResizeModulo as v}from"../../lib/textureUtils.js";import{OpaqueEnvironment as y}from"../OpaqueEnvironment.js";import{computeInnerAltitudeFade as b,innerAtmosphereDepth as x}from"./atmosphereUtils.js";import{R as S}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";import{RealisticAtmosphereCompositingTechnique as C}from"./RealisticAtmosphereCompositingTechnique.js";import{RealisticAtmosphereConfiguration as w}from"./RealisticAtmosphereConfiguration.js";import{RealisticAtmospherePassParameters as T,RealisticAtmosphereTechnique as E}from"./RealisticAtmosphereTechnique.js";let D=class extends y{constructor(){super(...arguments),this._emissionDisabled=!!has(`disable-feature:emissive-sun`),this._passParameters=new T,this._compositingPassParameters=new S,this._configuration=new w}initialize(){this.addHandles([l(()=>this.view.environment.background,e=>{let t=e instanceof p?e.color.toUnitRGBA():o;i(this._passParameters.backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3])},u),l(()=>this.view.stage?.renderer?.highResolutionAtmosphere,e=>this._passParameters.reduced=!e,u),l(()=>this.view.map.ground.undergroundColor,e=>{this._passParameters.undergroundColor=e?.toUnitRGBA()??o,this.requestRender(1)},d),l(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),u)])}destroy(){this._vao=c(this._vao)}precompile(){this._configuration.hasClouds=!!this.bindParameters.clouds.data?.cubeMap?.colorTexture,this._configuration.hasEmissive=this._hasEmissive&&!this._passParameters.reduced,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(E,this._configuration),this._passParameters.reduced&&(this._configuration.hasEmissive=this._hasEmissive,this.techniques.precompile(C,this._configuration))}render(){let e=this.input;if(!this.bindParameters.mainDepth)return e;let t=this.renderingContext,r=e.getAttachment(m);this._update(),this._vao??=_(t,1),this.bindParameters.clouds?.isFading&&this.requestRender(2),this._configuration.hasEmissive=this._hasEmissive&&!this._passParameters.reduced;let i=this.techniques.get(E,this._configuration);if(!this._passParameters.reduced)return e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),this._emissionDisabled&&t.setDrawBuffers([h]),t.drawArrays(g.TRIANGLE_STRIP,0,4),e.attachDepth(r),e;let o=t.getViewport(),c=this.bindParameters.camera,l=a(c.eye)-f.radius,u,d=f.atmosphereHeight;if(l<d){let e=Math.min(1,Math.max(0,l/d));u=s(.2,.3,e)}else{let e=Math.min(1,Math.max(0,(l-d)/(15*d)));u=s(.3,.6,e)}let p=this.renderingContext.parameters.maxTextureSize,y=v(Math.round(u*c.fullViewport[2]),p),b=v(Math.round(u*c.fullViewport[3]),p);t.setViewport(0,0,y,b);let x=this.fboCache.acquire(y,b,`chapman`);t.bindFramebuffer(x.fbo),t.clearFramebuffer([0,0,0,1],!0,!0),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),t.drawArrays(g.TRIANGLE_STRIP,0,4),t.setViewport(o.x,o.y,o.width,o.height),this._configuration.hasEmissive=this.bindParameters.emissions!==0;let S=this.techniques.get(C,this._configuration);return n(this._compositingPassParameters.radii,this._passParameters.radii),this._compositingPassParameters.color=x.getTexture(),e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(S,this.bindParameters,this._compositingPassParameters),this._emissionDisabled&&t.setDrawBuffers([h]),t.screen.draw(),e.attachDepth(r),x.release(),e}_update(){let e=this.view.basemapTerrain?.getLowerBoundRadius()??0;r(this._passParameters.radii,e,e+f.atmosphereHeight);let t=a(this.bindParameters.camera.eye);this._passParameters.altitudeFade=b(t-e),this._passParameters.innerFadeDistance=2*Math.sqrt((2*e-x)*x)}get _hasEmissive(){return this.bindParameters.emissions!==0&&!this._emissionDisabled}};D=e([t(`esri.views.3d.webgl-engine.effects.atmosphere.RealisticAtmosphere`)],D);export{D as RealisticAtmosphere};
2
+ import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import has from"../../../../../core/has.js";import{copy as n,set as r}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{set as i,length as a}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as o}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{lerp as s}from"../../../../../core/mathUtils.js";import{disposeMaybe as c}from"../../../../../core/maybe.js";import{watch as l,syncAndInitial as u,initial as d}from"../../../../../core/reactiveUtils.js";import{earth as f}from"../../../../../geometry/support/Ellipsoid.js";import p from"../../../../../webscene/background/ColorBackground.js";import{DepthStencilAttachment as m,ColorAttachment0 as h,PrimitiveType as g}from"../../../../webgl/enums.js";import{createQuadVAO as _}from"../../lib/glUtil3D.js";import{applyTextureResizeModulo as v}from"../../lib/textureUtils.js";import{OpaqueEnvironment as y}from"../OpaqueEnvironment.js";import{computeInnerAltitudeFade as b,innerAtmosphereDepth as x}from"./atmosphereUtils.js";import{R as S}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";import{RealisticAtmosphereCompositingTechnique as C}from"./RealisticAtmosphereCompositingTechnique.js";import{RealisticAtmosphereConfiguration as w}from"./RealisticAtmosphereConfiguration.js";import{RealisticAtmospherePassParameters as T,RealisticAtmosphereTechnique as E}from"./RealisticAtmosphereTechnique.js";let D=class extends y{constructor(){super(...arguments),this._emissionDisabled=!!has(`disable-feature:emissive-sun`),this._passParameters=new T,this._compositingPassParameters=new S,this._configuration=new w}initialize(){this.addHandles([l(()=>this.view.environment.background,e=>{let t=e instanceof p?e.color.toUnitRGBA():o;i(this._passParameters.backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3])},u),l(()=>this.view.stage?.renderer?.highResolutionAtmosphere,e=>this._passParameters.reduced=!e,u),l(()=>this.view.map.ground.undergroundColor,e=>{this._passParameters.undergroundColor=e?.toUnitRGBA()??o,this.requestRender(1)},d),l(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),u)])}destroy(){this._vao=c(this._vao)}precompile(){this._configuration.hasClouds=!!this.bindParameters.clouds.data?.cubeMap?.colorTexture,this._configuration.hasEmission=this._hasEmission&&!this._passParameters.reduced,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(E,this._configuration),this._passParameters.reduced&&(this._configuration.hasEmission=this._hasEmission,this.techniques.precompile(C,this._configuration))}render(){let e=this.input;if(!this.bindParameters.mainDepth)return e;let t=this.renderingContext,r=e.getAttachment(m);this._update(),this._vao??=_(t,1),this.bindParameters.clouds?.isFading&&this.requestRender(2),this._configuration.hasEmission=this._hasEmission&&!this._passParameters.reduced;let i=this.techniques.get(E,this._configuration);if(!this._passParameters.reduced)return e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),this._emissionDisabled&&t.setDrawBuffers([h]),t.drawArrays(g.TRIANGLE_STRIP,0,4),e.attachDepth(r),e;let o=t.getViewport(),c=this.bindParameters.camera,l=a(c.eye)-f.radius,u,d=f.atmosphereHeight;if(l<d){let e=Math.min(1,Math.max(0,l/d));u=s(.2,.3,e)}else{let e=Math.min(1,Math.max(0,(l-d)/(15*d)));u=s(.3,.6,e)}let p=this.renderingContext.parameters.maxTextureSize,y=v(Math.round(u*c.fullViewport[2]),p),b=v(Math.round(u*c.fullViewport[3]),p);t.setViewport(0,0,y,b);let x=this.fboCache.acquire(y,b,`chapman`);t.bindFramebuffer(x.fbo),t.clearFramebuffer([0,0,0,1],!0,!0),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),t.drawArrays(g.TRIANGLE_STRIP,0,4),t.setViewport(o.x,o.y,o.width,o.height),this._configuration.hasEmission=this.bindParameters.emissions!==0;let S=this.techniques.get(C,this._configuration);return n(this._compositingPassParameters.radii,this._passParameters.radii),this._compositingPassParameters.color=x.getTexture(),e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(S,this.bindParameters,this._compositingPassParameters),this._emissionDisabled&&t.setDrawBuffers([h]),t.screen.draw(),e.attachDepth(r),x.release(),e}_update(){let e=this.view.basemapTerrain?.getLowerBoundRadius()??0;r(this._passParameters.radii,e,e+f.atmosphereHeight);let t=a(this.bindParameters.camera.eye);this._passParameters.altitudeFade=b(t-e),this._passParameters.innerFadeDistance=2*Math.sqrt((2*e-x)*x)}get _hasEmission(){return this.bindParameters.emissions!==0&&!this._emissionDisabled}};D=e([t(`esri.views.3d.webgl-engine.effects.atmosphere.RealisticAtmosphere`)],D);export{D as RealisticAtmosphere};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderLibrary/util/CloudsParallaxShading.glsl.js";import"../../core/shaderLibrary/util/ColorConversion.glsl.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DPassUniform.js";import"../../shaders/ditherNoise.glsl.js";import"../../shaders/floatBlendScale.glsl.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"./ChapmanApproximation.glsl.js";export{R as RealisticAtmosphereCompositingPassParameters,b as build}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";
2
+ import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/outputEmission.glsl.js";import"../../core/shaderLibrary/renderClouds.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderLibrary/util/ColorConversion.glsl.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DPassUniform.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"./ChapmanApproximation.glsl.js";export{R as RealisticAtmosphereCompositingPassParameters,b as build}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{parameter as t}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{EmissiveTechniqueConfiguration as n}from"../../shaders/EmissiveTechniqueConfiguration.js";class r extends n{constructor(){super(...arguments),this.hasClouds=!1}}e([t()],r.prototype,`hasClouds`,void 0);export{r as RealisticAtmosphereConfiguration};
2
+ import{__decorate as e}from"tslib";import{ShaderOutputConfiguration as t}from"../../core/shaderLibrary/ShaderOutputConfiguration.js";import{parameter as n}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";class r extends t{constructor(){super(...arguments),this.hasClouds=!1}}e([n()],r.prototype,`hasClouds`,void 0);export{r as RealisticAtmosphereConfiguration};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import{property as n}from"../../../../../core/accessorSupport/decorators/property.js";import{add as r,normalize as i,length as a,dot as o,scale as s,lerp as c}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l,fromValues as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{ZEROS as d}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{smoothstep as f,lerp as p}from"../../../../../core/mathUtils.js";import{releaseMaybe as m}from"../../../../../core/maybe.js";import{watch as h,syncAndInitial as g}from"../../../../../core/reactiveUtils.js";import{signal as _}from"../../../../../core/signal.js";import{ColorAttachment1 as v,SizedPixelFormat as y,ColorAttachment0 as b,DepthStencilAttachment as x}from"../../../../webgl/enums.js";import{heightLimit as S}from"../../../environment/weather.js";import{EmissiveTechniqueConfiguration as C}from"../../shaders/EmissiveTechniqueConfiguration.js";import{floatBlendReductionFactor as w}from"../../shaders/floatBlendScale.glsl.js";import{betaRayleigh as T,betaCombined as E}from"../atmosphere/atmosphereUtils.js";import{BlurEmission as D}from"../glow/BlurEmission.js";import{F as O}from"../../../../../chunks/Fog.glsl.js";import{FogTechnique as k}from"./FogTechnique.js";const A=.9*S,j=1.1*S;let M=class extends D{constructor(){super(...arguments),this._configuration=new C,this._newParameters=new N,this._oldParameters=new N,this._fadedParameters=new N,this._parameters=this._newParameters,this._passParameters=new O}initialize(){this._configuration.computeScatteredIllumination=!0,this.addHandles([h(()=>this.view.environmentView.weather!=null,e=>e?this._enable():this._disable(),g),h(()=>this._fogParameters,e=>this._updateFogParameters(e),g),h(()=>this._fadeFactor,e=>this._fade(e),g)])}get _fadeFactor(){return this.view.stage?.renderer.renderContext.bind.clouds.fadeFactor??1}_fade(e){let{_newParameters:t,_oldParameters:n}=this;e>=1?(this._parameters=t,this._oldParameters.copy(this._newParameters)):e<=0?this._parameters=n:(this._fadedParameters.lerp(n,t,e),this._parameters=this._fadedParameters)}get _fogParameters(){let e=new N,{weather:t}=this.view.environmentView,n=t?.type===`foggy`||t?.type===`snowy`||t?.type===`rainy`;switch(e.strength.value=t?.scattering??0,e.amount.value=+!!n,e.fogBrightness=this._newParameters.fogBrightness,t?.type){case`foggy`:case`snowy`:e.fogBrightness=B;break;case`rainy`:e.fogBrightness=z}let r=this._get(`_fogParameters`);return e.equals(r)?r:e}_updateFogParameters(e){this._newParameters.copy(e),this._fadeFactor>=1&&this._oldParameters.copy(this._newParameters),this.requestRender(2)}get strength(){return this._parameters.strength.value*this._heightFade}get amount(){return this._parameters.amount.value*this._heightFade}get _heightFade(){let e=a(this.bindParameters.camera.eye);return 1-f(A,j,Math.abs(e-this._ellipsoid.radius))}precompile(){this._update(),this._passParameters.amount>0&&(super.precompile(),this.techniques.precompile(k,this._configuration))}get _needsEmissionBlur(){return this._configuration.hasEmissive}render(){let e=this.input,t=this._getTechnique();if(!t)return e;this._passParameters.emission=e.obtainAttachment(v),this._passParameters.inputScale=this._passParameters.emission?.attachment.descriptor.internalFormat===y.RGBA8?w:1;let n=this.renderingContext;this._passParameters.emission&&(this._renderEmissionMipMap(),this._configuration.useFloatBlend?(e.acquireColor(v,8,`emissive`),n.clearBuffer(1,d)):(this._passParameters.color=e.obtainAttachment(b),e.acquireColor(b,5),e.acquireColor(v,8,`emissive`)));let r=e.getAttachment(x);return e.attachDepth(null),n.bindFramebuffer(e.fbo),n.bindTechnique(t,this.bindParameters,this._passParameters),n.screen.draw(),this._passParameters.color=m(this._passParameters.color),this._passParameters.emission=m(this._passParameters.emission),this._passParameters.mipmapTexture=m(this._passParameters.mipmapTexture),e.attachDepth(r),this.fboCache.debugCallback?.(`fog-color`,e.fbo),e}_getTechnique(){return this.renders?this.techniques.get(k,this._configuration):null}get renders(){return this._update(),this._passParameters.amount>0}_update(){let e=this.bindParameters.camera;i(P,e.eye);let t=Math.max(0,o(P,this.bindParameters.lighting.mainLight.direction)),n=this._parameters.fogBrightness;s(this._passParameters.fogColor,L,n),s(F,L,n*.1),c(this._passParameters.fogColor,F,this._passParameters.fogColor,t);let r=a(e.eye);this._passParameters.atmosphereC=r**2-this._atmosphereRadius**2,this._passParameters.amount=this.amount,this._passParameters.strength=this._passParameters.scattering=this.strength,this._configuration.hasEmissive=this.bindParameters.hasEmission,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value}get test(){return{parameters:this._passParameters}}};e([n()],M.prototype,`_fogParameters`,null),M=e([t(`esri.views.3d.webgl-engine.effects.fog.Fog`)],M);class N{constructor(){this.fogBrightness=0,this.strength=_(0),this.amount=_(0)}equals(e){return e!=null&&this.fogBrightness===e.fogBrightness&&this.strength.value===e.strength.value&&this.amount.value===e.amount.value}copy(e){this.fogBrightness=e.fogBrightness,this.strength.value=e.strength.value,this.amount.value=e.amount.value}lerp(e,t,n){this.fogBrightness=p(e.fogBrightness,t.fogBrightness,n),this.strength.value=p(e.strength.value,t.strength.value,n),this.amount.value=p(e.amount.value,t.amount.value,n)}}const P=l(),F=l(),I=u(3e-4,3e-4,3e-4),L=l();r(L,E,T),r(L,L,I),i(L,L);const R=L.reduce((e,t)=>e+t,0)/3,z=.5/R,B=1.5/R;export{M as Fog,N as FogParameters};
2
+ import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import{property as n}from"../../../../../core/accessorSupport/decorators/property.js";import{add as r,normalize as i,length as a,dot as o,scale as s,lerp as c}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l,fromValues as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{ZEROS as d}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{smoothstep as f,lerp as p}from"../../../../../core/mathUtils.js";import{releaseMaybe as m}from"../../../../../core/maybe.js";import{watch as h,syncAndInitial as g}from"../../../../../core/reactiveUtils.js";import{signal as _}from"../../../../../core/signal.js";import{ColorAttachment1 as v,SizedPixelFormat as y,ColorAttachment0 as b,DepthStencilAttachment as x}from"../../../../webgl/enums.js";import{heightLimit as S}from"../../../environment/weather.js";import{EmissiveTechniqueConfiguration as C}from"../../shaders/EmissiveTechniqueConfiguration.js";import{floatBlendReductionFactor as w}from"../../shaders/floatBlendScale.glsl.js";import{betaRayleigh as T,betaCombined as E}from"../atmosphere/atmosphereUtils.js";import{BlurEmission as D}from"../glow/BlurEmission.js";import{F as O}from"../../../../../chunks/Fog.glsl.js";import{FogTechnique as k}from"./FogTechnique.js";const A=.9*S,j=1.1*S;let M=class extends D{constructor(){super(...arguments),this._configuration=new C,this._newParameters=new N,this._oldParameters=new N,this._fadedParameters=new N,this._parameters=this._newParameters,this._passParameters=new O}initialize(){this._configuration.hasFog=!0,this.addHandles([h(()=>this.view.environmentView.weather!=null,e=>e?this._enable():this._disable(),g),h(()=>this._fogParameters,e=>this._updateFogParameters(e),g),h(()=>this._fadeFactor,e=>this._fade(e),g)])}get _fadeFactor(){return this.view.stage?.renderer.renderContext.bind.clouds.fadeFactor??1}_fade(e){let{_newParameters:t,_oldParameters:n}=this;e>=1?(this._parameters=t,this._oldParameters.copy(this._newParameters)):e<=0?this._parameters=n:(this._fadedParameters.lerp(n,t,e),this._parameters=this._fadedParameters)}get _fogParameters(){let e=new N,{weather:t}=this.view.environmentView,n=t?.type===`foggy`||t?.type===`snowy`||t?.type===`rainy`;switch(e.strength.value=t?.scattering??0,e.amount.value=+!!n,e.fogBrightness=this._newParameters.fogBrightness,t?.type){case`foggy`:case`snowy`:e.fogBrightness=B;break;case`rainy`:e.fogBrightness=z}let r=this._get(`_fogParameters`);return e.equals(r)?r:e}_updateFogParameters(e){this._newParameters.copy(e),this._fadeFactor>=1&&this._oldParameters.copy(this._newParameters),this.requestRender(2)}get strength(){return this._parameters.strength.value*this._heightFade}get amount(){return this._parameters.amount.value*this._heightFade}get _heightFade(){let e=a(this.bindParameters.camera.eye);return 1-f(A,j,Math.abs(e-this._ellipsoid.radius))}precompile(){this._update(),this._passParameters.amount>0&&(super.precompile(),this.techniques.precompile(k,this._configuration))}get _needsEmissionBlur(){return this._configuration.hasEmissive}render(){let e=this.input,t=this._getTechnique();if(!t)return e;this._passParameters.emission=e.obtainAttachment(v),this._passParameters.inputScale=this._passParameters.emission?.attachment.descriptor.internalFormat===y.RGBA8?w:1;let n=this.renderingContext;this._passParameters.emission&&(this._renderEmissionMipMap(),this._configuration.useFloatBlend?(e.acquireColor(v,8,`emissive`),n.clearBuffer(1,d)):(this._passParameters.color=e.obtainAttachment(b),e.acquireColor(b,5),e.acquireColor(v,8,`emissive`)));let r=e.getAttachment(x);return e.attachDepth(null),n.bindFramebuffer(e.fbo),n.bindTechnique(t,this.bindParameters,this._passParameters),n.screen.draw(),this._passParameters.color=m(this._passParameters.color),this._passParameters.emission=m(this._passParameters.emission),this._passParameters.mipmapTexture=m(this._passParameters.mipmapTexture),e.attachDepth(r),this.fboCache.debugCallback?.(`fog-color`,e.fbo),e}_getTechnique(){return this.renders?this.techniques.get(k,this._configuration):null}get renders(){return this._update(),this._passParameters.amount>0}_update(){let e=this.bindParameters.camera;i(P,e.eye);let t=Math.max(0,o(P,this.bindParameters.lighting.mainLight.direction)),n=this._parameters.fogBrightness;s(this._passParameters.fogColor,L,n),s(F,L,n*.1),c(this._passParameters.fogColor,F,this._passParameters.fogColor,t);let r=a(e.eye);this._passParameters.atmosphereC=r**2-this._atmosphereRadius**2,this._passParameters.amount=this.amount,this._passParameters.strength=this._passParameters.scattering=this.strength,this._configuration.hasEmissive=this.bindParameters.hasEmission,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value}get test(){return{parameters:this._passParameters}}};e([n()],M.prototype,`_fogParameters`,null),M=e([t(`esri.views.3d.webgl-engine.effects.fog.Fog`)],M);class N{constructor(){this.fogBrightness=0,this.strength=_(0),this.amount=_(0)}equals(e){return e!=null&&this.fogBrightness===e.fogBrightness&&this.strength.value===e.strength.value&&this.amount.value===e.amount.value}copy(e){this.fogBrightness=e.fogBrightness,this.strength.value=e.strength.value,this.amount.value=e.amount.value}lerp(e,t,n){this.fogBrightness=p(e.fogBrightness,t.fogBrightness,n),this.strength.value=p(e.strength.value,t.strength.value,n),this.amount.value=p(e.amount.value,t.amount.value,n)}}const P=l(),F=l(),I=u(3e-4,3e-4,3e-4),L=l();r(L,E,T),r(L,L,I),i(L,L);const R=L.reduce((e,t)=>e+t,0)/3,z=.5/R,B=1.5/R;export{M as Fog,N as FogParameters};
@@ -1,10 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{nearFar as i}from"../../core/shaderLibrary/util/cameraUniforms.js";import{FloatBindUniform as a}from"../../core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as o}from"../../core/shaderModules/FloatPassUniform.js";import{If as s,glsl as c}from"../../core/shaderModules/glsl.js";import{Texture2DPassUniform as l}from"../../core/shaderModules/Texture2DPassUniform.js";import{parameter as u}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{FloatBlendScaleConfiguration as d,floatBlendScale as f}from"../../shaders/floatBlendScale.glsl.js";import{ToneMapping as p}from"../../shaders/ToneMapping.glsl.js";import{DistanceFalloffPassParameters as m,getDistanceFalloff as h}from"../raymarching/DistanceFalloff.glsl.js";class g extends m{constructor(){super(...arguments),this.mipmapLevels=1,this.boost=1,this.scattering=1e-4}}class _ extends d{constructor(){super(...arguments),this.computeScatteredIllumination=!1}}e([u()],_.prototype,`computeScatteredIllumination`,void 0);function v(e,u){e.include(f,u),e.include(h),e.include(r),e.include(p),e.uniforms.add(new l(`emissionTexture`,({emission:e})=>e?.attachment),new a(`emissionFade`,e=>e.emissionFade),n,i,new o(`scattering`,({scattering:e})=>e),new o(`boost`,({boost:e})=>1+e*.5),new o(`levels`,({mipmapLevels:e},{camera:t})=>e+1+Math.log2(t.pixelScale)),new a(`pixelRatioCorrection`,({camera:e})=>Math.log2(e.pixelScale)),new l(`mipmapTexture`,({mipmapTexture:e})=>e?.getTexture())).constants.add(`maxScattering`,`float`,t.maxScattering).code.add(c`
3
- struct EmissiveGlowResult {
4
- vec3 transmittedEmission;
5
- vec3 scatteredIllumination;
6
- };
7
-
2
+ import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{nearFar as i}from"../../core/shaderLibrary/util/cameraUniforms.js";import{FloatBindUniform as a}from"../../core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as o}from"../../core/shaderModules/FloatPassUniform.js";import{If as s,glsl as c}from"../../core/shaderModules/glsl.js";import{Texture2DPassUniform as l}from"../../core/shaderModules/Texture2DPassUniform.js";import{parameter as u}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{FloatBlendScaleConfiguration as d,floatBlendScale as f}from"../../shaders/floatBlendScale.glsl.js";import{ToneMapping as p}from"../../shaders/ToneMapping.glsl.js";import{DistanceFalloffPassParameters as m,getDistanceFalloff as h}from"../raymarching/DistanceFalloff.glsl.js";class g extends m{constructor(){super(...arguments),this.mipmapLevels=1,this.boost=1,this.scattering=1e-4}}class _ extends d{constructor(){super(...arguments),this.hasFog=!1}}e([u()],_.prototype,`hasFog`,void 0);function v(e,u){e.include(f,u),e.include(h),e.include(r),e.include(p),e.uniforms.add(new l(`emissionTexture`,({emission:e})=>e?.attachment),new a(`emissionFade`,e=>e.emissionFade),n,i,new o(`scattering`,({scattering:e})=>e),new o(`boost`,({boost:e})=>1+e*.5),new o(`levels`,({mipmapLevels:e},{camera:t})=>e+1+Math.log2(t.pixelScale)),new a(`pixelRatioCorrection`,({camera:e})=>Math.log2(e.pixelScale)),new l(`mipmapTexture`,({mipmapTexture:e})=>e?.getTexture())).constants.add(`maxScattering`,`float`,t.maxScattering).constants.add(`weightEpsilon`,`float`,.01).constants.add(`maxDispersion`,`float`,u.hasFog?1:.1).code.add(c`
8
3
  vec4 readEmission(float level, float depth) {
9
4
  level *= levels;
10
5
  level = max(0.0, level - pixelRatioCorrection);
@@ -21,68 +16,50 @@ import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeath
21
16
  return exp(expon) / sqrt(6.283185307179586 * sigmaSq);
22
17
  }
23
18
 
24
- float emissionWeight(float point, float mainPoint, float sigmaSq) {
25
- // Keep scattering from widening the kernel back into sharp levels (#27433).
26
- float minPoint = mainPoint - 0.5;
27
- float fullPoint = (minPoint + mainPoint) * 0.5;
28
- return gauss(point - mainPoint, sigmaSq) * smoothstep(minPoint, fullPoint, point);
29
- }
30
-
31
- EmissiveGlowResult applyEmissiveGlow(float extinctionAmount, float maxDispersion) {
19
+ vec3 applyEmissiveGlow() {
20
+ float depth = -1.0;
32
21
  float normalizedDepth = 1.0;
33
22
  float depthSample = depthFromTexture(mainDepth, uv);
34
23
  if(depthSample < 1.0 && depthSample > 0.0){
35
24
  normalizedDepth = -linearizeDepth(depthSample) / nearFar.y;
25
+ vec3 cameraSpaceRay = normalize(eyeDir);
26
+ cameraSpaceRay /= cameraSpaceRay.z;
27
+ cameraSpaceRay *= linearizeDepth(depthSample);
28
+ depth = max(0.0, length(cameraSpaceRay));
36
29
  }
37
30
  vec3 rayDir = normalize(worldRay);
38
- float depthToDistance = nearFar.y / abs(normalize(eyeDir).z);
31
+ float dispersionPerPixel = getDistanceFalloff(depth, rayDir, scattering * 0.5);
32
+
33
+ // main level: This causes objects in the fog to become blurry, darker, and more spread out
34
+ float mainPoint = pow(dispersionPerPixel, 4.0) * maxDispersion;
39
35
 
40
- vec3 transmittedEmission = vec3(0.0);
41
- vec3 scatteredIllumination = vec3(0.0);
42
- ${s(u.computeScatteredIllumination,c`
43
- float illuminationWeights = 0.0;
44
- float backgroundDistance = depthSample > 0.0 && depthSample < 1.0 ? normalizedDepth * depthToDistance : -1.0;
45
- float backgroundDispersion = getDistanceFalloff(backgroundDistance, rayDir, scattering * 0.5);
46
- float illuminationMainPoint = pow(backgroundDispersion, 4.0) * maxDispersion;
47
- `)}
36
+ vec3 emission = vec3(0.0); // accumulated emission
48
37
  float weights = 0.0; // accumulated weights for renormalization
49
38
  float baseSigmaSq = 0.003 + 0.03 * (boost - 1.0); // boost spreads out glow
50
39
  float sigmaSq = baseSigmaSq + 0.1 * scattering / maxScattering;
51
40
 
41
+ // Keep scattering from widening the kernel back into sharp levels. Fade in weight towards main sample point.
42
+ // Issue #27433
43
+ float minPoint = mainPoint - 0.5;
44
+ float fullPoint = (minPoint + mainPoint) * 0.5;
45
+
52
46
  for(float level = 0.0; level < levels; ++level) {
53
47
  float point = level / levels;
54
- vec4 emissionSample = readEmission(point, normalizedDepth);
55
- float intensity = dot(emissionSample.rgb, vec3(1.0 / 3.0));
56
- float averageDepth = intensity > 0.0 ? emissionSample.a / intensity : 0.0;
57
- float emitterDistance = averageDepth * depthToDistance;
58
- float dispersion = getDistanceFalloff(emitterDistance, rayDir, scattering * 0.5);
59
- float mainPoint = pow(dispersion, 4.0) * maxDispersion;
60
-
61
- float weight = emissionWeight(point, mainPoint, sigmaSq);
62
- if (extinctionAmount > 0.0 && averageDepth > 0.0) {
63
- // Approximate the fraction of the emitter's scattering path in front of the visible surface.
64
- emissionSample.rgb *= min(1.0, normalizedDepth / averageDepth);
65
- }
66
- ${s(u.computeScatteredIllumination,c`
67
- float illuminationWeight = emissionWeight(point, illuminationMainPoint, sigmaSq);
68
- scatteredIllumination += emissionSample.rgb * illuminationWeight;
69
- illuminationWeights += illuminationWeight;
70
- `)}
71
- if(weight > 0.0) {
72
- if (extinctionAmount > 0.0) {
73
- float pathDistance = min(normalizedDepth, averageDepth) * depthToDistance;
74
- float extinction = extinctionAmount * getDistanceFalloff(pathDistance, rayDir, scattering);
75
- float damping = extinction < 1.0 ? min(-log(1.0 - extinction) * 0.1, 16.0) : 16.0;
76
- transmittedEmission += max(emissionSample.rgb * boost * emissionFade - damping, 0.0) * weight;
77
- } else {
78
- transmittedEmission += emissionSample.rgb * weight;
79
- }
48
+ float dist = point - mainPoint;
49
+ float weight = gauss(dist, sigmaSq) * smoothstep(minPoint, fullPoint, point);
50
+ if(weight > weightEpsilon) {
51
+ vec4 emissionSample = readEmission(point, normalizedDepth);
52
+ ${s(u.hasFog,c`
53
+ if (emissionSample.a > 0.0) {
54
+ // Approximate the fraction of the emitter's scattering path in front of the visible surface.
55
+ float averageDepth = emissionSample.a / dot(emissionSample.rgb, vec3(1.0 / 3.0));
56
+ emissionSample.rgb *= min(1.0, normalizedDepth / averageDepth);
57
+ }
58
+ `)}
59
+ emission += emissionSample.rgb * weight;
80
60
  weights += weight;
81
61
  }
82
62
  }
83
- transmittedEmission = extinctionAmount > 0.0 ?
84
- transmittedEmission / weights : transmittedEmission * boost / weights * emissionFade;
85
- ${s(u.computeScatteredIllumination,`scatteredIllumination = scatteredIllumination * boost / illuminationWeights * emissionFade;`)}
86
- return EmissiveGlowResult(transmittedEmission, scatteredIllumination);
63
+ return emission * boost / weights * emissionFade;
87
64
  }
88
65
  `)}export{_ as EmissiveGlowConfiguration,g as EmissiveGlowPassParameters,v as applyEmissiveGlow};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"tslib";import"../../../webgl/ShaderBuilder.js";import"../core/shaderLibrary/shading/Gamma.glsl.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import"../effects/glow/applyEmissiveGlow.glsl.js";import"../shaders/floatBlendScale.glsl.js";import"../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../shaders/ToneMapping.glsl.js";export{a as EmissionCompositePassParameters,E as EmissionCompositeTechniqueConfiguration,c as build}from"../../../../chunks/EmissionComposite.glsl.js";
2
+ import"tslib";import"../../../webgl/ShaderBuilder.js";import"../core/shaderLibrary/shading/Gamma.glsl.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import"../effects/glow/applyEmissiveGlow.glsl.js";import"../shaders/floatBlendScale.glsl.js";import"../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../shaders/ToneMapping.glsl.js";export{a as EmissionCompositePassParameters,E as EmissionCompositeTechniqueConfiguration,c as build}from"../../../../chunks/EmissionComposite.glsl.js";
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{releaseMaybe as i}from"../../../../core/maybe.js";import{watch as a,syncAndInitial as o}from"../../../../core/reactiveUtils.js";import{ColorAttachment1 as s,ColorAttachment0 as c}from"../../../webgl/enums.js";import{RenderNodeOutput as l}from"../../webgl.js";import{BlurEmission as u}from"../effects/glow/BlurEmission.js";import{E as d,a as f}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as p}from"./EmissionCompositeTechnique.js";let m=class extends u{constructor(){super(...arguments),this.produces=l.COMPOSITE,this.consumes={required:[l.COMPOSITE]},this._configuration=new d,this._passParameters=new f}initialize(){this.addHandles([a(()=>this.bindParameters.emissions!==0,e=>this.produces=e?l.COMPOSITE:`disabled`,o)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.applyBlur=!this.view.stage.renderView.fog?.renders&&this._hasBlur,super.precompile(),this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(p,this._configuration))}get _needsEmissionBlur(){return this._configuration.applyBlur}render(){let e=this.input,t=e.getAttachment(s);if(!t?.attachment)return e;let n=r(this.bindParameters.camera.eye);this._passParameters.atmosphereC=n**2-this._atmosphereRadius**2,this._passParameters.color=e.getAttachment(c)?.attachment,this._passParameters.emission=t,this._passParameters.emissionFade=this.view.stage.renderView.fog?.renders?1:this.bindParameters.emissionFade,this._passParameters.scattering=this._configuration.applyBlur&&this.view.environmentView.weather?this.view.stage.renderView.fog?.strength??this.view.environment.weather.scattering:0,this._configuration.applyBlur&&this._renderEmissionMipMap();let a=this.renderingContext,o=this.techniques.get(p,this._configuration),l=this.acquireOutputFramebuffer();return a.clear(16384),a.bindTechnique(o,this.bindParameters,this._passParameters),a.screen.draw(),this._passParameters.mipmapTexture=i(this._passParameters.mipmapTexture),l.moveAttachments(e),l}};e([t()],m.prototype,`produces`,void 0),e([t()],m.prototype,`consumes`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.EmissionComposite`)],m);export{m as EmissionComposite};
2
+ import{__decorate as e}from"tslib";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{releaseMaybe as i}from"../../../../core/maybe.js";import{watch as a,syncAndInitial as o}from"../../../../core/reactiveUtils.js";import{ColorAttachment1 as s,ColorAttachment0 as c}from"../../../webgl/enums.js";import{RenderNodeOutput as l}from"../../webgl.js";import{BlurEmission as u}from"../effects/glow/BlurEmission.js";import{E as d,a as f}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as p}from"./EmissionCompositeTechnique.js";let m=class extends u{constructor(){super(...arguments),this.produces=l.COMPOSITE,this.consumes={required:[l.COMPOSITE]},this._configuration=new d,this._passParameters=new f}initialize(){this.addHandles([a(()=>this.bindParameters.emissions!==0,e=>this.produces=e?l.COMPOSITE:`disabled`,o)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.hasFog=!!this.view.stage.renderView.fog?.renders,this._configuration.applyBlur=!this._configuration.hasFog&&this._hasBlur,super.precompile(),this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(p,this._configuration))}get _needsEmissionBlur(){return this._configuration.applyBlur}render(){let e=this.input,t=e.getAttachment(s);if(!t?.attachment)return e;let n=r(this.bindParameters.camera.eye);this._passParameters.atmosphereC=n**2-this._atmosphereRadius**2,this._passParameters.color=e.getAttachment(c)?.attachment,this._passParameters.emission=t,this._passParameters.scattering=this._configuration.applyBlur&&this.view.environmentView.weather?this.view.stage.renderView.fog?.strength??this.view.environment.weather.scattering:0,this._configuration.applyBlur&&this._renderEmissionMipMap();let a=this.renderingContext,o=this.techniques.get(p,this._configuration),l=this.acquireOutputFramebuffer();return a.clear(16384),a.bindTechnique(o,this.bindParameters,this._passParameters),a.screen.draw(),this._passParameters.mipmapTexture=i(this._passParameters.mipmapTexture),l.moveAttachments(e),l}};e([t()],m.prototype,`produces`,void 0),e([t()],m.prototype,`consumes`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.EmissionComposite`)],m);export{m as EmissionComposite};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{invert as r}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrimitiveType as o}from"../../../webgl/enums.js";import{InternalRenderCategory as s}from"../../webgl.js";import c from"../../webgl/RenderNode.js";import{G as l}from"../../../../chunks/GaussianSplatShadow.glsl.js";import{GaussianSplatShadowTechnique as u}from"../shaders/GaussianSplatShadowTechnique.js";import{GaussianSplatTechniqueConfiguration as d}from"../shaders/GaussianSplatTechniqueConfiguration.js";import{canRenderGaussianSplats as f,prepareGaussianSplatRenderParameters as p}from"./GaussianSplatRenderUtils.js";let m=class extends c{constructor(e){super(e),this.consumes={required:[s.SHADOWMAP]},this.produces=s.SHADOWMAP,this.layerView=null,this._passParameters=new l,this._cameraPosition=a(),this._configuration=new d(e.view.state.isGlobal)}precompile(){this._canRender&&(this._updateConfiguration(),this.techniques.precompile(u,this._configuration))}render(){let e=this.bindRenderTarget();return this._canRender&&this._render(),e}queryDepthRange(e){return this.layerView.suspended?null:this._data.queryVisibleTileDepthRange(e,this.layerView.clippingBox)}get _data(){return this.layerView.data}get _clippingEnabled(){return this.layerView.clippingBox!=null}get _canRender(){return!this.layerView.suspended&&f(this._data)}_render(){this._updateConfiguration();let e=this.techniques.get(u,this._configuration);this._prepareShadowParameters(this.bindParameters.camera),this.renderingContext.bindTechnique(e,this.bindParameters,this._passParameters),this.renderingContext.drawArraysInstanced(o.TRIANGLE_STRIP,0,4,this._data.visibleGaussians)}_updateConfiguration(){this._configuration.preciseDepth=this.bindParameters.output===8,this._configuration.clippingEnabled=this._clippingEnabled,this._configuration.hasSlicePlane=this.layerView.slicePlaneEnabled&&this.bindParameters.slicePlane!=null,this._configuration.output=this.bindParameters.output===8?8:5}_prepareShadowParameters(e){r(this._passParameters.inverseProjectionMatrix,e.projectionMatrix),this._updateShadowCameraPosition(e),p(this._passParameters,this.layerView,e,this._cameraPosition)}_updateShadowCameraPosition(e){let t=e.viewInverseTransposeMatrix;i(this._cameraPosition,t[3],t[7],t[11])}};e([t()],m.prototype,`consumes`,void 0),e([t()],m.prototype,`produces`,void 0),e([t({constructOnly:!0})],m.prototype,`layerView`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.GaussianSplatShadows`)],m);export{m as GaussianSplatShadows};
2
+ import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{invert as r}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrimitiveType as o}from"../../../webgl/enums.js";import{InternalRenderCategory as s}from"../../webgl.js";import c from"../../webgl/RenderNode.js";import{G as l}from"../../../../chunks/GaussianSplatShadow.glsl.js";import{GaussianSplatShadowTechnique as u}from"../shaders/GaussianSplatShadowTechnique.js";import{GaussianSplatTechniqueConfiguration as d}from"../shaders/GaussianSplatTechniqueConfiguration.js";import{canRenderGaussianSplats as f,prepareGaussianSplatRenderParameters as p}from"./GaussianSplatRenderUtils.js";let m=class extends c{constructor(e){super(e),this.consumes={required:[s.SHADOWMAP]},this.produces=s.SHADOWMAP,this.layerView=null,this._passParameters=new l,this._cameraPosition=a(),this._configuration=new d(e.view.state.isGlobal)}precompile(){this._canRender&&(this._updateConfiguration(),this.techniques.precompile(u,this._configuration))}render(){let e=this.bindRenderTarget();return this._canRender&&this._render(),e}unionDepthRange(e,t){this.layerView.suspended||this._data.unionVisibleTileDepthRange(e,this.layerView.clippingBox,t)}get _data(){return this.layerView.data}get _clippingEnabled(){return this.layerView.clippingBox!=null}get _canRender(){return!this.layerView.suspended&&f(this._data)}_render(){this._updateConfiguration();let e=this.techniques.get(u,this._configuration);this._prepareShadowParameters(this.bindParameters.camera),this.renderingContext.bindTechnique(e,this.bindParameters,this._passParameters),this.renderingContext.drawArraysInstanced(o.TRIANGLE_STRIP,0,4,this._data.visibleGaussians)}_updateConfiguration(){this._configuration.preciseDepth=this.bindParameters.output===8,this._configuration.clippingEnabled=this._clippingEnabled,this._configuration.hasSlicePlane=this.layerView.slicePlaneEnabled&&this.bindParameters.slicePlane!=null,this._configuration.output=this.bindParameters.output===8?8:5}_prepareShadowParameters(e){r(this._passParameters.inverseProjectionMatrix,e.projectionMatrix),this._updateShadowCameraPosition(e),p(this._passParameters,this.layerView,e,this._cameraPosition)}_updateShadowCameraPosition(e){let t=e.viewInverseTransposeMatrix;i(this._cameraPosition,t[3],t[7],t[11])}};e([t()],m.prototype,`consumes`,void 0),e([t()],m.prototype,`produces`,void 0),e([t({constructOnly:!0})],m.prototype,`layerView`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.GaussianSplatShadows`)],m);export{m as GaussianSplatShadows};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{set as e,copy as t,exactEquals as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{clamp as a}from"../../../../core/mathUtils.js";import{baseObjectMemory as o,integerArrayElementBytes as s,estimateArrayMemory as c}from"../../../../core/memoryEstimations.js";import{newFloatArray as l}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as u,getZeroIndexArray as d}from"../../../../geometry/support/Indices.js";import{addOlidAttribute as f}from"../../layers/graphics/olidUtils.js";import{Attribute as p}from"./Attribute.js";import{Geometry as m}from"./Geometry.js";import{pathVertexInfoPacking as h}from"./PathVertexInfo.js";import{createPositionReader as g}from"./PositionReader.js";class _ extends m{constructor(e,t,n,i){let{vertexIndices:a,framePositionIndices:s,numExtrusionFrames:c}=t,l=u(c),m=d(c),h=[[`position`,new p(t.positions,s,3,!0)],[`profileRight`,new p(t.profileRightAxes,l,2,!0)],[`profileUp`,new p(t.profileUpAxes,l,2,!0)],[`profileRotation`,new p(t.profileRotations,l,1,!0)],[`pathMaxStretchDistance`,new p(t.pathMaxStretchDistances,l,1,!0)],[`pathVertexInfo`,new p(t.pathVertexInfos,a,1,!0)]];t.profileRotationFrameUpAxes&&h.push([`pathRotationUp`,new p(t.profileRotationFrameUpAxes,l,2,!0)]),n.sizeAttributeValue!=null&&h.push([`sizeFeatureAttribute`,new p([n.sizeAttributeValue],m,1,!0)]),n.size!=null&&h.push([`size`,new p([...n.size],m,2,!0)]),n.colorAttributeValue!=null&&h.push([`colorFeatureAttribute`,new p([n.colorAttributeValue],m,1,!0)]),n.color!=null&&h.push([`color`,new p([...n.color],m,4,!0)]),n.opacityAttributeValue!=null&&h.push([`opacityFeatureAttribute`,new p([n.opacityAttributeValue],m,1,!0)]),n.opacity!=null&&h.push([`opacity`,new p([n.opacity],m,1,!0)]),i!=null&&f(h,i,m),super(e,h,null,0),this.builder=t,this.visualVariablesState=n,this._positionCacheMemory=0,this._lastSize=r(),this._usedMemory=3*o}computeBufferMemory(e){let t=super.computeBufferMemory(e),{builder:n}=this;t+=e.arrayMemory(n.framePositionIndices,s,!0),t+=e.arrayMemory(n.vertexIndices,s,!0);let{path:r}=n;t+=e.arrayMemory(r.positions)+e.arrayMemory(r.positionsES)+e.arrayMemory(r.origin),t+=e.arrayMemory(r.directions)+e.arrayMemory(r.frames)+e.arrayMemory(r.minSiblingLengths);let i=r.getVertex(0);return t+=e.arrayMemory(i.vLeft)+e.arrayMemory(i.vRight),t+=e.arrayMemory(i.frame.up)+e.arrayMemory(i.frame.right),t}get indexCount(){return this.attributes.get(`pathVertexInfo`)?.indices.length??0}get readPrimitivePosition(){if(this._invalidateOnSizeChange(),this._readPrimitivePosition==null){let{builder:e,size:t}=this,{vertexIndices:n,numVerticesTotal:r,evaluator:i}=e,a=l(r*3);i.evaluateVertexPositions(a,t),this._readPrimitivePosition=g(a,n,3),this._positionCacheMemory=c(a,8),this._usedMemory+=this._positionCacheMemory,this.notifyMemoryChange?.(this._positionCacheMemory)}return this._readPrimitivePosition}_invalidateReadPrimitivePosition(){super._invalidateReadPrimitivePosition();let e=this._positionCacheMemory;this._positionCacheMemory=0,this._usedMemory-=e,e&&this.notifyMemoryChange?.(-e)}onPathChanged(){this.builder.onPathChanged(),this.invalidateBoundingInfo(),e(this._lastSize,-1,-1),this._invalidateReadPrimitivePosition()}get size(){let{parameters:e}=this.material,n=i(e.size);if(e.vvSize){let{offset:t,factor:r,minSize:i,maxSize:o,fallback:s}=e.vvSize,c=this.visualVariablesState.sizeAttributeValue??NaN;Number.isNaN(c)?(n[0]*=s[0],n[1]*=s[2]):(n[0]*=a(t[0]+c*r[0],i[0],o[0]),n[1]*=a(t[2]+c*r[2],i[2],o[2]))}else e.hasPathSize&&this.visualVariablesState.size&&t(n,this.visualVariablesState.size);return n}_computePrimitivePositionIndices(){let e=this.attributes.get(`pathVertexInfo`),t=this.attributes.get(`position`);if(e&&t){let n=t.indices,r=e.indices,i=e.data,a=h.getField(0);return r.map(t=>n[a.get(i[e.stride*t])])}return t?.indices??null}get boundingInfo(){return this._invalidateOnSizeChange(),super.boundingInfo}_invalidateOnSizeChange(){let{size:e}=this;n(e,this._lastSize)||(t(this._lastSize,e),this.invalidateBoundingInfo(),this._invalidateReadPrimitivePosition())}}function v(e){return e instanceof _}export{_ as PathGeometry,v as isPathGeometry};
2
+ import{set as e,copy as t,exactEquals as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{clamp as a}from"../../../../core/mathUtils.js";import{baseObjectMemory as o,integerArrayElementBytes as s,estimateArrayMemory as c}from"../../../../core/memoryEstimations.js";import{newFloatArray as l}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as u,getZeroIndexArray as d}from"../../../../geometry/support/Indices.js";import{addOlidAttribute as f}from"../../layers/graphics/olidUtils.js";import{Attribute as p}from"./Attribute.js";import{Geometry as m}from"./Geometry.js";import{pathVertexInfoPacking as h}from"./PathVertexInfo.js";import{createPositionReader as g}from"./PositionReader.js";class _ extends m{constructor(e,t,n,i){let{vertexIndices:a,framePositionIndices:s,numExtrusionFrames:c}=t,l=u(c),m=d(c),h=[[`position`,new p(t.positions,s,3,!0)],[`profileRight`,new p(t.profileRightAxes,l,2,!0)],[`profileUp`,new p(t.profileUpAxes,l,2,!0)],[`profileRotation`,new p(t.profileRotations,l,1,!0)],[`pathMaxStretchDistance`,new p(t.pathMaxStretchDistances,l,1,!0)],[`pathVertexInfo`,new p(t.pathVertexInfos,a,1,!0)]];t.profileRotationFrameUpAxes&&h.push([`pathRotationUp`,new p(t.profileRotationFrameUpAxes,l,2,!0)]),n.sizeAttributeValue!=null&&h.push([`sizeFeatureAttribute`,new p([n.sizeAttributeValue],m,1,!0)]),n.size!=null&&h.push([`size`,new p([...n.size],m,2,!0)]),n.colorAttributeValue!=null&&h.push([`colorFeatureAttribute`,new p([n.colorAttributeValue],m,1,!0)]),n.color!=null&&h.push([`color`,new p([...n.color],m,4,!0)]),n.opacityAttributeValue!=null&&h.push([`opacityFeatureAttribute`,new p([n.opacityAttributeValue],m,1,!0)]),n.opacity!=null&&h.push([`opacity`,new p([n.opacity],m,1,!0)]),i!=null&&f(h,i,m),super(e,h,null,0),this.builder=t,this.visualVariablesState=n,this._positionCacheMemory=0,this._lastSize=r(),this._usedMemory=3*o}computeBufferMemory(e){let t=super.computeBufferMemory(e),{builder:n}=this;t+=e.arrayMemory(n.framePositionIndices,s,!0),t+=e.arrayMemory(n.vertexIndices,s,!0);let{path:r}=n;t+=e.arrayMemory(r.positions)+e.arrayMemory(r.positionsES)+e.arrayMemory(r.origin),t+=e.arrayMemory(r.directions)+e.arrayMemory(r.frames)+e.arrayMemory(r.minSiblingLengths);let i=r.getVertex(0);return t+=e.arrayMemory(i.vLeft)+e.arrayMemory(i.vRight),t+=e.arrayMemory(i.frame.up)+e.arrayMemory(i.frame.right)}get indexCount(){return this.attributes.get(`pathVertexInfo`)?.indices.length??0}get readPrimitivePosition(){if(this._invalidateOnSizeChange(),this._readPrimitivePosition==null){let{builder:e,size:t}=this,{vertexIndices:n,numVerticesTotal:r,evaluator:i}=e,a=l(r*3);i.evaluateVertexPositions(a,t),this._readPrimitivePosition=g(a,n,3),this._positionCacheMemory=c(a,8),this._usedMemory+=this._positionCacheMemory,this.notifyMemoryChange?.(this._positionCacheMemory)}return this._readPrimitivePosition}_invalidateReadPrimitivePosition(){super._invalidateReadPrimitivePosition();let e=this._positionCacheMemory;this._positionCacheMemory=0,this._usedMemory-=e,e&&this.notifyMemoryChange?.(-e)}onPathChanged(){this.builder.onPathChanged(),this.invalidateBoundingInfo(),e(this._lastSize,-1,-1),this._invalidateReadPrimitivePosition()}get size(){let{parameters:e}=this.material,n=i(e.size);if(e.vvSize){let{offset:t,factor:r,minSize:i,maxSize:o,fallback:s}=e.vvSize,c=this.visualVariablesState.sizeAttributeValue??NaN;Number.isNaN(c)?(n[0]*=s[0],n[1]*=s[2]):(n[0]*=a(t[0]+c*r[0],i[0],o[0]),n[1]*=a(t[2]+c*r[2],i[2],o[2]))}else e.hasPathSize&&this.visualVariablesState.size&&t(n,this.visualVariablesState.size);return n}_computePrimitivePositionIndices(){let e=this.attributes.get(`pathVertexInfo`),t=this.attributes.get(`position`);if(e&&t){let n=t.indices,r=e.indices,i=e.data,a=h.getField(0);return r.map(t=>n[a.get(i[e.stride*t])])}return t?.indices??null}get boundingInfo(){return this._invalidateOnSizeChange(),super.boundingInfo}_invalidateOnSizeChange(){let{size:e}=this;n(e,this._lastSize)||(t(this._lastSize,e),this.invalidateBoundingInfo(),this._invalidateReadPrimitivePosition())}}function v(e){return e instanceof _}export{_ as PathGeometry,v as isPathGeometry};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{copy as e,multiply as t}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat4 as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{generateUID as i}from"../../../../core/uid.js";import{NullSphere as a,Sphere as o}from"../../../../geometry/support/sphere.js";import{maxScale as s}from"../../support/mathUtils.js";class c{get type(){return 0}constructor(e,t={}){this.geometry=e,this._transformation=n(),this._shaderTransformation=null,this._boundingSphere=null,this.id=i(),this.layerViewUid=t.layerViewUid,this.graphicUid=t.graphicUid,this.castShadows=t.castShadows??!1,t.objectShaderTransformation&&this.objectShaderTransformationChanged(t.objectShaderTransformation)}get indexCount(){return this.geometry.indexCount}get faceCount(){return this.geometry.faceCount}get transformation(){return this._transformation}set transformation(t){e(this._transformation,t),this._boundingSphere=null}get boundingInfo(){return this.geometry.boundingInfo}objectShaderTransformationChanged(e){e==null?this._shaderTransformation=null:(this._shaderTransformation??=n(),t(this._shaderTransformation,e,this.geometry.transformation)),this._boundingSphere=null}get boundingSphere(){return this.boundingInfo?(this._boundingSphere??(this._boundingSphere??=new o,r(this._boundingSphere.center,this.boundingInfo.sphere.center,this.shaderTransformation),this._boundingSphere.radius=this.boundingInfo.sphere.radius*s(this.shaderTransformation)),this._boundingSphere):a}get material(){return this.geometry.material}get shaderTransformation(){return this._shaderTransformation??this.transformation}get attributes(){return this.geometry.attributes}forEachHighlightOption(e){this.geometry.forEachHighlightOption(e)}get hasHighlights(){return this.geometry.hasHighlights}get occludees(){return this.geometry.occludees}get visible(){return this.geometry.visible}set visible(e){this.geometry.visible=e}get readPrimitivePosition(){return this.geometry.readPrimitivePosition}}class l extends c{}export{c as RenderGeometry,l as ValidatedRenderGeometry};
2
+ import{copy as e,multiply as t}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat4 as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{generateUID as i}from"../../../../core/uid.js";import{NullSphere as a,Sphere as o}from"../../../../geometry/support/sphere.js";import{maxScale as s}from"../../support/mathUtils.js";class c{get type(){return 0}constructor(e,t={}){this.geometry=e,this._transformation=n(),this._shaderTransformation=null,this._modelSpaceBoundingSphere=null,this._worldSpaceBoundingSphere=null,this.id=i(),this.layerViewUid=t.layerViewUid,this.graphicUid=t.graphicUid,this.castShadows=t.castShadows??!1,t.objectShaderTransformation&&this.objectShaderTransformationChanged(t.objectShaderTransformation)}get indexCount(){return this.geometry.indexCount}get faceCount(){return this.geometry.faceCount}get transformation(){return this._transformation}set transformation(t){e(this._transformation,t),this._worldSpaceBoundingSphere=null}get boundingInfo(){return this.geometry.boundingInfo}objectShaderTransformationChanged(e){e==null?this._shaderTransformation=null:(this._shaderTransformation??=n(),t(this._shaderTransformation,e,this.geometry.transformation)),this._worldSpaceBoundingSphere=null}get boundingSphere(){let e=this.boundingInfo?.sphere;if(!e)return a;if(this._worldSpaceBoundingSphere==null||this._modelSpaceBoundingSphere!==e){let t=new o;r(t.center,e.center,this.shaderTransformation),t.radius=e.radius*s(this.shaderTransformation),this._worldSpaceBoundingSphere=t,this._modelSpaceBoundingSphere=e}return this._worldSpaceBoundingSphere}get material(){return this.geometry.material}get shaderTransformation(){return this._shaderTransformation??this.transformation}get attributes(){return this.geometry.attributes}forEachHighlightOption(e){this.geometry.forEachHighlightOption(e)}get hasHighlights(){return this.geometry.hasHighlights}get occludees(){return this.geometry.occludees}get visible(){return this.geometry.visible}set visible(e){this.geometry.visible=e}get readPrimitivePosition(){return this.geometry.readPrimitivePosition}}class l extends c{}export{c as RenderGeometry,l as ValidatedRenderGeometry};