@arcgis/core 6.0.0-next.47 → 6.0.0-next.49

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 (979) hide show
  1. package/Ground.js +1 -1
  2. package/PopupTemplate.js +1 -1
  3. package/analysis/AreaMeasurementAnalysis.d.ts +12 -10
  4. package/analysis/AreaMeasurementAnalysis.js +1 -1
  5. package/applications/Components/formatUtils.d.ts +3 -2
  6. package/applications/MapViewer/mediaUtils.js +1 -1
  7. package/applications/MapViewer/templateUtils.d.ts +4 -1
  8. package/applications/Play/transformToolUtils.d.ts +74 -0
  9. package/applications/Play/transformToolUtils.js +2 -0
  10. package/applications/SceneViewer/sceneViewerUtils.d.ts +12 -1
  11. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  12. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  13. package/arcade/functions/featuresetgeom.js +1 -1
  14. package/arcade/functions/geomasync.js +1 -1
  15. package/arcade/geometry/operatorsWorker.js +1 -1
  16. package/arcade/geometry/operatorsWorkerConnection.js +1 -1
  17. package/arcgisGlobal.d.ts +6 -1
  18. package/assets/esri/core/workers/RemoteClient.js +1 -1
  19. package/assets/esri/core/workers/chunks/00331b59ca88e333fef8.js +1 -0
  20. package/assets/esri/core/workers/chunks/01f834149d0f89deaef8.js +1 -0
  21. package/assets/esri/core/workers/chunks/021bd07b9a3e70598840.js +1 -0
  22. package/assets/esri/core/workers/chunks/037c2d2ccb4bf4db4fec.js +1 -0
  23. package/assets/esri/core/workers/chunks/042d7669093a16d6e77e.js +1 -0
  24. package/assets/esri/core/workers/chunks/04ee9dc3e5a90d015f2f.js +1 -0
  25. package/assets/esri/core/workers/chunks/052b248db9ff46c6f36b.js +1 -0
  26. package/assets/esri/core/workers/chunks/05ec995edeb73ccba8b6.js +1 -0
  27. package/assets/esri/core/workers/chunks/0636a6629bd42b67ad00.js +1 -0
  28. package/assets/esri/core/workers/chunks/063cc462524646cd45e8.js +1 -0
  29. package/assets/esri/core/workers/chunks/06966406bee9c33beac7.js +1 -0
  30. package/assets/esri/core/workers/chunks/07ce1d788ed1c9b926db.js +2 -0
  31. package/assets/esri/core/workers/chunks/0a7d721d8ce5803124ed.js +1 -0
  32. package/assets/esri/core/workers/chunks/0c1f1eba7846a05c6fcc.js +1 -0
  33. package/assets/esri/core/workers/chunks/0c90f857976527db567e.js +1 -0
  34. package/assets/esri/core/workers/chunks/0d83237e9c7291ec3ef5.js +1 -0
  35. package/assets/esri/core/workers/chunks/0fd5ff5b6037c89257ec.js +1 -0
  36. package/assets/esri/core/workers/chunks/1053e9bc73cded8d403a.js +1 -0
  37. package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +1 -0
  38. package/assets/esri/core/workers/chunks/119c62e9c9c7440a6129.js +1 -0
  39. package/assets/esri/core/workers/chunks/12add2003631fa314f25.js +1 -0
  40. package/assets/esri/core/workers/chunks/13a5d2c9d2ae6b0a297b.js +1 -0
  41. package/assets/esri/core/workers/chunks/1430be5ba5a20d587b37.js +1 -0
  42. package/assets/esri/core/workers/chunks/14a00ec7bc0f230d994c.js +1 -0
  43. package/assets/esri/core/workers/chunks/14bac20e21bad6bb95c8.js +1 -0
  44. package/assets/esri/core/workers/chunks/14c04fde8d33b739b415.js +1 -0
  45. package/assets/esri/core/workers/chunks/1680091022f0964d47b1.js +1 -0
  46. package/assets/esri/core/workers/chunks/16d0433d1b02606fdd00.js +1 -0
  47. package/assets/esri/core/workers/chunks/16e4686ec9e408716087.js +1 -0
  48. package/assets/esri/core/workers/chunks/1705e9d085499a854f14.js +1 -0
  49. package/assets/esri/core/workers/chunks/1908da6e2b1e5f6d2992.js +1 -0
  50. package/assets/esri/core/workers/chunks/1971dbb6ac3ce1d5e367.js +1 -0
  51. package/assets/esri/core/workers/chunks/1afe435a9a23858e694e.js +1 -0
  52. package/assets/esri/core/workers/chunks/1b4e53575290d7a3feb1.js +1 -0
  53. package/assets/esri/core/workers/chunks/1bde6b7b54f07573d031.js +1 -0
  54. package/assets/esri/core/workers/chunks/1c7a21387d11dc907ae4.js +1 -0
  55. package/assets/esri/core/workers/chunks/1c7bd11f6014ffe7aac5.js +1 -0
  56. package/assets/esri/core/workers/chunks/1d4db5c0de1b1440b7c8.js +1 -0
  57. package/assets/esri/core/workers/chunks/1d9e5298ee4309022ee1.js +1 -0
  58. package/assets/esri/core/workers/chunks/1e39f97cc9ffbc282ffe.js +1 -0
  59. package/assets/esri/core/workers/chunks/1f94ce4d7595018e7b90.js +1 -0
  60. package/assets/esri/core/workers/chunks/2019b43c545b01f2c3fd.js +1 -0
  61. package/assets/esri/core/workers/chunks/21911cdbbf068cbf8641.js +1 -0
  62. package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +1 -0
  63. package/assets/esri/core/workers/chunks/22c131418a907bf09cc0.js +1 -0
  64. package/assets/esri/core/workers/chunks/230e5be597a8e8172513.js +1 -0
  65. package/assets/esri/core/workers/chunks/23ed0f61c49df3ae631e.js +1 -0
  66. package/assets/esri/core/workers/chunks/2415db54c6da71c857a6.js +1 -0
  67. package/assets/esri/core/workers/chunks/244816f7dc50581b826b.js +1 -0
  68. package/assets/esri/core/workers/chunks/2458d6504682c1877ddc.js +1 -0
  69. package/assets/esri/core/workers/chunks/2502688aa275d9064e78.js +1 -0
  70. package/assets/esri/core/workers/chunks/250e6c23dbf50dbcf749.js +1 -0
  71. package/assets/esri/core/workers/chunks/255f5b45c4d32f97f86c.js +1 -0
  72. package/assets/esri/core/workers/chunks/27a91b52d1bee92b6f20.js +1 -0
  73. package/assets/esri/core/workers/chunks/27dfc461e44b58e7fbc0.js +1 -0
  74. package/assets/esri/core/workers/chunks/28425ff10dc0b181a6ba.js +1 -0
  75. package/assets/esri/core/workers/chunks/297fc73f8018d870ab82.js +1 -0
  76. package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +1 -0
  77. package/assets/esri/core/workers/chunks/2d106419cd3a161587bd.js +1 -0
  78. package/assets/esri/core/workers/chunks/2fcd168262942494452a.js +1 -0
  79. package/assets/esri/core/workers/chunks/2fe55882a9ff5a74867b.js +1 -0
  80. package/assets/esri/core/workers/chunks/31eb09e96f31bced71ad.js +1 -0
  81. package/assets/esri/core/workers/chunks/31f9d86b2a2bb05143b5.js +1 -0
  82. package/assets/esri/core/workers/chunks/{0ac38ca04285cd5ef1a0.js → 3236e18921955450fc0d.js} +41 -35
  83. package/assets/esri/core/workers/chunks/340a893f1003953adab7.js +1 -0
  84. package/assets/esri/core/workers/chunks/341970c3550c9ca3938d.js +1 -0
  85. package/assets/esri/core/workers/chunks/3695ed5d82ea1514147e.js +1 -0
  86. package/assets/esri/core/workers/chunks/3737025b8ed71099890f.js +1 -0
  87. package/assets/esri/core/workers/chunks/38b7ae210c9d39449853.js +1 -0
  88. package/assets/esri/core/workers/chunks/38ea54b715a08bd8d794.js +1 -0
  89. package/assets/esri/core/workers/chunks/3ab33631e0f6f8f2cbbc.js +1 -0
  90. package/assets/esri/core/workers/chunks/3ad149ec07285a3f5777.js +1 -0
  91. package/assets/esri/core/workers/chunks/3b434fc144f6b1a21f97.js +1 -0
  92. package/assets/esri/core/workers/chunks/3be49515f93ea3730be3.js +1 -0
  93. package/assets/esri/core/workers/chunks/3ce7120056040af3bab1.js +1 -0
  94. package/assets/esri/core/workers/chunks/3d9294dd813707e48e55.js +1 -0
  95. package/assets/esri/core/workers/chunks/3ddcf58242f02feea584.js +1 -0
  96. package/assets/esri/core/workers/chunks/3e4fda8f6fea1ce84712.js +1 -0
  97. package/assets/esri/core/workers/chunks/3e57f8128102a72e7930.js +1 -0
  98. package/assets/esri/core/workers/chunks/3e9a72ea2d6d37a543dd.js +1 -0
  99. package/assets/esri/core/workers/chunks/3fac9a1b43b1035b22d6.js +1 -0
  100. package/assets/esri/core/workers/chunks/3fdce20b9efc05dd1cbe.js +1 -0
  101. package/assets/esri/core/workers/chunks/40af4142bc92166aaaf2.js +1 -0
  102. package/assets/esri/core/workers/chunks/40b101a969ac2b113a99.js +1 -0
  103. package/assets/esri/core/workers/chunks/412c7d198ee121b34494.js +1 -0
  104. package/assets/esri/core/workers/chunks/41c9880c718f0aaba78a.js +1 -0
  105. package/assets/esri/core/workers/chunks/42953a1ea2872f087d25.js +1 -0
  106. package/assets/esri/core/workers/chunks/435dacf493aec07ff6e3.js +1 -0
  107. package/assets/esri/core/workers/chunks/45f02d1ec060615fa7c5.js +1 -0
  108. package/assets/esri/core/workers/chunks/4608f4ba5649f107827f.js +1 -0
  109. package/assets/esri/core/workers/chunks/476b42902f6d0cb03489.js +1 -0
  110. package/assets/esri/core/workers/chunks/47cd157c9d11986d8d3a.js +1 -0
  111. package/assets/esri/core/workers/chunks/4813bd8bff055eb29377.js +1 -0
  112. package/assets/esri/core/workers/chunks/48937df95a2e03412dfd.js +1 -0
  113. package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +1 -0
  114. package/assets/esri/core/workers/chunks/49cde0a9b3f1c3965f26.js +1 -0
  115. package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +2 -0
  116. package/assets/esri/core/workers/chunks/4a45f63b37f1e736e99d.js +1 -0
  117. package/assets/esri/core/workers/chunks/4c26d6408ee7a3b9d163.js +1 -0
  118. package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +1 -0
  119. package/assets/esri/core/workers/chunks/4d2d9d4e31af8af43445.js +1 -0
  120. package/assets/esri/core/workers/chunks/4dc75d9c860177cfc012.js +1 -0
  121. package/assets/esri/core/workers/chunks/4e3414d75d8378490207.js +1 -0
  122. package/assets/esri/core/workers/chunks/4e4eedddd954f4ad3841.js +1 -0
  123. package/assets/esri/core/workers/chunks/50440f9865edd9b4851d.js +1 -0
  124. package/assets/esri/core/workers/chunks/506954fb374ea528d020.js +1 -0
  125. package/assets/esri/core/workers/chunks/5253933277d16dbe7ab6.js +1 -0
  126. package/assets/esri/core/workers/chunks/52f96030709bd29ef47d.js +1 -0
  127. package/assets/esri/core/workers/chunks/53277ccca55731e6eb36.js +1 -0
  128. package/assets/esri/core/workers/chunks/53daa71ecf0155eeb498.js +1 -0
  129. package/assets/esri/core/workers/chunks/5404ffa9aa1f3fa9973a.js +1 -0
  130. package/assets/esri/core/workers/chunks/54a99b10f2ecf76061af.js +1 -0
  131. package/assets/esri/core/workers/chunks/556f4ee089f71bf201c2.js +1 -0
  132. package/assets/esri/core/workers/chunks/55ac40a5257faf92c43d.js +1 -0
  133. package/assets/esri/core/workers/chunks/55d28d3f5b8ced061e39.js +1 -0
  134. package/assets/esri/core/workers/chunks/55db28616f810ca063b7.js +1 -0
  135. package/assets/esri/core/workers/chunks/560961eeacc861a690a1.js +1 -0
  136. package/assets/esri/core/workers/chunks/564b38915cc3a44a96ea.js +1 -0
  137. package/assets/esri/core/workers/chunks/5729baa3151ac10d0d04.js +1 -0
  138. package/assets/esri/core/workers/chunks/57cf2bd82b006e78f8e5.js +1 -0
  139. package/assets/esri/core/workers/chunks/5928c270c5bf4345dab5.js +1 -0
  140. package/assets/esri/core/workers/chunks/59ae5bd0ee1bae7a9fb3.js +1 -0
  141. package/assets/esri/core/workers/chunks/5af001311d2042f14738.js +1 -0
  142. package/assets/esri/core/workers/chunks/5afd379eaf3d37be0854.js +1 -0
  143. package/assets/esri/core/workers/chunks/5b2e95bd0f48f4b283bc.js +1 -0
  144. package/assets/esri/core/workers/chunks/5bda285f6ecf725676b3.js +1 -0
  145. package/assets/esri/core/workers/chunks/5bea201cb7e24b14b852.js +1 -0
  146. package/assets/esri/core/workers/chunks/5cd896edff4829aab42e.js +1 -0
  147. package/assets/esri/core/workers/chunks/5d14591449ef16c0976f.js +1 -0
  148. package/assets/esri/core/workers/chunks/5d3fa06eb5eb2b663a8f.js +1 -0
  149. package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +1 -0
  150. package/assets/esri/core/workers/chunks/5e816e62664a9a968833.js +1 -0
  151. package/assets/esri/core/workers/chunks/6004a9582ffb96d31640.js +1 -0
  152. package/assets/esri/core/workers/chunks/6007b6b65154e477d96a.js +1 -0
  153. package/assets/esri/core/workers/chunks/6033eef7867f5c82fdc6.js +1 -0
  154. package/assets/esri/core/workers/chunks/60556278f4bfae63a49a.js +1 -0
  155. package/assets/esri/core/workers/chunks/621c5b3f1e29c17426e7.js +1 -0
  156. package/assets/esri/core/workers/chunks/6234a96aaf934ed36793.js +1 -0
  157. package/assets/esri/core/workers/chunks/6274f3192d2edbc2629e.js +1 -0
  158. package/assets/esri/core/workers/chunks/630a36c4817f33f4cad2.js +1 -0
  159. package/assets/esri/core/workers/chunks/641981a68199890bde27.js +1 -0
  160. package/assets/esri/core/workers/chunks/6538253abdafc8e6d112.js +1 -0
  161. package/assets/esri/core/workers/chunks/658eb6efe5c2210def01.js +1 -0
  162. package/assets/esri/core/workers/chunks/65a58ffdb651c948b52c.js +1 -0
  163. package/assets/esri/core/workers/chunks/6779afc2d6ee46c301b5.js +1 -0
  164. package/assets/esri/core/workers/chunks/690a3afeeb3dbd252524.js +1 -0
  165. package/assets/esri/core/workers/chunks/6a509ffb4852d694a097.js +1 -0
  166. package/assets/esri/core/workers/chunks/6ba6714da4dcb5a6fde4.js +1 -0
  167. package/assets/esri/core/workers/chunks/6bf81005fd647e3cc4bf.js +1 -0
  168. package/assets/esri/core/workers/chunks/6c20144cf05f29dd00fc.js +1 -0
  169. package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +1 -0
  170. package/assets/esri/core/workers/chunks/6c4c06a4fa585f56e6a3.js +1 -0
  171. package/assets/esri/core/workers/chunks/6d25a7071fceb707858a.js +1 -0
  172. package/assets/esri/core/workers/chunks/6d30cf656be3bccd3ca7.js +1 -0
  173. package/assets/esri/core/workers/chunks/6d86eadd4d62c9218927.js +1 -0
  174. package/assets/esri/core/workers/chunks/6e30a6c3224207e13a7a.js +1 -0
  175. package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +2 -0
  176. package/assets/esri/core/workers/chunks/708ba5a28c093994c4bd.js +1 -0
  177. package/assets/esri/core/workers/chunks/72c66f2b5479a3f86b94.js +1 -0
  178. package/assets/esri/core/workers/chunks/72ef9199ded8deea05d1.js +1 -0
  179. package/assets/esri/core/workers/chunks/737b748d0fbfd2e0cf02.js +1 -0
  180. package/assets/esri/core/workers/chunks/755df811d724a46957c5.js +1 -0
  181. package/assets/esri/core/workers/chunks/7585a0d26bfe7efda194.js +1 -0
  182. package/assets/esri/core/workers/chunks/758fcf7000eb27ba75e2.js +1 -0
  183. package/assets/esri/core/workers/chunks/75bc76953bdb63a095e6.js +1 -0
  184. package/assets/esri/core/workers/chunks/762842aba4a1dd85db64.js +1 -0
  185. package/assets/esri/core/workers/chunks/765b18e66111d09447de.js +1 -0
  186. package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +1 -0
  187. package/assets/esri/core/workers/chunks/76e20d88983a77b003e1.js +1 -0
  188. package/assets/esri/core/workers/chunks/794f691166c0693993ac.js +1 -0
  189. package/assets/esri/core/workers/chunks/7960b6eb02fdaff6ada7.js +1 -0
  190. package/assets/esri/core/workers/chunks/7a97eec9823941fd210f.js +29 -0
  191. package/assets/esri/core/workers/chunks/7a98b29b3f82d82da1da.js +1 -0
  192. package/assets/esri/core/workers/chunks/7b29fc210b5878951cdc.js +1 -0
  193. package/assets/esri/core/workers/chunks/7ccec1d7e9aca860a150.js +1 -0
  194. package/assets/esri/core/workers/chunks/7d040257ebefcbe896c7.js +1 -0
  195. package/assets/esri/core/workers/chunks/7d74bcce7d8931f9486d.js +1 -0
  196. package/assets/esri/core/workers/chunks/80cf3a616922e3d15d67.js +1 -0
  197. package/assets/esri/core/workers/chunks/80da6d01bb1dcef9e004.js +1 -0
  198. package/assets/esri/core/workers/chunks/812cb2e9efc4d335e9e9.js +1 -0
  199. package/assets/esri/core/workers/chunks/8147bbc6c42d2071e149.js +1 -0
  200. package/assets/esri/core/workers/chunks/82bbf0c5e18fc1c795f4.js +1 -0
  201. package/assets/esri/core/workers/chunks/836b131247908097be7e.js +1 -0
  202. package/assets/esri/core/workers/chunks/837e421a81c7dae6b67c.js +1 -0
  203. package/assets/esri/core/workers/chunks/83bc862c242ff0629c8b.js +1 -0
  204. package/assets/esri/core/workers/chunks/840258be26978bc75609.js +1 -0
  205. package/assets/esri/core/workers/chunks/85979b277f282f4806fe.js +1 -0
  206. package/assets/esri/core/workers/chunks/85992d817e58af01fa70.js +1 -0
  207. package/assets/esri/core/workers/chunks/85d18a646f1c8e9e041d.js +1 -0
  208. package/assets/esri/core/workers/chunks/87c33e729d91fa119aa4.js +1 -0
  209. package/assets/esri/core/workers/chunks/892d99cc12110399fae3.js +1 -0
  210. package/assets/esri/core/workers/chunks/8b104a30814ecc0ef588.js +1 -0
  211. package/assets/esri/core/workers/chunks/8c0afb02e028a520cafc.js +1 -0
  212. package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +1 -0
  213. package/assets/esri/core/workers/chunks/91019e9dff63107f8cb4.js +1 -0
  214. package/assets/esri/core/workers/chunks/919115788da38049aea7.js +2 -0
  215. package/assets/esri/core/workers/chunks/9436749830e078ddba45.js +1 -0
  216. package/assets/esri/core/workers/chunks/954f9854a9bf4a852b81.js +1 -0
  217. package/assets/esri/core/workers/chunks/95784bb703ad5e9886d8.js +1 -0
  218. package/assets/esri/core/workers/chunks/96bbd5af1902cc7a0347.js +1 -0
  219. package/assets/esri/core/workers/chunks/972677041782aea9be46.js +1 -0
  220. package/assets/esri/core/workers/chunks/97cdcedfe853280f6258.js +1 -0
  221. package/assets/esri/core/workers/chunks/9846abf2d3991a15b2b5.js +1 -0
  222. package/assets/esri/core/workers/chunks/98af83f8126c043aa49c.js +1 -0
  223. package/assets/esri/core/workers/chunks/9a4498d5865c88a86755.js +1 -0
  224. package/assets/esri/core/workers/chunks/9b57dc3b74f43b2c17b3.js +1 -0
  225. package/assets/esri/core/workers/chunks/9bec57017e6c009b5d41.js +1 -0
  226. package/assets/esri/core/workers/chunks/9c52b6e951ec142653e0.js +1 -0
  227. package/assets/esri/core/workers/chunks/9cc0250d304d93f96c01.js +1 -0
  228. package/assets/esri/core/workers/chunks/9d0db1230a4b95c59f1e.js +1 -0
  229. package/assets/esri/core/workers/chunks/9d0dfc9765c1ce96a168.js +1 -0
  230. package/assets/esri/core/workers/chunks/9d1a6fb14475ce790149.js +1 -0
  231. package/assets/esri/core/workers/chunks/9d6d4fe9a73aa17a4840.js +1 -0
  232. package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +1 -0
  233. package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +1 -0
  234. package/assets/esri/core/workers/chunks/9f087fcaf30100e447d4.js +1 -0
  235. package/assets/esri/core/workers/chunks/9f63600039606e3ce5e0.js +1 -0
  236. package/assets/esri/core/workers/chunks/9f74b3f0f453bc957e3a.js +1 -0
  237. package/assets/esri/core/workers/chunks/9f8d5cc6c7c2c36c6c7b.js +1 -0
  238. package/assets/esri/core/workers/chunks/a0e2a1c6f37454547193.js +1 -0
  239. package/assets/esri/core/workers/chunks/a1c45e8f5bba471b3905.js +1 -0
  240. package/assets/esri/core/workers/chunks/a2825285d46f8cd5d814.js +1 -0
  241. package/assets/esri/core/workers/chunks/a2e25c964251c2f25340.js +1 -0
  242. package/assets/esri/core/workers/chunks/a3409f879cae2911ef3c.js +1 -0
  243. package/assets/esri/core/workers/chunks/a39c0ab14d6fe337f2f3.js +1 -0
  244. package/assets/esri/core/workers/chunks/a5ae717842c053f5bc9c.js +1 -0
  245. package/assets/esri/core/workers/chunks/a5fe0625f38f1b3f8c84.js +1 -0
  246. package/assets/esri/core/workers/chunks/a6a3d80e786edaa0156a.js +1 -0
  247. package/assets/esri/core/workers/chunks/a6b139e22bd0efe20b01.js +1 -0
  248. package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +1 -0
  249. package/assets/esri/core/workers/chunks/a7537388778e81c9d4b4.js +1 -0
  250. package/assets/esri/core/workers/chunks/a8314873ed823b6ac6d6.js +1 -0
  251. package/assets/esri/core/workers/chunks/a8bd42057e3543c17800.js +1 -0
  252. package/assets/esri/core/workers/chunks/a94291f7e98864091554.js +1 -0
  253. package/assets/esri/core/workers/chunks/a945f7f9504e9602b9b0.js +1 -0
  254. package/assets/esri/core/workers/chunks/a9f1d7e4432e74285a58.js +1 -0
  255. package/assets/esri/core/workers/chunks/aa1793102cb8e7c5b600.js +1 -0
  256. package/assets/esri/core/workers/chunks/aa702f65d735eb033812.js +1 -0
  257. package/assets/esri/core/workers/chunks/aae6a546d2aedc22debd.js +1 -0
  258. package/assets/esri/core/workers/chunks/ab78c25309395049d976.js +1 -0
  259. package/assets/esri/core/workers/chunks/ab7e6f8fff957daa2a33.js +1 -0
  260. package/assets/esri/core/workers/chunks/ab8476dfb0818fc388ba.js +1 -0
  261. package/assets/esri/core/workers/chunks/ad029f4f7c9b79fbce8d.js +1 -0
  262. package/assets/esri/core/workers/chunks/aed8a1a3843aabe819f2.js +1 -0
  263. package/assets/esri/core/workers/chunks/b33922def112150e565f.js +1 -0
  264. package/assets/esri/core/workers/chunks/b4fd8f232c3d09481127.js +1 -0
  265. package/assets/esri/core/workers/chunks/b511b5c68defefccde0b.js +1 -0
  266. package/assets/esri/core/workers/chunks/b51df1d7344d47a9b72a.js +1 -0
  267. package/assets/esri/core/workers/chunks/b58a003bd74f158cf62a.js +1 -0
  268. package/assets/esri/core/workers/chunks/b7c9f95af3473b005267.js +1 -0
  269. package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +1 -0
  270. package/assets/esri/core/workers/chunks/b92b6dd6ca5c740bf509.js +1 -0
  271. package/assets/esri/core/workers/chunks/b9ccaaee349e058a78df.js +1 -0
  272. package/assets/esri/core/workers/chunks/ba80d7ac1074ba7530d4.js +1 -0
  273. package/assets/esri/core/workers/chunks/babb2683e688337ea054.js +1 -0
  274. package/assets/esri/core/workers/chunks/bafced37f9f20a4812d7.js +1 -0
  275. package/assets/esri/core/workers/chunks/bb3520800b085d43cd83.js +1 -0
  276. package/assets/esri/core/workers/chunks/bb3a0f07e1f758d82a81.js +1 -0
  277. package/assets/esri/core/workers/chunks/bbf28e8c5acd87771dc7.js +1 -0
  278. package/assets/esri/core/workers/chunks/bbf6c995039ade67de07.js +1 -0
  279. package/assets/esri/core/workers/chunks/bdaf880bf4663d8263cc.js +1 -0
  280. package/assets/esri/core/workers/chunks/bdc2617101988ab5e9f9.js +1 -0
  281. package/assets/esri/core/workers/chunks/bf81b3670b5323621e2d.js +1 -0
  282. package/assets/esri/core/workers/chunks/bfeb4b089dbd0165d2ab.js +1 -0
  283. package/assets/esri/core/workers/chunks/c117db5805b5ce292ac2.js +1 -0
  284. package/assets/esri/core/workers/chunks/c24d383a28da266922c2.js +1 -0
  285. package/assets/esri/core/workers/chunks/c36dd2f7f6ea1044cd62.js +1 -0
  286. package/assets/esri/core/workers/chunks/c3c0f24a9e0047232ae1.js +1 -0
  287. package/assets/esri/core/workers/chunks/c4794d692934098988e7.js +1 -0
  288. package/assets/esri/core/workers/chunks/c4974a4dc081e23899ba.js +1 -0
  289. package/assets/esri/core/workers/chunks/c6066041f8ca0dd94480.js +1 -0
  290. package/assets/esri/core/workers/chunks/c80c3b746c286f8b860a.js +1 -0
  291. package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +1 -0
  292. package/assets/esri/core/workers/chunks/c945d36f5406ea4e4e3a.js +1 -0
  293. package/assets/esri/core/workers/chunks/ca1f98251f246d481ba2.js +1 -0
  294. package/assets/esri/core/workers/chunks/ca309b6aca9c0948ebae.js +1 -0
  295. package/assets/esri/core/workers/chunks/cbaade131e08ec123719.js +1 -0
  296. package/assets/esri/core/workers/chunks/cc834768685065ddc4c3.js +1 -0
  297. package/assets/esri/core/workers/chunks/cd21fc8eabb11e6ecdc8.js +1 -0
  298. package/assets/esri/core/workers/chunks/cd9100a7c8309dfa7569.js +1 -0
  299. package/assets/esri/core/workers/chunks/ce995e7c03e9e65c987a.js +1 -0
  300. package/assets/esri/core/workers/chunks/ced5dfb2bf46fc5eac8c.js +2 -0
  301. package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +1 -0
  302. package/assets/esri/core/workers/chunks/cf4b92ded0503f991c0e.js +1 -0
  303. package/assets/esri/core/workers/chunks/cf859cb25ceccba1588c.js +1 -0
  304. package/assets/esri/core/workers/chunks/d007762f05dbc9272587.js +1 -0
  305. package/assets/esri/core/workers/chunks/d036c6e9b7ef9f8434c8.js +1 -0
  306. package/assets/esri/core/workers/chunks/d0900a901197948bd7df.js +1 -0
  307. package/assets/esri/core/workers/chunks/d22a4124af837bae4c28.js +1 -0
  308. package/assets/esri/core/workers/chunks/d2ed93bbfa98395bbed7.js +1 -0
  309. package/assets/esri/core/workers/chunks/d3b646ca17b91e59bf48.js +1 -0
  310. package/assets/esri/core/workers/chunks/d486a8a61ff993f8202a.js +1 -0
  311. package/assets/esri/core/workers/chunks/d4a79c878e0a1a42fdc0.js +1 -0
  312. package/assets/esri/core/workers/chunks/d4b6ea046995dcb5872f.js +1 -0
  313. package/assets/esri/core/workers/chunks/d4d07419a4132f69941d.js +1 -0
  314. package/assets/esri/core/workers/chunks/d695d30949b881217bab.js +1 -0
  315. package/assets/esri/core/workers/chunks/d6a513171dcc14e52a84.js +1 -0
  316. package/assets/esri/core/workers/chunks/d82ff5c137227563c5dc.js +1 -0
  317. package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +2 -0
  318. package/assets/esri/core/workers/chunks/da0e55fbc14502ce7c38.js +1 -0
  319. package/assets/esri/core/workers/chunks/da6328b16ef589c1d2ae.js +1 -0
  320. package/assets/esri/core/workers/chunks/da673ffb77ae29d361ae.js +1 -0
  321. package/assets/esri/core/workers/chunks/daa7b13e92230464850f.js +1 -0
  322. package/assets/esri/core/workers/chunks/dacbefe9706585e6c273.js +1 -0
  323. package/assets/esri/core/workers/chunks/db438bbfbb137bb4484e.js +1 -0
  324. package/assets/esri/core/workers/chunks/db66be88c52b1f5e5aad.js +1 -0
  325. package/assets/esri/core/workers/chunks/dc3206ae22700a216ec3.js +1 -0
  326. package/assets/esri/core/workers/chunks/dcc7b221c3fa712d0fd1.js +1 -0
  327. package/assets/esri/core/workers/chunks/dd744dcd5b8751b59c83.js +1 -0
  328. package/assets/esri/core/workers/chunks/de6b14d13977f967a627.js +1 -0
  329. package/assets/esri/core/workers/chunks/df968a32256df81c0f05.js +1 -0
  330. package/assets/esri/core/workers/chunks/e06036392a982dbf3ae3.js +1 -0
  331. package/assets/esri/core/workers/chunks/e0961f79f4f0dd68a4c6.js +1 -0
  332. package/assets/esri/core/workers/chunks/e1dfc05bebfbf4a2274e.js +1 -0
  333. package/assets/esri/core/workers/chunks/e4309f214162e9daa6ed.js +1 -0
  334. package/assets/esri/core/workers/chunks/e4a9a6dd8cc44a4b7f32.js +1 -0
  335. package/assets/esri/core/workers/chunks/e575375e7c43ec22f05e.js +1 -0
  336. package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +1 -0
  337. package/assets/esri/core/workers/chunks/e9376357f24e4f59c0ee.js +1 -0
  338. package/assets/esri/core/workers/chunks/e99d3d85b0f074a1dcd3.js +1 -0
  339. package/assets/esri/core/workers/chunks/ebbb1aed4cdbb41095d6.js +1 -0
  340. package/assets/esri/core/workers/chunks/ec334f87203096caef43.js +1 -0
  341. package/assets/esri/core/workers/chunks/ecd6743a95526e2c2cbe.js +1 -0
  342. package/assets/esri/core/workers/chunks/ecfa2a675da831ec99ff.js +1 -0
  343. package/assets/esri/core/workers/chunks/ed1db6571b0c61fe4f91.js +1 -0
  344. package/assets/esri/core/workers/chunks/edfb0a47ce9c3d89f833.js +1 -0
  345. package/assets/esri/core/workers/chunks/ee33e50a54752ac88d30.js +1 -0
  346. package/assets/esri/core/workers/chunks/ef353a93740a9d90cd8c.js +1 -0
  347. package/assets/esri/core/workers/chunks/ef928201beffbaa1c98d.js +1 -0
  348. package/assets/esri/core/workers/chunks/efadb45b4763c51e701b.js +1 -0
  349. package/assets/esri/core/workers/chunks/efe52385fe8efd933831.js +1 -0
  350. package/assets/esri/core/workers/chunks/f053cbfe671bd14c7d5b.js +1 -0
  351. package/assets/esri/core/workers/chunks/f10ccb31ed05c14a1740.js +1 -0
  352. package/assets/esri/core/workers/chunks/f3035559945bdd619544.js +1 -0
  353. package/assets/esri/core/workers/chunks/f3744b12a5d0d8ca8621.js +1 -0
  354. package/assets/esri/core/workers/chunks/f67b6f57d71ad09dca1f.js +1 -0
  355. package/assets/esri/core/workers/chunks/f7c84687a5e6e2072380.js +1 -0
  356. package/assets/esri/core/workers/chunks/f7ed22285229ff42e6ab.js +1 -0
  357. package/assets/esri/core/workers/chunks/f86d64f0adc7e23950a1.js +1 -0
  358. package/assets/esri/core/workers/chunks/f91682e4545b47b2d260.js +1 -0
  359. package/assets/esri/core/workers/chunks/f97dc99afe3375fc8e16.js +1 -0
  360. package/assets/esri/core/workers/chunks/f9dfa94f63a024d1860e.js +1 -0
  361. package/assets/esri/core/workers/chunks/facfea0ae3e204829326.js +1 -0
  362. package/assets/esri/core/workers/chunks/fba428cd4731872a74db.js +1 -0
  363. package/assets/esri/core/workers/chunks/fd64556a54111b4f37dd.js +1 -0
  364. package/assets/esri/core/workers/chunks/fd94fe2527f360af121e.js +1 -0
  365. package/assets/esri/core/workers/chunks/fe529524d1fca11e0f78.js +1 -0
  366. package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +2 -0
  367. package/assets/esri/core/workers/chunks/ff7cd800558dd4aab51c.js +1 -0
  368. package/assets/esri/core/workers/chunks/ffac34a030dfe5cec258.js +1 -0
  369. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  370. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  371. package/chunks/BlendWeights.glsl.js +4 -5
  372. package/chunks/Blur.glsl.js +10 -7
  373. package/chunks/BlurEmission.glsl.js +27 -7
  374. package/chunks/CheckerBoard.glsl.js +1 -1
  375. package/chunks/Clouds.glsl.js +2 -2
  376. package/chunks/ColorMaterial.glsl.js +2 -1
  377. package/chunks/Component.glsl.js +48 -48
  378. package/chunks/DefaultMaterial.glsl.js +4 -6
  379. package/chunks/EdgeDetect.glsl.js +1 -1
  380. package/chunks/EdgeShader.glsl.js +1 -1
  381. package/chunks/EmissionComposite.glsl.js +2 -2
  382. package/chunks/Fog.glsl.js +4 -4
  383. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  384. package/chunks/HighlightSharpApply.glsl.js +4 -1
  385. package/chunks/ImageMaterial.glsl.js +1 -1
  386. package/chunks/LineCallout.glsl.js +1 -1
  387. package/chunks/LineMarker.glsl.js +6 -5
  388. package/chunks/Magnifier.glsl.js +1 -1
  389. package/chunks/MeasurementArrow.glsl.js +1 -1
  390. package/chunks/NativeLine.glsl.js +1 -1
  391. package/chunks/NoiseTextureAtlas.glsl.js +3 -3
  392. package/chunks/Path.glsl.js +2 -2
  393. package/chunks/Pattern.glsl.js +35 -32
  394. package/chunks/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +18 -9
  395. package/chunks/RealisticAtmosphereCompositing.glsl.js +35 -0
  396. package/chunks/RealisticTree.glsl.js +1 -1
  397. package/chunks/RibbonLine.glsl.js +1 -1
  398. package/chunks/SSAO.glsl.js +2 -2
  399. package/chunks/SimpleAtmosphere.glsl.js +1 -1
  400. package/chunks/SlicePlaneMaterial.glsl.js +1 -1
  401. package/chunks/Terrain.glsl.js +1 -1
  402. package/chunks/Water.glsl.js +1 -1
  403. package/chunks/lyr3DMain.js +1 -1
  404. package/chunks/lyr3DWorker.js +1 -1
  405. package/config.js +1 -1
  406. package/core/Logger.js +1 -1
  407. package/core/accessorSupport/ObservableBase.js +1 -1
  408. package/core/accessorSupport/tracking/ObservationHandle.js +1 -1
  409. package/core/accessorSupport/tracking/SimpleObservable.js +1 -1
  410. package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
  411. package/core/accessorSupport/tracking/TrackingTarget.js +1 -1
  412. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  413. package/core/quantity.js +1 -1
  414. package/core/timeUtils.js +1 -1
  415. package/core/workers/Connection.d.ts +3 -9
  416. package/core/workers/WorkerFallback.js +2 -4
  417. package/core/workers/WorkerOwner.js +1 -1
  418. package/core/workers/workerFactory.js +1 -1
  419. package/core/workers/workers.js +1 -1
  420. package/core/workers.d.ts +1 -14
  421. package/form/FormTemplate.js +1 -1
  422. package/geometry/Mesh.js +1 -1
  423. package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +258 -0
  424. package/geometry/coordinateConversion/CoordinateConversionModel.js +2 -0
  425. package/geometry/coordinateConversion/support/Conversion.d.ts +73 -0
  426. package/geometry/coordinateConversion/support/Conversion.js +2 -0
  427. package/geometry/coordinateConversion/support/Format.d.ts +131 -0
  428. package/geometry/coordinateConversion/support/Format.js +2 -0
  429. package/geometry/coordinateConversion/support/coordinateConversionUtils.js +2 -0
  430. package/geometry/coordinateConversion/support/formatUtils.js +2 -0
  431. package/geometry/coordinateConversion/types.d.ts +116 -0
  432. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  433. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  434. package/geometry/support/meshUtils/rotate.js +1 -1
  435. package/interfaces.d.ts +1 -7
  436. package/kernel.js +1 -1
  437. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  438. package/layers/IntegratedMeshLayer.js +1 -1
  439. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  440. package/layers/ParquetLayer.d.ts +2 -3
  441. package/layers/VectorTileLayer.js +1 -1
  442. package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
  443. package/layers/graphics/data/QueryEngine.js +1 -1
  444. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  445. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  446. package/layers/mixins/FeatureLayerBase.d.ts +2 -2
  447. package/layers/raster/formats/Lzw.js +1 -1
  448. package/layers/raster/formats/Raw.js +1 -1
  449. package/layers/raster/formats/TiffDecoder.js +1 -1
  450. package/layers/raster/formats/tiffParser.js +1 -1
  451. package/layers/raster/formats/tiffTag.js +1 -1
  452. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  453. package/layers/support/AggregateFieldsIndex.js +1 -1
  454. package/layers/support/FieldCollector.js +2 -0
  455. package/layers/support/IntegratedMeshSemantics.js +2 -0
  456. package/layers/support/VideoElement.js +1 -1
  457. package/layers/support/fieldUtils.d.ts +214 -1
  458. package/layers/support/fieldUtils.js +1 -1
  459. package/layers/support/relativeTimeQueryUtils.js +1 -1
  460. package/layers/support/types.d.ts +1 -2
  461. package/legend/ActiveLayerInfo.js +1 -1
  462. package/legend/LegendModel.js +1 -1
  463. package/legend/types.d.ts +15 -1
  464. package/package.json +2 -2
  465. package/renderers/ClassBreaksRenderer.js +1 -1
  466. package/renderers/DictionaryRenderer.js +1 -1
  467. package/renderers/DotDensityRenderer.js +1 -1
  468. package/renderers/HeatmapRenderer.js +1 -1
  469. package/renderers/PieChartRenderer.js +1 -1
  470. package/renderers/Renderer.js +1 -1
  471. package/renderers/SimpleRenderer.js +1 -1
  472. package/renderers/UniqueValueRenderer.js +1 -1
  473. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  474. package/rest/print.js +1 -1
  475. package/symbols/CIMSymbol.js +1 -1
  476. package/symbols/FillSymbol3DLayer.d.ts +1 -4
  477. package/symbols/Symbol.js +1 -1
  478. package/symbols/cim/Rasterizer.js +1 -1
  479. package/symbols/cim/cimAnalyzer.js +1 -1
  480. package/symbols/support/FeatureExpressionInfo.js +1 -1
  481. package/time/daylightUtils.d.ts +29 -0
  482. package/time/daylightUtils.js +2 -0
  483. package/time/timeZoneUtils.js +1 -1
  484. package/time/types.d.ts +57 -1
  485. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  486. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  487. package/views/2d/engine/webgl/TextureManager.js +1 -1
  488. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  489. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  490. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  491. package/views/2d/interactive/editingTools/GraphicTransformTarget.js +2 -0
  492. package/views/2d/interactive/editingTools/MediaElementTransformTarget.js +2 -0
  493. package/views/2d/interactive/editingTools/MediaTransformToolsWrapper.js +1 -1
  494. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  495. package/views/2d/interactive/editingTools.js +1 -1
  496. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  497. package/views/2d/layers/MediaLayerView2D.js +1 -1
  498. package/views/2d/layers/TileLayerView2D.js +1 -1
  499. package/views/2d/layers/support/MediaLayerInteraction.js +1 -1
  500. package/views/3d/GroundView3D.js +1 -1
  501. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  502. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  503. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  504. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  505. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  506. package/views/3d/glTF/internal/TextureTransformUtils.js +1 -1
  507. package/views/3d/interactive/Manipulator3D.js +1 -1
  508. package/views/3d/interactive/Manipulator3DBase.js +2 -0
  509. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  510. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  511. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  512. package/views/3d/layers/I3SMeshView3D.js +1 -1
  513. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  514. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  515. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  516. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  517. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  518. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  519. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  520. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  521. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  522. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  523. package/views/3d/layers/graphics/SymbolComplexity.js +1 -1
  524. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  525. package/views/3d/layers/graphics/webStyleUtils.js +1 -1
  526. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  527. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  528. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  529. package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
  530. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  531. package/views/3d/layers/support/createFeatureFilterHighlight.js +1 -1
  532. package/views/3d/layers/support/patternUtils.js +1 -1
  533. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  534. package/views/3d/support/GroundAndIMSurface.js +1 -1
  535. package/views/3d/support/engineContent/line.js +1 -1
  536. package/views/3d/support/hitTest.js +1 -1
  537. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  538. package/views/3d/terrain/OverlayRenderer.js +1 -1
  539. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  540. package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
  541. package/views/3d/terrain/SphericalPatch.js +1 -1
  542. package/views/3d/terrain/TerrainSurface.js +1 -1
  543. package/views/3d/webgl-engine/collections/Component/ComponentDrawParameters.js +1 -1
  544. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  545. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  546. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  547. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +1 -1
  548. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  549. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  550. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  551. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  552. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +8 -8
  553. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
  554. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +1 -1
  555. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -1
  556. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +6 -4
  557. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +3 -2
  558. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  559. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -9
  560. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +1 -1
  561. package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
  562. package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
  563. package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +3 -3
  564. package/views/3d/webgl-engine/effects/atmosphere/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +1 -1
  565. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +2 -0
  566. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +2 -0
  567. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositingTechnique.js +2 -0
  568. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereTechnique.js +2 -0
  569. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  570. package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
  571. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +87 -41
  572. package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
  573. package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +4 -2
  574. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  575. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  576. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  577. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  578. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  579. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  580. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  581. package/views/3d/webgl-engine/lib/Material.js +1 -1
  582. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  583. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  584. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  585. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  586. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  587. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  588. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  589. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  590. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  591. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  592. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  593. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  594. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +1 -1
  595. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  596. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  597. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +14 -13
  598. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  599. package/views/3d/webgl-engine/shaders/PatternLayouts.js +1 -1
  600. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  601. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  602. package/views/SceneView.js +1 -1
  603. package/views/VideoView.js +1 -1
  604. package/views/interactive/Tooltip.js +1 -1
  605. package/views/interactive/keybindings.d.ts +67 -0
  606. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  607. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  608. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  609. package/views/layers/FeatureLikeLayerView.js +1 -1
  610. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  611. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +3 -0
  612. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  613. package/widgets/CoordinateConversion.js +1 -1
  614. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  615. package/widgets/Sketch/SketchViewModel.js +1 -1
  616. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  617. package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +0 -1
  618. package/assets/esri/core/workers/chunks/01a24ae6e3d730e193e2.js +0 -1
  619. package/assets/esri/core/workers/chunks/0284f608d25c654fcc11.js +0 -1
  620. package/assets/esri/core/workers/chunks/02debe67e6fef9d88bdd.js +0 -1
  621. package/assets/esri/core/workers/chunks/02feb2550b6878e62e2d.js +0 -1
  622. package/assets/esri/core/workers/chunks/035204000954973b0ebc.js +0 -1
  623. package/assets/esri/core/workers/chunks/04a1d08c3b5b1dc7628f.js +0 -1
  624. package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +0 -1
  625. package/assets/esri/core/workers/chunks/0523f893870a1546d7d9.js +0 -1
  626. package/assets/esri/core/workers/chunks/06101f3da5e2fc708402.js +0 -1
  627. package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +0 -1
  628. package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +0 -1
  629. package/assets/esri/core/workers/chunks/077b755688346e0dc8d3.js +0 -1
  630. package/assets/esri/core/workers/chunks/0864da8f8f147016cf1c.js +0 -1
  631. package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +0 -1
  632. package/assets/esri/core/workers/chunks/090a7d0b0128d20879be.js +0 -1
  633. package/assets/esri/core/workers/chunks/0979a48905742486f222.js +0 -1
  634. package/assets/esri/core/workers/chunks/0ac4a3029ba17a9e2492.js +0 -1
  635. package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +0 -1
  636. package/assets/esri/core/workers/chunks/0b480583373b69773333.js +0 -1
  637. package/assets/esri/core/workers/chunks/0b6941781e35ce0f7274.js +0 -1
  638. package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +0 -1
  639. package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +0 -1
  640. package/assets/esri/core/workers/chunks/0da6abe3ceabfe78f7a0.js +0 -1
  641. package/assets/esri/core/workers/chunks/0dc1ac5531f7c8854686.js +0 -1
  642. package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +0 -1
  643. package/assets/esri/core/workers/chunks/0fda0d8b0eaeed2ab39d.js +0 -1
  644. package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +0 -1
  645. package/assets/esri/core/workers/chunks/116293b1ee788a89ce1e.js +0 -1
  646. package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +0 -1
  647. package/assets/esri/core/workers/chunks/11e313dfca2579e68419.js +0 -1
  648. package/assets/esri/core/workers/chunks/12a08d0ad0f5fea32642.js +0 -1
  649. package/assets/esri/core/workers/chunks/13b40a611224ff5f4697.js +0 -1
  650. package/assets/esri/core/workers/chunks/13c64087be3b2985a21b.js +0 -1
  651. package/assets/esri/core/workers/chunks/14ef986665b4a1f6ccdc.js +0 -1
  652. package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +0 -1
  653. package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +0 -1
  654. package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +0 -1
  655. package/assets/esri/core/workers/chunks/15f2b27b8edc0d53e399.js +0 -1
  656. package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +0 -1
  657. package/assets/esri/core/workers/chunks/17c6d66b47aa690df0d4.js +0 -1
  658. package/assets/esri/core/workers/chunks/17f99b130384c1ff2e01.js +0 -1
  659. package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +0 -1
  660. package/assets/esri/core/workers/chunks/18e7fa4d3e0b1a084cc6.js +0 -1
  661. package/assets/esri/core/workers/chunks/1ae0c9345626e70affd3.js +0 -2
  662. package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +0 -1
  663. package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +0 -1
  664. package/assets/esri/core/workers/chunks/1ca9f823caff691e964d.js +0 -1
  665. package/assets/esri/core/workers/chunks/1d9b0db37d5f3819ffca.js +0 -1
  666. package/assets/esri/core/workers/chunks/1e37337f47f45d6d8005.js +0 -1
  667. package/assets/esri/core/workers/chunks/1eaaa896eea3f2ffe6a6.js +0 -1
  668. package/assets/esri/core/workers/chunks/1f51567f47c2e2fc8a23.js +0 -1
  669. package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +0 -1
  670. package/assets/esri/core/workers/chunks/2050c844b5a29b1df28a.js +0 -1
  671. package/assets/esri/core/workers/chunks/21939ef53bc71b42370f.js +0 -1
  672. package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +0 -1
  673. package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +0 -1
  674. package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +0 -1
  675. package/assets/esri/core/workers/chunks/244ffdb91237d1cbade3.js +0 -1
  676. package/assets/esri/core/workers/chunks/24bdeafbb16ae83bb8c3.js +0 -1
  677. package/assets/esri/core/workers/chunks/2515ce2ef279cdd4d5fa.js +0 -1
  678. package/assets/esri/core/workers/chunks/2671035cc08027185737.js +0 -1
  679. package/assets/esri/core/workers/chunks/271ae7deccb94112c2df.js +0 -1
  680. package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +0 -1
  681. package/assets/esri/core/workers/chunks/27f0bbde1e9fa3f06d46.js +0 -1
  682. package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +0 -1
  683. package/assets/esri/core/workers/chunks/29a437a2b7b3a9b3e104.js +0 -1
  684. package/assets/esri/core/workers/chunks/2a224bc845c9bf682c54.js +0 -1
  685. package/assets/esri/core/workers/chunks/2a8168e109caa87d596f.js +0 -1
  686. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +0 -1
  687. package/assets/esri/core/workers/chunks/2b06e8507d71c4d9b5b5.js +0 -1
  688. package/assets/esri/core/workers/chunks/2b4dd42920d37b1ff0a9.js +0 -2
  689. package/assets/esri/core/workers/chunks/2bdd5f0e0364b9e5f52b.js +0 -1
  690. package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +0 -1
  691. package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +0 -1
  692. package/assets/esri/core/workers/chunks/2e9a1673b1d51aa082b6.js +0 -1
  693. package/assets/esri/core/workers/chunks/2e9d2f0a4e3c84d2ac2e.js +0 -1
  694. package/assets/esri/core/workers/chunks/30c5b584e8658b2b3607.js +0 -1
  695. package/assets/esri/core/workers/chunks/30e20461958951a31a5c.js +0 -1
  696. package/assets/esri/core/workers/chunks/31ef7b7074b3e3829763.js +0 -1
  697. package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +0 -1
  698. package/assets/esri/core/workers/chunks/32ba94e59b411d3ff063.js +0 -1
  699. package/assets/esri/core/workers/chunks/3463b52d633a9336af28.js +0 -1
  700. package/assets/esri/core/workers/chunks/348f1def9cd2ddf92e87.js +0 -1
  701. package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +0 -1
  702. package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +0 -1
  703. package/assets/esri/core/workers/chunks/35426786de409d42a87f.js +0 -1
  704. package/assets/esri/core/workers/chunks/359ab29c4509dce0ffbd.js +0 -1
  705. package/assets/esri/core/workers/chunks/35f8896b52adaf952657.js +0 -1
  706. package/assets/esri/core/workers/chunks/365825c51fad1bb7f51f.js +0 -1
  707. package/assets/esri/core/workers/chunks/369780276b2755361f7d.js +0 -1
  708. package/assets/esri/core/workers/chunks/377158a19c9d6ef11387.js +0 -1
  709. package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +0 -1
  710. package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +0 -1
  711. package/assets/esri/core/workers/chunks/3a295fab549ae3caf9df.js +0 -1
  712. package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +0 -1
  713. package/assets/esri/core/workers/chunks/3a8320a40916c755c031.js +0 -1
  714. package/assets/esri/core/workers/chunks/3bb1e06861cd0563ed9f.js +0 -1
  715. package/assets/esri/core/workers/chunks/3cbb3c4e0e60a874ac6d.js +0 -1
  716. package/assets/esri/core/workers/chunks/3e67d50a2b2f8f837831.js +0 -29
  717. package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +0 -1
  718. package/assets/esri/core/workers/chunks/3fe04f13215474accb09.js +0 -1
  719. package/assets/esri/core/workers/chunks/3fe4c89acd325d36618d.js +0 -1
  720. package/assets/esri/core/workers/chunks/40748b846cf6923478c9.js +0 -1
  721. package/assets/esri/core/workers/chunks/4136c4de42b8818e2710.js +0 -1
  722. package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +0 -1
  723. package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +0 -1
  724. package/assets/esri/core/workers/chunks/425347186c279bcc595c.js +0 -1
  725. package/assets/esri/core/workers/chunks/42eec0421e3663019549.js +0 -1
  726. package/assets/esri/core/workers/chunks/434a7ef5b25d83593b50.js +0 -1
  727. package/assets/esri/core/workers/chunks/4521f72ab0ea872e5d7c.js +0 -1
  728. package/assets/esri/core/workers/chunks/46d0db736c6e7decbcf6.js +0 -1
  729. package/assets/esri/core/workers/chunks/474015def9652ddf0640.js +0 -1
  730. package/assets/esri/core/workers/chunks/478a89317a12e9b4d146.js +0 -1
  731. package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +0 -1
  732. package/assets/esri/core/workers/chunks/4869e097261ded90b8bb.js +0 -1
  733. package/assets/esri/core/workers/chunks/489b37c459e1af116aeb.js +0 -1
  734. package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +0 -1
  735. package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +0 -1
  736. package/assets/esri/core/workers/chunks/4ba856605f711b615e4c.js +0 -1
  737. package/assets/esri/core/workers/chunks/4d62877f521cc9663535.js +0 -1
  738. package/assets/esri/core/workers/chunks/4d7063c4152953afb859.js +0 -1
  739. package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +0 -1
  740. package/assets/esri/core/workers/chunks/4eab4e74c6a479c5f930.js +0 -1
  741. package/assets/esri/core/workers/chunks/4f3e0d583cfa9d1d6727.js +0 -2
  742. package/assets/esri/core/workers/chunks/4f4bc4f809b8936cd010.js +0 -1
  743. package/assets/esri/core/workers/chunks/4f8a915795f107b772c5.js +0 -1
  744. package/assets/esri/core/workers/chunks/503ee206e7de1f65e291.js +0 -1
  745. package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +0 -1
  746. package/assets/esri/core/workers/chunks/52a0aa2d19a495e48ab1.js +0 -1
  747. package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +0 -1
  748. package/assets/esri/core/workers/chunks/561c48cb4d49b150765b.js +0 -1
  749. package/assets/esri/core/workers/chunks/5622f3faa59434772857.js +0 -1
  750. package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +0 -1
  751. package/assets/esri/core/workers/chunks/5744c7350e4e2eb73aa9.js +0 -1
  752. package/assets/esri/core/workers/chunks/5788c5ab258b36c8a897.js +0 -1
  753. package/assets/esri/core/workers/chunks/57e0bf4be8a166d5b1eb.js +0 -1
  754. package/assets/esri/core/workers/chunks/5864bce1498a13ee5b7e.js +0 -2
  755. package/assets/esri/core/workers/chunks/590fe0f56bc4c33a50e7.js +0 -1
  756. package/assets/esri/core/workers/chunks/5b1cebae74c7214ccda9.js +0 -1
  757. package/assets/esri/core/workers/chunks/5b3db2c40feaefb7cbc0.js +0 -1
  758. package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +0 -1
  759. package/assets/esri/core/workers/chunks/5be386b3af867b19ff39.js +0 -1
  760. package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +0 -1
  761. package/assets/esri/core/workers/chunks/5c3aa8386705c5e40358.js +0 -1
  762. package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +0 -1
  763. package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +0 -1
  764. package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +0 -1
  765. package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +0 -1
  766. package/assets/esri/core/workers/chunks/6061232c96e11eb7b25d.js +0 -1
  767. package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +0 -1
  768. package/assets/esri/core/workers/chunks/608be1172a908e92b9f1.js +0 -1
  769. package/assets/esri/core/workers/chunks/6268aadb24e0b7c8d207.js +0 -1
  770. package/assets/esri/core/workers/chunks/62a0abcf45a2bd14ecbe.js +0 -1
  771. package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +0 -1
  772. package/assets/esri/core/workers/chunks/64382363d6dc04ff1eac.js +0 -1
  773. package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +0 -1
  774. package/assets/esri/core/workers/chunks/6604272ef6fe85279032.js +0 -1
  775. package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +0 -1
  776. package/assets/esri/core/workers/chunks/66539ab0d88b47326ce9.js +0 -1
  777. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +0 -1
  778. package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +0 -1
  779. package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +0 -1
  780. package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +0 -1
  781. package/assets/esri/core/workers/chunks/6b646971cc15e33a9f33.js +0 -1
  782. package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +0 -1
  783. package/assets/esri/core/workers/chunks/6d863761f29f31a030eb.js +0 -1
  784. package/assets/esri/core/workers/chunks/7027a0e7bfabb3bb7fc2.js +0 -1
  785. package/assets/esri/core/workers/chunks/711cfb84659cb4437679.js +0 -1
  786. package/assets/esri/core/workers/chunks/72020d86e3fc7ecc139f.js +0 -1
  787. package/assets/esri/core/workers/chunks/72f4dad65e16a7d7c58f.js +0 -1
  788. package/assets/esri/core/workers/chunks/72f716a841463e0ba23f.js +0 -1
  789. package/assets/esri/core/workers/chunks/73ab4f0275a85b9671ec.js +0 -1
  790. package/assets/esri/core/workers/chunks/751a21288cf161b94a54.js +0 -1
  791. package/assets/esri/core/workers/chunks/7672c123cfb960f4ddad.js +0 -1
  792. package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +0 -1
  793. package/assets/esri/core/workers/chunks/77463141652bf1ca6fb2.js +0 -1
  794. package/assets/esri/core/workers/chunks/776b64a1e1a57878c34c.js +0 -1
  795. package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +0 -1
  796. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +0 -1
  797. package/assets/esri/core/workers/chunks/79483c05867ba1386f5a.js +0 -1
  798. package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +0 -1
  799. package/assets/esri/core/workers/chunks/7b7208237123e948f170.js +0 -1
  800. package/assets/esri/core/workers/chunks/7c75a8ee266c36baa902.js +0 -1
  801. package/assets/esri/core/workers/chunks/7d866911d1171d25ca78.js +0 -1
  802. package/assets/esri/core/workers/chunks/7db9e615e60d824eac1b.js +0 -1
  803. package/assets/esri/core/workers/chunks/7ddbde8fdd1cf3c53f50.js +0 -1
  804. package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +0 -1
  805. package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +0 -1
  806. package/assets/esri/core/workers/chunks/8140ed6e44c3d8536d3e.js +0 -1
  807. package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +0 -1
  808. package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +0 -1
  809. package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +0 -1
  810. package/assets/esri/core/workers/chunks/834bbda7719b04301f74.js +0 -1
  811. package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +0 -1
  812. package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +0 -1
  813. package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +0 -1
  814. package/assets/esri/core/workers/chunks/85ec73dcba4b922f1948.js +0 -1
  815. package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +0 -1
  816. package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +0 -1
  817. package/assets/esri/core/workers/chunks/89cc1a5539b82fb46216.js +0 -1
  818. package/assets/esri/core/workers/chunks/89e9ebc8d5c1022cb265.js +0 -1
  819. package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +0 -1
  820. package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +0 -1
  821. package/assets/esri/core/workers/chunks/8cc8d7ffe43f5947b04f.js +0 -1
  822. package/assets/esri/core/workers/chunks/8cddfdbab3ad3809462f.js +0 -1
  823. package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +0 -1
  824. package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +0 -1
  825. package/assets/esri/core/workers/chunks/8f1dd383502432d8a039.js +0 -1
  826. package/assets/esri/core/workers/chunks/90a7cd7564f2a92199cc.js +0 -1
  827. package/assets/esri/core/workers/chunks/914a0b5d9fef683cdf9c.js +0 -1
  828. package/assets/esri/core/workers/chunks/921917e53bac82693ec8.js +0 -1
  829. package/assets/esri/core/workers/chunks/926e0a3827eaf16ca8b4.js +0 -1
  830. package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +0 -1
  831. package/assets/esri/core/workers/chunks/929ca32ddbb43328ef31.js +0 -1
  832. package/assets/esri/core/workers/chunks/92b03de8a7686b164f60.js +0 -1
  833. package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +0 -1
  834. package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +0 -1
  835. package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +0 -1
  836. package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +0 -1
  837. package/assets/esri/core/workers/chunks/9b048f80c2d28d527373.js +0 -1
  838. package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +0 -1
  839. package/assets/esri/core/workers/chunks/9bb90097368b200fa730.js +0 -1
  840. package/assets/esri/core/workers/chunks/9bf77f92760aacbd636f.js +0 -1
  841. package/assets/esri/core/workers/chunks/9c2436464b7dfd666678.js +0 -1
  842. package/assets/esri/core/workers/chunks/9c3f56f22e9baa80a387.js +0 -1
  843. package/assets/esri/core/workers/chunks/9d0ee6a816bb72068ab1.js +0 -1
  844. package/assets/esri/core/workers/chunks/9e7622379d777ea88018.js +0 -1
  845. package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +0 -1
  846. package/assets/esri/core/workers/chunks/a02c3c23bd87e0470b8b.js +0 -1
  847. package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +0 -1
  848. package/assets/esri/core/workers/chunks/a553478664a688f32488.js +0 -1
  849. package/assets/esri/core/workers/chunks/a83815c028c9c80aa4c9.js +0 -1
  850. package/assets/esri/core/workers/chunks/a8bedc53d4a316953108.js +0 -1
  851. package/assets/esri/core/workers/chunks/a8fbef765a6fb68e1115.js +0 -1
  852. package/assets/esri/core/workers/chunks/a95186214f1206efd8ed.js +0 -1
  853. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +0 -1
  854. package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +0 -1
  855. package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +0 -1
  856. package/assets/esri/core/workers/chunks/ab60e8fbe0f92340616a.js +0 -1
  857. package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +0 -1
  858. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +0 -1
  859. package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +0 -1
  860. package/assets/esri/core/workers/chunks/ac69c0fd5867b493f1d2.js +0 -1
  861. package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +0 -1
  862. package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +0 -1
  863. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +0 -1
  864. package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +0 -1
  865. package/assets/esri/core/workers/chunks/af3c6794334626b94f00.js +0 -1
  866. package/assets/esri/core/workers/chunks/af70a81620203c030f5b.js +0 -1
  867. package/assets/esri/core/workers/chunks/afc8a9847f31bb66b13b.js +0 -1
  868. package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +0 -1
  869. package/assets/esri/core/workers/chunks/b10850c48f4eee60b8a9.js +0 -1
  870. package/assets/esri/core/workers/chunks/b18459c1bed75dbdec08.js +0 -1
  871. package/assets/esri/core/workers/chunks/b25104337f2495a4296a.js +0 -1
  872. package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +0 -1
  873. package/assets/esri/core/workers/chunks/b3707d2cd2f4b2f70889.js +0 -1
  874. package/assets/esri/core/workers/chunks/b3801d58c024224917df.js +0 -1
  875. package/assets/esri/core/workers/chunks/b3c0c9c91bcdbbb8e719.js +0 -1
  876. package/assets/esri/core/workers/chunks/b4928831a2a13b2da745.js +0 -1
  877. package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +0 -1
  878. package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +0 -1
  879. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +0 -1
  880. package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +0 -1
  881. package/assets/esri/core/workers/chunks/b976122bcd4e2170afaf.js +0 -1
  882. package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +0 -1
  883. package/assets/esri/core/workers/chunks/bc21241bc9acb83d1b1c.js +0 -1
  884. package/assets/esri/core/workers/chunks/bdd76a0b6c14e7fb6984.js +0 -1
  885. package/assets/esri/core/workers/chunks/be11cec9979ed5e9738e.js +0 -1
  886. package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +0 -1
  887. package/assets/esri/core/workers/chunks/c473c8b480de9802711b.js +0 -1
  888. package/assets/esri/core/workers/chunks/c5bf19da62a3d31009fe.js +0 -2
  889. package/assets/esri/core/workers/chunks/c67ce7896789ac7275b2.js +0 -1
  890. package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +0 -1
  891. package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +0 -1
  892. package/assets/esri/core/workers/chunks/c85336a50a4994a2a7eb.js +0 -1
  893. package/assets/esri/core/workers/chunks/c9e7d4c277fbc82c4438.js +0 -1
  894. package/assets/esri/core/workers/chunks/cc817c9d3f8e8f8c56e4.js +0 -1
  895. package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +0 -1
  896. package/assets/esri/core/workers/chunks/ccb55245fe49d844ec50.js +0 -1
  897. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +0 -1
  898. package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +0 -1
  899. package/assets/esri/core/workers/chunks/d0172d31389dbfaaa848.js +0 -1
  900. package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +0 -1
  901. package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +0 -1
  902. package/assets/esri/core/workers/chunks/d31f6598b76380e8688a.js +0 -1
  903. package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +0 -1
  904. package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +0 -1
  905. package/assets/esri/core/workers/chunks/d4028536542db8b623cc.js +0 -1
  906. package/assets/esri/core/workers/chunks/d4eb24c82087a74ae670.js +0 -1
  907. package/assets/esri/core/workers/chunks/d4fe26716c4eca13d493.js +0 -1
  908. package/assets/esri/core/workers/chunks/d5916500514a41a4758f.js +0 -1
  909. package/assets/esri/core/workers/chunks/d63e181f0e48bde73395.js +0 -1
  910. package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +0 -1
  911. package/assets/esri/core/workers/chunks/d77888c84a8b49478807.js +0 -1
  912. package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +0 -1
  913. package/assets/esri/core/workers/chunks/d8b9d14f8d3e82ad26dc.js +0 -1
  914. package/assets/esri/core/workers/chunks/d99d5aa04e2d74ef57a7.js +0 -1
  915. package/assets/esri/core/workers/chunks/d9e75266ac28f934eb61.js +0 -1
  916. package/assets/esri/core/workers/chunks/db1f7b2562de495b3401.js +0 -2
  917. package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +0 -1
  918. package/assets/esri/core/workers/chunks/dc9792b2aa55975b8a95.js +0 -1
  919. package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +0 -1
  920. package/assets/esri/core/workers/chunks/dcc782e4bf9e8a8202f9.js +0 -1
  921. package/assets/esri/core/workers/chunks/dd7e4c94a88452425750.js +0 -1
  922. package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +0 -1
  923. package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +0 -1
  924. package/assets/esri/core/workers/chunks/de3f140058aa0b907b65.js +0 -1
  925. package/assets/esri/core/workers/chunks/df375d1b0dab5ecbd1be.js +0 -1
  926. package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +0 -1
  927. package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +0 -1
  928. package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +0 -1
  929. package/assets/esri/core/workers/chunks/e0650b1408197d3ac862.js +0 -1
  930. package/assets/esri/core/workers/chunks/e0a37d3bcb9a944e53dd.js +0 -1
  931. package/assets/esri/core/workers/chunks/e1f5da51115472347b55.js +0 -1
  932. package/assets/esri/core/workers/chunks/e209cb1f3f14bf576ebe.js +0 -1
  933. package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +0 -1
  934. package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +0 -1
  935. package/assets/esri/core/workers/chunks/e2ebf0ea3af2e6907987.js +0 -1
  936. package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +0 -1
  937. package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +0 -1
  938. package/assets/esri/core/workers/chunks/e5bdfef7c2cc5354be52.js +0 -1
  939. package/assets/esri/core/workers/chunks/e7719bfbc5875a515a2b.js +0 -1
  940. package/assets/esri/core/workers/chunks/eaa0e906b46ae4c84d72.js +0 -2
  941. package/assets/esri/core/workers/chunks/ead49b513e070951a964.js +0 -1
  942. package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +0 -1
  943. package/assets/esri/core/workers/chunks/ec88631b5033c19f569e.js +0 -1
  944. package/assets/esri/core/workers/chunks/ee6679ef9efa1504e7eb.js +0 -1
  945. package/assets/esri/core/workers/chunks/ef8f9b61b829c3bdf999.js +0 -1
  946. package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +0 -1
  947. package/assets/esri/core/workers/chunks/efcd38aad9aa667001b2.js +0 -1
  948. package/assets/esri/core/workers/chunks/f0b897319ca8578df63f.js +0 -1
  949. package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +0 -1
  950. package/assets/esri/core/workers/chunks/f1e87e3ff65d8594e6b3.js +0 -1
  951. package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +0 -1
  952. package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +0 -1
  953. package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +0 -1
  954. package/assets/esri/core/workers/chunks/f4d714d0a1a513861704.js +0 -1
  955. package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +0 -1
  956. package/assets/esri/core/workers/chunks/f7123ba1286f64e13e91.js +0 -1
  957. package/assets/esri/core/workers/chunks/f7f73de8c63924e347ab.js +0 -1
  958. package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +0 -1
  959. package/assets/esri/core/workers/chunks/f9259dc1d78d762c6ac0.js +0 -1
  960. package/assets/esri/core/workers/chunks/fa5d4b9a098441ebf505.js +0 -1
  961. package/assets/esri/core/workers/chunks/fc9d66fe2cc9e2d31964.js +0 -1
  962. package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +0 -1
  963. package/assets/esri/core/workers/chunks/fccfe3aa45a2fb286012.js +0 -1
  964. package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +0 -1
  965. package/chunks/AtmosphereCompositing.glsl.js +0 -25
  966. package/layers/support/ParquetPortalItemData.d.ts +0 -39
  967. package/layers/support/ParquetPortalItemData.js +0 -2
  968. package/views/3d/analysis/ShadowCast/sunlightUtils.js +0 -2
  969. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +0 -2
  970. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +0 -2
  971. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +0 -2
  972. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +0 -2
  973. /package/assets/esri/core/workers/chunks/{c5bf19da62a3d31009fe.js.LICENSE.txt → 07ce1d788ed1c9b926db.js.LICENSE.txt} +0 -0
  974. /package/assets/esri/core/workers/chunks/{4f3e0d583cfa9d1d6727.js.LICENSE.txt → 4a41bf3d1e2e9bb79771.js.LICENSE.txt} +0 -0
  975. /package/assets/esri/core/workers/chunks/{5864bce1498a13ee5b7e.js.LICENSE.txt → 70695e0fb53018d48e7b.js.LICENSE.txt} +0 -0
  976. /package/assets/esri/core/workers/chunks/{2b4dd42920d37b1ff0a9.js.LICENSE.txt → 919115788da38049aea7.js.LICENSE.txt} +0 -0
  977. /package/assets/esri/core/workers/chunks/{db1f7b2562de495b3401.js.LICENSE.txt → ced5dfb2bf46fc5eac8c.js.LICENSE.txt} +0 -0
  978. /package/assets/esri/core/workers/chunks/{eaa0e906b46ae4c84d72.js.LICENSE.txt → d96e63d66f7b1f4ea54a.js.LICENSE.txt} +0 -0
  979. /package/assets/esri/core/workers/chunks/{1ae0c9345626e70affd3.js.LICENSE.txt → fe811d651d201f698b8f.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{rad2deg as r}from"../../../../core/mathUtils.js";import{destroyMaybe as i}from"../../../../core/maybe.js";import{watch as a,initial as o,sync as s}from"../../../../core/reactiveUtils.js";import{px2pt as c}from"../../../../core/screenUtils.js";import{getMetersPerUnitForSR as l}from"../../../../core/units.js";import{property as u,subclass as d}from"../../../../core/accessorSupport/decorators.js";import{subtract as ee,normalize as f}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as p,fromValues as m,UNIT_X as h}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as g,length as _,dot as v,squaredLength as y,set as b,copy as x,normalize as te,lerp as S,add as C,subtract as w}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as T,fromValues as E}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import D from"../../../../geometry/Point.js";import O from"../../../../geometry/Polygon.js";import k from"../../../../geometry/Polyline.js";import{project as A,initializeProjection as j}from"../../../../geometry/projectionUtils.js";import{create as M,copy as N}from"../../../../geometry/support/boundedPlane.js";import{equals as P}from"../../../../geometry/support/spatialReferenceUtils.js";import F from"../../../../layers/GraphicsLayer.js";import I from"../../../../symbols/CIMSymbol.js";import L from"../../../../symbols/SimpleFillSymbol.js";import R from"../../../../symbols/SimpleLineSymbol.js";import z from"../../../../symbols/SimpleMarkerSymbol.js";import{getCIMSymbolRotation as B,applyCIMSymbolRotation as V}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as H}from"./manipulations/DragManipulation.js";import{RotateManipulation as U}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as W}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as G,SnapRotation as K,onGrabChangedHandle as q}from"./manipulations/utils.js";import{InteractiveToolBase as J}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as Y,mediaKeys as X}from"../../../interactive/keybindings.js";import{EditGeometry as Z}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as Q}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as ne}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as re}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as ie}from"../../../support/screenUtils.js";const ae=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let $=class extends J{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=M(),this._displayPlaneCache=M(),this._mainAxisCache=p(),this._rotationHandleCache=T(),this._cornerA=T(),this._cornerB=T(),this._cornerC=T(),this._cornerD=T(),this._avgAB=T(),this._avgBC=T(),this._avgCD=T(),this._avgDA=T(),this._preserveAspectRatio=new G,this._snapRotation=new K,this._graphicsLayer=new F({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._targetGeometryChanged=!1,this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=1,this.preserveAspectRatio=null,this.scaleFromAnchor=!1,this.snapRotation=null,this.type=`transform`}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation.destroy(),this._anchorManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=i(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._anchorVertex=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new O({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;N(e,t);let n=10*this.view.resolution;return g(t.basis1,t.basis1,1+n/_(t.basis1)),g(t.basis2,t.basis2,1+n/_(t.basis2)),t}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=ee(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);f(r,r);let i=80*this.view.resolution,a=this.view.spatialReference;return P(a,e.spatialReference)&&(i*=l(a)/l(e.spatialReference)),ne(r,t,i,this._planeCache)}get _rotateConnectorGeometry(){let e=this._rotateGraphicGeometry;if(!e)return null;let t=this._rotationHandleDirection,n=20*this.view.resolution,r=12*this.view.resolution;return new k({spatialReference:this.view.spatialReference,paths:[[[e.x-t[0]*n,e.y-t[1]*n],[e.x-t[0]*r,e.y-t[1]*r]]]})}get _rotateGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this._rotationHandleDirection,n=1/Math.max(Math.abs(v(t,e.basis1))/y(e.basis1),Math.abs(v(t,e.basis2))/y(e.basis2))+20*this.view.resolution;return new D({x:e.origin[0]+t[0]*n,y:e.origin[1]+t[1]*n,spatialReference:this.view.spatialReference})}get _rotationHandleDirection(){let e=this._plane,t=this.anchor,n=b(this._rotationHandleCache,e.origin[0]-t.x,e.origin[1]-t.y,0);return _(n)<=this.view.resolution*1e-6&&x(n,e.basis1),te(n,n)}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=S(this._avgAB,n,r,.5),s=S(this._avgBC,r,i,.5),c=S(this._avgCD,i,a,.5),l=S(this._avgDA,a,n,.5);return[new D({x:n[0],y:n[1],spatialReference:t}),new D({x:r[0],y:r[1],spatialReference:t}),new D({x:i[0],y:i[1],spatialReference:t}),new D({x:a[0],y:a[1],spatialReference:t}),new D({x:o[0],y:o[1],spatialReference:t}),new D({x:s[0],y:s[1],spatialReference:t}),new D({x:c[0],y:c[1],spatialReference:t}),new D({x:l[0],y:l[1],spatialReference:t})]}get anchor(){return this._anchorGraphic.geometry}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=`georeference`in t?t.georeference.coords:t.geometry,r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=Z.fromGeometry(A(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this._targetGeometryChanged=!1,`georeference`in t&&(this._graphic.geometry=r.data.geometry),this.updateGraphics()}reset(){let{target:e}=this;if(`georeference`in e){let t=e.georeference;t.type===`control-points`&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this.resetAnchor(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}resetAnchor(){let e=this._plane.origin,t=this._anchorVertex.pos;if(e[0]===t[0]&&e[1]===t[1])return;let n=this._editGeometryOperations.moveVertices([this._anchorVertex],e[0]-t[0],e[1]-t[1],0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}updateGraphics(){if(this._targetGeometryChanged){let e=this._editGeometryOperations.data.geometry;if(`georeference`in this.target){let t=this.target.georeference;t.coords=e}this._graphic.geometry=e,this._targetGeometryChanged=!1}let e=this._anchorVertex.pos;this._anchorGraphic.geometry=new D({x:e[0],y:e[1],spatialReference:this.view.spatialReference}),this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateConnectorGraphic.geometry=this._rotateConnectorGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e}),this._updateSymbolAngles()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}async _initialize(){let{view:e,target:r}=this;if(`georeference`in r){let e=r.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints=e.type===`control-points`?e.controlPoints:null}else this._graphic=r,this._initialGeometry=r.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=Q.fromGeometry(A(this._graphic.geometry,e.spatialReference),2);let i=this._plane.origin,c=Z.fromGeometry(new D({x:i[0],y:i[1],z:0,spatialReference:e.spatialReference}),2);this._anchorVertex=c.parts[0].vertices[0],this.addHandles(this._editGeometryOperations.on(`vertex-update`,({vertices:e})=>{e.some(e=>e!==this._anchorVertex)&&(this._targetGeometryChanged=!0)})),this._backgroundGraphic=new t({geometry:this._backgroundGraphicGeometry}),this._anchorGraphic=new t({geometry:c.geometry}),this._rotateConnectorGraphic=new t({geometry:this._rotateConnectorGeometry}),this._rotateGraphic=new t({geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(e=>new t({geometry:e})),this.addHandles(a(()=>e.effectiveTheme.accentColor,e=>{let t=new R({color:e,width:1});this._backgroundGraphic.symbol=new L({color:`transparent`,outline:{type:`simple-line`,color:e,width:2}}),this._rotateConnectorGraphic.symbol=t,this._rotateGraphic.symbol=se(e),this._anchorGraphic.symbol=oe(e),this._scaleGraphics.forEach(r=>{r.symbol=new z({size:6,style:`square`,color:n(e),outline:t})}),this._updateSymbolAngles()},o)),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateConnectorGraphic,this._rotateGraphic,...this._scaleGraphics,this._anchorGraphic]),this._anchorManipulation=new H({tool:this,view:e,graphic:this._anchorGraphic}),this._anchorManipulation.forEachManipulator(e=>{e.cursor=`grab`,this.addHandles([e.events.on(`grab-changed`,t=>q(t,e)),e.events.on(`immediate-double-click`,e=>{e.stopPropagation(),this.resetAnchor()})])}),this._dragManipulation=new H({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new U({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new W({tool:this,view:e,graphic:t,direction:ae[n],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._anchorManipulation.createDragPipeline(()=>({editGeometryOperations:this._editGeometryOperations,vertices:[this._anchorVertex]}),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),a(()=>this.view.scale,()=>this.active?this.updateGraphics():null),a(()=>e.rotation,()=>this._updateSymbolAngles(),s),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=ie(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i}),o=a.results;if(o.length===0)e.activeTool=null;else{let t=re(a.results),n=`georeference`in r,i=o.map(e=>e.type===`media`?e.element:null).filter(Boolean),s=new Set([...this._graphicsLayer.graphics,n?null:r].filter(Boolean));n&&i.includes(r)||t!=null&&s.has(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let l=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{`georeference`in r&&(e.action===`start`?r.opacity*=.5:e.action===`end`&&(r.opacity*=2))}))};this._dragManipulation.forEachManipulator(l),this._rotateManipulation.forEachManipulator(l),this._scaleManipulations.forEach(e=>e.forEachManipulator(l));let u=new Y;u.addToggle(X.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),u.addToggle(X.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),u.add(X.toggleOpacity,()=>{`georeference`in r&&(r.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),u.addToggle(X.factorModifier,e=>this._factor=e.type===`key-down`?10:1),u.add(X.scaleUp,()=>this._scale(this._factor)),u.add(X.scaleDown,()=>this._scale(-this._factor)),u.add(X.moveUp,()=>this._move(0,this._factor)),u.add(X.moveDown,()=>this._move(0,-this._factor)),u.add(X.moveLeft,()=>this._move(-this._factor,0)),u.add(X.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&u.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return j(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;C(i,r,t),C(i,i,n);let a=this._cornerB;C(a,r,t),w(a,a,n);let o=this._cornerC;w(o,r,t),w(o,o,n);let s=this._cornerD;w(s,r,t),C(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane,origin:E(this._anchorVertex.pos[0],this._anchorVertex.pos[1],0),vertices:[...this._editGeometryOperations.data.allVerticesUnordered,this._anchorVertex],scaleFromAnchor:this.scaleFromAnchor}}_updateGraphics(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scaleVertices([...t.data.allVerticesUnordered,this._anchorVertex],m(this._anchorVertex.pos[0],this._anchorVertex.pos[1]),h,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations,r=n.moveVertices([...n.data.allVerticesUnordered,this._anchorVertex],e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:r}),this._sharedRedoStack.length=0,this.updateGraphics()}_updateSymbolAngles(){let e=this._plane;if(!e)return;let t=this._rotationHandleDirection,n=r(Math.atan2(t[1],t[0]))+90,i=this._rotateGraphic.symbol;if(i?.type===`cim`&&B(i)!==n){let e=i.clone();V(e,n),this._rotateGraphic.symbol=e}let a=r(Math.atan2(e.basis1[1],e.basis1[0]))+90;this._scaleGraphics.forEach(e=>{let t=e.symbol;t?.type===`simple-marker`&&(t.angle=this.view.rotation-a)})}};e([u()],$.prototype,`_backgroundGraphicGeometry`,null),e([u()],$.prototype,`_plane`,null),e([u()],$.prototype,`_rotateConnectorGeometry`,null),e([u()],$.prototype,`_rotateGraphicGeometry`,null),e([u()],$.prototype,`_scaleGraphicGeometries`,null),e([u()],$.prototype,`anchor`,null),e([u()],$.prototype,`preserveAspectRatio`,void 0),e([u()],$.prototype,`scaleFromAnchor`,void 0),e([u()],$.prototype,`snapRotation`,void 0),e([u({constructOnly:!0,nonNullable:!0})],$.prototype,`target`,void 0),e([u({readOnly:!0})],$.prototype,`type`,void 0),e([u({constructOnly:!0})],$.prototype,`view`,void 0),$=e([d(`esri.views.2d.interactive.editingTools.TransformTool`)],$);function oe(e){let t=Array.from({length:33},(e,t)=>{let n=t*Math.PI/16;return[5*Math.cos(n),5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(18),anchorPoint:{x:0,y:0},frame:{xmin:-9,ymin:-9,xmax:9,ymax:9},respectFrame:!0,scaleSymbolsProportionally:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{paths:[[[-8,0],[8,0]],[[0,-8],[0,8]],t]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:1.5,color:e.toArray()},{type:`CIMSolidStroke`,enable:!0,width:3,color:n(e).toArray()}]}}]}]}}})}function se(e){let t=n(e).toArray(),r=Array.from({length:48},(e,t)=>{let n=-t*Math.PI/24;return[12*Math.cos(n),12*Math.sin(n)]});r.push(r[0]);let i=Array.from({length:25},(e,t)=>{let n=(t/24*1.5+.75)*Math.PI;return[6.5*Math.cos(n),6.5*Math.sin(n)]});return new I({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,angleAlignment:`Map`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:c(24),anchorPoint:{x:0,y:0},frame:{xmin:-12,ymin:-12,xmax:12,ymax:12},scaleSymbolsProportionally:!0,respectFrame:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[r]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:e.toArray()}]}},{type:`CIMMarkerGraphic`,geometry:{paths:[i]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:2,capStyle:`Round`,color:t}]}},{type:`CIMMarkerGraphic`,geometry:{rings:[[[1.5,7.5],[7.5,7.5],[1.5,1.5],[1.5,7.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t}]}}]}]}}})}export{$ as TransformTool};
2
+ import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as n}from"../../../../core/colorUtils.js";import{rad2deg as r}from"../../../../core/mathUtils.js";import{destroyMaybe as i}from"../../../../core/maybe.js";import{watch as a,syncAndInitial as o,initial as s,sync as c}from"../../../../core/reactiveUtils.js";import{px2pt as l}from"../../../../core/screenUtils.js";import{getMetersPerUnitForSR as u}from"../../../../core/units.js";import{property as d,subclass as f}from"../../../../core/accessorSupport/decorators.js";import{subtract as p,normalize as m}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as h,fromValues as g,UNIT_X as _}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as v,length as y,dot as b,squaredLength as x,set as S,copy as ee,normalize as C,lerp as w,add as T,subtract as E}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as D,fromValues as te}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import O from"../../../../geometry/Point.js";import k from"../../../../geometry/Polygon.js";import A from"../../../../geometry/Polyline.js";import{project as j,initializeProjection as M}from"../../../../geometry/projectionUtils.js";import{create as N,copy as P}from"../../../../geometry/support/boundedPlane.js";import{equals as F}from"../../../../geometry/support/spatialReferenceUtils.js";import I from"../../../../layers/GraphicsLayer.js";import L from"../../../../symbols/CIMSymbol.js";import R from"../../../../symbols/SimpleFillSymbol.js";import z from"../../../../symbols/SimpleLineSymbol.js";import B from"../../../../symbols/SimpleMarkerSymbol.js";import{getCIMSymbolRotation as V,applyCIMSymbolRotation as H}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as U}from"./manipulations/DragManipulation.js";import{RotateManipulation as ne}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as W}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as G,SnapRotation as K,onGrabChangedHandle as q}from"./manipulations/utils.js";import{InteractiveToolBase as J}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as Y,mediaKeys as X}from"../../../interactive/keybindings.js";import{EditGeometry as Z}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as Q}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as re}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as ie}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as ae}from"../../../support/screenUtils.js";const oe=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]];let $=class extends J{constructor(e){super(e),this._graphic=null,this._planeCache=N(),this._displayPlaneCache=N(),this._mainAxisCache=h(),this._rotationHandleCache=D(),this._cornerA=D(),this._cornerB=D(),this._cornerC=D(),this._cornerD=D(),this._avgAB=D(),this._avgBC=D(),this._avgCD=D(),this._avgDA=D(),this._dragManipulation=null,this._anchorManipulation=null,this._rotateManipulation=null,this._preserveAspectRatio=new G,this._snapRotation=new K,this._graphicsLayer=new I({internal:!0,listMode:`hide`,visible:!1,title:`TransformTool layer`}),this._targetGeometryChanged=!1,this._sharedUndoStack=[],this._sharedRedoStack=[],this._factor=1,this.preserveAspectRatio=null,this.scaleFromAnchor=!1,this.snapRotation=null,this.type=`transform`,this._capabilities={...e.target.capabilities}}initialize(){this._initialize()}destroy(){let{map:e}=this.view;this._dragManipulation?.destroy(),this._anchorManipulation?.destroy(),this._rotateManipulation?.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=i(this._graphicsLayer),this._graphic=i(this._graphic),this._anchorVertex=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _backgroundGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new k({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _displayPlane(){let e=this._plane;if(!e)return null;let t=this._displayPlaneCache;P(e,t);let n=10*this.view.resolution;return v(t.basis1,t.basis1,1+n/y(t.basis1)),v(t.basis2,t.basis2,1+n/y(t.basis2)),t}get _plane(){let e=this._graphic.geometry;if(e==null)return null;let t=this._editGeometryOperations.data,n=t.parts[0].segments[0],r=p(this._mainAxisCache,n.leftVertex.pos,n.rightVertex.pos);m(r,r);let i=80*this.view.resolution,a=this.view.spatialReference;return F(a,e.spatialReference)&&(i*=u(a)/u(e.spatialReference)),re(r,t,i,this._planeCache)}get _rotateConnectorGeometry(){let e=this._rotateGraphicGeometry;if(!e)return null;let t=this._rotationHandleDirection,n=20*this.view.resolution,r=12*this.view.resolution;return new A({spatialReference:this.view.spatialReference,paths:[[[e.x-t[0]*n,e.y-t[1]*n],[e.x-t[0]*r,e.y-t[1]*r]]]})}get _rotateGraphicGeometry(){let e=this._displayPlane;if(!e)return null;let t=this._rotationHandleDirection,n=1/Math.max(Math.abs(b(t,e.basis1))/x(e.basis1),Math.abs(b(t,e.basis2))/x(e.basis2))+20*this.view.resolution;return new O({x:e.origin[0]+t[0]*n,y:e.origin[1]+t[1]*n,spatialReference:this.view.spatialReference})}get _rotationHandleDirection(){let e=this._plane,t=this.anchor,n=S(this._rotationHandleCache,e.origin[0]-t.x,e.origin[1]-t.y,0);return y(n)<=this.view.resolution*1e-6&&ee(n,e.basis1),C(n,n)}get _scaleGraphicGeometries(){let e=this._displayPlane;if(!e)return[];let t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);let{_cornerA:n,_cornerB:r,_cornerC:i,_cornerD:a}=this,o=w(this._avgAB,n,r,.5),s=w(this._avgBC,r,i,.5),c=w(this._avgCD,i,a,.5),l=w(this._avgDA,a,n,.5);return[new O({x:n[0],y:n[1],spatialReference:t}),new O({x:r[0],y:r[1],spatialReference:t}),new O({x:i[0],y:i[1],spatialReference:t}),new O({x:a[0],y:a[1],spatialReference:t}),new O({x:o[0],y:o[1],spatialReference:t}),new O({x:s[0],y:s[1],spatialReference:t}),new O({x:c[0],y:c[1],spatialReference:t}),new O({x:l[0],y:l[1],spatialReference:t})]}get anchor(){return this._anchorGraphic.geometry}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){let{view:e,target:t}=this,n=t.getGeometry(),r=this._editGeometryOperations,i=r.data.parts[0].vertices,a=Z.fromGeometry(j(n,e.spatialReference),2).parts[0].vertices;i.forEach((e,t)=>{r.setVertexPosition(e,a[t].pos)}),this._targetGeometryChanged=!1,this._graphic.geometry=r.data.geometry,this.updateGraphics()}reset(){this.target.reset(),this.refresh(),this.resetAnchor(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}resetAnchor(){let e=this._plane.origin,t=this._anchorVertex.pos;if(e[0]===t[0]&&e[1]===t[1])return;let n=this._editGeometryOperations.moveVertices([this._anchorVertex],e[0]-t[0],e[1]-t[1],0,0);this._sharedUndoStack.push({tool:this,operation:n}),this._sharedRedoStack.length=0,this.updateGraphics()}updateGraphics(){if(this._targetGeometryChanged){let e=this._editGeometryOperations.data.geometry;this.target.setGeometry(e),this._graphic.geometry=e,this._targetGeometryChanged=!1}let e=this._anchorVertex.pos;this._anchorGraphic.geometry=new O({x:e[0],y:e[1],spatialReference:this.view.spatialReference}),this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateConnectorGraphic.geometry=this._rotateConnectorGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry;let t=this._scaleGraphicGeometries;this._scaleGraphics.forEach((e,n)=>{e.geometry=t[n]}),this._updateSymbolAngles()}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}async _initialize(){let{view:e,target:r,_capabilities:i}=this;this._graphic=new t({geometry:r.getGeometry()}),this.addHandles(a(()=>r.isVisible?.()??!0,e=>{this._graphic.visible=e},o)),e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=Q.fromGeometry(j(this._graphic.geometry,e.spatialReference),2);let l=this._plane.origin,u=Z.fromGeometry(new O({x:l[0],y:l[1],z:0,spatialReference:e.spatialReference}),2);this._anchorVertex=u.parts[0].vertices[0],this.addHandles(this._editGeometryOperations.on(`vertex-update`,({vertices:e})=>{e.some(e=>e!==this._anchorVertex)&&(this._targetGeometryChanged=!0)})),this._backgroundGraphic=new t({geometry:this._backgroundGraphicGeometry}),this._anchorGraphic=new t({geometry:u.geometry}),this._rotateConnectorGraphic=new t({geometry:this._rotateConnectorGeometry}),this._rotateGraphic=new t({geometry:this._rotateGraphicGeometry}),this._scaleGraphics=i.scale?this._scaleGraphicGeometries.map(e=>new t({geometry:e})):[],this.addHandles(a(()=>e.effectiveTheme.accentColor,e=>{let t=new z({color:e,width:1});this._backgroundGraphic.symbol=new R({color:`transparent`,outline:{type:`simple-line`,color:e,width:2}}),this._rotateConnectorGraphic.symbol=t,this._rotateGraphic.symbol=ce(e),this._anchorGraphic.symbol=se(e),this._scaleGraphics.forEach(r=>{r.symbol=new B({size:6,style:`square`,color:n(e),outline:t})}),this._updateSymbolAngles()},s)),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,...i.rotate?[this._rotateConnectorGraphic,this._rotateGraphic]:[],...this._scaleGraphics,...i.rotate||i.scale?[this._anchorGraphic]:[]]),(i.rotate||i.scale)&&(this._anchorManipulation=new U({tool:this,view:e,graphic:this._anchorGraphic}),this._anchorManipulation.forEachManipulator(e=>{e.cursor=`grab`,this.addHandles([e.events.on(`grab-changed`,t=>q(t,e)),e.events.on(`immediate-double-click`,e=>{e.stopPropagation(),this.resetAnchor()})])})),i.translate&&(this._dragManipulation=new U({tool:this,view:e,graphic:this._graphic})),i.rotate&&(this._rotateManipulation=new ne({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation})),this._scaleManipulations=this._scaleGraphics.map((t,n)=>new W({tool:this,view:e,graphic:t,direction:oe[n],preserveAspectRatio:this._preserveAspectRatio})),this._dragManipulation&&this.addHandles(this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._handleManipulationUpdate.bind(this))),this._anchorManipulation&&this.addHandles(this._anchorManipulation.createDragPipeline(()=>({editGeometryOperations:this._editGeometryOperations,vertices:[this._anchorVertex]}),this._handleManipulationUpdate.bind(this))),this._rotateManipulation&&this.addHandles(this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._handleManipulationUpdate.bind(this))),this.addHandles([...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._handleManipulationUpdate.bind(this))),a(()=>this.view.scale,()=>this.active?this.updateGraphics():null),a(()=>e.rotation,()=>this._updateSymbolAngles(),c),e.on(`click`,async t=>{if(e.activeTool!=null&&e.activeTool!==this)return;let n=ae(t),i=[];e.map.allLayers.forEach(e=>{(e.type===`vector-tile`||e.type===`imagery`)&&i.push(e)});let a=await this.view.hitTest(n,{exclude:i});if(a.results.length===0)e.activeTool=null;else{let t=ie(a.results);r.isHit(a)||t!=null&&this._graphicsLayer.graphics.includes(t.graphic)?e.activeTool??=this:e.activeTool=null}})]);let d=e=>{this.addHandles(e.events.on(`grab-changed`,e=>{r.onGrabChanged?.(e.action===`start`)}))};this._dragManipulation?.forEachManipulator(d),this._rotateManipulation?.forEachManipulator(d),this._scaleManipulations.forEach(e=>e.forEachManipulator(d));let f=new Y;i.scale&&(f.addToggle(X.preserveAspectRatio,()=>{this.preserveAspectRatio??(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),f.add(X.scaleUp,()=>this._scale(this._factor)),f.add(X.scaleDown,()=>this._scale(-this._factor))),i.rotate&&f.addToggle(X.rotateIncrements,()=>{this.snapRotation??(this._snapRotation.enabled=!this._snapRotation.enabled)}),f.addToggle(X.factorModifier,e=>this._factor=e.type===`key-down`?10:1),i.translate&&(f.add(X.moveUp,()=>this._move(0,this._factor)),f.add(X.moveDown,()=>this._move(0,-this._factor)),f.add(X.moveLeft,()=>this._move(-this._factor,0)),f.add(X.moveRight,()=>this._move(this._factor,0))),r.registerKeyBindings?.(f),this.addHandles([e.on(`key-down`,t=>{e.activeTool===this&&f.dispatch(e.inputManager,t)}),e.on(`key-up`,t=>{e.activeTool===this&&f.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){let e=this._graphic.geometry;return M(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){let{basis1:t,basis2:n,origin:r}=e,i=this._cornerA;T(i,r,t),T(i,i,n);let a=this._cornerB;T(a,r,t),E(a,a,n);let o=this._cornerC;E(o,r,t),E(o,o,n);let s=this._cornerD;E(s,r,t),T(s,s,n)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane,origin:te(this._anchorVertex.pos[0],this._anchorVertex.pos[1],0),vertices:[...this._editGeometryOperations.data.allVerticesUnordered,this._anchorVertex],scaleFromAnchor:this.scaleFromAnchor}}_handleManipulationUpdate(e,t){e.action===`start`&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){let t=this._editGeometryOperations,n=t.data.geometry.extent?.width,r=(n+e*this.view.resolution)/n,i=t.scaleVertices([...t.data.allVerticesUnordered,this._anchorVertex],g(this._anchorVertex.pos[0],this._anchorVertex.pos[1]),_,r,r,0,1);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){let n=this._editGeometryOperations,r=n.moveVertices([...n.data.allVerticesUnordered,this._anchorVertex],e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:r}),this._sharedRedoStack.length=0,this.updateGraphics()}_updateSymbolAngles(){let e=this._plane;if(!e)return;let t=this._rotationHandleDirection,n=r(Math.atan2(t[1],t[0]))+90,i=this._rotateGraphic.symbol;if(i?.type===`cim`&&V(i)!==n){let e=i.clone();H(e,n),this._rotateGraphic.symbol=e}let a=r(Math.atan2(e.basis1[1],e.basis1[0]))+90;this._scaleGraphics.forEach(e=>{let t=e.symbol;t?.type===`simple-marker`&&(t.angle=this.view.rotation-a)})}};e([d()],$.prototype,`_backgroundGraphicGeometry`,null),e([d()],$.prototype,`_plane`,null),e([d()],$.prototype,`_rotateConnectorGeometry`,null),e([d()],$.prototype,`_rotateGraphicGeometry`,null),e([d()],$.prototype,`_scaleGraphicGeometries`,null),e([d()],$.prototype,`anchor`,null),e([d()],$.prototype,`preserveAspectRatio`,void 0),e([d()],$.prototype,`scaleFromAnchor`,void 0),e([d()],$.prototype,`snapRotation`,void 0),e([d({constructOnly:!0,nonNullable:!0})],$.prototype,`target`,void 0),e([d({readOnly:!0})],$.prototype,`type`,void 0),e([d({constructOnly:!0})],$.prototype,`view`,void 0),$=e([f(`esri.views.2d.interactive.editingTools.TransformTool`)],$);function se(e){let t=Array.from({length:33},(e,t)=>{let n=t*Math.PI/16;return[5*Math.cos(n),5*Math.sin(n)]});return new L({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:l(18),anchorPoint:{x:0,y:0},frame:{xmin:-9,ymin:-9,xmax:9,ymax:9},respectFrame:!0,scaleSymbolsProportionally:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{paths:[[[-8,0],[8,0]],[[0,-8],[0,8]],t]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:1.5,color:e.toArray()},{type:`CIMSolidStroke`,enable:!0,width:3,color:n(e).toArray()}]}}]}]}}})}function ce(e){let t=n(e).toArray(),r=Array.from({length:48},(e,t)=>{let n=-t*Math.PI/24;return[12*Math.cos(n),12*Math.sin(n)]});r.push(r[0]);let i=Array.from({length:25},(e,t)=>{let n=(t/24*1.5+.75)*Math.PI;return[6.5*Math.cos(n),6.5*Math.sin(n)]});return new L({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,angleAlignment:`Map`,symbolLayers:[{type:`CIMVectorMarker`,enable:!0,size:l(24),anchorPoint:{x:0,y:0},frame:{xmin:-12,ymin:-12,xmax:12,ymax:12},scaleSymbolsProportionally:!0,respectFrame:!0,markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{rings:[r]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:e.toArray()}]}},{type:`CIMMarkerGraphic`,geometry:{paths:[i]},symbol:{type:`CIMLineSymbol`,symbolLayers:[{type:`CIMSolidStroke`,enable:!0,width:2,capStyle:`Round`,color:t}]}},{type:`CIMMarkerGraphic`,geometry:{rings:[[[1.5,7.5],[7.5,7.5],[1.5,1.5],[1.5,7.5]]]},symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidFill`,enable:!0,color:t}]}}]}]}}})}export{$ as TransformTool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- export{DrawGraphicTool2D}from"./editingTools/draw/DrawGraphicTool2D.js";import{ControlPointsTransformTool as e}from"./editingTools/ControlPointsTransformTool.js";import{TransformTool as t}from"./editingTools/TransformTool.js";export{MediaTransformToolsWrapper}from"./editingTools/MediaTransformToolsWrapper.js";export{e as ControlPointsTransformTool,t as TransformTool};
2
+ export{DrawGraphicTool2D}from"./editingTools/draw/DrawGraphicTool2D.js";import{ControlPointsTransformTool as e}from"./editingTools/ControlPointsTransformTool.js";import{TransformTool as t}from"./editingTools/TransformTool.js";import{MediaElementTransformTarget as n}from"./editingTools/MediaElementTransformTarget.js";export{MediaTransformToolsWrapper}from"./editingTools/MediaTransformToolsWrapper.js";export{e as ControlPointsTransformTool,n as MediaElementTransformTarget,t as TransformTool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import n from"../../../core/Collection.js";import{makeHandle as r}from"../../../core/handleUtils.js";import i from"../../../core/Logger.js";import{destroyMaybe as a}from"../../../core/maybe.js";import{isAbortError as o}from"../../../core/promiseUtils.js";import{watch as s,whenOnce as c}from"../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../core/accessorSupport/decorators.js";import d from"../../../symbols/CIMSymbol.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/has.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../geometry/support/spatialReferenceUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import f from"./graphics/GraphicsView2D.js";import p from"./graphics/GraphicContainer.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../../../geometry/Extent.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polygon.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../../../geometry/support/normalizeUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import{LayerView2D as m}from"./LayerView2D.js";import h from"./imagery/ImageryTileView2D.js";import g from"../../layers/ImageryTileLayerView.js";import{RefreshableLayerView as _}from"../../layers/RefreshableLayerView.js";let v=class extends _(m(g)){constructor(){super(...arguments),this._graphicsView=null,this.subview=null}get displayParameters(){let{layer:e}=this,t=this._get(`displayParameters`);return e.visible?{clipToNeatline:e.clippedToNeatline}:t}update(e){this.subview?.update(e),this._graphicsView?.processUpdate(e),this.notifyChange(`updating`)}isUpdating(){return!this.subview||this.subview.updating}attach(){this.layer.increaseRasterJobHandlerUsage();let e=this.subview=new h({layer:this.layer,layerView:this,scheduler:this.scheduler});e.useWebGLForProcessing=!0,e.useProgressiveUpdate=!0;let t=this._graphicsView=new f({requestUpdateCallback:()=>this.requestUpdate(),view:this.view,graphics:new n,container:new p(this.view.featuresTilingScheme)}),l=new AbortController;y(this.layer,this._graphicsView.graphics,this.view.spatialReference);let u=r(()=>{l.abort(),this.container.removeChild(t.container),this._graphicsView=a(this._graphicsView)}),d=r(()=>{e.attached&&=(this.container.removeChild(e.container),e.detach(),!1),this.subview=a(this.subview),this.layer.decreaseRasterJobHandlerUsage()});this.addAttachHandles([u,d,s(()=>this.layer.clippedToNeatline,()=>{let t=e.redrawOrRefetch({refetch:!0,reprocess:!1}).catch(e=>{o(e)||i.getLogger(this).error(e)});this._updatingHandles.addPromise(t)})]),this.container.addChild(t.container),e.attach(),e.attached=!0,this.container.addChild(e.container),c(()=>!e.updating&&e.container.children.some(e=>e.bitmap?.rawPixelData?.pixelBlock!=null),l.signal).then(()=>u.remove()).catch(e=>{o(e)||i.getLogger(this).error(e)}),this.requestUpdate()}detach(){}viewChange(){this._graphicsView?.viewChange(),this.requestUpdate()}moveEnd(){this.subview.moveEnd()}doRefresh(){return this.subview?this.subview.doRefresh():Promise.resolve()}};e([l()],v.prototype,`subview`,void 0),e([l({readOnly:!0})],v.prototype,`displayParameters`,null),v=e([u(`esri.views.2d.layers.GeospatialPDFLayerView2D`)],v);function y(e,n,r){let i=e.createNeatline(r),a=new t({geometry:i,symbol:b()});n.add(a)}function b(){return new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidStroke`,color:[80,170,205,255],enable:!0,joinStyle:`Miter`,width:4,effects:[{type:`CIMGeometricEffectOffset`,method:`Square`,offset:-4}]},{type:`CIMSolidFill`,effects:[{type:`CIMGeometricEffectBuffer`,size:-4}],animations:[{type:`CIMSymbolAnimationColor`,animatedSymbolProperties:{type:`CIMAnimatedSymbolProperties`,duration:3,easing:`EaseInOut`,playAnimation:!0,randomizeStartTime:!1,repeatType:`Oscillate`},toColor:[145,215,235,50]}],color:[145,215,235,100],enable:!0}]}}})}const x=v;export{x as default};
2
+ import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import n from"../../../core/Collection.js";import{makeHandle as r}from"../../../core/handleUtils.js";import i from"../../../core/Logger.js";import{destroyMaybe as a}from"../../../core/maybe.js";import{isAbortError as o}from"../../../core/promiseUtils.js";import{watch as s,whenOnce as c}from"../../../core/reactiveUtils.js";import{property as l,subclass as u}from"../../../core/accessorSupport/decorators.js";import d from"../../../symbols/CIMSymbol.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/has.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../geometry/support/spatialReferenceUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../../../core/accessorSupport/ObservableBase.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import f from"./graphics/GraphicsView2D.js";import p from"./graphics/GraphicContainer.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../../../geometry/Extent.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polygon.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../../../geometry/support/normalizeUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import{LayerView2D as m}from"./LayerView2D.js";import h from"./imagery/ImageryTileView2D.js";import g from"../../layers/ImageryTileLayerView.js";import{RefreshableLayerView as _}from"../../layers/RefreshableLayerView.js";let v=class extends _(m(g)){constructor(){super(...arguments),this._graphicsView=null,this.subview=null}get displayParameters(){let{layer:e}=this,t=this._get(`displayParameters`);return e.visible?{clipToNeatline:e.clippedToNeatline}:t}update(e){this.subview?.update(e),this._graphicsView?.processUpdate(e),this.notifyChange(`updating`)}isUpdating(){return!this.subview||this.subview.updating}attach(){this.layer.increaseRasterJobHandlerUsage();let e=this.subview=new h({layer:this.layer,layerView:this,scheduler:this.scheduler});e.useWebGLForProcessing=!0,e.useProgressiveUpdate=!0;let t=this._graphicsView=new f({requestUpdateCallback:()=>this.requestUpdate(),view:this.view,graphics:new n,container:new p(this.view.featuresTilingScheme)}),l=new AbortController;y(this.layer,this._graphicsView.graphics,this.view.spatialReference);let u=r(()=>{l.abort(),this.container.removeChild(t.container),this._graphicsView=a(this._graphicsView)}),d=r(()=>{e.attached&&=(this.container.removeChild(e.container),e.detach(),!1),this.subview=a(this.subview),this.layer.decreaseRasterJobHandlerUsage()});this.addAttachHandles([u,d,s(()=>this.layer.clippedToNeatline,()=>{let t=e.redrawOrRefetch({refetch:!0,reprocess:!1}).catch(e=>{o(e)||i.getLogger(this).error(e)});this._updatingHandles.addPromise(t)})]),this.container.addChild(t.container),e.attach(),e.attached=!0,this.container.addChild(e.container),c(()=>!e.updating&&e.container.children.some(e=>e.bitmap?.rawPixelData?.pixelBlock!=null),l.signal).then(()=>u.remove()).catch(e=>{o(e)||i.getLogger(this).error(e)}),this.requestUpdate()}detach(){}viewChange(){this._graphicsView?.viewChange(),this.requestUpdate()}moveEnd(){this.subview.moveEnd()}doRefresh(){return this.subview?this.subview.doRefresh():Promise.resolve()}};e([l()],v.prototype,`subview`,void 0),e([l({readOnly:!0})],v.prototype,`displayParameters`,null),v=e([u(`esri.views.2d.layers.GeospatialPDFLayerView2D`)],v);function y(e,n,r){let i=e.createNeatline(r),a=new t({geometry:i,symbol:b()});n.add(a)}function b(){return new d({data:{type:`CIMSymbolReference`,symbol:{type:`CIMPolygonSymbol`,symbolLayers:[{type:`CIMSolidStroke`,color:[80,170,205,255],enable:!0,joinStyle:`Miter`,width:4,effects:[{type:`CIMGeometricEffectOffset`,method:`Square`,offset:-4}]},{type:`CIMSolidFill`,effects:[{type:`CIMGeometricEffectBuffer`,size:-4}],animations:[{type:`CIMSymbolAnimationColor`,animatedSymbolProperties:{type:`CIMAnimatedSymbolProperties`,duration:3,easing:`EaseInOut`,playAnimation:!0,randomizeStartTime:!1,repeatType:`Oscillate`},toColor:[145,215,235,50]}],color:[145,215,235,100],enable:!0}]}}})}const x=v;export{x as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import"../../../Graphic.js";import t from"../../../core/Collection.js";import n from"../../../core/Error.js";import"../../../core/has.js";import{some as r}from"../../../core/iteratorUtils.js";import i from"../../../core/Logger.js";import{getOrCreateMapValue as a}from"../../../core/MapUtils.js";import{isAbortError as o}from"../../../core/promiseUtils.js";import s from"../../../core/ReactiveMap.js";import{watch as c,syncAndInitial as l,on as u}from"../../../core/reactiveUtils.js";import{isScreenRect as d,isScreenPolygon as f}from"../../../core/screenUtils.js";import{property as p,subclass as m}from"../../../core/accessorSupport/decorators.js";import h from"../../../geometry/Extent.js";import{create as g}from"../../../geometry/support/aaBoundingRect.js";import{ringsContainsCoords as _}from"../../../geometry/support/contains.js";import{targetIntersectsPolygon as v,extentIntersectsPolygon as y}from"../../../geometry/support/intersectsBase.js";import{MediaElementView as b}from"../../../layers/support/MediaElementView.js";import"../../../renderers/SimpleRenderer.js";import"../../../symbols/SimpleFillSymbol.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../geometry/support/spatialReferenceUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import"./graphics/GraphicsView2D.js";import"../../../layers/effects/EffectView.js";import"../engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileInfo.js";import"../engine/webgl/AFeatureTile.js";import"../engine/webgl/DisplayEntity.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../engine/webgl/number.js";import"../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js";import"../../webgl/UniformBufferLayout.js";import"../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"../../../core/libs/gl-matrix-2/factories/vec3f32.js";import"../../../geometry/support/normalizeUtils.js";import"./support/util.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polygon.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import"../tiling/TileInfoView.js";import"../tiling/TileKey.js";import x from"../tiling/TileQueue.js";import S from"../tiling/TileStrategy.js";import C from"../engine/webgl/Overlay.js";import w from"../engine/webgl/OverlayContainer.js";import{LayerView2D as T}from"./LayerView2D.js";import{getMapPointsFromScreen as E}from"../support/hitTestUtils.js";import D from"../../layers/MediaLayerView.js";import{TaskPriority as O}from"../../support/Scheduler.js";let k=class extends T(D){constructor(){super(...arguments),this._overlayContainer=null,this._fetchQueue=null,this._tileStrategy=null,this._elementReferences=new s,this._debugGraphicsView=null,this._interaction=null,this.elements=new t}initialize(){this.addHandles([c(()=>[this.interactive,this.suspended],async()=>{if(this.interactive&&!this._interaction){let{MediaLayerInteraction:e}=await this._updatingHandles.addPromise(import(`./support/MediaLayerInteraction.js`));if(this.destroyed)return;this._interaction=new e({view:this.view,layer:this.layer}),this.selectedElement!==this._interaction.selectedElement&&(this._interaction.selectedElement=this.selectedElement),this.interactionOptions!==this._interaction.options&&(this._interaction.options=this.interactionOptions)}this._interaction&&(this._interaction.enabled=!this.suspended&&this.interactive)},l),c(()=>this.interactionOptions,e=>{this._interaction&&(this._interaction.options=e)},l),c(()=>this.selectedElement,e=>{this._interaction&&(this._interaction.selectedElement=e)},l)])}isUpdating(){return this._interaction?.updating===!0||r(this._elementReferences.values(),({overlay:e})=>!e.isReady)}attach(){this.addAttachHandles([u(()=>this.layer.effectiveSource,`refresh`,()=>{let e=this.layer.effectiveSource;if(e)for(let{elementView:{element:t}}of this._elementReferences.values())e.hasElement(t)||this._removeElementReference(t);this._tileStrategy.refresh(e=>this._updateTile(e)),this.requestUpdate()}),u(()=>this.layer.effectiveSource,`change`,({element:e})=>this._elementUpdateHandler(e))]),this._overlayContainer=new w,this.container.addChild(this._overlayContainer),this._fetchQueue=new x({tileInfoView:this.view.featuresTilingScheme,concurrency:10,process:(e,t)=>this._queryElements(e,t),scheduler:this.scheduler,priority:O.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new S({cachePolicy:`purge`,resampling:!0,acquireTile:e=>this._acquireTile(e),releaseTile:e=>this._releaseTile(e),tileInfoView:this.view.featuresTilingScheme}),this.requestUpdate()}detach(){this.elements.removeAll(),this._tileStrategy.destroy(),this._fetchQueue.destroy(),this._overlayContainer.removeAllChildren(),this.container.removeAllChildren(),this._elementReferences.clear(),this._debugGraphicsView?.destroy()}supportsSpatialReference(e){return!0}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}update(e){this._tileStrategy.update(e),this._debugGraphicsView?.update(e)}async hitTest(e,t){let n=[],r=e.normalize(),i=[r.x,r.y],a=d(t),o=f(t),s=a||o;for(let{elementView:{normalizedCoords:r,element:a}}of this._elementReferences.values())if(s){let i=E(this.view,t).map(e=>[e.x,e.y]);r!=null&&v(i,r.rings)&&n.push({type:`media`,element:a,layer:this.layer,mapPoint:null,sourcePoint:a.toSource(e)})}else r!=null&&_(r.rings,i)&&n.push({type:`media`,element:a,layer:this.layer,mapPoint:e,sourcePoint:a.toSource(e)});return n.reverse()}canResume(){return this.layer.source!=null&&super.canResume()}async doRefresh(){this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updateTile(e))}_acquireTile(e){let t=new N(e.clone());return this._updateTile(t),t}_updateTile(e){this._updatingHandles.consumePromise(this._fetchQueue.push(e.key).then(t=>{let[n,r]=e.setElements(t);this._referenceElements(e,n),this._dereferenceElements(e,r),this.requestUpdate()},e=>{o(e)||i.getLogger(this).error(e)}))}_releaseTile(e){this._fetchQueue.abort(e.key.id),e.elements&&this._dereferenceElements(e,e.elements),this.requestUpdate()}async _queryElements(e,t){let n=this.layer.effectiveSource;if(n==null)return[];this.view.featuresTilingScheme.getTileBounds(A,e,!0);let r=new h({xmin:A[0],ymin:A[1],xmax:A[2],ymax:A[3],spatialReference:this.view.spatialReference});return n.queryElements(r,t)}_referenceElements(e,t){if(this.layer.source!=null)for(let n of t)this._referenceElement(e,n)}_referenceElement(e,t){a(this._elementReferences,t.uid,()=>{let e=new b({element:t,spatialReference:this.view.spatialReference}),r=new C(e);return this._overlayContainer.addChild(r),this.elements.add(t),this._updatingHandles.consumePromise(t.load().catch(e=>{i.getLogger(`esri.views.2d.layers.MediaLayerView2D`).error(new n(`element-load-error`,`Element cannot be displayed`,{element:t,error:e}))})),{debugGraphic:null,elementView:e,overlay:r,tiles:new Set}}).tiles.add(e)}_dereferenceElements(e,t){for(let n of t)this._dereferenceElement(e,n)}_dereferenceElement(e,t){let n=this._elementReferences.get(t.uid);n&&(n.tiles.delete(e),n.tiles.size||this._removeElementReference(t))}_removeElementReference(e){let t=this._elementReferences.get(e.uid);t&&(this._overlayContainer.removeChild(t.overlay),t.overlay.destroy(),t.elementView.destroy(),this._elementReferences.delete(e.uid),this.elements.remove(e),this._debugGraphicsView?.graphics.remove(t.debugGraphic))}_elementUpdateHandler(e){if(!this.layer.effectiveSource?.hasElement(e))return;let t=this._elementReferences.get(e.uid);if(t){let n=t.elementView.normalizedCoords;if(n==null){this._removeElementReference(e);return}let r=[],i=[];for(let e of this._tileStrategy.tiles){let a=M(this.view.featuresTilingScheme,e,n);t.tiles.has(e)?a||i.push(e):a&&r.push(e)}for(let t of r)this._referenceElement(t,e);for(let t of i)this._dereferenceElement(t,e);t=this._elementReferences.get(e.uid),t?.debugGraphic&&(t.debugGraphic.geometry=t.elementView.normalizedCoords,this._debugGraphicsView.graphicUpdateHandler({graphic:t.debugGraphic,property:`geometry`}));return}let n=new b({element:e,spatialReference:this.view.spatialReference}).normalizedCoords;if(n!=null)for(let t of this._tileStrategy.tiles)M(this.view.featuresTilingScheme,t,n)&&this._referenceElement(t,e)}};e([p({readOnly:!0})],k.prototype,`elements`,void 0),k=e([m(`esri.views.2d.layers.MediaLayerView2D`)],k);const A=g(),j={xmin:0,ymin:0,xmax:0,ymax:0};function M(e,t,n){return e.getTileBounds(A,t.key,!0),j.xmin=A[0],j.ymin=A[1],j.xmax=A[2],j.ymax=A[3],y(j,n)}class N{constructor(e){this.key=e,this.elements=null,this.isReady=!1,this.visible=!0}setElements(e){let t=[],n=new Set(this.elements);this.elements=e;for(let r of e)n.has(r)?n.delete(r):t.push(r);return this.isReady=!0,[t,Array.from(n)]}destroy(){}}const P=k;export{P as default};
2
+ import{__decorate as e}from"tslib";import"../../../Graphic.js";import t from"../../../core/Collection.js";import n from"../../../core/Error.js";import"../../../core/has.js";import{some as r}from"../../../core/iteratorUtils.js";import i from"../../../core/Logger.js";import{getOrCreateMapValue as a}from"../../../core/MapUtils.js";import{isAbortError as o}from"../../../core/promiseUtils.js";import s from"../../../core/ReactiveMap.js";import{watch as c,syncAndInitial as l,on as u}from"../../../core/reactiveUtils.js";import{isScreenRect as d,isScreenPolygon as f}from"../../../core/screenUtils.js";import{property as p,subclass as m}from"../../../core/accessorSupport/decorators.js";import h from"../../../geometry/Extent.js";import{create as g}from"../../../geometry/support/aaBoundingRect.js";import{ringsContainsCoords as _}from"../../../geometry/support/contains.js";import{targetIntersectsPolygon as v,extentIntersectsPolygon as y}from"../../../geometry/support/intersectsBase.js";import{MediaElementView as b}from"../../../layers/support/MediaElementView.js";import"../../../renderers/SimpleRenderer.js";import"../../../symbols/SimpleFillSymbol.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../geometry/support/spatialReferenceUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../../../core/accessorSupport/ObservableBase.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import"./graphics/GraphicsView2D.js";import"../../../layers/effects/EffectView.js";import"../engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileInfo.js";import"../engine/webgl/AFeatureTile.js";import"../engine/webgl/DisplayEntity.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../engine/webgl/number.js";import"../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js";import"../../webgl/UniformBufferLayout.js";import"../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"../../../core/libs/gl-matrix-2/factories/vec3f32.js";import"../../../geometry/support/normalizeUtils.js";import"./support/util.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polygon.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import"../tiling/TileInfoView.js";import"../tiling/TileKey.js";import x from"../tiling/TileQueue.js";import S from"../tiling/TileStrategy.js";import C from"../engine/webgl/Overlay.js";import w from"../engine/webgl/OverlayContainer.js";import{LayerView2D as T}from"./LayerView2D.js";import{getMapPointsFromScreen as E}from"../support/hitTestUtils.js";import D from"../../layers/MediaLayerView.js";import{TaskPriority as O}from"../../support/Scheduler.js";let k=class extends T(D){constructor(){super(...arguments),this._overlayContainer=null,this._fetchQueue=null,this._tileStrategy=null,this._elementReferences=new s,this._debugGraphicsView=null,this._interaction=null,this.elements=new t}initialize(){this.addHandles([c(()=>[this.interactive,this.suspended],async()=>{if(this.interactive&&!this._interaction){let{MediaLayerInteraction:e}=await this._updatingHandles.addPromise(import(`./support/MediaLayerInteraction.js`));if(this.destroyed)return;this._interaction=new e({view:this.view,layer:this.layer}),this.selectedElement!==this._interaction.selectedElement&&(this._interaction.selectedElement=this.selectedElement),this.interactionOptions!==this._interaction.options&&(this._interaction.options=this.interactionOptions)}this._interaction&&(this._interaction.enabled=!this.suspended&&this.interactive)},l),c(()=>this.interactionOptions,e=>{this._interaction&&(this._interaction.options=e)},l),c(()=>this.selectedElement,e=>{this._interaction&&(this._interaction.selectedElement=e)},l)])}isUpdating(){return this._interaction?.updating===!0||r(this._elementReferences.values(),({overlay:e})=>!e.isReady)}attach(){this.addAttachHandles([u(()=>this.layer.effectiveSource,`refresh`,()=>{let e=this.layer.effectiveSource;if(e)for(let{elementView:{element:t}}of this._elementReferences.values())e.hasElement(t)||this._removeElementReference(t);this._tileStrategy.refresh(e=>this._updateTile(e)),this.requestUpdate()}),u(()=>this.layer.effectiveSource,`change`,({element:e})=>this._elementUpdateHandler(e))]),this._overlayContainer=new w,this.container.addChild(this._overlayContainer),this._fetchQueue=new x({tileInfoView:this.view.featuresTilingScheme,concurrency:10,process:(e,t)=>this._queryElements(e,t),scheduler:this.scheduler,priority:O.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new S({cachePolicy:`purge`,resampling:!0,acquireTile:e=>this._acquireTile(e),releaseTile:e=>this._releaseTile(e),tileInfoView:this.view.featuresTilingScheme}),this.requestUpdate()}detach(){this.elements.removeAll(),this._tileStrategy.destroy(),this._fetchQueue.destroy(),this._overlayContainer.removeAllChildren(),this.container.removeAllChildren(),this._elementReferences.clear(),this._debugGraphicsView?.destroy()}supportsSpatialReference(e){return!0}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}update(e){this._tileStrategy.update(e),this._debugGraphicsView?.update(e)}async hitTest(e,t){let n=[],r=e.normalize(),i=[r.x,r.y],a=d(t),o=f(t),s=a||o;for(let{elementView:{normalizedCoords:r,element:a}}of this._elementReferences.values())if(s){let i=E(this.view,t).map(e=>[e.x,e.y]);r!=null&&v(i,r.rings)&&n.push({type:`media`,element:a,layer:this.layer,mapPoint:null,sourcePoint:a.toSource(e)})}else r!=null&&_(r.rings,i)&&n.push({type:`media`,element:a,layer:this.layer,mapPoint:e,sourcePoint:a.toSource(e)});return n.reverse()}canResume(){return this.layer.source!=null&&super.canResume()}async doRefresh(){this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updateTile(e))}_acquireTile(e){let t=new N(e.clone());return this._updateTile(t),t}_updateTile(e){this._updatingHandles.consumePromise(this._fetchQueue.push(e.key).then(t=>{let[n,r]=e.setElements(t);this._referenceElements(e,n),this._dereferenceElements(e,r),this.requestUpdate()},e=>{o(e)||i.getLogger(this).error(e)}))}_releaseTile(e){this._fetchQueue.abort(e.key.id),e.elements&&this._dereferenceElements(e,e.elements),this.requestUpdate()}async _queryElements(e,t){let n=this.layer.effectiveSource;if(n==null)return[];this.view.featuresTilingScheme.getTileBounds(A,e,!0);let r=new h({xmin:A[0],ymin:A[1],xmax:A[2],ymax:A[3],spatialReference:this.view.spatialReference});return n.queryElements(r,t)}_referenceElements(e,t){if(this.layer.source!=null)for(let n of t)this._referenceElement(e,n)}_referenceElement(e,t){a(this._elementReferences,t.uid,()=>{let e=new b({element:t,spatialReference:this.view.spatialReference}),r=new C(e);return this._overlayContainer.addChild(r),this.elements.add(t),this._updatingHandles.consumePromise(t.load().catch(e=>{i.getLogger(`esri.views.2d.layers.MediaLayerView2D`).error(new n(`element-load-error`,`Element cannot be displayed`,{element:t,error:e}))})),{debugGraphic:null,elementView:e,overlay:r,tiles:new Set}}).tiles.add(e)}_dereferenceElements(e,t){for(let n of t)this._dereferenceElement(e,n)}_dereferenceElement(e,t){let n=this._elementReferences.get(t.uid);n&&(n.tiles.delete(e),n.tiles.size||this._removeElementReference(t))}_removeElementReference(e){let t=this._elementReferences.get(e.uid);t&&(this._overlayContainer.removeChild(t.overlay),t.overlay.destroy(),t.elementView.destroy(),this._elementReferences.delete(e.uid),this.elements.remove(e),this._debugGraphicsView?.graphics.remove(t.debugGraphic))}_elementUpdateHandler(e){if(!this.layer.effectiveSource?.hasElement(e))return;let t=this._elementReferences.get(e.uid);if(t){let n=t.elementView.normalizedCoords;if(n==null){this._removeElementReference(e);return}let r=[],i=[];for(let e of this._tileStrategy.tiles){let a=M(this.view.featuresTilingScheme,e,n);t.tiles.has(e)?a||i.push(e):a&&r.push(e)}for(let t of r)this._referenceElement(t,e);for(let t of i)this._dereferenceElement(t,e);t=this._elementReferences.get(e.uid),t?.debugGraphic&&(t.debugGraphic.geometry=t.elementView.normalizedCoords,this._debugGraphicsView.graphicUpdateHandler({graphic:t.debugGraphic,property:`geometry`}));return}let n=new b({element:e,spatialReference:this.view.spatialReference}).normalizedCoords;if(n!=null)for(let t of this._tileStrategy.tiles)M(this.view.featuresTilingScheme,t,n)&&this._referenceElement(t,e)}};e([p({readOnly:!0})],k.prototype,`elements`,void 0),k=e([m(`esri.views.2d.layers.MediaLayerView2D`)],k);const A=g(),j={xmin:0,ymin:0,xmax:0,ymax:0};function M(e,t,n){return e.getTileBounds(A,t.key,!0),j.xmin=A[0],j.ymin=A[1],j.xmax=A[2],j.ymax=A[3],y(j,n)}class N{constructor(e){this.key=e,this.elements=null,this.isReady=!1,this.visible=!0}setElements(e){let t=[],n=new Set(this.elements);this.elements=e;for(let r of e)n.has(r)?n.delete(r):t.push(r);return this.isReady=!0,[t,Array.from(n)]}destroy(){}}const P=k;export{P as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{makeHandle as t}from"../../../core/handleUtils.js";import n from"../../../core/Logger.js";import{isAbortError as r,waitTick as i}from"../../../core/promiseUtils.js";import{property as a,subclass as o}from"../../../core/accessorSupport/decorators.js";import{equals as s}from"../../../geometry/support/spatialReferenceUtils.js";import c from"../../../layers/support/FeatureFilter.js";import{GraphicsCollection as l}from"../../../support/GraphicsCollection.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/has.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import u from"./graphics/GraphicsView2D.js";import"../../../layers/effects/EffectView.js";import"../engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileInfo.js";import"../engine/webgl/AFeatureTile.js";import"../engine/webgl/DisplayEntity.js";import"../../../geometry/Polygon.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../engine/webgl/number.js";import"../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js";import"../../webgl/UniformBufferLayout.js";import"../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"../../../core/libs/gl-matrix-2/factories/vec3f32.js";import"../../../geometry/support/normalizeUtils.js";import"./support/util.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/accessorSupport/watch.js";import"../../../core/accessorSupport/tracking/SimpleTrackingTarget.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../geometry/Extent.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import{BitmapTileLayerView2D as d}from"./BitmapTileLayerView2D.js";import{LayerView2D as f}from"./LayerView2D.js";import p from"./graphics/HighlightGraphicContainer.js";import{createBlankImage as m,resampleImage as h}from"./support/imageUtils.js";import g from"../tiling/TileInfoView.js";import _ from"../tiling/TileKey.js";import v from"../tiling/TileQueue.js";import y from"../tiling/TileStrategy.js";import b from"../../layers/LayerView.js";import{RefreshableLayerView as x}from"../../layers/RefreshableLayerView.js";import{getHighlightGraphics as S}from"../../layers/support/highlightUtils.js";import{isMapServiceLayerView as C,MapServiceLayerViewHelper as w}from"../../layers/support/MapServiceLayerViewHelper.js";import{createQueryGeometry as T}from"../../support/drapedUtils.js";import{getHighlightName as E}from"../../support/highlightOptionsUtils.js";import{TaskPriority as D}from"../../support/Scheduler.js";const O=[0,0];let k=class extends x(d(f(b))){constructor(){super(...arguments),this._fetchQueue=null,this._highlightGraphics=new l,this._highlightView=null,this._popupHighlightHelper=null,this._tileStrategy=null,this.layer=null}get resampling(){return!(`resampling`in this.layer)||this.layer.resampling!==!1}get tilemapCache(){return`tilemapCache`in this.layer?this.layer.tilemapCache:null}update(e){this._fetchQueue.pause(),this._fetchQueue.state=e.state,this._tileStrategy.update(e),this._fetchQueue.resume(),this._highlightView?.processUpdate(e)}attach(){let e=`tileServers`in this.layer?this.layer.tileServers:null,t=this.tilemapCache;if(this._tileInfoView=new g(this.layer.tileInfo,this.layer.fullExtent,t?.effectiveMinLOD,t?.effectiveMaxLOD),this._fetchQueue=new v({tileInfoView:this._tileInfoView,concurrency:e&&e.length*10||10,process:(e,t)=>this.fetchTile(e,t),scheduler:this.scheduler,priority:D.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new y({cachePolicy:`keep`,resampling:this.resampling,acquireTile:e=>this.acquireTile(e),releaseTile:e=>this.releaseTile(e),tileInfoView:this._tileInfoView}),C(this,this.layer)){let e=this._highlightView=new u({view:this.view,graphics:this._highlightGraphics,requestUpdateCallback:()=>this.requestUpdate(),container:new p(this.view.featuresTilingScheme),defaultPointSymbolEnabled:!1});this.container.addChild(this._highlightView.container),this._popupHighlightHelper=new w({createFetchPopupFeaturesQueryGeometry:(e,t)=>T(e,t,this.view),highlightGraphics:this._highlightGraphics,highlightGraphicUpdated:({graphic:t,property:n})=>e.graphicUpdateHandler({graphic:t,property:n}),layerView:this,updatingHandles:this._updatingHandles})}this.requestUpdate(),this.addAttachHandles(this._updatingHandles.add(()=>this.resampling,()=>{this.doRefresh()})),super.attach()}detach(){super.detach(),this._tileStrategy.destroy(),this._fetchQueue.clear(),this.container.removeAllChildren(),this._popupHighlightHelper?.destroy(),this._highlightView?.destroy(),this._fetchQueue=this._tileStrategy=this._tileInfoView=this._popupHighlightHelper=null}async fetchPopupFeaturesAtTarget(e,t,n){return this._popupHighlightHelper?this._popupHighlightHelper.fetchPopupFeaturesAtTarget(t,n):[]}highlight(e,n){let r=S(e);if(r.length===0)return t();let i=E(n),a=this._addHighlightGraphics(r,i);return t(()=>!this.destroyed&&this._removeHighlightGraphics(r,a))}_onHighlightChange(){let e=this._getHighlightFilterGroups();this._highlightView?.setHighlightFilters(e)}_addHighlightGraphics(e,t){return this._highlightGraphics.addMany(e),this._addHighlightFilter(new c({objectIds:e.map(e=>e.uid)}),t)}_removeHighlightGraphics(e,t){this._highlightGraphics.removeMany(e),this._removeHighlight(t)}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}supportsSpatialReference(e){return s(this.layer.tileInfo?.spatialReference,e)}async doRefresh(){this.attached&&(this.suspended?(this._tileStrategy.clear(),this.requestUpdate()):(this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updatingHandles.addPromise(this._enqueueTileFetch(e)))))}acquireTile(e){let t=this._bitmapView.createTile(e),n=t.bitmap;return[n.x,n.y]=this._tileInfoView.getTileCoords(O,t.key),n.resolution=this._tileInfoView.getTileResolution(t.key),[n.width,n.height]=this._tileInfoView.size,this._updatingHandles.consumePromise(this._enqueueTileFetch(t)),this._bitmapView.addChild(t),this.requestUpdate(),t}releaseTile(e){this._fetchQueue.abort(e.key.id),this._bitmapView.removeChild(e),e.once(`detach`,()=>e.destroy()),this.requestUpdate()}async fetchTile(e,t={}){return this.tilemapCache?this._fetchTileWithTilemapCache(e,t):this._fetchTileWithoutTilemapCache(e,t)}async _fetchTileWithoutTilemapCache(e,t={}){let{signal:n,resamplingLevel:i=0}=t;try{return await this._fetchImage(e,n)}catch(n){if(r(n))throw n;if(!this.resampling)return m(this._tileInfoView.size);if(i<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){let r=new _(n),a=await this._fetchTileWithoutTilemapCache(r,{...t,resamplingLevel:i+1});return h(this._tileInfoView,a,r,e)}}return m(this._tileInfoView.size)}}async _fetchTileWithTilemapCache(e,t={}){let n=this.tilemapCache,{signal:a,resamplingLevel:o=0}=t,s=new _(0,0,0,0),c,l=null;try{if(l=await n.fetchAvailabilityUpsample(e.level,e.row,e.col,s,{signal:a}),!this.resampling&&s.level!==e.level)return await i(t),m(this._tileInfoView.size);c=await this._fetchImage(s,a)}catch(n){if(r(n))throw n;if(this.resampling&&l===`unknown`&&o<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){s.set(n);try{c=await this._fetchTileWithTilemapCache(s,{...t,resamplingLevel:o+1})}catch{}}}}return c?this.resampling?h(this._tileInfoView,c,s,e):c:m(this._tileInfoView.size)}async _enqueueTileFetch(e){if(!this._fetchQueue.has(e.key.id)){try{let t=await this._fetchQueue.push(e.key);e.bitmap.source=t,e.bitmap.width=this._tileInfoView.size[0],e.bitmap.height=this._tileInfoView.size[1],e.once(`attach`,()=>this.requestUpdate()),e.once(`isReady`,()=>this.requestUpdate())}catch(e){r(e)||n.getLogger(this).error(e)}this.requestUpdate()}}async _fetchImage(e,t){return this.layer.fetchImageBitmapTile(e.level,e.row,e.col,{signal:t}).then(({bitmap:e})=>e)}};e([a()],k.prototype,`resampling`,null),e([a()],k.prototype,`tilemapCache`,null),k=e([o(`esri.views.2d.layers.TileLayerView2D`)],k);const A=k;export{A as default};
2
+ import{__decorate as e}from"tslib";import{makeHandle as t}from"../../../core/handleUtils.js";import n from"../../../core/Logger.js";import{isAbortError as r,waitTick as i}from"../../../core/promiseUtils.js";import{property as a,subclass as o}from"../../../core/accessorSupport/decorators.js";import{equals as s}from"../../../geometry/support/spatialReferenceUtils.js";import c from"../../../layers/support/FeatureFilter.js";import{GraphicsCollection as l}from"../../../support/GraphicsCollection.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../geometry/Point.js";import"../../../chunks/pe.js";import"../../../core/has.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../core/RandomLCG.js";import"../../../core/Accessor.js";import"../../../core/accessorSupport/ObservableBase.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../webgl/Texture.js";import"../../../core/memoryEstimations.js";import"../../webgl/enums.js";import"../../webgl/Util.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import u from"./graphics/GraphicsView2D.js";import"../../../layers/effects/EffectView.js";import"../engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileInfo.js";import"../engine/webgl/AFeatureTile.js";import"../engine/webgl/DisplayEntity.js";import"../../../geometry/Polygon.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../engine/webgl/number.js";import"../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js";import"../../webgl/UniformBufferLayout.js";import"../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"../../../core/libs/gl-matrix-2/factories/vec3f32.js";import"../../../geometry/support/normalizeUtils.js";import"./support/util.js";import"../navigation/MapViewNavigation.js";import"../../../request.js";import"../../../core/asyncUtils.js";import"../../../core/accessorSupport/watch.js";import"../../../core/accessorSupport/tracking/SimpleTrackingTarget.js";import"../../../core/support/UpdatingHandles.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../geometry/Extent.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/Polyline.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/projection/projectors.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import{BitmapTileLayerView2D as d}from"./BitmapTileLayerView2D.js";import{LayerView2D as f}from"./LayerView2D.js";import p from"./graphics/HighlightGraphicContainer.js";import{createBlankImage as m,resampleImage as h}from"./support/imageUtils.js";import g from"../tiling/TileInfoView.js";import _ from"../tiling/TileKey.js";import v from"../tiling/TileQueue.js";import y from"../tiling/TileStrategy.js";import b from"../../layers/LayerView.js";import{RefreshableLayerView as x}from"../../layers/RefreshableLayerView.js";import{getHighlightGraphics as S}from"../../layers/support/highlightUtils.js";import{isMapServiceLayerView as C,MapServiceLayerViewHelper as w}from"../../layers/support/MapServiceLayerViewHelper.js";import{createQueryGeometry as T}from"../../support/drapedUtils.js";import{getHighlightName as E}from"../../support/highlightOptionsUtils.js";import{TaskPriority as D}from"../../support/Scheduler.js";const O=[0,0];let k=class extends x(d(f(b))){constructor(){super(...arguments),this._fetchQueue=null,this._highlightGraphics=new l,this._highlightView=null,this._popupHighlightHelper=null,this._tileStrategy=null,this.layer=null}get resampling(){return!(`resampling`in this.layer)||this.layer.resampling!==!1}get tilemapCache(){return`tilemapCache`in this.layer?this.layer.tilemapCache:null}update(e){this._fetchQueue.pause(),this._fetchQueue.state=e.state,this._tileStrategy.update(e),this._fetchQueue.resume(),this._highlightView?.processUpdate(e)}attach(){let e=`tileServers`in this.layer?this.layer.tileServers:null,t=this.tilemapCache;if(this._tileInfoView=new g(this.layer.tileInfo,this.layer.fullExtent,t?.effectiveMinLOD,t?.effectiveMaxLOD),this._fetchQueue=new v({tileInfoView:this._tileInfoView,concurrency:e&&e.length*10||10,process:(e,t)=>this.fetchTile(e,t),scheduler:this.scheduler,priority:D.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new y({cachePolicy:`keep`,resampling:this.resampling,acquireTile:e=>this.acquireTile(e),releaseTile:e=>this.releaseTile(e),tileInfoView:this._tileInfoView}),C(this,this.layer)){let e=this._highlightView=new u({view:this.view,graphics:this._highlightGraphics,requestUpdateCallback:()=>this.requestUpdate(),container:new p(this.view.featuresTilingScheme),defaultPointSymbolEnabled:!1});this.container.addChild(this._highlightView.container),this._popupHighlightHelper=new w({createFetchPopupFeaturesQueryGeometry:(e,t)=>T(e,t,this.view),highlightGraphics:this._highlightGraphics,highlightGraphicUpdated:({graphic:t,property:n})=>e.graphicUpdateHandler({graphic:t,property:n}),layerView:this,updatingHandles:this._updatingHandles})}this.requestUpdate(),this.addAttachHandles(this._updatingHandles.add(()=>this.resampling,()=>{this.doRefresh()})),super.attach()}detach(){super.detach(),this._tileStrategy.destroy(),this._fetchQueue.clear(),this.container.removeAllChildren(),this._popupHighlightHelper?.destroy(),this._highlightView?.destroy(),this._fetchQueue=this._tileStrategy=this._tileInfoView=this._popupHighlightHelper=null}async fetchPopupFeaturesAtTarget(e,t,n){return this._popupHighlightHelper?this._popupHighlightHelper.fetchPopupFeaturesAtTarget(t,n):[]}highlight(e,n){let r=S(e);if(r.length===0)return t();let i=E(n),a=this._addHighlightGraphics(r,i);return t(()=>!this.destroyed&&this._removeHighlightGraphics(r,a))}_onHighlightChange(){let e=this._getHighlightFilterGroups();this._highlightView?.setHighlightFilters(e)}_addHighlightGraphics(e,t){return this._highlightGraphics.addMany(e),this._addHighlightFilter(new c({objectIds:e.map(e=>e.uid)}),t)}_removeHighlightGraphics(e,t){this._highlightGraphics.removeMany(e),this._removeHighlight(t)}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}supportsSpatialReference(e){return s(this.layer.tileInfo?.spatialReference,e)}async doRefresh(){this.attached&&(this.suspended?(this._tileStrategy.clear(),this.requestUpdate()):(this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updatingHandles.addPromise(this._enqueueTileFetch(e)))))}acquireTile(e){let t=this._bitmapView.createTile(e),n=t.bitmap;return[n.x,n.y]=this._tileInfoView.getTileCoords(O,t.key),n.resolution=this._tileInfoView.getTileResolution(t.key),[n.width,n.height]=this._tileInfoView.size,this._updatingHandles.consumePromise(this._enqueueTileFetch(t)),this._bitmapView.addChild(t),this.requestUpdate(),t}releaseTile(e){this._fetchQueue.abort(e.key.id),this._bitmapView.removeChild(e),e.once(`detach`,()=>e.destroy()),this.requestUpdate()}async fetchTile(e,t={}){return this.tilemapCache?this._fetchTileWithTilemapCache(e,t):this._fetchTileWithoutTilemapCache(e,t)}async _fetchTileWithoutTilemapCache(e,t={}){let{signal:n,resamplingLevel:i=0}=t;try{return await this._fetchImage(e,n)}catch(n){if(r(n))throw n;if(!this.resampling)return m(this._tileInfoView.size);if(i<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){let r=new _(n),a=await this._fetchTileWithoutTilemapCache(r,{...t,resamplingLevel:i+1});return h(this._tileInfoView,a,r,e)}}return m(this._tileInfoView.size)}}async _fetchTileWithTilemapCache(e,t={}){let n=this.tilemapCache,{signal:a,resamplingLevel:o=0}=t,s=new _(0,0,0,0),c,l=null;try{if(l=await n.fetchAvailabilityUpsample(e.level,e.row,e.col,s,{signal:a}),!this.resampling&&s.level!==e.level)return await i(t),m(this._tileInfoView.size);c=await this._fetchImage(s,a)}catch(n){if(r(n))throw n;if(this.resampling&&l===`unknown`&&o<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){s.set(n);try{c=await this._fetchTileWithTilemapCache(s,{...t,resamplingLevel:o+1})}catch{}}}}return c?this.resampling?h(this._tileInfoView,c,s,e):c:m(this._tileInfoView.size)}async _enqueueTileFetch(e){if(!this._fetchQueue.has(e.key.id)){try{let t=await this._fetchQueue.push(e.key);e.bitmap.source=t,e.bitmap.width=this._tileInfoView.size[0],e.bitmap.height=this._tileInfoView.size[1],e.once(`attach`,()=>this.requestUpdate()),e.once(`isReady`,()=>this.requestUpdate())}catch(e){r(e)||n.getLogger(this).error(e)}this.requestUpdate()}}async _fetchImage(e,t){return this.layer.fetchImageBitmapTile(e.level,e.row,e.col,{signal:t}).then(({bitmap:e})=>e)}};e([a()],k.prototype,`resampling`,null),e([a()],k.prototype,`tilemapCache`,null),k=e([o(`esri.views.2d.layers.TileLayerView2D`)],k);const A=k;export{A as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{destroyHandle as n,makeHandle as r,abortHandle as i}from"../../../../core/handleUtils.js";import{debounce as a}from"../../../../core/promiseUtils.js";import{initial as o}from"../../../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as l}from"../../../../core/support/UpdatingHandles.js";import{ViewEventPriorities as u}from"../../../input/InputManager.js";import{mediaKeys as d}from"../../../interactive/keybindings.js";const f={redo:`r`,undo:`z`},p=Symbol(),m=Symbol(),h=Symbol();let g=class extends t{constructor(e){super(e),this._tool=null,this._updatingHandles=new l,this._editSourcePointsEnabled=!1,this.enabled=!1,this._onPointerMove=a(async e=>{let t=await this._updatingHandles.addPromise(this._findElementAtScreenPoint(e));this.destroyed||(this.removeHandles(m),t&&t!==this.selectedElement&&this.addHandles(this.view.acquireCursor(`pointer`,`high`),m))})}initialize(){this.addHandles(n(this._updatingHandles)),this._updatingHandles.add(()=>this.enabled,e=>this._setEnabled(e),o),this._updatingHandles.add(()=>this._preferredInteractionTool,()=>this._preferredInteractionToolChanged()),this._updatingHandles.add(()=>this.editSourcePoints,()=>this._editSourcePointsChanged())}get _validatedSelectedElement(){let e=this.selectedElement;if(!e)return null;let{layer:{source:t}}=this;return t?`hasElement`in t?t.hasElement(e)?e:null:t===e?e:null:null}get _preferredInteractionTool(){return this.options?.tool??`transform`}get editSourcePoints(){return!!this.options?.reshapeOptions.editSourcePoints!==this._editSourcePointsEnabled}get updating(){return this._updatingHandles.updating}_setEnabled(e){if(this.removeHandles(p),!e)return;let{view:t}=this;this.addHandles([t.on(`immediate-click`,e=>this._onClick(e),u.TOOL),t.on(`pointer-move`,e=>this._onPointerMove(e).catch(()=>{}),u.TOOL),t.on(`key-down`,e=>{e.key===f.undo&&this._tool?.canUndo()&&(this._tool.undo(),e.stopPropagation()),e.key===f.redo&&this._tool?.canRedo()&&(this._tool.redo(),e.stopPropagation()),e.key===d.editSourcePoints.key&&(this._editSourcePointsEnabled=!0,this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints))}),t.on(`key-up`,e=>{e.key===d.editSourcePoints.key&&(this._editSourcePointsEnabled=!1,this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints))}),this._updatingHandles.add(()=>this._validatedSelectedElement,e=>this._selectedElementChanged(e),o),r(()=>{this.removeHandles(m),this._removeTool()})],p)}async _findElementAtScreenPoint(e){let t=(await this.view.hitTest(e,{include:[this.layer]})).results[0];return t?.type===`media`?t.element:null}_editSourcePointsChanged(){this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints)}async _onClick(e){await this._updatingHandles.addPromise(e.defer(async()=>{let t=await this._findElementAtScreenPoint(e);this.destroyed||(t&&e.stopPropagation(),this.selectedElement=t,this.selectedElement&&this.removeHandles(m))}))}_preferredInteractionToolChanged(){let{_tool:e}=this;e&&this._preferredInteractionTool!==e.type&&this._updatingHandles.consumePromise(this._recreateTool())}async _recreateTool(){this.removeHandles(h),this._removeTool();let e=this._validatedSelectedElement;if(!e)return;let t=new AbortController;this.addHandles(i(t),h);let{TransformTool:n,ControlPointsTransformTool:a}=await import(`../../interactive/editingTools.js`);if(t.signal.aborted)return;let{view:o}=this;switch(this._preferredInteractionTool){case`transform`:this._tool=new n({target:e,view:o});break;case`reshape`:this._tool=new a({mediaElement:e,view:o}),this._tool.editSourcePoints=this.editSourcePoints}this.addHandles(r(()=>{this._tool&&=(o.tools.remove(this._tool),null)}),this._tool),o.addAndActivateTool(this._tool)}_removeTool(){this._tool&&this.removeHandles(this._tool)}async _selectedElementChanged(e){e?.georeference?await this._updatingHandles.addPromise(this._recreateTool()):this._removeTool()}};e([s()],g.prototype,`_validatedSelectedElement`,null),e([s()],g.prototype,`_preferredInteractionTool`,null),e([s()],g.prototype,`_editSourcePointsEnabled`,void 0),e([s()],g.prototype,`editSourcePoints`,null),e([s({constructOnly:!0})],g.prototype,`view`,void 0),e([s({constructOnly:!0})],g.prototype,`layer`,void 0),e([s()],g.prototype,`selectedElement`,void 0),e([s()],g.prototype,`enabled`,void 0),e([s()],g.prototype,`options`,void 0),e([s()],g.prototype,`updating`,null),g=e([c(`esri.views.2d.layers.support.MediaLayerInteraction`)],g);export{g as MediaLayerInteraction};
2
+ import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{destroyHandle as n,makeHandle as r,abortHandle as i}from"../../../../core/handleUtils.js";import{debounce as a}from"../../../../core/promiseUtils.js";import{initial as o}from"../../../../core/reactiveUtils.js";import{property as s,subclass as c}from"../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as l}from"../../../../core/support/UpdatingHandles.js";import{ViewEventPriorities as u}from"../../../input/InputManager.js";import{mediaKeys as d}from"../../../interactive/keybindings.js";const f={redo:`r`,undo:`z`},p=Symbol(),m=Symbol(),h=Symbol();let g=class extends t{constructor(e){super(e),this._tool=null,this._updatingHandles=new l,this._editSourcePointsEnabled=!1,this.enabled=!1,this._onPointerMove=a(async e=>{let t=await this._updatingHandles.addPromise(this._findElementAtScreenPoint(e));this.destroyed||(this.removeHandles(m),t&&t!==this.selectedElement&&this.addHandles(this.view.acquireCursor(`pointer`,`high`),m))})}initialize(){this.addHandles(n(this._updatingHandles)),this._updatingHandles.add(()=>this.enabled,e=>this._setEnabled(e),o),this._updatingHandles.add(()=>this._preferredInteractionTool,()=>this._preferredInteractionToolChanged()),this._updatingHandles.add(()=>this.editSourcePoints,()=>this._editSourcePointsChanged())}get _validatedSelectedElement(){let e=this.selectedElement;if(!e)return null;let{layer:{source:t}}=this;return t?`hasElement`in t?t.hasElement(e)?e:null:t===e?e:null:null}get _preferredInteractionTool(){return this.options?.tool??`transform`}get editSourcePoints(){return!!this.options?.reshapeOptions.editSourcePoints!==this._editSourcePointsEnabled}get updating(){return this._updatingHandles.updating}_setEnabled(e){if(this.removeHandles(p),!e)return;let{view:t}=this;this.addHandles([t.on(`immediate-click`,e=>this._onClick(e),u.TOOL),t.on(`pointer-move`,e=>this._onPointerMove(e).catch(()=>{}),u.TOOL),t.on(`key-down`,e=>{e.key===f.undo&&this._tool?.canUndo()&&(this._tool.undo(),e.stopPropagation()),e.key===f.redo&&this._tool?.canRedo()&&(this._tool.redo(),e.stopPropagation()),e.key===d.editSourcePoints.key&&(this._editSourcePointsEnabled=!0,this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints))}),t.on(`key-up`,e=>{e.key===d.editSourcePoints.key&&(this._editSourcePointsEnabled=!1,this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints))}),this._updatingHandles.add(()=>this._validatedSelectedElement,e=>this._selectedElementChanged(e),o),r(()=>{this.removeHandles(m),this._removeTool()})],p)}async _findElementAtScreenPoint(e){let t=(await this.view.hitTest(e,{include:[this.layer]})).results[0];return t?.type===`media`?t.element:null}_editSourcePointsChanged(){this._tool?.type===`reshape`&&(this._tool.editSourcePoints=this.editSourcePoints)}async _onClick(e){await this._updatingHandles.addPromise(e.defer(async()=>{let t=await this._findElementAtScreenPoint(e);this.destroyed||(t&&e.stopPropagation(),this.selectedElement=t,this.selectedElement&&this.removeHandles(m))}))}_preferredInteractionToolChanged(){let{_tool:e}=this;e&&this._preferredInteractionTool!==e.type&&this._updatingHandles.consumePromise(this._recreateTool())}async _recreateTool(){this.removeHandles(h),this._removeTool();let e=this._validatedSelectedElement;if(!e)return;let t=new AbortController;this.addHandles(i(t),h);let{TransformTool:n,ControlPointsTransformTool:a,MediaElementTransformTarget:o}=await import(`../../interactive/editingTools.js`);if(t.signal.aborted)return;let{view:s}=this;switch(this._preferredInteractionTool){case`transform`:this._tool=new n({target:new o(e),view:s});break;case`reshape`:this._tool=new a({mediaElement:e,view:s}),this._tool.editSourcePoints=this.editSourcePoints}this.addHandles(r(()=>{this._tool&&=(s.tools.remove(this._tool),null)}),this._tool),s.addAndActivateTool(this._tool)}_removeTool(){this._tool&&this.removeHandles(this._tool)}async _selectedElementChanged(e){e?.georeference?await this._updatingHandles.addPromise(this._recreateTool()):this._removeTool()}};e([s()],g.prototype,`_validatedSelectedElement`,null),e([s()],g.prototype,`_preferredInteractionTool`,null),e([s()],g.prototype,`_editSourcePointsEnabled`,void 0),e([s()],g.prototype,`editSourcePoints`,null),e([s({constructOnly:!0})],g.prototype,`view`,void 0),e([s({constructOnly:!0})],g.prototype,`layer`,void 0),e([s()],g.prototype,`selectedElement`,void 0),e([s()],g.prototype,`enabled`,void 0),e([s()],g.prototype,`options`,void 0),e([s()],g.prototype,`updating`,null),g=e([c(`esri.views.2d.layers.support.MediaLayerInteraction`)],g);export{g as MediaLayerInteraction};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{EventedMixin as t}from"../../core/Evented.js";import has from"../../core/has.js";import{when as n,watch as r,syncAndInitial as i}from"../../core/reactiveUtils.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import{subclass as o}from"../../core/accessorSupport/decorators/subclass.js";import{create as s,equals as c,intersection as l,union as u}from"../../geometry/support/aaBoundingRect.js";import d from"../GroundView.js";import{ElevationRange as f}from"./support/ElevationRange.js";import{toBoundingRect as p}from"./support/extentUtils.js";import{webMercatorWorldExtent as m,geographicWorldExtent as h}from"./terrain/TerrainConst.js";import{isIntegratedMeshLayerView as g}from"../support/layerViewUtils.js";const _=Symbol(`integrated-mesh-elevation-providers`);let v=class extends t(d){initialize(){super.initialize(),this.addHandles(n(()=>this._terrainSurface,e=>e.on(`elevation-change`,e=>this._elevationChange(e)))),r(()=>[this.view?.basemapView?.groundLayerViews.toArray(),this.layerViews.toArray()],()=>{this.removeHandles(_),this.addHandles(this._integratedMeshGroundLayerViews.map(({elevationProvider:e})=>e.on(`elevation-change`,e=>this._elevationChange(e))),_)},i),this.addHandles([r(()=>this.memoizedElevationQueryDependencies,()=>{this.emit(`elevation-query-change`)})])}get memoizedElevationQueryDependencies(){return(this.ground?.allLayers??[]).filter(e=>e.type===`elevation`||e.type===`integrated-mesh`||e.type===`integrated-mesh-3dtiles`&&e.replacesTerrain).map(e=>e.memoizedElevationQueryDependencies)}_elevationChange(e){this.emit(`elevation-change`,e)}get _integratedMeshGroundLayerViews(){return has(`enable-feature:im-as-ground`)?[...this.view?.basemapView?.groundLayerViews.filter(g)??[],...this.layerViews.filter(g)]:[...this.view?.basemapView?.groundLayerViews.filter(g).filter(e=>e.replacesTerrain)??[]]}get _terrainSurface(){return this.view.basemapTerrain}get _usingTerrain(){return!this.hasTerrainReplacement&&(this._terrainSurface?.enabled??!1)}get spatialReference(){return this._terrainSurface?.spatialReference}get userClippingExtent(){let{spatialReference:e}=this,{clippingArea:t}=this.view;if(t==null||e==null)return null;let n=s(),r=p(t,n,e)?n:null,i=this._get(`userClippingExtent`);return c(r,i)?i:r}isUpdating(){return this._usingTerrain&&this._terrainSurface.updating||super.isUpdating()}getElevation(e,t,n,r){let i=this._usingTerrain?this._terrainSurface?.getElevation(e,t,n,r):null;return this._integratedMeshGroundLayerViews.reduce((i,a)=>{let o=a.elevationProvider.getElevation(e,t,n,r);return o==null?i:Math.max(o,i??o)},i)}getElevations(e,t,n){let r=this.view.groundSpatialReference;if(r==null)for(let e=0;e<t;++e)n(e,null);else for(let i=0;i<t;++i){let t=i*3;n(i,this.getElevation(e[t],e[t+1],e[t+2],r))}}intersect(e,t,n,r){this._usingTerrain&&this._terrainSurface.intersect(e,t,n,r),this._integratedMeshGroundLayerViews.forEach(i=>i.intersect(e,t,n,r))}getSphereElevationRange(e,t,n){let r=this._usingTerrain?this._terrainSurface?.getSphereElevationRange?.(e,t):null;return this._integratedMeshGroundLayerViews.reduce((n,r)=>{let i=r.elevationProvider.getSphereElevationRange?.(e,t);return i==null||(n??=new f,n.expandElevationRange(i)),n},r?new f(r.minElevation,r.maxElevation):null)}getRootElevationRange(){let e=this._usingTerrain?this._terrainSurface?.getRootElevationRange?.():null;return this._integratedMeshGroundLayerViews.reduce((e,t)=>{let n=t.elevationProvider.getRootElevationRange?.();return n==null||(e??=new f,e.expandElevationRange(n)),e},e?new f(e.minElevation,e.maxElevation):null)}get elevationQueryCache(){let e=this.view?.basemapTerrain;return e?.enabled?e.elevationQueryCache:null}get elevationQueryReady(){for(let e of this.ground?.allLayers??[])if(e.type===`integrated-mesh-3dtiles`&&e.replacesTerrain&&e.loadStatus!==`failed`&&e.queryElevationCallback==null)return!1;return!0}get groundExtent(){let{fullGroundExtent:e}=this;return e?this.userClippingExtent?l(e,this.userClippingExtent,s()):this.fullGroundExtent:null}get fullGroundExtent(){let e=this._usingTerrain?this._terrainSurface.fullGroundExtent:null;if(this._integratedMeshGroundLayerViews.length===0)return e;let t=this.view.spatialReference;if(!t.isWebMercator&&!t.isWGS84)return e;let n=b(t);return e?u(e,n,s()):n}get visibleElevationRange(){let e=this._usingTerrain?this._terrainSurface.visibleElevationRange:null,t=this._integratedMeshGroundLayerViews.reduce((e,t)=>e==null?new f(t.visibleElevationRange.minElevation,t.visibleElevationRange.maxElevation):(e.expandElevationRange(t.visibleElevationRange),e),e?new f(e.minElevation,e.maxElevation):null);return t&&!t.isEmpty?t:y}get opaque(){return this._usingTerrain&&this._terrainSurface.opaque||this._integratedMeshGroundLayerViews.some(({opaque:e})=>e)}get invisible(){return(!this._usingTerrain||this._terrainSurface.invisible)&&this._integratedMeshGroundLayerViews.every(({invisible:e})=>e)}get baseOpacity(){return this.ground?.opacity??1}get wireframe(){return this._usingTerrain?this._terrainSurface?.wireframe??!1:!1}get freeze(){return this._usingTerrain&&(this._terrainSurface?.freeze??!1)||this._integratedMeshGroundLayerViews.some(e=>e.type===`integrated-mesh-3dtiles`&&e.freeze)}set freeze(e){this._usingTerrain&&(this._terrainSurface.freeze=e),this._integratedMeshGroundLayerViews.forEach(t=>{t.type===`integrated-mesh-3dtiles`&&(t.freeze=e)})}get suspended(){return(!this._usingTerrain||super.suspended)&&this._integratedMeshGroundLayerViews.length>0&&this._integratedMeshGroundLayerViews.every(({suspended:e})=>e)}get ready(){return!this._usingTerrain&&this._integratedMeshGroundLayerViews.length===0?!1:(!this._usingTerrain||this._terrainSurface.ready)&&this._integratedMeshGroundLayerViews.every(({ready:e})=>e)}updateOverlayParameters(){this._terrainSurface?.updateOverlayParameters()}requestRender(e){this.view.stage.renderView?.requestRender(e)}};e([a()],v.prototype,`memoizedElevationQueryDependencies`,null),e([a({readOnly:!0})],v.prototype,`_integratedMeshGroundLayerViews`,null),e([a({readOnly:!0})],v.prototype,`_terrainSurface`,null),e([a({readOnly:!0})],v.prototype,`_usingTerrain`,null),e([a({readOnly:!0})],v.prototype,`spatialReference`,null),e([a({readOnly:!0})],v.prototype,`userClippingExtent`,null),e([a({readOnly:!0})],v.prototype,`elevationQueryCache`,null),e([a()],v.prototype,`elevationQueryReady`,null),e([a({readOnly:!0})],v.prototype,`groundExtent`,null),e([a({readOnly:!0})],v.prototype,`fullGroundExtent`,null),e([a({readOnly:!0})],v.prototype,`visibleElevationRange`,null),e([a({readOnly:!0})],v.prototype,`opaque`,null),e([a({readOnly:!0})],v.prototype,`invisible`,null),e([a({readOnly:!0})],v.prototype,`baseOpacity`,null),e([a({readOnly:!0})],v.prototype,`wireframe`,null),e([a()],v.prototype,`freeze`,null),e([a({readOnly:!0})],v.prototype,`suspended`,null),e([a({readOnly:!0})],v.prototype,`ready`,null),v=e([o(`esri.views.3d.GroundView3D`)],v);const y=new f(0,0);function b(e){return e.isWebMercator?m:h}export{v as GroundView3D};
2
+ import{__decorate as e}from"tslib";import{EventedMixin as t}from"../../core/Evented.js";import{when as n,watch as r,syncAndInitial as i}from"../../core/reactiveUtils.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import{subclass as o}from"../../core/accessorSupport/decorators/subclass.js";import{create as s,equals as c,intersection as l,union as u}from"../../geometry/support/aaBoundingRect.js";import{IntegratedMeshSemantics as d}from"../../layers/support/IntegratedMeshSemantics.js";import f from"../GroundView.js";import{ElevationRange as p}from"./support/ElevationRange.js";import{toBoundingRect as m}from"./support/extentUtils.js";import{webMercatorWorldExtent as h,geographicWorldExtent as g}from"./terrain/TerrainConst.js";import{isIntegratedMeshLayerView as _}from"../support/layerViewUtils.js";const v=Symbol(`integrated-mesh-elevation-providers`);let y=class extends t(f){initialize(){super.initialize(),this.addHandles(n(()=>this._terrainSurface,e=>e.on(`elevation-change`,e=>this._elevationChange(e)))),r(()=>this._integratedMeshGroundLayerViews,()=>{this.removeHandles(v),this.addHandles(this._integratedMeshGroundLayerViews.map(({elevationProvider:e})=>e.on(`elevation-change`,e=>this._elevationChange(e))),v)},i),this.addHandles([r(()=>this.memoizedElevationQueryDependencies,()=>{this.emit(`elevation-query-change`)})])}get memoizedElevationQueryDependencies(){return(this.ground?.allLayers??[]).filter(e=>e.type===`elevation`||e.type===`integrated-mesh`||e.type===`integrated-mesh-3dtiles`&&e.replacesTerrain).map(e=>e.memoizedElevationQueryDependencies)}_elevationChange(e){this.emit(`elevation-change`,e)}get _integratedMeshGroundLayerViews(){return[...this.view?.basemapView?.groundLayerViews.filter(_).filter(e=>d.shouldRegisterGroundElevationProvider(!1,e.replacesTerrain))??[],...this.layerViews.filter(_).filter(e=>d.shouldRegisterGroundElevationProvider(!0,e.replacesTerrain))]}get _terrainSurface(){return this.view.basemapTerrain}get _usingTerrain(){return!this.hasTerrainReplacement&&(this._terrainSurface?.enabled??!1)}get spatialReference(){return this._terrainSurface?.spatialReference}get userClippingExtent(){let{spatialReference:e}=this,{clippingArea:t}=this.view;if(t==null||e==null)return null;let n=s(),r=m(t,n,e)?n:null,i=this._get(`userClippingExtent`);return c(r,i)?i:r}isUpdating(){return this._usingTerrain&&this._terrainSurface.updating||super.isUpdating()}getElevation(e,t,n,r){let i=this._usingTerrain?this._terrainSurface?.getElevation(e,t,n,r):null;return this._integratedMeshGroundLayerViews.reduce((i,a)=>{let o=a.elevationProvider.getElevation(e,t,n,r);return o==null?i:Math.max(o,i??o)},i)}getElevations(e,t,n){let r=this.view.groundSpatialReference;if(r==null)for(let e=0;e<t;++e)n(e,null);else for(let i=0;i<t;++i){let t=i*3;n(i,this.getElevation(e[t],e[t+1],e[t+2],r))}}intersect(e,t,n,r){this._usingTerrain&&this._terrainSurface.intersect(e,t,n,r),this._integratedMeshGroundLayerViews.forEach(i=>i.intersect(e,t,n,r))}getSphereElevationRange(e,t,n){let r=this._usingTerrain?this._terrainSurface?.getSphereElevationRange?.(e,t):null;return this._integratedMeshGroundLayerViews.reduce((n,r)=>{let i=r.elevationProvider.getSphereElevationRange?.(e,t);return i==null||(n??=new p,n.expandElevationRange(i)),n},r?new p(r.minElevation,r.maxElevation):null)}getRootElevationRange(){let e=this._usingTerrain?this._terrainSurface?.getRootElevationRange?.():null;return this._integratedMeshGroundLayerViews.reduce((e,t)=>{let n=t.elevationProvider.getRootElevationRange?.();return n==null||(e??=new p,e.expandElevationRange(n)),e},e?new p(e.minElevation,e.maxElevation):null)}get elevationQueryCache(){let e=this.view?.basemapTerrain;return e?.enabled?e.elevationQueryCache:null}get elevationQueryReady(){for(let e of this.ground?.allLayers??[])if(e.type===`integrated-mesh-3dtiles`&&e.replacesTerrain&&e.loadStatus!==`failed`&&e.queryElevationCallback==null)return!1;return!0}get groundExtent(){let{fullGroundExtent:e}=this;return e?this.userClippingExtent?l(e,this.userClippingExtent,s()):this.fullGroundExtent:null}get fullGroundExtent(){let e=this._usingTerrain?this._terrainSurface.fullGroundExtent:null;if(this._integratedMeshGroundLayerViews.length===0)return e;let t=this.view.spatialReference;if(!t.isWebMercator&&!t.isWGS84)return e;let n=x(t);return e?u(e,n,s()):n}get visibleElevationRange(){let e=this._usingTerrain?this._terrainSurface.visibleElevationRange:null,t=this._integratedMeshGroundLayerViews.reduce((e,t)=>e==null?new p(t.visibleElevationRange.minElevation,t.visibleElevationRange.maxElevation):(e.expandElevationRange(t.visibleElevationRange),e),e?new p(e.minElevation,e.maxElevation):null);return t&&!t.isEmpty?t:b}get opaque(){return this._usingTerrain&&this._terrainSurface.opaque||this._integratedMeshGroundLayerViews.some(({opaque:e})=>e)}get invisible(){return(!this._usingTerrain||this._terrainSurface.invisible)&&this._integratedMeshGroundLayerViews.every(({invisible:e})=>e)}get baseOpacity(){return this.ground?.opacity??1}get wireframe(){return this._usingTerrain?this._terrainSurface?.wireframe??!1:!1}get freeze(){return this._usingTerrain&&(this._terrainSurface?.freeze??!1)||this._integratedMeshGroundLayerViews.some(e=>e.type===`integrated-mesh-3dtiles`&&e.freeze)}set freeze(e){this._usingTerrain&&(this._terrainSurface.freeze=e),this._integratedMeshGroundLayerViews.forEach(t=>{t.type===`integrated-mesh-3dtiles`&&(t.freeze=e)})}get suspended(){return(!this._usingTerrain||super.suspended)&&this._integratedMeshGroundLayerViews.length>0&&this._integratedMeshGroundLayerViews.every(({suspended:e})=>e)}get ready(){return!this._usingTerrain&&this._integratedMeshGroundLayerViews.length===0?!1:(!this._usingTerrain||this._terrainSurface.ready)&&this._integratedMeshGroundLayerViews.every(({ready:e})=>e)}updateOverlayParameters(){this._terrainSurface?.updateOverlayParameters()}requestRender(e){this.view.stage.renderView?.requestRender(e)}};e([a()],y.prototype,`memoizedElevationQueryDependencies`,null),e([a({readOnly:!0})],y.prototype,`_integratedMeshGroundLayerViews`,null),e([a({readOnly:!0})],y.prototype,`_terrainSurface`,null),e([a({readOnly:!0})],y.prototype,`_usingTerrain`,null),e([a({readOnly:!0})],y.prototype,`spatialReference`,null),e([a({readOnly:!0})],y.prototype,`userClippingExtent`,null),e([a({readOnly:!0})],y.prototype,`elevationQueryCache`,null),e([a()],y.prototype,`elevationQueryReady`,null),e([a({readOnly:!0})],y.prototype,`groundExtent`,null),e([a({readOnly:!0})],y.prototype,`fullGroundExtent`,null),e([a({readOnly:!0})],y.prototype,`visibleElevationRange`,null),e([a({readOnly:!0})],y.prototype,`opaque`,null),e([a({readOnly:!0})],y.prototype,`invisible`,null),e([a({readOnly:!0})],y.prototype,`baseOpacity`,null),e([a({readOnly:!0})],y.prototype,`wireframe`,null),e([a()],y.prototype,`freeze`,null),e([a({readOnly:!0})],y.prototype,`suspended`,null),e([a({readOnly:!0})],y.prototype,`ready`,null),y=e([o(`esri.views.3d.GroundView3D`)],y);const b=new p(0,0);function x(e){return e.isWebMercator?h:g}export{y as GroundView3D};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{onLocaleChange as t,fetchMessageBundle as n}from"../../../../../intl.js";import r from"../../../../../core/Accessor.js";import{multiplyOpacityToUnitRGBA as i,getContrast as a,multiplyOpacity as o}from"../../../../../core/colorUtils.js";import"../../../../../core/has.js";import{nextHighestPowerOfTen as s,floatEqualUlp as c}from"../../../../../core/mathUtils.js";import{destroyMaybe as l}from"../../../../../core/maybe.js";import{toAdaptiveAreaUnit as u,adaptiveLengthUnitForArea as d}from"../../../../../core/quantity.js";import{formatDecimal as f}from"../../../../../core/quantityFormatUtils.js";import{watch as p,syncAndInitial as m,initial as h}from"../../../../../core/reactiveUtils.js";import{lengthUnitFromSpatialReference as g,convertUnit as _,adaptiveAreaUnit as v}from"../../../../../core/units.js";import{property as y,subclass as b}from"../../../../../core/accessorSupport/decorators.js";import{fromTranslation as x}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as S}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{subtract as C,squaredDistance as w}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as T}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{LabelVisualElement as E}from"../../../interactive/visualElements/LabelVisualElement.js";import{LineVisualElement as D}from"../../../interactive/visualElements/LineVisualElement.js";import{MeasurementAreaVisualElement as O}from"../../../interactive/visualElements/MeasurementAreaVisualElement.js";import{GeodesicSegment as k,EuclideanSegment as A}from"../../../interactive/visualElements/support/Segment.js";import{midpoint3d as j}from"../../../support/mathUtils.js";import{createStipplePatternSimple as M}from"../../../webgl-engine/materials/lineStippleUtils.js";let N=class extends r{get _parameters(){let{accentColor:e,textColor:t}=this.view.effectiveTheme,n=e.toUnitRGBA(),r=i(e,.5),s=i(a(e),.5),c=a(t,160);return{accentColor:n,transparentAccentColor:r,transparentContrastColor:s,textColor:t,textBackgroundColor:o(c,.6),textCalloutColor:o(c,.5),pathLineWidth:3,perimeterLineWidth:2,projectionLineWidth:2,projectionLineStippleSize:5,labelDistance:25}}get viewData(){return this._viewData}get visible(){return this.analysisViewData.visible}get _renderUnits(){let e=this.view.renderCoordsHelper.spatialReference;return g(e)??`meters`}get testData(){}constructor(e){super(e),this._path=null,this._perimeter=null,this._projectionLines=null,this._measurementArea=null,this._areaLabel=null,this._perimeterLabel=null,this._pathSegments=[],this._perimeterSegments=[],this._origin=T(),this._originTransform=S(),this.messages=null,this._viewData=new I,this.areaLabel=null,this.perimeterLabel=null,this.loadingMessages=!0}initialize(){let{analysisViewData:e,_parameters:n,view:r}=this;this._path=new D({view:r,attached:!0,width:n.pathLineWidth,polygonOffset:3,renderOccluded:4,transparentRenderOrder:1,isDecoration:!0}),this._perimeter=new D({view:r,attached:!0,width:n.perimeterLineWidth,polygonOffset:3,renderOccluded:4,transparentRenderOrder:2,isDecoration:!0}),this._projectionLines=new D({view:r,attached:!0,width:n.projectionLineWidth,stipplePattern:M(n.projectionLineStippleSize),polygonOffset:3,renderOccluded:4,transparentRenderOrder:3,isDecoration:!0}),this._measurementArea=new O({view:r,attached:!0,isDecoration:!0,renderOccluded:4,testsTransparentRenderOrder:5});let i={attached:!0,view:r,isDecoration:!0};this._areaLabel=new E({...i,fontSize:16,distance:0}),this._perimeterLabel=new E({...i,fontSize:12}),this.addHandles([p(()=>[e.mode,this.visible,e.unit,e.measurementData?.updateId,e.measurementData?.measurements!=null,L(e.measurementData?.measurements?.mode)],()=>this._update(),m),p(()=>e.measurementData?.measurements,e=>this._updateMeasurements(e)),p(()=>r.state?.camera,()=>this._updateLabels(),m),t(()=>this._updateMessageBundle()),p(()=>this._parameters,({accentColor:e,transparentAccentColor:t,transparentContrastColor:n,textColor:r,textBackgroundColor:i,textCalloutColor:a})=>{let{_path:o,_perimeter:s,_projectionLines:c,_measurementArea:l,_areaLabel:u,_perimeterLabel:d}=this;o.color=e,s.color=e,c.color=e,l.color1=t,l.color2=n,u.textColor=r,u.backgroundColor=i,u.calloutColor=a,d.textColor=r,d.backgroundColor=i,d.calloutColor=a},h)]),this._updateMessageBundle()}destroy(){this._measurementArea=l(this._measurementArea),this._path=l(this._path),this._perimeter=l(this._perimeter),this._areaLabel=l(this._areaLabel),this._perimeterLabel=l(this._perimeterLabel),this._projectionLines=l(this._projectionLines),this.set(`view`,null)}_update(){if(this.destroyed||!this.view.ready)return;let{analysisViewData:{measurementData:e},analysisViewData:t}=this;e!=null&&(this._updateViewData(e,t.path),this._updateOrigin(),this._updatePathSegments(),this._updatePerimeterSegments(),this._updateArea(),this._updateProjectionLines(),this._updateLabels())}_calculateCheckerSize(e){let t=R(e?.mode)?e?.geodesicArea:e?.area;if(t==null)return 1;let n=u(t,this.analysisViewData.unit),r=Math.sqrt(_(1,n.unit,`square-meters`));return _(s(Math.sqrt(n.value)/Math.sqrt(300))*r,`meters`,this._renderUnits)}_updateMeasurements(e){Object.assign(this.viewData,this._getMeasurementsViewData(e)),this._updateCheckerSize(),this._updateLabels()}_updateCheckerSize(){this._measurementArea.size=[this.viewData.checkerSize,this.viewData.checkerSize]}_updateViewData(e,t){let n=e.measurements,r=new I({validMeasurement:!!n,numVertices:e.numVertices,hasStagedVertex:e.hasStagedVertex,path:t,mode:n?.mode,vertexData:e.vertexData,perimeterLabelSegmentIndex:0,...this._getMeasurementsViewData(n)});this._viewData=r}_getMeasurementsViewData(e){let t=R(e?.mode),n=this._calculateCheckerSize(e);return{areaCentroid:t?e?.geodesicAreaCentroidRenderCoords:e?.areaCentroidRenderCoords,area:t?e?.geodesicArea:e?.area,perimeter:t?e?.geodesicPerimeter:e?.perimeter,checkerSize:n}}_updateOrigin(){let e=this.viewData;j(e.vertexData.positionsRender,this._origin),x(this._originTransform,this._origin),this._measurementArea.transform=this._originTransform,this._projectionLines.transform=this._originTransform}_createSegments(e,t){let n=this.viewData,r=this.view.renderCoordsHelper.spatialReference,i=L(n.mode),a=[],o=n.numVertices,s=n.validMeasurement?o:o-1;for(let l=0;l<s;++l){let s=n.vertexData[e][l],u=n.vertexData[e][(l+1)%o],d=!0;if(t){let e=n.vertexData.positionsRender[l],t=n.vertexData.positionsRender[(l+1)%o],r=!0;for(let n=0;n<3;++n)r&&=c(e[n],s[n])&&c(t[n],u[n]);r&&(d=!1)}let f=null;switch(i){case`geodesic`:f=new k(s,u,r,d);break;case`euclidean`:f=new A(s,u,d)}a.push(f)}return a}_updatePathSegments(){let{visible:e}=this,t=this._createSegments(`positionsRender`);this._path.setGeometryFromSegments(t,this._origin),this._path.visible=e,this._pathSegments=t}_updatePerimeterSegments(){let e=this.visible&&this.viewData.mode===`euclidean`&&!!this.viewData.path&&this.viewData.path.numVertices>2,t=this._createSegments(`positionsFittedRender`,!0);this._perimeter.setGeometryFromSegments(t,this._origin),this._perimeter.visible=e,this._perimeterSegments=t}_updateArea(){let e=this.viewData;switch(L(e.mode)){case`euclidean`:this._updateAreaEuclidean(e);break;case`geodesic`:this._updateAreaGeodesic()}}_updateAreaEuclidean(e){let t=this.visible;e.validMeasurement&&e.vertexData.triangleIndices?(this._measurementArea.geometry={uv:e.vertexData.triangleUvs,position:e.vertexData.trianglePositions,triangleIndices:e.vertexData.triangleIndices},this._updateCheckerSize(),this._measurementArea.visible=t):this._measurementArea.visible=!1}_updateAreaGeodesic(){this._measurementArea.visible=!1}_updateProjectionLines(){let e=this.viewData,t=this.visible,n=e.mode,r=e.numVertices;if(r>0&&e.validMeasurement&&n===`euclidean`){let n=[];for(let t=0;t<r;++t){let r=T();C(r,e.vertexData.positionsRender[t],this._origin);let i=T();C(i,e.vertexData.positionsFittedRender[t],this._origin),c(w(r,i),0)||n.push([r,i])}this._projectionLines.geometry=n,this._projectionLines.visible=t}else this._projectionLines.geometry=null,this._projectionLines.visible=!1}_updateLabels(){if(this.destroyed)return;let{viewData:e}=this,{area:t,path:n}=e;if(!n)return;let r=this.visible,i=this._areaLabel,a=this._perimeterLabel,o=e.validMeasurement;i.visible=!0,a.visible=!0;let s=!1,c=P(this.messages,t,this.analysisViewData.unit);if(c!=null&&e.areaCentroid&&r&&(i.geometry={type:`point`,point:e.areaCentroid},i.text=c,s=e.validMeasurement),this._set(`areaLabel`,c),r&&o){let t=R(e.mode),n=e.perimeter,r=F(this.messages,n,this.analysisViewData.unit);this._set(`perimeterLabel`,r),a.distance=this._parameters.labelDistance,a.anchor=`top`,a.text=r;let i=!0;for(let n=0;n<e.numVertices;++n){let r=(e.perimeterLabelSegmentIndex+n)%e.numVertices,o=t?this._pathSegments[r]:this._perimeterSegments[r];if(i=!0,a.geometry={type:`segment`,segment:o,sampleLocation:`center`},a.overlaps(this._areaLabel))i=!1;else break}a.visible=i}else a.visible=!1;i.visible=s}_updateMessageBundle(){this.loadingMessages=!0,n(`esri/core/t9n/Units`).then(e=>{this.messages=e,this.view&&this._update()}).finally(()=>{this.loadingMessages=!1})}};e([y()],N.prototype,`_parameters`,null),e([y()],N.prototype,`view`,void 0),e([y()],N.prototype,`messages`,void 0),e([y()],N.prototype,`analysis`,void 0),e([y()],N.prototype,`_viewData`,void 0),e([y()],N.prototype,`analysisViewData`,void 0),e([y({readOnly:!0})],N.prototype,`areaLabel`,void 0),e([y({readOnly:!0})],N.prototype,`perimeterLabel`,void 0),e([y()],N.prototype,`loadingMessages`,void 0),e([y()],N.prototype,`visible`,null),e([y()],N.prototype,`_renderUnits`,null),N=e([b(`esri.views.3d.analysis.AreaMeasurement.support.AreaMeasurementVisualization`)],N);function P(e,t,n){return e&&t&&f(e,t,v(t.value,t.unit,n))}function F(e,t,n){return e&&t&&f(e,t,d(t,n))}class I{constructor(e){this.validMeasurement=e?.validMeasurement??!1,this.numVertices=e?.numVertices??0,this.hasStagedVertex=e?.hasStagedVertex??!1,this.path=e?.path,this.vertexData=e?.vertexData??{positionsRender:[],positionsFittedWorldPlaneProjected:[],positionsFittedRender:[],triangleIndices:null,trianglePositions:[],triangleUvs:[]},this.mode=e?.mode,this.areaCentroid=e?.areaCentroid,this.perimeterLabelSegmentIndex=e?.perimeterLabelSegmentIndex??0,this.checkerSize=e?.checkerSize??1,this.area=e?.area,this.perimeter=e?.perimeter}}function L(e){switch(e){case`euclidean`:case void 0:case null:return`euclidean`;case`geodesic`:return`geodesic`}}function R(e){return L(e)===`geodesic`}export{N as AreaMeasurementVisualization,I as ViewData};
2
+ import{__decorate as e}from"tslib";import{onLocaleChange as t,fetchMessageBundle as n}from"../../../../../intl.js";import r from"../../../../../core/Accessor.js";import{multiplyOpacityToUnitRGBA as i,getContrast as a,multiplyOpacity as o}from"../../../../../core/colorUtils.js";import"../../../../../core/has.js";import{nextHighestPowerOfTen as s,floatEqualUlp as c}from"../../../../../core/mathUtils.js";import{destroyMaybe as l}from"../../../../../core/maybe.js";import{toAdaptiveAreaUnit as u}from"../../../../../core/quantity.js";import{formatDecimal as d}from"../../../../../core/quantityFormatUtils.js";import{watch as f,syncAndInitial as p,initial as m}from"../../../../../core/reactiveUtils.js";import{lengthUnitFromSpatialReference as h,convertUnit as g,adaptiveAreaUnit as _,adaptiveLengthUnit as v}from"../../../../../core/units.js";import{property as y,subclass as b}from"../../../../../core/accessorSupport/decorators.js";import{fromTranslation as x}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as S}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{subtract as C,squaredDistance as w}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as T}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{LabelVisualElement as E}from"../../../interactive/visualElements/LabelVisualElement.js";import{LineVisualElement as D}from"../../../interactive/visualElements/LineVisualElement.js";import{MeasurementAreaVisualElement as O}from"../../../interactive/visualElements/MeasurementAreaVisualElement.js";import{GeodesicSegment as k,EuclideanSegment as A}from"../../../interactive/visualElements/support/Segment.js";import{midpoint3d as j}from"../../../support/mathUtils.js";import{createStipplePatternSimple as M}from"../../../webgl-engine/materials/lineStippleUtils.js";let N=class extends r{get _parameters(){let{accentColor:e,textColor:t}=this.view.effectiveTheme,n=e.toUnitRGBA(),r=i(e,.5),s=i(a(e),.5),c=a(t,160);return{accentColor:n,transparentAccentColor:r,transparentContrastColor:s,textColor:t,textBackgroundColor:o(c,.6),textCalloutColor:o(c,.5),pathLineWidth:3,perimeterLineWidth:2,projectionLineWidth:2,projectionLineStippleSize:5,labelDistance:25}}get viewData(){return this._viewData}get visible(){return this.analysisViewData.visible}get _renderUnits(){let e=this.view.renderCoordsHelper.spatialReference;return h(e)??`meters`}get testData(){}constructor(e){super(e),this._path=null,this._perimeter=null,this._projectionLines=null,this._measurementArea=null,this._areaLabel=null,this._perimeterLabel=null,this._pathSegments=[],this._perimeterSegments=[],this._origin=T(),this._originTransform=S(),this.messages=null,this._viewData=new I,this.areaLabel=null,this.perimeterLabel=null,this.loadingMessages=!0}initialize(){let{analysisViewData:e,_parameters:n,view:r}=this;this._path=new D({view:r,attached:!0,width:n.pathLineWidth,polygonOffset:3,renderOccluded:4,transparentRenderOrder:1,isDecoration:!0}),this._perimeter=new D({view:r,attached:!0,width:n.perimeterLineWidth,polygonOffset:3,renderOccluded:4,transparentRenderOrder:2,isDecoration:!0}),this._projectionLines=new D({view:r,attached:!0,width:n.projectionLineWidth,stipplePattern:M(n.projectionLineStippleSize),polygonOffset:3,renderOccluded:4,transparentRenderOrder:3,isDecoration:!0}),this._measurementArea=new O({view:r,attached:!0,isDecoration:!0,renderOccluded:4,testsTransparentRenderOrder:5});let i={attached:!0,view:r,isDecoration:!0};this._areaLabel=new E({...i,fontSize:16,distance:0}),this._perimeterLabel=new E({...i,fontSize:12}),this.addHandles([f(()=>[e.mode,this.visible,e.unit,e.measurementData?.updateId,e.measurementData?.measurements!=null,L(e.measurementData?.measurements?.mode)],()=>this._update(),p),f(()=>e.measurementData?.measurements,e=>this._updateMeasurements(e)),f(()=>[r.state?.camera,e.perimeterUnit],()=>this._updateLabels(),p),t(()=>this._updateMessageBundle()),f(()=>this._parameters,({accentColor:e,transparentAccentColor:t,transparentContrastColor:n,textColor:r,textBackgroundColor:i,textCalloutColor:a})=>{let{_path:o,_perimeter:s,_projectionLines:c,_measurementArea:l,_areaLabel:u,_perimeterLabel:d}=this;o.color=e,s.color=e,c.color=e,l.color1=t,l.color2=n,u.textColor=r,u.backgroundColor=i,u.calloutColor=a,d.textColor=r,d.backgroundColor=i,d.calloutColor=a},m)]),this._updateMessageBundle()}destroy(){this._measurementArea=l(this._measurementArea),this._path=l(this._path),this._perimeter=l(this._perimeter),this._areaLabel=l(this._areaLabel),this._perimeterLabel=l(this._perimeterLabel),this._projectionLines=l(this._projectionLines),this.set(`view`,null)}_update(){if(this.destroyed||!this.view.ready)return;let{analysisViewData:{measurementData:e},analysisViewData:t}=this;e!=null&&(this._updateViewData(e,t.path),this._updateOrigin(),this._updatePathSegments(),this._updatePerimeterSegments(),this._updateArea(),this._updateProjectionLines(),this._updateLabels())}_calculateCheckerSize(e){let t=R(e?.mode)?e?.geodesicArea:e?.area;if(t==null)return 1;let n=u(t,this.analysisViewData.unit),r=Math.sqrt(g(1,n.unit,`square-meters`));return g(s(Math.sqrt(n.value)/Math.sqrt(300))*r,`meters`,this._renderUnits)}_updateMeasurements(e){Object.assign(this.viewData,this._getMeasurementsViewData(e)),this._updateCheckerSize(),this._updateLabels()}_updateCheckerSize(){this._measurementArea.size=[this.viewData.checkerSize,this.viewData.checkerSize]}_updateViewData(e,t){let n=e.measurements,r=new I({validMeasurement:!!n,numVertices:e.numVertices,hasStagedVertex:e.hasStagedVertex,path:t,mode:n?.mode,vertexData:e.vertexData,perimeterLabelSegmentIndex:0,...this._getMeasurementsViewData(n)});this._viewData=r}_getMeasurementsViewData(e){let t=R(e?.mode),n=this._calculateCheckerSize(e);return{areaCentroid:t?e?.geodesicAreaCentroidRenderCoords:e?.areaCentroidRenderCoords,area:t?e?.geodesicArea:e?.area,perimeter:t?e?.geodesicPerimeter:e?.perimeter,checkerSize:n}}_updateOrigin(){let e=this.viewData;j(e.vertexData.positionsRender,this._origin),x(this._originTransform,this._origin),this._measurementArea.transform=this._originTransform,this._projectionLines.transform=this._originTransform}_createSegments(e,t){let n=this.viewData,r=this.view.renderCoordsHelper.spatialReference,i=L(n.mode),a=[],o=n.numVertices,s=n.validMeasurement?o:o-1;for(let l=0;l<s;++l){let s=n.vertexData[e][l],u=n.vertexData[e][(l+1)%o],d=!0;if(t){let e=n.vertexData.positionsRender[l],t=n.vertexData.positionsRender[(l+1)%o],r=!0;for(let n=0;n<3;++n)r&&=c(e[n],s[n])&&c(t[n],u[n]);r&&(d=!1)}let f=null;switch(i){case`geodesic`:f=new k(s,u,r,d);break;case`euclidean`:f=new A(s,u,d)}a.push(f)}return a}_updatePathSegments(){let{visible:e}=this,t=this._createSegments(`positionsRender`);this._path.setGeometryFromSegments(t,this._origin),this._path.visible=e,this._pathSegments=t}_updatePerimeterSegments(){let e=this.visible&&this.viewData.mode===`euclidean`&&!!this.viewData.path&&this.viewData.path.numVertices>2,t=this._createSegments(`positionsFittedRender`,!0);this._perimeter.setGeometryFromSegments(t,this._origin),this._perimeter.visible=e,this._perimeterSegments=t}_updateArea(){let e=this.viewData;switch(L(e.mode)){case`euclidean`:this._updateAreaEuclidean(e);break;case`geodesic`:this._updateAreaGeodesic()}}_updateAreaEuclidean(e){let t=this.visible;e.validMeasurement&&e.vertexData.triangleIndices?(this._measurementArea.geometry={uv:e.vertexData.triangleUvs,position:e.vertexData.trianglePositions,triangleIndices:e.vertexData.triangleIndices},this._updateCheckerSize(),this._measurementArea.visible=t):this._measurementArea.visible=!1}_updateAreaGeodesic(){this._measurementArea.visible=!1}_updateProjectionLines(){let e=this.viewData,t=this.visible,n=e.mode,r=e.numVertices;if(r>0&&e.validMeasurement&&n===`euclidean`){let n=[];for(let t=0;t<r;++t){let r=T();C(r,e.vertexData.positionsRender[t],this._origin);let i=T();C(i,e.vertexData.positionsFittedRender[t],this._origin),c(w(r,i),0)||n.push([r,i])}this._projectionLines.geometry=n,this._projectionLines.visible=t}else this._projectionLines.geometry=null,this._projectionLines.visible=!1}_updateLabels(){if(this.destroyed)return;let{viewData:e}=this,{area:t,path:n}=e;if(!n)return;let r=this.visible,i=this._areaLabel,a=this._perimeterLabel,o=e.validMeasurement;i.visible=!0,a.visible=!0;let s=!1,c=P(this.messages,t,this.analysisViewData.unit);if(c!=null&&e.areaCentroid&&r&&(i.geometry={type:`point`,point:e.areaCentroid},i.text=c,s=e.validMeasurement),this._set(`areaLabel`,c),r&&o){let t=R(e.mode),n=e.perimeter,r=F(this.messages,n,this.analysisViewData.perimeterUnit);this._set(`perimeterLabel`,r),a.distance=this._parameters.labelDistance,a.anchor=`top`,a.text=r;let i=!0;for(let n=0;n<e.numVertices;++n){let r=(e.perimeterLabelSegmentIndex+n)%e.numVertices,o=t?this._pathSegments[r]:this._perimeterSegments[r];if(i=!0,a.geometry={type:`segment`,segment:o,sampleLocation:`center`},a.overlaps(this._areaLabel))i=!1;else break}a.visible=i}else a.visible=!1;i.visible=s}_updateMessageBundle(){this.loadingMessages=!0,n(`esri/core/t9n/Units`).then(e=>{this.messages=e,this.view&&this._update()}).finally(()=>{this.loadingMessages=!1})}};e([y()],N.prototype,`_parameters`,null),e([y()],N.prototype,`view`,void 0),e([y()],N.prototype,`messages`,void 0),e([y()],N.prototype,`analysis`,void 0),e([y()],N.prototype,`_viewData`,void 0),e([y()],N.prototype,`analysisViewData`,void 0),e([y({readOnly:!0})],N.prototype,`areaLabel`,void 0),e([y({readOnly:!0})],N.prototype,`perimeterLabel`,void 0),e([y()],N.prototype,`loadingMessages`,void 0),e([y()],N.prototype,`visible`,null),e([y()],N.prototype,`_renderUnits`,null),N=e([b(`esri.views.3d.analysis.AreaMeasurement.support.AreaMeasurementVisualization`)],N);function P(e,t,n){return e&&t&&d(e,t,_(t.value,t.unit,n))}function F(e,t,n){return e&&t&&d(e,t,v(t.value,t.unit,n))}class I{constructor(e){this.validMeasurement=e?.validMeasurement??!1,this.numVertices=e?.numVertices??0,this.hasStagedVertex=e?.hasStagedVertex??!1,this.path=e?.path,this.vertexData=e?.vertexData??{positionsRender:[],positionsFittedWorldPlaneProjected:[],positionsFittedRender:[],triangleIndices:null,trianglePositions:[],triangleUvs:[]},this.mode=e?.mode,this.areaCentroid=e?.areaCentroid,this.perimeterLabelSegmentIndex=e?.perimeterLabelSegmentIndex??0,this.checkerSize=e?.checkerSize??1,this.area=e?.area,this.perimeter=e?.perimeter}}function L(e){switch(e){case`euclidean`:case void 0:case null:return`euclidean`;case`geodesic`:return`geodesic`}}function R(e){return L(e)===`geodesic`}export{N as AreaMeasurementVisualization,I as ViewData};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import"../../../core/has.js";import{abortMaybe as t,destroyMaybe as n}from"../../../core/maybe.js";import{toAdaptiveLengthUnitForArea as r,toAdaptiveAreaUnit as i}from"../../../core/quantity.js";import{property as a,subclass as o}from"../../../core/accessorSupport/decorators.js";import{getDefaultUnitForView as s}from"../../../support/getDefaultUnitForView.js";import c from"./AnalysisView3D.js";import{AreaMeasurementController as l}from"./AreaMeasurement/support/AreaMeasurementController.js";import{AreaMeasurement3DPathHelper as u}from"./AreaMeasurement/support/AreaMeasurementPathHelper.js";import{AreaMeasurementVisualization as d}from"./AreaMeasurement/support/AreaMeasurementVisualization.js";import f from"../interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js";import{connectAnalysisViewToTool as p,removeAnalysisViewTool as m,startPlaceOperation as h}from"../../analysis/analysisViewUtils.js";let g=class extends c{constructor(e){super(e),this.type=`area-measurement-view-3d`,this.analysis=null,this.measurementData=null,this.lastDraggedVertex=null,this.stagedPoint=null,this.mode=0,this.tool=null,this.userOperation=null}initialize(){let{analysis:e,view:t}=this;this.path=new u({view:t,areaMeasurement:e}),this._analysisVisualization=new d({view:t,analysis:e,analysisViewData:this}),this._analysisController=new l({view:t,analysis:e,analysisViewData:this}),this.addHandles(p(this,f))}destroy(){m(this),this.userOperation=t(this.userOperation),this._analysisController=n(this._analysisController),this._analysisVisualization=n(this._analysisVisualization),this.path.destroy()}get visible(){return super.visible}set visible(e){super.visible=e}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return!!this._analysisVisualization?.loadingMessages||!!this._analysisController?.updating}get result(){let e=this.measurementData?.measurements;if(!e)return null;let{unit:t}=this,{mode:n}=e,a=n===`geodesic`,o=a?e.geodesicArea:e.area,s=a?e.geodesicPerimeter:e.perimeter;return{mode:n,area:o?i(o,t):null,perimeter:s?r(s,t):null}}get viewData(){return this._analysisVisualization.viewData}get areaLabel(){return this._analysisVisualization.areaLabel}get perimeterLabel(){return this._analysisVisualization.perimeterLabel}get validMeasurement(){return this.path.isValidPolygon}get unit(){return this.analysis.unit??this.view.options.displayUnits.area??s(this.view)}get testData(){}place(e){return h(this,{placementOptions:e})}};e([a()],g.prototype,`_analysisVisualization`,void 0),e([a()],g.prototype,`_analysisController`,void 0),e([a({readOnly:!0})],g.prototype,`type`,void 0),e([a({constructOnly:!0,nonNullable:!0})],g.prototype,`analysis`,void 0),e([a()],g.prototype,`updating`,null),e([a()],g.prototype,`result`,null),e([a()],g.prototype,`measurementData`,void 0),e([a()],g.prototype,`viewData`,null),e([a()],g.prototype,`areaLabel`,null),e([a()],g.prototype,`perimeterLabel`,null),e([a()],g.prototype,`validMeasurement`,null),e([a()],g.prototype,`path`,void 0),e([a()],g.prototype,`lastDraggedVertex`,void 0),e([a()],g.prototype,`stagedPoint`,void 0),e([a()],g.prototype,`mode`,void 0),e([a()],g.prototype,`unit`,null),e([a()],g.prototype,`tool`,void 0),e([a()],g.prototype,`userOperation`,void 0),g=e([o(`esri.views.3d.analysis.AreaMeasurementAnalysisView3D`)],g);const _=g;export{_ as default};
2
+ import{__decorate as e}from"tslib";import"../../../core/has.js";import{abortMaybe as t,destroyMaybe as n}from"../../../core/maybe.js";import{toAdaptiveLengthUnit as r,toAdaptiveAreaUnit as i}from"../../../core/quantity.js";import{property as a,subclass as o}from"../../../core/accessorSupport/decorators.js";import{getDefaultUnitForView as s}from"../../../support/getDefaultUnitForView.js";import c from"./AnalysisView3D.js";import{AreaMeasurementController as l}from"./AreaMeasurement/support/AreaMeasurementController.js";import{AreaMeasurement3DPathHelper as u}from"./AreaMeasurement/support/AreaMeasurementPathHelper.js";import{AreaMeasurementVisualization as d}from"./AreaMeasurement/support/AreaMeasurementVisualization.js";import f from"../interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js";import{connectAnalysisViewToTool as p,removeAnalysisViewTool as m,startPlaceOperation as h}from"../../analysis/analysisViewUtils.js";let g=class extends c{constructor(e){super(e),this.type=`area-measurement-view-3d`,this.analysis=null,this.measurementData=null,this.lastDraggedVertex=null,this.stagedPoint=null,this.mode=0,this.tool=null,this.userOperation=null}initialize(){let{analysis:e,view:t}=this;this.path=new u({view:t,areaMeasurement:e}),this._analysisVisualization=new d({view:t,analysis:e,analysisViewData:this}),this._analysisController=new l({view:t,analysis:e,analysisViewData:this}),this.addHandles(p(this,f))}destroy(){m(this),this.userOperation=t(this.userOperation),this._analysisController=n(this._analysisController),this._analysisVisualization=n(this._analysisVisualization),this.path.destroy()}get visible(){return super.visible}set visible(e){super.visible=e}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return!!this._analysisVisualization?.loadingMessages||!!this._analysisController?.updating}get result(){let e=this.measurementData?.measurements;if(!e)return null;let{perimeterUnit:t,unit:n}=this,{mode:a}=e,o=a===`geodesic`,s=o?e.geodesicArea:e.area,c=o?e.geodesicPerimeter:e.perimeter;return{mode:a,area:s?i(s,n):null,perimeter:c?r(c,t):null}}get viewData(){return this._analysisVisualization.viewData}get areaLabel(){return this._analysisVisualization.areaLabel}get perimeterLabel(){return this._analysisVisualization.perimeterLabel}get validMeasurement(){return this.path.isValidPolygon}get unit(){return this.analysis.unit??this.view.options.displayUnits.area??s(this.view)}get perimeterUnit(){return this.analysis.perimeterUnit??this.view.options.displayUnits.length??s(this.view)}get testData(){}place(e){return h(this,{placementOptions:e})}};e([a()],g.prototype,`_analysisVisualization`,void 0),e([a()],g.prototype,`_analysisController`,void 0),e([a({readOnly:!0})],g.prototype,`type`,void 0),e([a({constructOnly:!0,nonNullable:!0})],g.prototype,`analysis`,void 0),e([a()],g.prototype,`updating`,null),e([a()],g.prototype,`result`,null),e([a()],g.prototype,`measurementData`,void 0),e([a()],g.prototype,`viewData`,null),e([a()],g.prototype,`areaLabel`,null),e([a()],g.prototype,`perimeterLabel`,null),e([a()],g.prototype,`validMeasurement`,null),e([a()],g.prototype,`path`,void 0),e([a()],g.prototype,`lastDraggedVertex`,void 0),e([a()],g.prototype,`stagedPoint`,void 0),e([a()],g.prototype,`mode`,void 0),e([a()],g.prototype,`unit`,null),e([a()],g.prototype,`perimeterUnit`,null),e([a()],g.prototype,`tool`,void 0),e([a()],g.prototype,`userOperation`,void 0),g=e([o(`esri.views.3d.analysis.AreaMeasurementAnalysisView3D`)],g);const _=g;export{_ as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import has from"../../../../core/has.js";import{screenPointObjectToArray as n}from"../../../../core/screenUtils.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import{copy as a,normalize as o,scaleAndAdd as s,scale as c,add as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{fromValues as u,clone as d,create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../../../../geometry/Point.js";import{create as m,fromPoints as h,copy as g}from"../../../../geometry/support/ray.js";import{sv2d as _}from"../../../../geometry/support/vectorStacks.js";import{LineOfSightIntersectionResult as v,lineOfSightIntersectionContextGaussianSplat as y,lineOfSightIntersectionContextGround as b,LineOfSightIntersectionContextGraphic as x}from"./LineOfSightIntersectionResult.js";import{isGaussianSplatIntersectorResult as S}from"../../layers/i3s/Intersector.js";import{fromScreen as C}from"../../support/geometryUtils/ray.js";import{isTerrainIntersectorResult as w,isIntegratedMeshIntersectorResult as T}from"../../terrain/Intersector.js";import{Intersector as E}from"../../webgl-engine/lib/Intersector.js";import{toGraphic as D}from"../../webgl-engine/lib/intersectorUtilsConversions.js";import{terrainId as O}from"../../webgl-engine/lib/verticalOffsetUtils.js";import{isIntegratedMeshLayerView as k}from"../../../support/layerViewUtils.js";let A=class extends t{constructor(e){super(e)}initialize(){this.intersector=new E(this.view.state.viewingMode),this.intersector.options.hud=!1,this.intersector.options.store=0}get _integratedMeshLayerViews(){return this.view.allLayerViews.items.filter(k)}get _terrainIntersectionOptionsLayerUids(){return new Set([O,...this._integratedMeshLayerViews.filter(e=>!has(`enable-feature:im-as-ground`)||e.layer.isUsedAsGroundLayer).map(e=>e.uid)])}getScreenPointIntersection(e){let t=n(e,_.get()),r=C(this.view.state.camera,t,F);return this._getRayIntersection(r)}getMapPointIntersection(e){let t=u(e.x,e.y,e.z??0);if(!this.view.renderCoordsHelper.toRenderCoords(t,e.spatialReference,t))return null;let n=this.view.state.camera.eye;return h(n,t,F),this._getRayIntersection(F)}_getRayIntersection(e,t){let{view:n,intersector:r}=this;if(e==null||n.sceneIntersectionHelper==null)return null;r.options.store=0,n.sceneIntersectionHelper.intersectToolIntersectorRay(e,r,t);let i=r.results.min;if(i.target==null)return null;let a=f();if(!i.getIntersectionPoint(a)||t?.maxDistance!=null&&!i.withinDistance(t.maxDistance))return null;let o=n.renderCoordsHelper.fromRenderCoords(a,new p({spatialReference:n.spatialReference}));if(S(i))return new v({context:y,id:`${i.target.layerViewUid}`,mapPoint:o,renderPoint:a,normal:d(i.target.outwardDirection),ray:g(e)});let s=d(i.normal);if(w(i))return new v({context:b,id:i.target.lij.slice(),mapPoint:o,renderPoint:a,normal:s,ray:g(e)});if(T(n,i))return new v({context:b,id:`${i.target.layerViewUid}`,mapPoint:o,renderPoint:a,normal:s,ray:g(e)});let c=D(i,n);if(c!=null){let{layer:t}=c,n=c.getObjectId()??c.uid;return new v({context:new x(c),id:`${t?.uid}/${n}`,mapPoint:o,renderPoint:a,normal:s,ray:g(e)})}let l=`layerViewUid`in i.target?`${i.target.layerViewUid}`:``;return new v({context:null,id:l,mapPoint:o,renderPoint:a,normal:s,ray:g(e)})}updateFromGroundIntersection(e,t,n){let r=j,i=M,u=N;a(i,e),this.view.renderCoordsHelper.worldUpAtPosition(i,u),o(u,u);let f=this.view.groundView?.visibleElevationRange,p=f?Math.abs(f.maxElevation-f.minElevation):100,m=(t>=0?1:-1)*(p+Math.abs(t)),g=m*.001;s(r,i,u,m-g),s(i,i,u,g),h(r,i,F);let _=this._getRayIntersection(F,{include:this._terrainIntersectionOptionsLayerUids,maxDistance:m});if(_!=null){let e=P;return c(e,u,t),l(n,_.renderPoint,e),d(_.normal)}return a(n,e),null}};e([r()],A.prototype,`view`,void 0),e([r()],A.prototype,`intersector`,void 0),e([r()],A.prototype,`_integratedMeshLayerViews`,null),e([r()],A.prototype,`_terrainIntersectionOptionsLayerUids`,null),A=e([i(`esri.views.3d.analysis.LineOfSight.LineOfSightRayIntersector`)],A);const j=f(),M=f(),N=f(),P=f(),F=m();export{A as LineOfSightRayIntersector};
2
+ import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{screenPointObjectToArray as n}from"../../../../core/screenUtils.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import{copy as a,normalize as o,scaleAndAdd as s,scale as c,add as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{fromValues as u,clone as d,create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../../../../geometry/Point.js";import{create as m,fromPoints as h,copy as g}from"../../../../geometry/support/ray.js";import{sv2d as _}from"../../../../geometry/support/vectorStacks.js";import{IntegratedMeshSemantics as v}from"../../../../layers/support/IntegratedMeshSemantics.js";import{LineOfSightIntersectionResult as y,lineOfSightIntersectionContextGaussianSplat as b,lineOfSightIntersectionContextGround as x,LineOfSightIntersectionContextGraphic as S}from"./LineOfSightIntersectionResult.js";import{isGaussianSplatIntersectorResult as C}from"../../layers/i3s/Intersector.js";import{fromScreen as w}from"../../support/geometryUtils/ray.js";import{isTerrainIntersectorResult as T,isIntegratedMeshIntersectorResult as E}from"../../terrain/Intersector.js";import{Intersector as D}from"../../webgl-engine/lib/Intersector.js";import{toGraphic as O}from"../../webgl-engine/lib/intersectorUtilsConversions.js";import{terrainId as k}from"../../webgl-engine/lib/verticalOffsetUtils.js";import{isIntegratedMeshLayerView as A}from"../../../support/layerViewUtils.js";let j=class extends t{constructor(e){super(e)}initialize(){this.intersector=new D(this.view.state.viewingMode),this.intersector.options.hud=!1,this.intersector.options.store=0}get _integratedMeshLayerViews(){return this.view.allLayerViews.items.filter(A)}get _terrainIntersectionOptionsLayerUids(){return new Set([k,...this._integratedMeshLayerViews.filter(e=>v.shouldIntersectAsGround(e.layer)).map(e=>e.uid)])}getScreenPointIntersection(e){let t=n(e,_.get()),r=w(this.view.state.camera,t,I);return this._getRayIntersection(r)}getMapPointIntersection(e){let t=u(e.x,e.y,e.z??0);if(!this.view.renderCoordsHelper.toRenderCoords(t,e.spatialReference,t))return null;let n=this.view.state.camera.eye;return h(n,t,I),this._getRayIntersection(I)}_getRayIntersection(e,t){let{view:n,intersector:r}=this;if(e==null||n.sceneIntersectionHelper==null)return null;r.options.store=0,n.sceneIntersectionHelper.intersectToolIntersectorRay(e,r,t);let i=r.results.min;if(i.target==null)return null;let a=f();if(!i.getIntersectionPoint(a)||t?.maxDistance!=null&&!i.withinDistance(t.maxDistance))return null;let o=n.renderCoordsHelper.fromRenderCoords(a,new p({spatialReference:n.spatialReference}));if(C(i))return new y({context:b,id:`${i.target.layerViewUid}`,mapPoint:o,renderPoint:a,normal:d(i.target.outwardDirection),ray:g(e)});let s=d(i.normal);if(T(i))return new y({context:x,id:i.target.lij.slice(),mapPoint:o,renderPoint:a,normal:s,ray:g(e)});if(E(n,i))return new y({context:x,id:`${i.target.layerViewUid}`,mapPoint:o,renderPoint:a,normal:s,ray:g(e)});let c=O(i,n);if(c!=null){let{layer:t}=c,n=c.getObjectId()??c.uid;return new y({context:new S(c),id:`${t?.uid}/${n}`,mapPoint:o,renderPoint:a,normal:s,ray:g(e)})}let l=`layerViewUid`in i.target?`${i.target.layerViewUid}`:``;return new y({context:null,id:l,mapPoint:o,renderPoint:a,normal:s,ray:g(e)})}updateFromGroundIntersection(e,t,n){let r=M,i=N,u=P;a(i,e),this.view.renderCoordsHelper.worldUpAtPosition(i,u),o(u,u);let f=this.view.groundView?.visibleElevationRange,p=f?Math.abs(f.maxElevation-f.minElevation):100,m=(t>=0?1:-1)*(p+Math.abs(t)),g=m*.001;s(r,i,u,m-g),s(i,i,u,g),h(r,i,I);let _=this._getRayIntersection(I,{include:this._terrainIntersectionOptionsLayerUids,maxDistance:m});if(_!=null){let e=F;return c(e,u,t),l(n,_.renderPoint,e),d(_.normal)}return a(n,e),null}};e([r()],j.prototype,`view`,void 0),e([r()],j.prototype,`intersector`,void 0),e([r()],j.prototype,`_integratedMeshLayerViews`,null),e([r()],j.prototype,`_terrainIntersectionOptionsLayerUids`,null),j=e([i(`esri.views.3d.analysis.LineOfSight.LineOfSightRayIntersector`)],j);const M=f(),N=f(),P=f(),F=f(),I=m();export{j as LineOfSightRayIntersector};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{isSome as t,equals as n}from"../../../core/arrayUtils.js";import{createTask as r}from"../../../core/asyncUtils.js";import i from"../../../core/Error.js";import"../../../core/has.js";import a from"../../../core/Logger.js";import{abortMaybe as o,destroyMaybe as s}from"../../../core/maybe.js";import{after as c,throwIfAborted as l,isPromiseLike as u}from"../../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../../core/screenUtils.js";import{convertTime as h}from"../../../core/timeUtils.js";import{property as g,subclass as _}from"../../../core/accessorSupport/decorators.js";import{create as v}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as y}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{UpdatingHandles as b}from"../../../core/support/UpdatingHandles.js";import{projectAsync as x}from"../../../geometry/projectionUtils.js";import{containsExecute as S}from"../../../geometry/operators/containsOperator.js";import{equals as C}from"../../../geometry/support/boundedPlane.js";import{polygonToVolume as w}from"../focusAreaUtils.js";import T from"./AnalysisView3D.js";import{registerAnalysisView as E,hideOtherAnalysisViews as D}from"./ShadowCast/analysisViewRegister.js";import O from"./ShadowCast/ShadowCastError.js";import{ShadowCastTooltip as k}from"./ShadowCast/ShadowCastTooltip.js";import{getSunlightIntervals as A,getDateTimeUTC as j}from"./ShadowCast/sunlightUtils.js";import{ElevationContext as M}from"../layers/graphics/ElevationContext.js";import{longitudeToTimezone as N}from"../support/earthUtils.js";import{computeDirectionsOverTime as P}from"../support/sunUtils.js";import{maxColorRampSize as F}from"../webgl-engine/shaders/colorRampParameters.js";import{breadthFirstBinaryPartitioning as I}from"../../../widgets/support/traversalUtils.js";let L=class extends T{constructor(e){super(e),this.type=`shadow-cast-view-3d`,this.analysis=null,this._updatingHandles=new b,this._visibleOverride=null,this._stopPreviewingTask=null,this._updatedRecently=!1,this._tooltip=null,this._previousVolume=null}initialize(){this.addHandles([E(this.view,this),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{o(this._stopPreviewingTask),this._updatedRecently=!0,this._stopPreviewingTask=r(async e=>{await c(W,e),l(e),this._updatedRecently=!1})},{sync:!0,initial:!0,equals:(e,t)=>H(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t},n)=>{t&&D(this.view,this),(t||n?.visible)&&e?.setParameters({shadowCast:{enabled:t}})},f),d(()=>({renderer:this._renderer,parameters:this._visualizationParameters,visible:this.visible}),({renderer:e,parameters:t,visible:n})=>{z(e,n,t)},f),d(()=>({renderer:this._renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext,visible:this.visible}),({renderer:e,lightDirections:t,lightDirectionsContext:n,visible:r})=>{z(e,r,{lightDirections:t,lightDirectionsContext:n})},f),d(()=>({renderer:this._renderer,previewing:this._previewing,visible:this.visible}),({renderer:e,previewing:t,visible:n})=>{z(e,n,{previewing:t})},{sync:!0,initial:!0,equals:()=>!1}),d(()=>({analysisVolume:this._analysisVolume,renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t,analysisVolume:n})=>{z(e,t,{analysisVolume:n})},f)]),this.interactive=!0,this._tooltip=new k({getDuration:(e,t)=>this._getDurationAtScreen(e,t),getMode:()=>this.analysis.mode,getShowsSeparateZeroBucketInHourlyMode:()=>this._showsSeparateZeroBucketInHourlyMode,getTotalDuration:()=>this._totalDuration,getTotalDurationMode:()=>this.analysis.totalDurationOptions.mode,getVisualizeSunlight:()=>this.analysis.visualizeSunlight,isVisible:()=>this.interactive&&this.visible,view:this.view})}destroy(){this.visible&&z(this._renderer,!0,{enabled:!1}),this._tooltip=s(this._tooltip),this._stopPreviewingTask=o(this._stopPreviewingTask),this._updatingHandles=s(this._updatingHandles)}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return this._previewing||this._stopPreviewingTask!=null&&!this._stopPreviewingTask.finished||this._tooltip?.updating===!0||this._updatingHandles.updating}get visible(){let e=(this.parent?.visible&&!this.parent.suspended)??!0;return(this._visibleOverride??e)&&this.error==null}set visible(e){this._visibleOverride=e}get error(){let e=this._sunlightIntervals;switch(e.state){case`ready`:break;case`unavailable`:return new O(e.state,`The camera's geographic reference position is not available.`);default:return new O(e.state,`The selected date, time zone, or daylight calculation could not be resolved.`)}let{startTimeOfDay:t,endTimeOfDay:n}=this.analysis;if(!Number.isFinite(t)||!Number.isFinite(n)||t<0||n>h(1,`days`,`milliseconds`)||n<t)return new O(`invalid`,`The selected time range must be ordered and within the calendar day.`);let r=this._startDateTimeUTC.getTime(),i=this._endDateTimeUTC.getTime();if(!Number.isFinite(r)||!Number.isFinite(i)||i<r)return new O(`invalid`,`The selected time range could not be resolved to ordered UTC instants.`);let{intervals:a}=e;return a.length?a.some(e=>r>=e.start&&i<=e.end)?null:a.length>1?new O(`split-daylight`,`Daylight crosses midnight in the selected time zone and the selected time range includes nighttime.`):new O(`outside-daylight`,`The selected time range includes nighttime at the current camera location.`):new O(`no-daylight`,`No daylight is expected at the current camera location on the selected date.`)}get _sunlightIntervals(){let{date:e}=this.analysis,t=this._timeZone;return A({date:e,timeZone:t,utcOffset:t==null?this._effectiveUtcOffset:0,position:this._referencePosition})}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews.some(e=>e.updating),s=!i?.suspended&&!!i?.updating;return a||o||s}get _timeZone(){return this.analysis.timeZoneMode===`region`?this.view.timeZone:null}get _effectiveUtcOffset(){return this.analysis.utcOffset??this._utcOffsetAuto}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:N(e[0],!1)}get _startDateTimeUTC(){return this._getDateTimeUTC(this.analysis.startTimeOfDay)}get _endDateTimeUTC(){return this._getDateTimeUTC(this.analysis.endTimeOfDay)}_getDateTimeUTC(e){let{date:t}=this.analysis,n=this._timeZone,r=j(t,e,n,n==null?this._effectiveUtcOffset:0);if(r==null)throw RangeError(`Invalid shadow cast date or time zone`);return r}get _referencePosition(){return this.view?.environmentView?.referencePositionGeographic}get _totalDurationInterval(){return this._totalDuration>0?Math.floor(this._totalDuration/(G-1)):G}get _interval(){let e=this._totalDurationInterval;switch(this.analysis.mode){case`min-duration`:return this._totalDuration>0?e:0;case`total-duration`:return e;case`discrete`:return this.analysis.discreteOptions.interval||e}}get _intervalContext(){let{mode:e,minDurationOptions:t}=this.analysis;return e===`min-duration`&&t.contextEnabled?t.contextOptions.interval||this._totalDurationInterval:-1}get _totalDurationSampleCount(){return this._lightDirections.length}get _totalDuration(){return this._endDateTimeUTC.getTime()-this._startDateTimeUTC.getTime()}get _lightDirections(){return this.error==null?this._calculateLightDirections(this._interval):[]}get _lightDirectionsContext(){return this.error==null?this._calculateLightDirections(this._intervalContext):[]}_calculateLightDirections(e){let{view:t}=this;if(e<=0)return[];let n=t.viewingMode===`global`?K:this._referencePosition;if(n==null)return[];let r=P(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,G),i=r.length;q.length=0;let a=I(0,i,q),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _analysisVolume(){let{geometry:e}=this.analysis;if(e==null)return this._previousVolume=null,null;try{let t=w(e,this.view,J);return t==null?(this._previousVolume=null,null):u(t)?(this._updatingHandles.consumePromise(t),this._previousVolume):(this._previousVolume=t,t)}catch(t){return a.getLogger(this).error(new i(`shadowcastanalysisview3d:projection-failed`,`Failed to project analysis area geometry to view spatial reference`,{geometry:e,error:t})),null}}get _visualizationParameters(){if(!this.visible)return null;switch(this.analysis.mode){case`min-duration`:return this._minDurationVisualizationParameters;case`total-duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _minDurationVisualizationParameters(){let{color:e,minDuration:t}=this.analysis.minDurationOptions,n=this._totalDuration;return{rendersSunlight:this.analysis.visualizeSunlight,visualization:2,thresholdColor:e.toUnitRGBA(),threshold:n>0?t/this._totalDuration:0,...this._minDurationContextVisualizationParameters}}get _minDurationContextVisualizationParameters(){let{minDurationOptions:e,visualizeSunlight:t}=this.analysis;if(!e.contextEnabled||t)return{};let{color:n,colorStops:r}=e.contextOptions,i=1/this._lightDirectionsContext.length;return{visualization:3,gradientColorRamp:this._getEffectiveShadowCastColorRamp(n,r,i)}}get _durationVisualizationParameters(){let{color:e,colorStops:t,mode:n}=this.analysis.totalDurationOptions,r=this._totalDuration,i=r>0&&n===`hourly`?U/r:0,a=this._getEffectiveShadowCastColorRamp(e,t,1/r);return i===0?{...this._discreteVisualizationParameters,gradientColorRamp:a}:{rendersSunlight:this.analysis.visualizeSunlight,bandedGradientColorRamp:a,visualization:1,bandSize:i}}get _showsSeparateZeroBucketInHourlyMode(){let{colorStops:e}=this.analysis.totalDurationOptions;return e==null||e.length===0||e.reduce((e,t)=>Math.min(e,t.value),1/0)<=0}get _discreteVisualizationParameters(){let{color:e,colorStops:t}=this.analysis.discreteOptions,n=1/this._lightDirections.length;return{rendersSunlight:this.analysis.visualizeSunlight,gradientColorRamp:this._getEffectiveShadowCastColorRamp(e,t,n),visualization:0}}get _shadowLayerViews(){return this.view.allLayerViews.items.filter(V)}get _previewDependencies(){if(this.error!=null)return null;let{view:e}=this,n=e.slice.plane,r=this._shadowLayerViews,i=r.map(e=>e.layer).filter(t),a=r.map(e=>e.suspended),o=i.map(e=>e.visible),s=i.map(e=>e.opacity),c=!!e.graphicsView?.suspended,l=i.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),u=r.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:n,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:a,graphicsViewSuspended:c,layerVisibilities:o,layerOpacities:s,filters:u,definitionExpressions:l}}get _renderer(){return this.view?.stage?.renderer}get testData(){}async getDurationAtScreen(e){return this._getDurationAtScreen(e)}async _getDurationAtScreen(e,t){if(!await this._isScreenPointInAnalysisArea(e,t))return-1;let{_renderer:n,_totalDurationSampleCount:r}=this;if(n==null||r===0)return 0;let i=this.view.state.camera.screenToRender(p(e.x,e.y),m()),a=n.readAccumulatedShadow(i);return(this.analysis.visualizeSunlight?1-a:a)*this._totalDuration}async _isScreenPointInAnalysisArea(e,t){let{geometry:n}=this.analysis;if(!n)return!0;let r=await this.view.hitTest(e);l(t);let i=r.results.find(e=>e.mapPoint)?.mapPoint??r?.ground?.mapPoint;if(!i)return!1;let a=await x(i,n.spatialReference,{signal:t});return l(t),a!=null&&S(n,a)}_getEffectiveShadowCastColorRamp(e,t,n){if(t!=null){t.length>F&&a.getLogger(this).warnOnce(`ShadowCastAnalysis supports at most 8 color stops`);let e=t.map(e=>[e.value*n,e.color.toUnitRGBA()]);return e.sort(([e],[t])=>e-t),e}return B(e)}};e([g({readOnly:!0,type:[`shadow-cast-view-3d`]})],L.prototype,`type`,void 0),e([g({constructOnly:!0,nonNullable:!0})],L.prototype,`analysis`,void 0),e([g({readOnly:!0})],L.prototype,`updating`,null),e([g()],L.prototype,`visible`,null),e([g()],L.prototype,`error`,null),e([g()],L.prototype,`_visibleOverride`,void 0),e([g()],L.prototype,`_sunlightIntervals`,null),e([g()],L.prototype,`_stopPreviewingTask`,void 0),e([g()],L.prototype,`_updatedRecently`,void 0),e([g()],L.prototype,`_tooltip`,void 0),e([g()],L.prototype,`_sceneUpdating`,null),e([g()],L.prototype,`_timeZone`,null),e([g()],L.prototype,`_effectiveUtcOffset`,null),e([g()],L.prototype,`_utcOffsetAuto`,null),e([g()],L.prototype,`_startDateTimeUTC`,null),e([g()],L.prototype,`_endDateTimeUTC`,null),e([g()],L.prototype,`_referencePosition`,null),e([g()],L.prototype,`_interval`,null),e([g()],L.prototype,`_intervalContext`,null),e([g()],L.prototype,`_totalDurationSampleCount`,null),e([g()],L.prototype,`_totalDuration`,null),e([g()],L.prototype,`_lightDirections`,null),e([g()],L.prototype,`_lightDirectionsContext`,null),e([g()],L.prototype,`_analysisVolume`,null),e([g()],L.prototype,`_visualizationParameters`,null),e([g()],L.prototype,`_minDurationVisualizationParameters`,null),e([g()],L.prototype,`_minDurationContextVisualizationParameters`,null),e([g()],L.prototype,`_durationVisualizationParameters`,null),e([g()],L.prototype,`_showsSeparateZeroBucketInHourlyMode`,null),e([g()],L.prototype,`_discreteVisualizationParameters`,null),e([g()],L.prototype,`_shadowLayerViews`,null),e([g()],L.prototype,`_previewDependencies`,null),e([g()],L.prototype,`_renderer`,null),L=e([_(`esri.views.3d.analysis.ShadowCastAnalysisView3D`)],L);const R=L;function z(e,t,n){t&&n!=null&&e?.setParameters({shadowCast:n})}function B(e){let t=e.toUnitRGBA();return[[0,y(t[0],t[1],t[2],0)],[1,t]]}function V(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`gaussian-splat-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function H(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let r=C(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=n(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=n(e.layerVisibilities,t.layerVisibilities),s=n(e.layerOpacities,t.layerOpacities),c=n(e.filters,t.filters),l=n(e.definitionExpressions,t.definitionExpressions);return r&&i&&a&&o&&s&&c&&l}const U=h(1,`hours`,`milliseconds`),W=500,G=255,K=v(),q=[],J=new M;export{R as default};
2
+ import{__decorate as e}from"tslib";import{isSome as t,equals as n}from"../../../core/arrayUtils.js";import{createTask as r}from"../../../core/asyncUtils.js";import i from"../../../core/Error.js";import"../../../core/has.js";import a from"../../../core/Logger.js";import{abortMaybe as o,destroyMaybe as s}from"../../../core/maybe.js";import{after as c,throwIfAborted as l,isPromiseLike as u}from"../../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../../core/screenUtils.js";import{convertTime as h,getDateTimeUTC as g}from"../../../core/timeUtils.js";import{property as _,subclass as v}from"../../../core/accessorSupport/decorators.js";import{create as y}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{fromValues as b}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{UpdatingHandles as x}from"../../../core/support/UpdatingHandles.js";import{projectAsync as S}from"../../../geometry/projectionUtils.js";import{containsExecute as C}from"../../../geometry/operators/containsOperator.js";import{equals as w}from"../../../geometry/support/boundedPlane.js";import{getSunlightIntervals as T}from"../../../time/daylightUtils.js";import{polygonToVolume as E}from"../focusAreaUtils.js";import D from"./AnalysisView3D.js";import{registerAnalysisView as O,hideOtherAnalysisViews as k}from"./ShadowCast/analysisViewRegister.js";import A from"./ShadowCast/ShadowCastError.js";import{ShadowCastTooltip as j}from"./ShadowCast/ShadowCastTooltip.js";import{ElevationContext as M}from"../layers/graphics/ElevationContext.js";import{longitudeToTimezone as N}from"../support/earthUtils.js";import{computeDirectionsOverTime as P}from"../support/sunUtils.js";import{maxColorRampSize as F}from"../webgl-engine/shaders/colorRampParameters.js";import{breadthFirstBinaryPartitioning as I}from"../../../widgets/support/traversalUtils.js";let L=class extends D{constructor(e){super(e),this.type=`shadow-cast-view-3d`,this.analysis=null,this._updatingHandles=new x,this._visibleOverride=null,this._stopPreviewingTask=null,this._updatedRecently=!1,this._tooltip=null,this._previousVolume=null}initialize(){this.addHandles([O(this.view,this),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{o(this._stopPreviewingTask),this._updatedRecently=!0,this._stopPreviewingTask=r(async e=>{await c(W,e),l(e),this._updatedRecently=!1})},{sync:!0,initial:!0,equals:(e,t)=>H(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t},n)=>{t&&k(this.view,this),(t||n?.visible)&&e?.setParameters({shadowCast:{enabled:t}})},f),d(()=>({renderer:this._renderer,parameters:this._visualizationParameters,visible:this.visible}),({renderer:e,parameters:t,visible:n})=>{z(e,n,t)},f),d(()=>({renderer:this._renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext,visible:this.visible}),({renderer:e,lightDirections:t,lightDirectionsContext:n,visible:r})=>{z(e,r,{lightDirections:t,lightDirectionsContext:n})},f),d(()=>({renderer:this._renderer,previewing:this._previewing,visible:this.visible}),({renderer:e,previewing:t,visible:n})=>{z(e,n,{previewing:t})},{sync:!0,initial:!0,equals:()=>!1}),d(()=>({analysisVolume:this._analysisVolume,renderer:this._renderer,visible:this.visible}),({renderer:e,visible:t,analysisVolume:n})=>{z(e,t,{analysisVolume:n})},f)]),this.interactive=!0,this._tooltip=new j({getDuration:(e,t)=>this._getDurationAtScreen(e,t),getMode:()=>this.analysis.mode,getShowsSeparateZeroBucketInHourlyMode:()=>this._showsSeparateZeroBucketInHourlyMode,getTotalDuration:()=>this._totalDuration,getTotalDurationMode:()=>this.analysis.totalDurationOptions.mode,getVisualizeSunlight:()=>this.analysis.visualizeSunlight,isVisible:()=>this.interactive&&this.visible,view:this.view})}destroy(){this.visible&&z(this._renderer,!0,{enabled:!1}),this._tooltip=s(this._tooltip),this._stopPreviewingTask=o(this._stopPreviewingTask),this._updatingHandles=s(this._updatingHandles)}get interactive(){return super.interactive}set interactive(e){super.interactive=e}get updating(){return this._previewing||this._stopPreviewingTask!=null&&!this._stopPreviewingTask.finished||this._tooltip?.updating===!0||this._updatingHandles.updating}get visible(){let e=(this.parent?.visible&&!this.parent.suspended)??!0;return(this._visibleOverride??e)&&this.error==null}set visible(e){this._visibleOverride=e}get error(){let e=this._sunlightIntervals;switch(e.state){case`ready`:break;case`unavailable`:return new A(e.state,`The camera's geographic reference position is not available.`);default:return new A(e.state,`The selected date, time zone, or daylight calculation could not be resolved.`)}let{startTimeOfDay:t,endTimeOfDay:n}=this.analysis;if(!Number.isFinite(t)||!Number.isFinite(n)||t<0||n>h(1,`days`,`milliseconds`)||n<t)return new A(`invalid`,`The selected time range must be ordered and within the calendar day.`);let r=this._startDateTimeUTC.getTime(),i=this._endDateTimeUTC.getTime();if(!Number.isFinite(r)||!Number.isFinite(i)||i<r)return new A(`invalid`,`The selected time range could not be resolved to ordered UTC instants.`);let{intervals:a}=e;return a.length?a.some(e=>r>=e.start&&i<=e.end)?null:a.length>1?new A(`split-daylight`,`Daylight crosses midnight in the selected time zone and the selected time range includes nighttime.`):new A(`outside-daylight`,`The selected time range includes nighttime at the current camera location.`):new A(`no-daylight`,`No daylight is expected at the current camera location on the selected date.`)}get _sunlightIntervals(){let{date:e}=this.analysis,t=this._timeZone;return T({date:e,timeZone:t,utcOffset:t==null?this._effectiveUtcOffset:0,position:this._referencePosition})}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews.some(e=>e.updating),s=!i?.suspended&&!!i?.updating;return a||o||s}get _timeZone(){return this.analysis.timeZoneMode===`region`?this.view.timeZone:null}get _effectiveUtcOffset(){return this.analysis.utcOffset??this._utcOffsetAuto}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:N(e[0],!1)}get _startDateTimeUTC(){return this._getDateTimeUTC(this.analysis.startTimeOfDay)}get _endDateTimeUTC(){return this._getDateTimeUTC(this.analysis.endTimeOfDay)}_getDateTimeUTC(e){let{date:t}=this.analysis,n=this._timeZone,r=g({date:t,millisecondsSinceMidnight:e,timeZone:n,utcOffset:n==null?this._effectiveUtcOffset:0});if(r==null)throw RangeError(`Invalid shadow cast date or time zone`);return r}get _referencePosition(){return this.view?.environmentView?.referencePositionGeographic}get _totalDurationInterval(){return this._totalDuration>0?Math.floor(this._totalDuration/(G-1)):G}get _interval(){let e=this._totalDurationInterval;switch(this.analysis.mode){case`min-duration`:return this._totalDuration>0?e:0;case`total-duration`:return e;case`discrete`:return this.analysis.discreteOptions.interval||e}}get _intervalContext(){let{mode:e,minDurationOptions:t}=this.analysis;return e===`min-duration`&&t.contextEnabled?t.contextOptions.interval||this._totalDurationInterval:-1}get _totalDurationSampleCount(){return this._lightDirections.length}get _totalDuration(){return this._endDateTimeUTC.getTime()-this._startDateTimeUTC.getTime()}get _lightDirections(){return this.error==null?this._calculateLightDirections(this._interval):[]}get _lightDirectionsContext(){return this.error==null?this._calculateLightDirections(this._intervalContext):[]}_calculateLightDirections(e){let{view:t}=this;if(e<=0)return[];let n=t.viewingMode===`global`?K:this._referencePosition;if(n==null)return[];let r=P(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,G),i=r.length;q.length=0;let a=I(0,i,q),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _analysisVolume(){let{geometry:e}=this.analysis;if(e==null)return this._previousVolume=null,null;try{let t=E(e,this.view,J);return t==null?(this._previousVolume=null,null):u(t)?(this._updatingHandles.consumePromise(t),this._previousVolume):(this._previousVolume=t,t)}catch(t){return a.getLogger(this).error(new i(`shadowcastanalysisview3d:projection-failed`,`Failed to project analysis area geometry to view spatial reference`,{geometry:e,error:t})),null}}get _visualizationParameters(){if(!this.visible)return null;switch(this.analysis.mode){case`min-duration`:return this._minDurationVisualizationParameters;case`total-duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _minDurationVisualizationParameters(){let{color:e,minDuration:t}=this.analysis.minDurationOptions,n=this._totalDuration;return{rendersSunlight:this.analysis.visualizeSunlight,visualization:2,thresholdColor:e.toUnitRGBA(),threshold:n>0?t/this._totalDuration:0,...this._minDurationContextVisualizationParameters}}get _minDurationContextVisualizationParameters(){let{minDurationOptions:e,visualizeSunlight:t}=this.analysis;if(!e.contextEnabled||t)return{};let{color:n,colorStops:r}=e.contextOptions,i=1/this._lightDirectionsContext.length;return{visualization:3,gradientColorRamp:this._getEffectiveShadowCastColorRamp(n,r,i)}}get _durationVisualizationParameters(){let{color:e,colorStops:t,mode:n}=this.analysis.totalDurationOptions,r=this._totalDuration,i=r>0&&n===`hourly`?U/r:0,a=this._getEffectiveShadowCastColorRamp(e,t,1/r);return i===0?{...this._discreteVisualizationParameters,gradientColorRamp:a}:{rendersSunlight:this.analysis.visualizeSunlight,bandedGradientColorRamp:a,visualization:1,bandSize:i}}get _showsSeparateZeroBucketInHourlyMode(){let{colorStops:e}=this.analysis.totalDurationOptions;return e==null||e.length===0||e.reduce((e,t)=>Math.min(e,t.value),1/0)<=0}get _discreteVisualizationParameters(){let{color:e,colorStops:t}=this.analysis.discreteOptions,n=1/this._lightDirections.length;return{rendersSunlight:this.analysis.visualizeSunlight,gradientColorRamp:this._getEffectiveShadowCastColorRamp(e,t,n),visualization:0}}get _shadowLayerViews(){return this.view.allLayerViews.items.filter(V)}get _previewDependencies(){if(this.error!=null)return null;let{view:e}=this,n=e.slice.plane,r=this._shadowLayerViews,i=r.map(e=>e.layer).filter(t),a=r.map(e=>e.suspended),o=i.map(e=>e.visible),s=i.map(e=>e.opacity),c=!!e.graphicsView?.suspended,l=i.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),u=r.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:n,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:a,graphicsViewSuspended:c,layerVisibilities:o,layerOpacities:s,filters:u,definitionExpressions:l}}get _renderer(){return this.view?.stage?.renderer}get testData(){}async getDurationAtScreen(e){return this._getDurationAtScreen(e)}async _getDurationAtScreen(e,t){if(!await this._isScreenPointInAnalysisArea(e,t))return-1;let{_renderer:n,_totalDurationSampleCount:r}=this;if(n==null||r===0)return 0;let i=this.view.state.camera.screenToRender(p(e.x,e.y),m()),a=n.readAccumulatedShadow(i);return(this.analysis.visualizeSunlight?1-a:a)*this._totalDuration}async _isScreenPointInAnalysisArea(e,t){let{geometry:n}=this.analysis;if(!n)return!0;let r=await this.view.hitTest(e);l(t);let i=r.results.find(e=>e.mapPoint)?.mapPoint??r?.ground?.mapPoint;if(!i)return!1;let a=await S(i,n.spatialReference,{signal:t});return l(t),a!=null&&C(n,a)}_getEffectiveShadowCastColorRamp(e,t,n){if(t!=null){t.length>F&&a.getLogger(this).warnOnce(`ShadowCastAnalysis supports at most 8 color stops`);let e=t.map(e=>[e.value*n,e.color.toUnitRGBA()]);return e.sort(([e],[t])=>e-t),e}return B(e)}};e([_({readOnly:!0,type:[`shadow-cast-view-3d`]})],L.prototype,`type`,void 0),e([_({constructOnly:!0,nonNullable:!0})],L.prototype,`analysis`,void 0),e([_({readOnly:!0})],L.prototype,`updating`,null),e([_()],L.prototype,`visible`,null),e([_()],L.prototype,`error`,null),e([_()],L.prototype,`_visibleOverride`,void 0),e([_()],L.prototype,`_sunlightIntervals`,null),e([_()],L.prototype,`_stopPreviewingTask`,void 0),e([_()],L.prototype,`_updatedRecently`,void 0),e([_()],L.prototype,`_tooltip`,void 0),e([_()],L.prototype,`_sceneUpdating`,null),e([_()],L.prototype,`_timeZone`,null),e([_()],L.prototype,`_effectiveUtcOffset`,null),e([_()],L.prototype,`_utcOffsetAuto`,null),e([_()],L.prototype,`_startDateTimeUTC`,null),e([_()],L.prototype,`_endDateTimeUTC`,null),e([_()],L.prototype,`_referencePosition`,null),e([_()],L.prototype,`_interval`,null),e([_()],L.prototype,`_intervalContext`,null),e([_()],L.prototype,`_totalDurationSampleCount`,null),e([_()],L.prototype,`_totalDuration`,null),e([_()],L.prototype,`_lightDirections`,null),e([_()],L.prototype,`_lightDirectionsContext`,null),e([_()],L.prototype,`_analysisVolume`,null),e([_()],L.prototype,`_visualizationParameters`,null),e([_()],L.prototype,`_minDurationVisualizationParameters`,null),e([_()],L.prototype,`_minDurationContextVisualizationParameters`,null),e([_()],L.prototype,`_durationVisualizationParameters`,null),e([_()],L.prototype,`_showsSeparateZeroBucketInHourlyMode`,null),e([_()],L.prototype,`_discreteVisualizationParameters`,null),e([_()],L.prototype,`_shadowLayerViews`,null),e([_()],L.prototype,`_previewDependencies`,null),e([_()],L.prototype,`_renderer`,null),L=e([v(`esri.views.3d.analysis.ShadowCastAnalysisView3D`)],L);const R=L;function z(e,t,n){t&&n!=null&&e?.setParameters({shadowCast:n})}function B(e){let t=e.toUnitRGBA();return[[0,b(t[0],t[1],t[2],0)],[1,t]]}function V(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`gaussian-splat-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function H(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let r=w(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=n(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=n(e.layerVisibilities,t.layerVisibilities),s=n(e.layerOpacities,t.layerOpacities),c=n(e.filters,t.filters),l=n(e.definitionExpressions,t.definitionExpressions);return r&&i&&a&&o&&s&&c&&l}const U=h(1,`hours`,`milliseconds`),W=500,G=255,K=y(),q=[],J=new M;export{R as default};