@arcgis/core 4.34.0-next.37 → 4.34.0-next.38

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 (1022) hide show
  1. package/Basemap.js +1 -1
  2. package/Camera.js +1 -1
  3. package/Color.js +1 -1
  4. package/Graphic.js +1 -1
  5. package/Ground.js +1 -1
  6. package/PopupTemplate.js +1 -1
  7. package/Viewpoint.js +1 -1
  8. package/WebDocument2D.js +1 -1
  9. package/WebScene.js +1 -1
  10. package/analysis/Analysis.js +1 -1
  11. package/analysis/DimensionSimpleStyle.js +1 -1
  12. package/analysis/LengthDimension.js +1 -1
  13. package/analysis/LineOfSightAnalysisObserver.js +1 -1
  14. package/analysis/LineOfSightAnalysisTarget.js +1 -1
  15. package/analysis/SlicePlane.js +1 -1
  16. package/analysis/Viewshed.js +1 -1
  17. package/analysis/VolumeMeasurement/CutFillOptions.js +1 -1
  18. package/analysis/support/SliceAnalysisExcludedLayer.js +1 -1
  19. package/assets/esri/core/workers/RemoteClient.js +1 -1
  20. package/assets/esri/core/workers/chunks/{1c8dbdb833a66f7183fc.js → 00f3fe4a09bbdbc8f8b4.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{36d15d1dd19417b37d2f.js → 01ae7d36bda6b6186786.js} +1 -1
  22. package/assets/esri/core/workers/chunks/01bd8f90e55081e65b38.js +1 -0
  23. package/assets/esri/core/workers/chunks/022091e5240b9d872dd2.js +1 -0
  24. package/assets/esri/core/workers/chunks/03df4668002eb4cb4f98.js +1 -0
  25. package/assets/esri/core/workers/chunks/{c4a20b8038bfbb2af329.js → 09f0c9f0b6aa58ae3c52.js} +1 -1
  26. package/assets/esri/core/workers/chunks/0a27f9b11d03874809ee.js +346 -0
  27. package/assets/esri/core/workers/chunks/{1a5ddb6d36249fe09cc8.js → 0e8d3d38e9b1f6abf6f2.js} +1 -1
  28. package/assets/esri/core/workers/chunks/0faec78b2dd6990a5da0.js +1 -0
  29. package/assets/esri/core/workers/chunks/{2d7bbd001b64138db3c1.js → 14b536e0c1de6c7422bc.js} +1 -1
  30. package/assets/esri/core/workers/chunks/19391d60c76a1dc7c262.js +1 -0
  31. package/assets/esri/core/workers/chunks/{7e9d5beca1991c961ed8.js → 1acc620bfd2983d6853f.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{6b5be459ec4c418cc6fd.js → 1d9212a70df68a508dca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{ee28cd411a93245fb90c.js → 21aaf2dede61f28727a9.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{5d4e74eb4c659e8f42d6.js → 21dd626a5b5ea6a7e18e.js} +1 -1
  35. package/assets/esri/core/workers/chunks/224872bfd923cf4c9d78.js +1 -0
  36. package/assets/esri/core/workers/chunks/{5c5509147bda78ce338a.js → 23a85252e4164354553e.js} +1 -1
  37. package/assets/esri/core/workers/chunks/257428fff4bef42716e0.js +1 -0
  38. package/assets/esri/core/workers/chunks/27027493a8dba8305693.js +1 -0
  39. package/assets/esri/core/workers/chunks/{2b9c403f4b20b8f62804.js → 2a26c3fc324d672ebe88.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{7efc3ac70a005a771b9c.js → 2c399991e8627baa51b3.js} +1 -1
  41. package/assets/esri/core/workers/chunks/306a68137e62656b0f05.js +1 -0
  42. package/assets/esri/core/workers/chunks/{4c54239974a5847b8fdd.js → 30b9c131b69297ee186f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/31ad9949b08a5b07218c.js +989 -0
  44. package/assets/esri/core/workers/chunks/{2177c0ef06c8e7e3e28e.js → 31c6716d9ca188d3b870.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{e4d08a85d158c705aa3d.js → 31e6eb2685872baf538a.js} +1 -1
  46. package/assets/esri/core/workers/chunks/3264d58aeef8cf074b86.js +1 -0
  47. package/assets/esri/core/workers/chunks/3358c1b04490706681cc.js +1 -0
  48. package/assets/esri/core/workers/chunks/3386420c9ae891db5be7.js +2 -0
  49. package/assets/esri/core/workers/chunks/3488e88882f40199ab33.js +1 -0
  50. package/assets/esri/core/workers/chunks/34f677e8c1691c10e4e9.js +1 -0
  51. package/assets/esri/core/workers/chunks/35df19d1eab3a694c3fa.js +1 -0
  52. package/assets/esri/core/workers/chunks/{33aafaabea07b4f80209.js → 3984ca7e05f30724adaf.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{02435c653064f879f547.js → 4162c633efefc63c5506.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{0852abaa440c14cc2b36.js → 4459c8e495a37d4c4eb8.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6e36b247a24172edd5ea.js → 476a6e5ca558db2adaa1.js} +1 -1
  56. package/assets/esri/core/workers/chunks/48369e4c340413c531ff.js +1 -0
  57. package/assets/esri/core/workers/chunks/49eac96a01931b8c4ace.js +1 -0
  58. package/assets/esri/core/workers/chunks/{5228f535719f5fc38b28.js → 4ae15645e68e7f6dd6b7.js} +1 -1
  59. package/assets/esri/core/workers/chunks/508c302fed242956d3b7.js +1 -0
  60. package/assets/esri/core/workers/chunks/5156410dd84ea1232a6c.js +1 -0
  61. package/assets/esri/core/workers/chunks/{c64aa9793764eba2c6da.js → 51ddda291bbbf5db9905.js} +1 -1
  62. package/assets/esri/core/workers/chunks/54658c87396223d85abd.js +1 -0
  63. package/assets/esri/core/workers/chunks/{5fac0b2a5aa33e8a3a84.js → 5b2d40a2ce2594ce8eef.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{36024406932b0a44a74a.js → 5b2ff220aebe464dac23.js} +1 -1
  65. package/assets/esri/core/workers/chunks/5b91a49202129eedaf00.js +1 -0
  66. package/assets/esri/core/workers/chunks/{a0dfd99dc8f4eac0b7ae.js → 5d1d909354c90cb8eb60.js} +1 -1
  67. package/assets/esri/core/workers/chunks/5fe3c279d57f44416c28.js +1 -0
  68. package/assets/esri/core/workers/chunks/60d889c58a542e59b07b.js +1 -0
  69. package/assets/esri/core/workers/chunks/{1c87ed3a5960f8f06fc8.js → 647cff1eaaf1b622f439.js} +1 -1
  70. package/assets/esri/core/workers/chunks/6530449cd1975deb61f1.js +1 -0
  71. package/assets/esri/core/workers/chunks/{c78d98ab82f31ddda362.js → 6759319f3fd2d03c446b.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{e91800c1ea026e5b2d9b.js → 6acffacbb4a03af52e3b.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{23e0fd2d921f74834b12.js → 6b5b609b357924fa35be.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{170fa807b71babedd185.js → 6e82c1d1e02e320ec5e7.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{cab294fd04f2a5eda81d.js → 712c740cf58c2e282efc.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{54a686643e1ec1ea00ac.js → 7159e7a3274e64b337ce.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{68edbc3b124eb8e28dd6.js → 719b89341b26c3568c2f.js} +1 -1
  78. package/assets/esri/core/workers/chunks/7617fe2fbf223c108f1e.js +1 -0
  79. package/assets/esri/core/workers/chunks/{6f122e4a2a1f913523b4.js → 774844eea928efa811f2.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{5cdeb6dc72f452d6d1bc.js → 77ee4afaa4a1c7047940.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{904e701e1a12f67beaee.js → 787d281b2fe1edf6cf30.js} +1 -1
  82. package/assets/esri/core/workers/chunks/78de16f65ea297452a65.js +1 -0
  83. package/assets/esri/core/workers/chunks/{056fdd5570af28d334cd.js → 79b389baf972d329c38d.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{cf1f8fd1d62be0e02e10.js → 7a5808c6e67c43274d86.js} +1 -1
  85. package/assets/esri/core/workers/chunks/7b1fc59822ac2d421a5a.js +1 -0
  86. package/assets/esri/core/workers/chunks/{826e4bf6374f324d7f19.js → 7b82ed4cc475c782256b.js} +1 -1
  87. package/assets/esri/core/workers/chunks/7b95da70d39ba316b051.js +1 -0
  88. package/assets/esri/core/workers/chunks/{ccf3f29d0b1bde90c3cf.js → 7c97c4c8c2cf73835517.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{bb1213adeb05d89fbfdb.js → 7d082bfcd13ad6e8c89d.js} +1 -1
  90. package/assets/esri/core/workers/chunks/7e04b4592128e884b58c.js +1 -0
  91. package/assets/esri/core/workers/chunks/{7641e24ffa0215d51c34.js → 7ef29640de297a0cf744.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{ac88e0aabbd6c1f1ec98.js → 7f523fa4d4ade4316625.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{2f52a57e8c05a3ca1de8.js → 80a930881a99ceda240a.js} +1 -1
  94. package/assets/esri/core/workers/chunks/85bfd380d4f522ff8e83.js +1 -0
  95. package/assets/esri/core/workers/chunks/{21ea48186d01bf459ef6.js → 88308a0dcc479688e67c.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{360223d8bd4ee77ecda1.js → 896c7d137bfd7a8fa0bc.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{74db0831bcbd48152c1d.js → 899f493412acd5a5d91f.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{b8c1a08020d44ee03a17.js → 8ad95fe91ba0a9f284a2.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{b331543767c35e5edcc6.js → 8c1bd9bcfc59497de3b5.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{ce211163d078d3d742ce.js → 8ca95499e00ce8b0af9a.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{4ff7c8420c77256f595a.js → 8d51b6823ef5d290c670.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{1512ed7b869b3e8e07bc.js → 8e40c409a9b0a2a768a9.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{a76792c4edd1d688fba2.js → 9155dbfce5ef2c25bbbf.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{938baf4f99332dfdf29d.js → 91be247f868ce6596c9e.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{64553b5eae4edc7f46dc.js → 9247d768c3eccc0828a9.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{02bd15e0adaffcdd645b.js → 947085d176bd3a930e6f.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{dca2b487152cde45fb65.js → 94850c094e076d81a016.js} +1 -1
  108. package/assets/esri/core/workers/chunks/9595b39e882f9a9ac839.js +1 -0
  109. package/assets/esri/core/workers/chunks/{b45dbbeae54cea2bbc10.js → 962c0ef63de1635fb4aa.js} +1 -1
  110. package/assets/esri/core/workers/chunks/98ac849cccc4d5316021.js +1 -0
  111. package/assets/esri/core/workers/chunks/9928e432b884c75c3436.js +1 -0
  112. package/assets/esri/core/workers/chunks/{d80e26a1f4a61b1c4cf9.js → 9b5e04d87116ce2b68b2.js} +1 -1
  113. package/assets/esri/core/workers/chunks/9c60599131860f635483.js +1 -0
  114. package/assets/esri/core/workers/chunks/{ca5f63c0297612059486.js → 9cd9b22354dbdf1b1df0.js} +1 -1
  115. package/assets/esri/core/workers/chunks/{bd1ba44362b967977003.js → 9e7af4c3c0f8cf0f5c5b.js} +1 -1
  116. package/assets/esri/core/workers/chunks/9f869b331dff505b6b55.js +1 -0
  117. package/assets/esri/core/workers/chunks/9ffbd5216aa0a45a4199.js +1 -0
  118. package/assets/esri/core/workers/chunks/{183130521210c855c565.js → a13a36207f265f720255.js} +1 -1
  119. package/assets/esri/core/workers/chunks/a5c0b365b9f55e63ab52.js +1 -0
  120. package/assets/esri/core/workers/chunks/{afb51b8562f8cb29b97e.js → a89c060ad302381aaf7d.js} +1 -1
  121. package/assets/esri/core/workers/chunks/a939d2af7e4a359c7b4d.js +1 -0
  122. package/assets/esri/core/workers/chunks/{ada46055fafb8ae21dbe.js → aaab7694eb333ad480f5.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{871da12fb3029177df6f.js → ad106f5f6d6848f40de3.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{dec9656997683ef01ba6.js → ad1e5c24c1eae5ab8e45.js} +1 -1
  125. package/assets/esri/core/workers/chunks/b1c2e5e0a70fb5d27da5.js +1 -0
  126. package/assets/esri/core/workers/chunks/b40845b45f8d7cd347a1.js +1 -0
  127. package/assets/esri/core/workers/chunks/b5f6a0607b620b027cdd.js +1 -0
  128. package/assets/esri/core/workers/chunks/{8abcf9d3343dd8d45103.js → b884bd2f50aaccfa24c5.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{1285ccdde515aca9a2d5.js → bb23371335ac049861e6.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{469a018d94080fbcde22.js → bbdadced49446c907361.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{c06dda7263e64d696c88.js → c110941e87923ba47193.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{67627b1965b27b2f1857.js → c51e2a048df152abd901.js} +1 -1
  133. package/assets/esri/core/workers/chunks/{b12c44faa1efa60067b0.js → c660b6e67d5d13583f19.js} +1 -1
  134. package/assets/esri/core/workers/chunks/c6e3d4c6bb02d58d5cfe.js +1 -0
  135. package/assets/esri/core/workers/chunks/{fae53d825dd9fef0426c.js → c8c85ba6451b5dfc2fc0.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{a1591d7f82e06cab5de4.js → c8d57588267e2fc4406c.js} +1 -1
  137. package/assets/esri/core/workers/chunks/{f5bb7c90f48cae594bc3.js → ca7c9756802214e41c56.js} +1 -1
  138. package/assets/esri/core/workers/chunks/cf474c055a85bdbfa8d0.js +1 -0
  139. package/assets/esri/core/workers/chunks/{9f933a7e9d3b0cd69383.js → d08b80583a23ba253c7e.js} +1 -1
  140. package/assets/esri/core/workers/chunks/d29f894491618931d92a.js +1 -0
  141. package/assets/esri/core/workers/chunks/{d16484b389d56a43d204.js → d465e1b3a8a53d9c0a12.js} +1 -1
  142. package/assets/esri/core/workers/chunks/d5262c95116d3bdfd117.js +1 -0
  143. package/assets/esri/core/workers/chunks/{4c7162883b228db563c6.js → d578c3880eaf2dd62324.js} +1 -1
  144. package/assets/esri/core/workers/chunks/{b8bd0f1be54b318990f6.js → d7c679374aa2d256becf.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{bb0c5275e51d170ac795.js → d93b24e863379116b2aa.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{6589133542fa130c0628.js → dd1d9913b33d4e48baff.js} +1 -1
  147. package/assets/esri/core/workers/chunks/{b49b73e2d0d643dfa351.js → de499e33035b56b6697d.js} +1 -1
  148. package/assets/esri/core/workers/chunks/{c5c9f0c8da5f7bf41728.js → e177d0ab454dfa024b39.js} +1 -1
  149. package/assets/esri/core/workers/chunks/{948ecf0bfbc886ec3b52.js → e1b25b1ce3bd4f0f2cda.js} +1 -1
  150. package/assets/esri/core/workers/chunks/{eedf97211883713c413e.js → e1b573840ec1f7c3afd3.js} +1 -1
  151. package/assets/esri/core/workers/chunks/{b117e054a2bc54f5f93b.js → e3f2cdf5d71a7040894b.js} +1 -1
  152. package/assets/esri/core/workers/chunks/{dfc5936fbbd26f27a92a.js → e666ca4d14b6490485d6.js} +1 -1
  153. package/assets/esri/core/workers/chunks/{672751823261a5763684.js → e92d9e0ac789bcf1cdf4.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{d3b932ff2299c89c2582.js → e95a8c988ef822723503.js} +1 -1
  155. package/assets/esri/core/workers/chunks/{ae667084cb6a08b97c37.js → eb7dd722e4cd7f83b3f5.js} +1 -1
  156. package/assets/esri/core/workers/chunks/ec9ed7c9d64f88fcb806.js +1 -0
  157. package/assets/esri/core/workers/chunks/{06bd2f5358c6b85d5420.js → f42938e1602306cfa7a8.js} +1 -1
  158. package/assets/esri/core/workers/chunks/{77e083d1e425026fa030.js → f4b145feab275b268c2e.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{568f49f9e50c505b2736.js → f4d7cbd33ef8710d7316.js} +1 -1
  160. package/assets/esri/core/workers/chunks/{451ae19a0a120b27c6da.js → fb0f729eff2f2911d6c3.js} +1 -1
  161. package/assets/esri/core/workers/chunks/{ce0683921ccefc580018.js → fd3009164d5e38fda85f.js} +1 -1
  162. package/assets/esri/core/workers/chunks/{4c77102f083198ae2a6a.js → ff34fdda7899e784ac73.js} +1 -1
  163. package/chunks/ColorMaterial.glsl.js +2 -2
  164. package/chunks/DefaultMaterial.glsl.js +4 -4
  165. package/chunks/HUDMaterial.glsl.js +5 -5
  166. package/chunks/LineMarker.glsl.js +19 -19
  167. package/chunks/Pattern.glsl.js +6 -6
  168. package/chunks/RibbonLine.glsl.js +2 -2
  169. package/chunks/TimeExtent.js +1 -1
  170. package/chunks/TimeInterval.js +1 -1
  171. package/chunks/pe.js +1 -1
  172. package/colorUtils.js +1 -1
  173. package/config.js +1 -1
  174. package/core/JSONSupport.d.ts +1 -1
  175. package/core/JSONSupport.js +1 -1
  176. package/core/Loadable.js +1 -1
  177. package/core/Promise.d.ts +1 -1
  178. package/core/Promise.js +1 -1
  179. package/core/has.js +1 -1
  180. package/core/object.js +1 -1
  181. package/core/workers/RemoteClient.js +1 -1
  182. package/core/workers/utils.js +1 -1
  183. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  184. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  185. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  186. package/editing/sharedTemplates/templateDefinitions/parts/TemplatePartBase.js +1 -1
  187. package/effects/FocusArea.js +1 -1
  188. package/effects/FocusAreaOutline.js +1 -1
  189. package/effects/FocusAreas.js +1 -1
  190. package/form/ExpressionInfo.js +1 -1
  191. package/form/FormTemplate.js +1 -1
  192. package/form/elements/Element.js +1 -1
  193. package/form/elements/inputs/Input.js +1 -1
  194. package/form/elements/inputs/attachments/Input.js +1 -1
  195. package/geometry/Geometry.js +1 -1
  196. package/geometry/HeightModelInfo.js +1 -1
  197. package/geometry/Mesh.js +1 -1
  198. package/geometry/SpatialReference.js +1 -1
  199. package/geometry/support/MeshComponent.js +1 -1
  200. package/geometry/support/MeshGeoreferencedVertexSpace.js +1 -1
  201. package/geometry/support/MeshLocalVertexSpace.js +1 -1
  202. package/geometry/support/MeshMaterial.js +1 -1
  203. package/geometry/support/MeshTexture.js +1 -1
  204. package/geometry/support/MeshTextureTransform.js +1 -1
  205. package/geometry/support/MeshTransform.js +1 -1
  206. package/geometry/support/MeshVertexAttributes.js +1 -1
  207. package/geometry/support/heightModelInfoUtils.js +1 -1
  208. package/grids/MeasuredGrid.js +1 -1
  209. package/ground/NavigationConstraint.js +1 -1
  210. package/identity/OAuthInfo.js +1 -1
  211. package/identity/ServerInfo.js +1 -1
  212. package/kernel.js +1 -1
  213. package/layers/BuildingSceneLayer.js +1 -1
  214. package/layers/GaussianSplatLayer.js +5 -0
  215. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  216. package/layers/buildingSublayers/BuildingGroupSublayer.js +1 -1
  217. package/layers/buildingSublayers/utils.js +5 -0
  218. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  219. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  220. package/layers/graphics/sources/MemorySource.js +1 -1
  221. package/layers/knowledgeGraph/IdealEdgeLengthTypeOptions.js +1 -1
  222. package/layers/mixins/OperationalLayer.js +1 -1
  223. package/layers/mixins/TemporalSceneLayer.js +1 -1
  224. package/layers/mixins/operationalLayerModuleMap.js +1 -1
  225. package/layers/orientedImagery/core/CameraOrientationHPR.js +1 -1
  226. package/layers/orientedImagery/core/CameraOrientationLTP.js +1 -1
  227. package/layers/orientedImagery/core/CameraOrientationOPK.js +1 -1
  228. package/layers/orientedImagery/core/CameraOrientationYPR.js +1 -1
  229. package/layers/orientedImagery/core/ElevationSourceDefinitions.js +1 -1
  230. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  231. package/layers/pointCloudFilters/PointCloudFilter.js +1 -1
  232. package/layers/support/AggregateField.js +1 -1
  233. package/layers/support/BuildingFilter.js +1 -1
  234. package/layers/support/BuildingFilterAuthoringInfo.js +1 -1
  235. package/layers/support/BuildingFilterAuthoringInfoBlock.js +1 -1
  236. package/layers/support/BuildingFilterAuthoringInfoType.js +1 -1
  237. package/layers/support/BuildingFilterBlock.js +1 -1
  238. package/layers/support/BuildingFilterMode.js +1 -1
  239. package/layers/support/BuildingSummaryStatistics.js +1 -1
  240. package/layers/support/CodedValue.js +1 -1
  241. package/layers/support/ControlPointsGeoreference.js +1 -1
  242. package/layers/support/DimensionalDefinition.js +1 -1
  243. package/layers/support/DisplayFilter.js +1 -1
  244. package/layers/support/DisplayFilterInfo.js +1 -1
  245. package/layers/support/Domain.js +1 -1
  246. package/layers/support/EditFieldsInfo.js +1 -1
  247. package/layers/support/ExportImageServiceParameters.js +1 -1
  248. package/layers/support/ExpressionInfo.js +1 -1
  249. package/layers/support/FacilityLayerInfo.js +1 -1
  250. package/layers/support/FeatureEffect.js +1 -1
  251. package/layers/support/FeatureFilter.js +1 -1
  252. package/layers/support/FeatureIndex.js +1 -1
  253. package/layers/support/FeatureReduction.js +1 -1
  254. package/layers/support/FeatureReductionCluster.js +1 -1
  255. package/layers/support/FeatureTemplate.js +1 -1
  256. package/layers/support/FeatureType.js +1 -1
  257. package/layers/support/Field.js +1 -1
  258. package/layers/support/GeometryFieldsInfo.js +1 -1
  259. package/layers/support/I3SLayerDefinitions.js +1 -1
  260. package/layers/support/KMLMapImage.js +1 -1
  261. package/layers/support/KMLSublayer.js +1 -1
  262. package/layers/support/LOD.js +1 -1
  263. package/layers/support/LabelClass.js +1 -1
  264. package/layers/support/LabelExpressionInfo.js +1 -1
  265. package/layers/support/LayerContingentValuesCache.js +1 -1
  266. package/layers/support/LayerFloorInfo.js +1 -1
  267. package/layers/support/LayerTimeOptions.js +1 -1
  268. package/layers/support/LevelLayerInfo.js +1 -1
  269. package/layers/support/LocalMediaElementSource.js +1 -1
  270. package/layers/support/MapImage.js +1 -1
  271. package/layers/support/MosaicRule.js +1 -1
  272. package/layers/support/MultidimensionalSubset.js +1 -1
  273. package/layers/support/OrderByInfo.js +1 -1
  274. package/layers/support/ParquetEncodingBase.js +1 -1
  275. package/layers/support/ParquetEncodingLocation.js +1 -1
  276. package/layers/support/ParquetEncodingWkb.js +1 -1
  277. package/layers/support/PixelBlock.js +1 -1
  278. package/layers/support/PlaybackInfo.js +1 -1
  279. package/layers/support/PolygonCollection.js +1 -1
  280. package/layers/support/PurgeOptions.js +1 -1
  281. package/layers/support/RangeInfo.js +1 -1
  282. package/layers/support/RasterBandInfo.js +1 -1
  283. package/layers/support/RasterFunction.js +1 -1
  284. package/layers/support/RasterFunctionInfo.js +1 -1
  285. package/layers/support/RasterFunctionProperties.js +1 -1
  286. package/layers/support/RasterFunctionTemplate.js +1 -1
  287. package/layers/support/RasterFunctionVariable.js +1 -1
  288. package/layers/support/RasterInfo.js +1 -1
  289. package/layers/support/RasterSensorInfo.js +1 -1
  290. package/layers/support/RasterStorageInfo.js +1 -1
  291. package/layers/support/Relationship.js +1 -1
  292. package/layers/support/RouteStopSymbols.js +1 -1
  293. package/layers/support/RouteSymbols.js +1 -1
  294. package/layers/support/SceneFilter.js +1 -1
  295. package/layers/support/SceneModification.js +1 -1
  296. package/layers/support/SceneModifications.js +1 -1
  297. package/layers/support/SiteLayerInfo.js +1 -1
  298. package/layers/support/Subtype.js +1 -1
  299. package/layers/support/TelemetryData.js +1 -1
  300. package/layers/support/TelemetryDisplay.js +1 -1
  301. package/layers/support/TileInfo.js +1 -1
  302. package/layers/support/TileMatrixSet.js +1 -1
  303. package/layers/support/TimeInfo.js +1 -1
  304. package/layers/support/TrackInfo.js +1 -1
  305. package/layers/support/TrackPartInfo.js +1 -1
  306. package/layers/support/VideoFrame.js +1 -1
  307. package/layers/support/VideoTimeExtent.js +1 -1
  308. package/layers/support/WMTSLayerInfo.js +1 -1
  309. package/layers/support/WMTSStyle.js +1 -1
  310. package/layers/support/WMTSSublayer.js +1 -1
  311. package/layers/support/lazyLayerLoader.js +1 -1
  312. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  313. package/layers/support/rasterFunctions/BaseFunctionArguments.js +1 -1
  314. package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
  315. package/layers/support/rasterTransforms/BaseRasterTransform.js +1 -1
  316. package/layers/support/source/DataLayerSource.js +1 -1
  317. package/layers/support/source/MapLayerSource.js +1 -1
  318. package/layers/support/source/QueryTableDataSource.js +1 -1
  319. package/layers/support/source/RasterDataSource.js +1 -1
  320. package/layers/support/source/TableDataSource.js +1 -1
  321. package/layers/voxel/VoxelColorStop.js +1 -1
  322. package/layers/voxel/VoxelDimension.js +1 -1
  323. package/layers/voxel/VoxelDynamicSection.js +1 -1
  324. package/layers/voxel/VoxelFormat.js +1 -1
  325. package/layers/voxel/VoxelIrregularSpacing.js +1 -1
  326. package/layers/voxel/VoxelIsosurface.js +1 -1
  327. package/layers/voxel/VoxelOpacityStop.js +1 -1
  328. package/layers/voxel/VoxelRangeFilter.js +1 -1
  329. package/layers/voxel/VoxelRegularSpacing.js +1 -1
  330. package/layers/voxel/VoxelSection.js +1 -1
  331. package/layers/voxel/VoxelSimpleShading.js +1 -1
  332. package/layers/voxel/VoxelSlice.js +1 -1
  333. package/layers/voxel/VoxelTransferFunctionStyle.js +1 -1
  334. package/layers/voxel/VoxelUniqueValue.js +1 -1
  335. package/layers/voxel/VoxelVariable.js +1 -1
  336. package/layers/voxel/VoxelVariableStyle.js +1 -1
  337. package/layers/voxel/VoxelVolume.js +1 -1
  338. package/layers/voxel/VoxelVolumeIndex.js +1 -1
  339. package/layers/voxel/VoxelVolumeStyle.js +1 -1
  340. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  341. package/linkChart/ChronologicalLayoutSettings.js +1 -1
  342. package/linkChart/LayoutSettings.js +1 -1
  343. package/linkChart/NonspatialDataDisplay.js +1 -1
  344. package/linkChart/OrganicLayoutSettings.js +1 -1
  345. package/networks/CircuitManager.js +1 -1
  346. package/networks/RulesTable.js +1 -1
  347. package/networks/UnitIdentifierManager.js +1 -1
  348. package/networks/support/Terminal.js +1 -1
  349. package/networks/support/TerminalConfiguration.js +1 -1
  350. package/networks/support/TraceConfiguration.js +1 -1
  351. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  352. package/package.json +2 -2
  353. package/popup/ElementExpressionInfo.js +1 -1
  354. package/popup/ExpressionInfo.js +1 -1
  355. package/popup/FieldInfo.js +1 -1
  356. package/popup/LayerOptions.js +1 -1
  357. package/popup/RelatedRecordsInfo.js +1 -1
  358. package/popup/content/Content.js +1 -1
  359. package/popup/content/mixins/MediaInfo.js +1 -1
  360. package/popup/content/support/ChartMediaInfoValue.js +1 -1
  361. package/popup/content/support/ImageMediaInfoValue.js +1 -1
  362. package/popup/support/AttachmentsOrderByInfo.js +1 -1
  363. package/popup/support/FieldInfoFormat.js +1 -1
  364. package/popup/support/RelatedRecordsInfoFieldOrder.js +1 -1
  365. package/popup/support/UtilityNetworkAssociationType.js +1 -1
  366. package/portal/Portal.js +1 -1
  367. package/portal/PortalFolder.js +1 -1
  368. package/portal/PortalGroup.js +1 -1
  369. package/portal/PortalItem.js +1 -1
  370. package/portal/PortalUser.js +1 -1
  371. package/renderers/FlowRenderer.js +1 -1
  372. package/renderers/PointCloudClassBreaksRenderer.js +1 -1
  373. package/renderers/PointCloudRenderer.js +1 -1
  374. package/renderers/PointCloudStretchRenderer.js +1 -1
  375. package/renderers/PointCloudUniqueValueRenderer.js +1 -1
  376. package/renderers/RasterColormapRenderer.js +1 -1
  377. package/renderers/RasterShadedReliefRenderer.js +1 -1
  378. package/renderers/RasterStretchRenderer.js +1 -1
  379. package/renderers/Renderer.js +1 -1
  380. package/renderers/VectorFieldRenderer.js +1 -1
  381. package/renderers/support/AttributeColorInfo.js +1 -1
  382. package/renderers/support/AuthoringInfo.js +1 -1
  383. package/renderers/support/AuthoringInfoClassBreakInfo.js +1 -1
  384. package/renderers/support/AuthoringInfoFieldInfo.js +1 -1
  385. package/renderers/support/AuthoringInfoSizeStop.js +1 -1
  386. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  387. package/renderers/support/ClassBreakInfo.js +1 -1
  388. package/renderers/support/ColormapInfo.js +1 -1
  389. package/renderers/support/DotDensityLegendOptions.js +1 -1
  390. package/renderers/support/HeatmapColorStop.js +1 -1
  391. package/renderers/support/HeatmapLegendOptions.js +1 -1
  392. package/renderers/support/OthersCategory.js +1 -1
  393. package/renderers/support/RasterPresetRenderer.js +1 -1
  394. package/renderers/support/RasterSymbolizer.js +1 -1
  395. package/renderers/support/RendererLegendOptions.js +1 -1
  396. package/renderers/support/UniqueValue.js +1 -1
  397. package/renderers/support/UniqueValueClass.js +1 -1
  398. package/renderers/support/UniqueValueGroup.js +1 -1
  399. package/renderers/support/UniqueValueInfo.js +1 -1
  400. package/renderers/support/pointCloud/ColorClassBreakInfo.js +1 -1
  401. package/renderers/support/pointCloud/ColorModulation.js +1 -1
  402. package/renderers/support/pointCloud/ColorUniqueValueInfo.js +1 -1
  403. package/renderers/support/pointCloud/PointSizeAlgorithm.js +1 -1
  404. package/renderers/support/pointCloud/fieldsMap.js +5 -0
  405. package/renderers/visualVariables/VisualVariable.js +1 -1
  406. package/renderers/visualVariables/support/ColorSizeStop.js +1 -1
  407. package/renderers/visualVariables/support/ColorStop.js +1 -1
  408. package/renderers/visualVariables/support/OpacityStop.js +1 -1
  409. package/renderers/visualVariables/support/SizeStop.js +1 -1
  410. package/renderers/visualVariables/support/VisualVariableLegendOptions.js +1 -1
  411. package/rest/featureService/FeatureService.js +1 -1
  412. package/rest/knowledgeGraph/DataModel.js +1 -1
  413. package/rest/knowledgeGraph/FieldIndex.js +1 -1
  414. package/rest/knowledgeGraph/GraphObject.js +1 -1
  415. package/rest/knowledgeGraph/GraphObjectType.js +1 -1
  416. package/rest/knowledgeGraph/GraphProperty.js +1 -1
  417. package/rest/knowledgeGraph/KnowledgeGraph.js +1 -1
  418. package/rest/knowledgeGraph/Path.js +1 -1
  419. package/rest/knowledgeGraph/ProtoFeatureCollection.js +1 -1
  420. package/rest/knowledgeGraph/ServiceDefinition.js +1 -1
  421. package/rest/knowledgeGraph/SourceTypeValueBehavior.js +1 -1
  422. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.js +1 -1
  423. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.js +1 -1
  424. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.js +1 -1
  425. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.js +1 -1
  426. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
  427. package/rest/knowledgeGraph/wasmInterface/WasmQueryWrapperInterfaces.js +1 -1
  428. package/rest/knowledgeGraph/wasmInterface/WasmSerializedLayerData.js +1 -1
  429. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  430. package/rest/knowledgeGraph/wasmInterface/wasmToFeatureFactories.js +1 -1
  431. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  432. package/rest/networks/circuits/support/CircuitVerifyResult.js +1 -1
  433. package/rest/networks/circuits/support/CreateAlterCircuitParameters.js +1 -1
  434. package/rest/networks/circuits/support/DeleteCircuitsParameters.js +1 -1
  435. package/rest/networks/circuits/support/EditCircuitsResult.js +1 -1
  436. package/rest/networks/circuits/support/ExportCircuitsParameters.js +1 -1
  437. package/rest/networks/circuits/support/ExportCircuitsResult.js +1 -1
  438. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  439. package/rest/networks/circuits/support/QueryCircuitsResult.js +1 -1
  440. package/rest/networks/circuits/support/VerifyCircuitsParameters.js +1 -1
  441. package/rest/networks/circuits/support/VerifyCircuitsResult.js +1 -1
  442. package/rest/networks/support/AggregatedGeometry.js +1 -1
  443. package/rest/networks/support/Association.js +1 -1
  444. package/rest/networks/support/AssociationGeometriesResult.js +1 -1
  445. package/rest/networks/support/CircuitPath.js +1 -1
  446. package/rest/networks/support/CircuitPathConnectivityElement.js +1 -1
  447. package/rest/networks/support/CircuitTraceResult.js +1 -1
  448. package/rest/networks/support/FunctionResult.js +1 -1
  449. package/rest/networks/support/NetworkElement.js +1 -1
  450. package/rest/networks/support/QueryAssociationsParameters.js +1 -1
  451. package/rest/networks/support/QueryAssociationsResult.js +1 -1
  452. package/rest/networks/support/QueryNamedTraceConfigurationsParameters.js +1 -1
  453. package/rest/networks/support/QueryNamedTraceConfigurationsResult.js +1 -1
  454. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.js +1 -1
  455. package/rest/networks/support/TraceLocation.js +1 -1
  456. package/rest/networks/support/TraceParameters.js +1 -1
  457. package/rest/networks/support/TraceResult.js +1 -1
  458. package/rest/networks/support/ValidateNetworkTopologyParameters.js +1 -1
  459. package/rest/networks/support/ValidateNetworkTopologyResult.js +1 -1
  460. package/rest/networks/unitIdentifiers/support/EditUnitIdentifiersResult.js +1 -1
  461. package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +1 -1
  462. package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParameters.js +1 -1
  463. package/rest/networks/unitIdentifiers/support/ResetParameters.js +1 -1
  464. package/rest/networks/unitIdentifiers/support/ResizeParameters.js +1 -1
  465. package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +1 -1
  466. package/rest/query/support/AttachmentInfo.js +1 -1
  467. package/rest/support/AddressCandidate.js +1 -1
  468. package/rest/support/AddressToLocationsParameters.js +1 -1
  469. package/rest/support/AddressesToLocationsParameters.js +1 -1
  470. package/rest/support/ArealUnit.js +1 -1
  471. package/rest/support/AreasAndLengthsParameters.js +1 -1
  472. package/rest/support/AttachmentQuery.js +1 -1
  473. package/rest/support/AttributeBinsGrouping.js +1 -1
  474. package/rest/support/AttributeBinsQuery.js +1 -1
  475. package/rest/support/BaseImageMeasureParameters.js +1 -1
  476. package/rest/support/BaseImageMeasureResult.js +1 -1
  477. package/rest/support/BinParametersBase.js +1 -1
  478. package/rest/support/BufferParameters.js +1 -1
  479. package/rest/support/CameraInfo.js +1 -1
  480. package/rest/support/ClassBreaksDefinition.js +1 -1
  481. package/rest/support/ClosestFacilityParameters.js +1 -1
  482. package/rest/support/ClosestFacilitySolveResult.js +1 -1
  483. package/rest/support/ColorRamp.js +1 -1
  484. package/rest/support/DataFile.js +1 -1
  485. package/rest/support/DataLayer.js +1 -1
  486. package/rest/support/DateBinTimeInterval.js +1 -1
  487. package/rest/support/DensifyParameters.js +1 -1
  488. package/rest/support/DirectionLine.js +1 -1
  489. package/rest/support/DirectionPoint.js +1 -1
  490. package/rest/support/DirectionsEvent.js +1 -1
  491. package/rest/support/DirectionsString.js +1 -1
  492. package/rest/support/FeatureSet.js +1 -1
  493. package/rest/support/FindImagesParameters.js +1 -1
  494. package/rest/support/FindImagesResult.js +1 -1
  495. package/rest/support/FindParameters.js +1 -1
  496. package/rest/support/FindResult.js +1 -1
  497. package/rest/support/FullTextSearch.js +1 -1
  498. package/rest/support/GPMessage.js +1 -1
  499. package/rest/support/GeneralizeParameters.js +1 -1
  500. package/rest/support/GenerateRendererParameters.js +1 -1
  501. package/rest/support/IdentifyParameters.js +1 -1
  502. package/rest/support/IdentifyResult.js +1 -1
  503. package/rest/support/ImageAngleParameters.js +1 -1
  504. package/rest/support/ImageAngleResult.js +1 -1
  505. package/rest/support/ImageBoundaryParameters.js +1 -1
  506. package/rest/support/ImageBoundaryResult.js +1 -1
  507. package/rest/support/ImageGPSInfo.js +1 -1
  508. package/rest/support/ImageGPSInfoParameters.js +1 -1
  509. package/rest/support/ImageGPSInfoResult.js +1 -1
  510. package/rest/support/ImageHistogramParameters.js +1 -1
  511. package/rest/support/ImageIdentifyParameters.js +1 -1
  512. package/rest/support/ImageIdentifyResult.js +1 -1
  513. package/rest/support/ImageInspectionInfo.js +1 -1
  514. package/rest/support/ImagePixelLocationParameters.js +1 -1
  515. package/rest/support/ImagePixelLocationResult.js +1 -1
  516. package/rest/support/ImageSample.js +1 -1
  517. package/rest/support/ImageSampleParameters.js +1 -1
  518. package/rest/support/ImageSampleResult.js +1 -1
  519. package/rest/support/ImageToMapMultirayParameters.js +1 -1
  520. package/rest/support/ImageToMapParameters.js +1 -1
  521. package/rest/support/ImageUrlParameters.js +1 -1
  522. package/rest/support/ImageUrlResult.js +1 -1
  523. package/rest/support/ImageVolume.js +1 -1
  524. package/rest/support/ImageVolumeParameters.js +1 -1
  525. package/rest/support/ImageVolumeResult.js +1 -1
  526. package/rest/support/JobInfo.js +1 -1
  527. package/rest/support/LegendLayer.js +1 -1
  528. package/rest/support/LengthsParameters.js +1 -1
  529. package/rest/support/LinearUnit.js +1 -1
  530. package/rest/support/LocationToAddressParameters.js +1 -1
  531. package/rest/support/MapToImageParameters.js +1 -1
  532. package/rest/support/MeasureAreaFromImageResult.js +1 -1
  533. package/rest/support/MeasureFromImageParameters.js +1 -1
  534. package/rest/support/MeasureLengthFromImageResult.js +1 -1
  535. package/rest/support/MultipartColorRamp.js +1 -1
  536. package/rest/support/NetworkAttribute.js +1 -1
  537. package/rest/support/NetworkDataset.js +1 -1
  538. package/rest/support/NetworkServiceDescription.js +1 -1
  539. package/rest/support/NetworkUrl.js +1 -1
  540. package/rest/support/OffsetParameters.js +1 -1
  541. package/rest/support/ParameterValue.js +1 -1
  542. package/rest/support/PointBarrier.js +1 -1
  543. package/rest/support/PolygonBarrier.js +1 -1
  544. package/rest/support/PolylineBarrier.js +1 -1
  545. package/rest/support/ProjectParameters.js +1 -1
  546. package/rest/support/QuantizationParameters.js +1 -1
  547. package/rest/support/Query.js +1 -1
  548. package/rest/support/RasterData.js +1 -1
  549. package/rest/support/RelationParameters.js +1 -1
  550. package/rest/support/RelationshipQuery.js +1 -1
  551. package/rest/support/RouteInfo.js +1 -1
  552. package/rest/support/RouteParameters.js +1 -1
  553. package/rest/support/RouteResult.js +1 -1
  554. package/rest/support/RouteSettings.js +1 -1
  555. package/rest/support/RouteSolveResult.js +1 -1
  556. package/rest/support/ServiceAreaParameters.js +1 -1
  557. package/rest/support/ServiceAreaSolveResult.js +1 -1
  558. package/rest/support/StatisticDefinition.js +1 -1
  559. package/rest/support/Stop.js +1 -1
  560. package/rest/support/SuggestLocationsParameters.js +1 -1
  561. package/rest/support/SuggestionCandidate.js +1 -1
  562. package/rest/support/TopFeaturesQuery.js +1 -1
  563. package/rest/support/TopFilter.js +1 -1
  564. package/rest/support/TranslateContent.js +1 -1
  565. package/rest/support/TranslateParameters.js +1 -1
  566. package/rest/support/TranslateResult.js +1 -1
  567. package/rest/support/TravelMode.js +1 -1
  568. package/rest/support/TrimExtendParameters.js +1 -1
  569. package/rest/support/UniqueValueDefinition.js +1 -1
  570. package/rest/support/imageMeasureUtils.js +1 -1
  571. package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.js +1 -1
  572. package/rest/versionManagement/gdbVersion/support/ConflictsParameters.js +1 -1
  573. package/rest/versionManagement/gdbVersion/support/ConflictsResult.js +1 -1
  574. package/rest/versionManagement/gdbVersion/support/DeleteForwardEditsParameters.js +1 -1
  575. package/rest/versionManagement/gdbVersion/support/DifferencesParameters.js +1 -1
  576. package/rest/versionManagement/gdbVersion/support/DifferencesResult.js +1 -1
  577. package/rest/versionManagement/gdbVersion/support/InspectConflictsParameters.js +1 -1
  578. package/rest/versionManagement/gdbVersion/support/PostParameters.js +1 -1
  579. package/rest/versionManagement/gdbVersion/support/PostResult.js +1 -1
  580. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.js +1 -1
  581. package/rest/versionManagement/gdbVersion/support/ReconcileResult.js +1 -1
  582. package/rest/versionManagement/gdbVersion/support/RestoreRowsParameters.js +1 -1
  583. package/rest/versionManagement/gdbVersion/support/RestoreRowsResult.js +1 -1
  584. package/rest/versionManagement/support/CreateVersionParameters.js +1 -1
  585. package/rest/versionManagement/support/DeleteVersionParameters.js +1 -1
  586. package/rest/versionManagement/support/GetVersionInfosParameters.js +1 -1
  587. package/rest/versionManagement/support/GetVersionInfosResult.js +1 -1
  588. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  589. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  590. package/support/MapFloorInfo.js +1 -1
  591. package/support/revision.js +1 -1
  592. package/symbols/Font.js +1 -1
  593. package/symbols/LineStyleMarker3D.js +1 -1
  594. package/symbols/LineSymbolMarker.js +1 -1
  595. package/symbols/Symbol.js +1 -1
  596. package/symbols/Symbol3DLayer.js +1 -1
  597. package/symbols/WaterSymbol3DLayer.js +1 -1
  598. package/symbols/callouts/Callout3D.js +1 -1
  599. package/symbols/callouts/LineCallout3DBorder.js +1 -1
  600. package/symbols/edges/Edges3D.js +1 -1
  601. package/symbols/patterns/LinePattern3D.js +1 -1
  602. package/symbols/patterns/Pattern3D.js +1 -1
  603. package/symbols/support/ElevationInfo.js +1 -1
  604. package/symbols/support/FeatureExpressionInfo.js +1 -1
  605. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  606. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  607. package/symbols/support/Symbol3DEmissive.js +1 -1
  608. package/symbols/support/Symbol3DHalo.js +1 -1
  609. package/symbols/support/Symbol3DIconOutline.js +1 -1
  610. package/symbols/support/Symbol3DMaterial.js +1 -1
  611. package/symbols/support/Symbol3DOutline.js +1 -1
  612. package/symbols/support/Symbol3DTextBackground.js +1 -1
  613. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  614. package/tables/AttributeTableTemplate.js +1 -1
  615. package/tables/elements/AttributeTableElement.js +1 -1
  616. package/tables/support/FieldOrder.js +1 -1
  617. package/undoredo/support/Services.js +1 -1
  618. package/versionManagement/VersionManagementService.js +1 -1
  619. package/versionManagement/VersioningState.js +1 -1
  620. package/views/2d/AnimationManager.js +1 -1
  621. package/views/2d/ViewState.js +1 -1
  622. package/views/2d/engine/Stage.js +1 -1
  623. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  624. package/views/2d/engine/flow/styles/Particles.js +1 -1
  625. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  626. package/views/2d/engine/imagery/BrushVectorField.js +1 -1
  627. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  628. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  629. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  630. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  631. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  632. package/views/2d/engine/webgl/BitBlitRenderer.js +1 -1
  633. package/views/2d/engine/webgl/ClippingInfo.js +1 -1
  634. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  635. package/views/2d/engine/webgl/MaterialManager.js +1 -1
  636. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  637. package/views/2d/engine/webgl/Painter.js +1 -1
  638. package/views/2d/engine/webgl/Utils.js +1 -1
  639. package/views/2d/engine/webgl/VertexStream.js +1 -1
  640. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  641. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  642. package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
  643. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  644. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +1 -1
  645. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  646. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  647. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  648. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  649. package/views/2d/engine/webgl/effects/post-processing/Bloom.js +1 -1
  650. package/views/2d/engine/webgl/effects/post-processing/Blur.js +1 -1
  651. package/views/2d/engine/webgl/effects/post-processing/Colorize.js +1 -1
  652. package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +1 -1
  653. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  654. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  655. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  656. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  657. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  658. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
  659. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  660. package/views/2d/engine/webgl/shaders/BackgroundPrograms.js +1 -1
  661. package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +1 -1
  662. package/views/2d/engine/webgl/shaders/HighlightPrograms.js +1 -1
  663. package/views/2d/engine/webgl/shaders/MaterialPrograms.js +1 -1
  664. package/views/2d/engine/webgl/shaders/StencilPrograms.js +1 -1
  665. package/views/2d/engine/webgl/shaders/TileInfoPrograms.js +1 -1
  666. package/views/2d/layerViewModuleImportUtils.js +1 -1
  667. package/views/2d/layers/MediaLayerView2D.js +1 -1
  668. package/views/2d/layers/TileLayerView2D.js +1 -1
  669. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  670. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  671. package/views/2d/layers/support/DebugOverlay.js +1 -1
  672. package/views/3d/FocusAreasView.js +1 -1
  673. package/views/3d/analysis/AnalysisView3D.js +1 -1
  674. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  675. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  676. package/views/3d/environment/CloudsRenderer.js +1 -1
  677. package/views/3d/environment/CloudsTechnique.js +1 -1
  678. package/views/3d/environment/CloudyWeather.js +1 -1
  679. package/views/3d/environment/FogTechnique.js +1 -1
  680. package/views/3d/environment/FoggyWeather.js +1 -1
  681. package/views/3d/environment/LocalAtmosphere.js +1 -1
  682. package/views/3d/environment/MarsAtmosphere.js +1 -1
  683. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  684. package/views/3d/environment/Precipitation.js +1 -1
  685. package/views/3d/environment/RainyWeather.js +1 -1
  686. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  687. package/views/3d/environment/SnowyWeather.js +1 -1
  688. package/views/3d/environment/SunLighting.js +1 -1
  689. package/views/3d/environment/SunnyWeather.js +1 -1
  690. package/views/3d/glTF/internal/Resource.js +1 -1
  691. package/views/3d/glTF/loader.js +1 -1
  692. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  693. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  694. package/views/3d/layerViewModuleImportUtils.js +1 -1
  695. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  696. package/views/3d/layers/GaussianSplatLayerView3D.js +5 -0
  697. package/views/3d/layers/I3SMeshView3D.js +1 -1
  698. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  699. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  700. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  701. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  702. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  703. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  704. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  705. package/views/3d/layers/graphics/StreamController.js +1 -1
  706. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  707. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  708. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  709. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  710. package/views/3d/layers/graphics/pipeline/rendering/LodRenderer.js +1 -1
  711. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
  712. package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
  713. package/views/3d/layers/graphics/pipeline/symbolization/ObjectSymbolLayerRenderer.js +1 -1
  714. package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
  715. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  716. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  717. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  718. package/views/3d/layers/support/FeatureTile.js +1 -1
  719. package/views/3d/layers/support/FlowTileTree3DDebugger.js +5 -0
  720. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  721. package/views/3d/state/controllers/AnimationController.js +1 -1
  722. package/views/3d/support/DisplayQualityProfile.js +1 -1
  723. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  724. package/views/3d/support/buffer/glUtil.js +1 -1
  725. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  726. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  727. package/views/3d/terrain/PatchRenderData.js +1 -1
  728. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  729. package/views/3d/terrain/TerrainAttributes.js +1 -1
  730. package/views/3d/terrain/TerrainAttributesCache.js +1 -1
  731. package/views/3d/terrain/TileCompositor.js +1 -1
  732. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  733. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  734. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  735. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  736. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  737. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  738. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  739. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +2 -2
  740. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +2 -2
  741. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +4 -4
  742. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
  743. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  744. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
  745. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +4 -4
  746. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  747. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  748. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  749. package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
  750. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  751. package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
  752. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +3 -3
  753. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  754. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  755. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  756. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  757. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  758. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  759. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  760. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  761. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  762. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  763. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  764. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  765. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  766. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  767. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  768. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  769. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  770. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  771. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  772. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  773. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  774. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  775. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  776. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  777. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  778. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  779. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  780. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  781. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  782. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  783. package/views/3d/webgl-engine/lib/Material.js +1 -1
  784. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  785. package/views/3d/webgl-engine/lib/Program.js +1 -1
  786. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  787. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  788. package/views/3d/webgl-engine/lib/RenderingContextOptions.js +5 -0
  789. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  790. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  791. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  792. package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
  793. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  794. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  795. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  796. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  797. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  798. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  799. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  800. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  801. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  802. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  803. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  804. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  805. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  806. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  807. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  808. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  809. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  810. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  811. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  812. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  813. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  814. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  815. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  816. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  817. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  818. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  819. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  820. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  821. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  822. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  823. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  824. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  825. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  826. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  827. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  828. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  829. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +5 -5
  830. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  831. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  832. package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
  833. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  834. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  835. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  836. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  837. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  838. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  839. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  840. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  841. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  842. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  843. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  844. package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
  845. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  846. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  847. package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
  848. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  849. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  850. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +0 -1
  851. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  852. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  853. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  854. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  855. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  856. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  857. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  858. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  859. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  860. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  861. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
  862. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  863. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  864. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  865. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  866. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  867. package/views/3d/webgl.js +1 -1
  868. package/views/SceneView.js +1 -1
  869. package/views/VideoView.js +1 -1
  870. package/views/View.js +1 -1
  871. package/views/View2D.js +1 -1
  872. package/views/ViewAnimation.js +1 -1
  873. package/views/draw/DrawAction.js +1 -1
  874. package/views/draw/support/ConnectedReshapeManager.js +1 -1
  875. package/views/interactive/snapping/Settings.js +1 -1
  876. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  877. package/views/layers/LayerView.js +1 -1
  878. package/views/layers/support/ClipArea.js +1 -1
  879. package/views/support/PixelHighlightOptions.js +1 -1
  880. package/views/support/Scheduler.js +1 -1
  881. package/views/support/TileTreeDebugger.js +1 -1
  882. package/views/support/imageReprojection.js +1 -1
  883. package/views/support/screenshotUtils.js +1 -1
  884. package/views/webgl/FramebufferObject.js +1 -1
  885. package/views/webgl/InstanceCounter.js +1 -1
  886. package/views/webgl/Parameters.js +1 -1
  887. package/views/webgl/Program.js +1 -1
  888. package/views/webgl/ProgramCache.js +1 -1
  889. package/views/webgl/ProgramTemplate.js +1 -1
  890. package/views/webgl/RenderingContext.js +1 -1
  891. package/views/webgl/RenderingContextOptions.js +5 -0
  892. package/views/webgl/ShaderBuilder.js +1 -1
  893. package/views/webgl/Texture.js +1 -1
  894. package/views/webgl/TextureDescriptor.js +1 -1
  895. package/views/webgl/Util.js +1 -1
  896. package/views/webgl/VertexArrayObject.js +1 -1
  897. package/views/webgl/VertexAttributeLayouts.js +5 -0
  898. package/views/webgl/VertexAttributeLocations.js +5 -0
  899. package/views/webgl/VertexBuffer.js +5 -0
  900. package/views/webgl/capabilities/Capabilities.js +1 -1
  901. package/views/webgl/enums.js +1 -1
  902. package/views/webgl/heatmapTextureUtils.js +1 -1
  903. package/views/webgl/rasterUtils.js +1 -1
  904. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  905. package/views/webgl/testFloatBufferBlend.js +1 -1
  906. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  907. package/views/webgl/textureUtils.js +1 -1
  908. package/webdoc/GeotriggersInfo.js +1 -1
  909. package/webdoc/IPSInfo.js +1 -1
  910. package/webdoc/RangeInfo.js +1 -1
  911. package/webdoc/Widgets.js +1 -1
  912. package/webdoc/applicationProperties/Search.js +1 -1
  913. package/webdoc/applicationProperties/SearchLayer.js +1 -1
  914. package/webdoc/applicationProperties/SearchLayerField.js +1 -1
  915. package/webdoc/applicationProperties/SearchTable.js +1 -1
  916. package/webdoc/applicationProperties/SearchTableField.js +1 -1
  917. package/webdoc/applicationProperties/Viewing.js +1 -1
  918. package/webdoc/geotriggersInfo/DeviceLocationFeed.js +1 -1
  919. package/webdoc/geotriggersInfo/ExpressionInfo.js +1 -1
  920. package/webdoc/geotriggersInfo/FeatureFenceParameters.js +1 -1
  921. package/webdoc/geotriggersInfo/FeatureFilter.js +1 -1
  922. package/webdoc/geotriggersInfo/FeatureLayerSource.js +1 -1
  923. package/webdoc/geotriggersInfo/Geotrigger.js +1 -1
  924. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.js +1 -1
  925. package/webdoc/ips/AppleIPSProperties.js +1 -1
  926. package/webdoc/ips/Configuration.js +1 -1
  927. package/webdoc/ips/GNSSProperties.js +1 -1
  928. package/webdoc/ips/PathSnappingProperties.js +1 -1
  929. package/webdoc/ips/PositioningService.js +1 -1
  930. package/webdoc/ips/SmoothingProperties.js +1 -1
  931. package/webdoc/support/SlideThumbnail.js +1 -1
  932. package/webdoc/widgets/FloorFilter.js +1 -1
  933. package/webdoc/widgets/Range.js +1 -1
  934. package/webdoc/widgets/TimeSlider.js +1 -1
  935. package/webmap/ApplicationProperties.js +1 -1
  936. package/webmap/Bookmark.js +1 -1
  937. package/webmap/background/ColorBackground.js +1 -1
  938. package/webscene/ApplicationProperties.js +1 -1
  939. package/webscene/Environment.js +1 -1
  940. package/webscene/InitialViewProperties.js +1 -1
  941. package/webscene/Presentation.js +1 -1
  942. package/webscene/Slide.js +1 -1
  943. package/webscene/SlideLegendInfo.js +1 -1
  944. package/webscene/SunLighting.js +1 -1
  945. package/webscene/TransportationNetwork.js +1 -1
  946. package/webscene/VirtualLighting.js +1 -1
  947. package/webscene/background/Background.js +1 -1
  948. package/webscene/support/Description.js +1 -1
  949. package/webscene/support/FeatureReference.js +1 -1
  950. package/webscene/support/FeatureReferenceId.js +1 -1
  951. package/webscene/support/LayerReference.js +1 -1
  952. package/webscene/support/SlideElements.js +1 -1
  953. package/webscene/support/SlideEnvironment.js +1 -1
  954. package/webscene/support/SlideGround.js +1 -1
  955. package/webscene/support/SlidePopupInfo.js +1 -1
  956. package/webscene/support/SlideVisibleLayer.js +1 -1
  957. package/webscene/support/Title.js +1 -1
  958. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  959. package/widgets/Directions/support/directionsUtils.js +1 -1
  960. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  961. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  962. package/widgets/FeatureForm/Format.js +1 -1
  963. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  964. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  965. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  966. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  967. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  968. package/widgets/PanoramicViewer/PanoramicZoomConditions.js +1 -1
  969. package/widgets/Print/CustomTemplate.js +1 -1
  970. package/widgets/Print/PrintViewModel.js +1 -1
  971. package/widgets/Search/SearchSource.js +1 -1
  972. package/widgets/Widget.js +1 -1
  973. package/assets/esri/core/workers/chunks/040a233ce6fbcc061cdb.js +0 -1
  974. package/assets/esri/core/workers/chunks/04798411698a48438bd3.js +0 -1
  975. package/assets/esri/core/workers/chunks/053086e0a043b00f1cca.js +0 -1
  976. package/assets/esri/core/workers/chunks/05d6ccca0cf38c012873.js +0 -1
  977. package/assets/esri/core/workers/chunks/0801f9dde41ec5f36cca.js +0 -1
  978. package/assets/esri/core/workers/chunks/08b4a4c9f3d6478df40a.js +0 -1
  979. package/assets/esri/core/workers/chunks/0906f977d50b1c5d6ed5.js +0 -1
  980. package/assets/esri/core/workers/chunks/307df66d00ba5f88780d.js +0 -1
  981. package/assets/esri/core/workers/chunks/47cdd5a6351e0db3b2e9.js +0 -346
  982. package/assets/esri/core/workers/chunks/4d2dcd667b30a98dd341.js +0 -1
  983. package/assets/esri/core/workers/chunks/50f56b417992eb30243e.js +0 -1
  984. package/assets/esri/core/workers/chunks/56aafa6f8862629070d8.js +0 -1
  985. package/assets/esri/core/workers/chunks/5c5678b15b59f9964bf0.js +0 -1
  986. package/assets/esri/core/workers/chunks/641ca71d7c1a07bde66a.js +0 -1
  987. package/assets/esri/core/workers/chunks/6b6ab092f578b20c8e56.js +0 -1
  988. package/assets/esri/core/workers/chunks/72e0fda211d980572292.js +0 -1
  989. package/assets/esri/core/workers/chunks/761dab8780495286ec4e.js +0 -1
  990. package/assets/esri/core/workers/chunks/860bd6d6f0c74ca301a4.js +0 -1
  991. package/assets/esri/core/workers/chunks/8d914ea9b18b32fd62b8.js +0 -1
  992. package/assets/esri/core/workers/chunks/8e7dced4a8d089185c3a.js +0 -1
  993. package/assets/esri/core/workers/chunks/97a56b058f8472fec1b2.js +0 -1
  994. package/assets/esri/core/workers/chunks/9a4d0006c118ae5b45c0.js +0 -1
  995. package/assets/esri/core/workers/chunks/a2bfb7b2f3f909dc5e59.js +0 -1
  996. package/assets/esri/core/workers/chunks/afb7e346779adefa4b05.js +0 -1
  997. package/assets/esri/core/workers/chunks/b2f2c1108fb7cbdd1a68.js +0 -1
  998. package/assets/esri/core/workers/chunks/b3466edccd553ae0a5d0.js +0 -990
  999. package/assets/esri/core/workers/chunks/b50841f898d4eb420b73.js +0 -1
  1000. package/assets/esri/core/workers/chunks/b810e2f87c9c59ae04b1.js +0 -1
  1001. package/assets/esri/core/workers/chunks/bf60d4da0dff1e14da8e.js +0 -1
  1002. package/assets/esri/core/workers/chunks/c18ac2018aea6ba97eec.js +0 -1
  1003. package/assets/esri/core/workers/chunks/c3d3e55abf01dae271fb.js +0 -1
  1004. package/assets/esri/core/workers/chunks/cd9e6b86ab0103044370.js +0 -1
  1005. package/assets/esri/core/workers/chunks/d54e18e0f30734610f35.js +0 -1
  1006. package/assets/esri/core/workers/chunks/d7ec905d87a19a1061e7.js +0 -1
  1007. package/assets/esri/core/workers/chunks/d9f206e7ac1fad940be7.js +0 -2
  1008. package/assets/esri/core/workers/chunks/ddeaf688d72b2873c4ac.js +0 -1
  1009. package/assets/esri/core/workers/chunks/debd832b6c2c0b2ea362.js +0 -1
  1010. package/assets/esri/core/workers/chunks/dfa3ad5d750d7b143a06.js +0 -1
  1011. package/assets/esri/core/workers/chunks/e01fa6389bd0b1ae51a5.js +0 -1
  1012. package/assets/esri/core/workers/chunks/e59fdb8f625e9080f097.js +0 -1
  1013. package/assets/esri/core/workers/chunks/e7cbd1b5e4cb32851a5c.js +0 -1
  1014. package/assets/esri/core/workers/chunks/ed1cd90e899dc9c15ee3.js +0 -1
  1015. package/assets/esri/core/workers/chunks/ef3a11f7e047cff6183c.js +0 -1
  1016. package/assets/esri/core/workers/chunks/f79c9b37f2842ed88a9b.js +0 -1
  1017. package/assets/esri/core/workers/chunks/faa0cfee8c1de9b5b78c.js +0 -1
  1018. package/assets/esri/core/workers/chunks/fe6fa1f2c2d54d41645e.js +0 -1
  1019. package/views/2d/engine/webgl/DefaultVertexAttributeLayouts.js +0 -5
  1020. package/views/2d/engine/webgl/shaderGraph/typed/TypedVertexArrayObject.js +0 -5
  1021. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +0 -5
  1022. /package/assets/esri/core/workers/chunks/{d9f206e7ac1fad940be7.js.LICENSE.txt → 3386420c9ae891db5be7.js.LICENSE.txt} +0 -0
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../Camera.js";import i from"../Viewpoint.js";import r from"../core/Collection.js";import{byId as s}from"../core/domUtils.js";import n from"../core/Error.js";import{on as a}from"../core/events.js";import{makeHandle as o}from"../core/handleUtils.js";import has from"../core/has.js";import l from"../core/Logger.js";import{destroyMaybe as p,maybeProperty as h}from"../core/maybe.js";import{throwIfDestroyed as d,throwIfAborted as u,createAbortError as c}from"../core/promiseUtils.js";import g from"../core/ReactiveSet.js";import{on as m,watch as y,initial as f,sync as w,whenOnce as v,syncAndInitial as _}from"../core/reactiveUtils.js";import{setFrameDuration as b,cleanupScheduling as M}from"../core/scheduling.js";import{createScreenPointArray as S,createScreenPoint as V}from"../core/screenUtils.js";import{cleanupWhereClauseCache as j}from"../core/sql.js";import{getMetersPerUnitForSR as C}from"../core/unitUtils.js";import{initialize as T}from"../core/workers/workers.js";import{property as R}from"../core/accessorSupport/decorators/property.js";import{cast as x}from"../core/accessorSupport/decorators/cast.js";import"../core/RandomLCG.js";import{subclass as O}from"../core/accessorSupport/decorators/subclass.js";import{ensureType as A,ensureClass as E}from"../core/accessorSupport/ensureType.js";import{overrideDefaultsFrom as H}from"../core/accessorSupport/overrideDefaultsFrom.js";import{drainNotificationQueue as L}from"../core/accessorSupport/trackingUtils.js";import{create as I}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{cleanupPooledRBush as P}from"../core/libs/rbush/PooledRBush.js";import{owningCollectionProperty as F}from"../core/support/OwningCollection.js";import D from"../geometry/Extent.js";import G from"../geometry/HeightModelInfo.js";import U from"../geometry/Point.js";import{project as W,canProjectWithoutEngine as q}from"../geometry/projectionUtils.js";import z from"../geometry/SpatialReference.js";import{cleanupSpatialReferenceEllipsoidUtils as k}from"../geometry/spatialReferenceEllipsoidUtils.js";import{projectBoundingRect as B}from"../geometry/projection/projectBoundingRect.js";import{projectPointToVector as N}from"../geometry/projection/projectPointToVector.js";import{toExtent as Q,create as Y}from"../geometry/support/aaBoundingRect.js";import{renderSRFromViewSR as Z}from"../geometry/support/coordinateSystem.js";import{getResolutionForScale as $}from"../geometry/support/scaleUtils.js";import{isImageryTileLayer as J,isTiledLayer as K,isVoxelLayer as X,isIntegratedMeshLayer as ee}from"../layers/support/layerUtils.js";import{TilemapCache as te}from"../layers/support/TilemapCache.js";import{clearDefaultPortalInstance as ie}from"../portal/portalDefault.js";import{AnalysesCollection as re}from"../support/AnalysesCollection.js";import{WebSceneTag as se}from"../support/tagSymbols.js";import{BreakpointsOwner as ne}from"./BreakpointsOwner.js";import{DOMContainer as ae}from"./DOMContainer.js";import oe from"./GroundView.js";import{PopupView as le}from"./PopupView.js";import pe from"./View.js";import he from"./ViewAnimation.js";import{stringFromViewingMode as de,viewingModeFromString as ue}from"./ViewingMode.js";import{layerView3DImporter as ce}from"./3d/layerViewModuleImportUtils.js";import ge from"./3d/analysis/AnalysisViewManager3D.js";import{cleanupIntersectionUtils as me}from"./3d/camera/intersectionUtils.js";import{Constraints as ye}from"./3d/constraints/Constraints.js";import{EnvironmentManager as fe}from"./3d/environment/EnvironmentManager.js";import we from"./3d/environment/SceneViewEnvironment.js";import ve from"./3d/input/SceneInputManager.js";import{GraphicsDeconflictor as _e}from"./3d/layers/graphics/GraphicsDeconflictor.js";import{Labeler as be}from"./3d/layers/graphics/Labeler.js";import Me from"./3d/layers/i3s/I3SLodHandling.js";import{cleanupStageLayerElevationProvider as Se}from"./3d/layers/support/StageLayerElevationProvider.js";import Ve from"./3d/state/ViewState.js";import{ViewStateManager as je,cleanupViewStateManager as Ce}from"./3d/state/ViewStateManager.js";import{cleanupPointToPointAnimationController as Te}from"./3d/state/controllers/PointToPointAnimationController.js";import{SceneIntersectionHelper as Re}from"./3d/state/helpers/SceneIntersectionHelper.js";import{cleanupNavigationUtils as xe}from"./3d/state/utils/navigationUtils.js";import{CombinedElevationProvider as Oe}from"./3d/support/CombinedElevationProvider.js";import{debugFlags as Ae}from"./3d/support/debugFlags.js";import Ee from"./3d/support/DisplayQualityProfile.js";import{getElevationAtPoint as He}from"./3d/support/ElevationProvider.js";import{toMap as Le,hitTest as Ie}from"./3d/support/hitTest.js";import{popupHitTest as Pe}from"./3d/support/popupHitTest.js";import Fe from"./3d/support/QualitySettings.js";import{RenderCoordsHelper as De}from"./3d/support/RenderCoordsHelper.js";import{newResourceController as Ge}from"./3d/support/ResourceController.js";import Ue from"./3d/support/SceneViewPerformanceInfo.js";import{SharedSymbolResources as We}from"./3d/support/SharedSymbolResources.js";import{ViewSlice as qe}from"./3d/support/ViewSlice.js";import{PointsOfInterest as ze}from"./3d/support/pointsOfInterest/PointsOfInterest.js";import ke from"./3d/terrain/TerrainSurface.js";import{isSurfaceLayerView as Be,getTiledLayerInfo as Ne,checkIfTileInfoSupportedForView as Qe}from"./3d/terrain/terrainUtils.js";import{clearTilePerLayerInfo as Ye}from"./3d/terrain/TilePerLayerInfo.js";import{cleanupTileRenderer as Ze}from"./3d/terrain/TileRenderer.js";import{Stage as $e}from"./3d/webgl-engine/Stage.js";import{olidEnabled as Je}from"./3d/webgl-engine/effects/geometry/olidUtils.js";import{cleanupRenderOccluded as Ke}from"./3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js";import{defaultTolerance as Xe}from"./3d/webgl-engine/lib/Intersector.js";import{cleanupShadowmap as et}from"./3d/webgl-engine/lib/ShadowMap.js";import{terrainId as tt}from"./3d/webgl-engine/lib/verticalOffsetUtils.js";import{cleanupEdgeProcessing as it}from"./3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js";import{cleanupDrapedUtils as rt}from"./support/drapedUtils.js";import{defaultHighlightName as st}from"./support/HighlightDefaults.js";import nt from"./support/HighlightOptions.js";import{occludeesSupported as at}from"./support/layerViewUtils.js";import{isSupportedScreenPointEvent as ot,createScreenPointFromSupportedEvent as lt}from"./support/screenUtils.js";import{isSpatialReferenceSupported as pt}from"./support/spatialReferenceSupport.js";import{initializeTextureCompressionWorker as ht,destroyTextureCompressionWorker as dt}from"./support/TextureCompressionHelper.js";import{check as ut}from"./support/WebGLRequirements.js";import ct from"./ui/DefaultUI.js";import gt from"./ui/3d/DefaultUI3D.js";import mt from"../webscene/Environment.js";import{clearVNodeCache as yt}from"../widgets/support/vnodeCache.js";const ft=Symbol(),wt=Symbol();let vt=class extends(ne(le(ae(pe)))){constructor(e){super(e),this._userClippingArea=null,this._clippingArea=null,this._initialDefaultSpatialReference=null,this._overrideDefaultEnvironmentOnly=!0,this._resolveWhenReady=[],this._resourceController=Ge(this),this.deconflictor=new _e({view:this}),this.labeler=new be({view:this,deconflictor:this.deconflictor.labels}),this.sharedSymbolResources=null,this.analyses=new re,this.basemapTerrain=null,this.elevationProvider=null,this._canvas=null,this.constraints=new ye,this.environment=new we,this.environmentManager=new fe,this.floors=new r,this.fullOpacity=1,this.graphicsView=null,this.analysisViewManager=new ge({view:this}),this.groundView=null,this.map=null,this._featureTileTreeClients=new g,this._featureTiles=null,this._featureTreeDebugger=null,this.screenSizePerspectiveEnabled=!0,this.state=new Ve({view:this}),this.slice=new qe,this.spatialReference=null,this.alphaCompositingEnabled=!1,this.preserveDrawingBufferEnabled=!1,this.supersampleScreenshotsEnabled=!0,this.type="3d",this.ui=new gt,this._numUpdating=0,this._lastUpdateTime=0,this.updatingProgress=.5,this._importControllers=new Map,T();const t=(e=null)=>{null!=e&&4===e.type||(this._updatingChanged(),this.map?.allLayers.forEach(async e=>{try{await e.when()}catch(t){}this._updatingChanged()}))};this.addHandles([m(()=>this.map?.allLayers,"after-changes",e=>t(e),{onListenerAdd:()=>t(),onListenerRemove:()=>t(),sync:!0}),this.allLayerViews.on("after-changes",e=>this._updateUpdatingMonitors(e)),y(()=>this.scene,e=>e?.load().catch(()=>{}))]),this.inputManager=new ve({view:this}),this.stateManager=new je({view:this})}initialize(){if(has("enable-feature:esri-compress-textures")&&has("wasm-simd")){const e=ht(this,this.resourceController);this.addResolvingPromise(e.promise)}this.groundView=new oe({view:this}),this._updateUpdatingMonitors(),this.updatingHandles.add(()=>this.qualitySettings.memoryLimit,e=>{this.resourceController&&(this.resourceController.memoryController.maxMemory=e)},f),this.updatingHandles.add(()=>this.qualitySettings.additionalCacheMemory,e=>{this.resourceController&&(this.resourceController.memoryController.additionalCacheMemory=e)},f),this.updatingHandles.add(()=>this.qualitySettings.frameRate??0,e=>b(e>0?1e3/Math.ceil(e):0),f),this.addHandles([y(()=>this.spatialReference,()=>this.notifyChange("clippingArea"),w),y(()=>({plane:this.slice.plane,isDecoration:this.slice.isDecoration}),()=>this._updateSlice(),w)])}destroy(){this.destroyed||(dt(this),this.updatingHandles.removeAll(),this.basemapTerrain?.clearHandles(),this.ui.removeAllHandles(),this.layerViewManager.clearHandles(),this.invalidate(),this.activeTool=null,this.layerViewManager.clear(),this._set("analysisViewManager",p(this.analysisViewManager)),this._exitSurface(),this._disposeGraphicsView(),this._disposeFocusAreasView(),this.sharedSymbolResources=p(this.sharedSymbolResources),this._set("labeler",p(this.labeler)),this._set("deconflictor",p(this.deconflictor)),this._resourceController=p(this._resourceController),this._set("stateManager",p(this.stateManager)),this._set("inputManager",p(this.inputManager)),this.state.destroy(),this.highlights.destroy(),this.removeHandles("updatingMonitors"),this._set("environmentManager",p(this.environmentManager)),this._set("environment",p(this.environment)),this.groundView=p(this.groundView),this.slice.destroy(),this._updatingObjectsWithProgress.length=0,this._updatingObjects.length=0,this.ui?.destroy(),this._set("ui",null),this._set("renderCanvas",null),this._set("canvas",null),this._canvas=null)}get stage(){return this._stage}get renderSpatialReference(){return this.renderCoordsHelper?.spatialReference}get basemapSpatialReference(){return this.basemapTerrain?.spatialReference}get animation(){return this.state?.animation}get camera(){return this.stateManager?.camera}set camera(e){this.stateManager&&(this.stateManager.camera=e)}get contentCamera(){return this.stateManager?.contentCamera}set contentCamera(e){this.stateManager&&(this.stateManager.contentCamera=e)}installContentCameraReset(e={sticky:!1}){return this.stateManager.installContentCameraReset(e)}get canvas(){return this._canvas}get center(){return this.stateManager?.center}set center(e){this.stateManager&&(this.stateManager.center=e)}get clippingArea(){if("global"===this.viewingMode)return null;const e=this.map;let t=this._userClippingArea||h(e,"clippingArea");return!this._userClippingArea&&!h(e,"clippingEnabled")||null==t?(this._clippingArea=null,null):t instanceof D?this.spatialReference&&(t=_t(t,this.spatialReference),null==t)?(l.getLogger(this).error("#clippingArea","setting clippingArea with incompatible SpatialReference"),this._clippingArea):(t=t.clone(),null==t.intersection(this._groundAndLayersExtent)&&(t.xmin=t.xmax,t.ymin=t.ymax),t.zmin=void 0,t.zmax=void 0,t.equals(this._clippingArea)||(this._clippingArea=t),this._clippingArea):(l.getLogger(this).error("#clippingArea","only clippingArea geometries of type Extent are supported"),this._clippingArea)}set clippingArea(e){this.ready&&"global"===this.viewingMode&&null!=e?l.getLogger(this).error("#clippingArea=","Clipping area is only supported in local viewingMode"):this._userClippingArea=e}get renderDataExtent(){if(1===this.state.viewingMode)return null;const e=this.renderSpatialReference,t=this.dataExtent;return null==t||null==e||t.spatialReference.equals(e)?t:_t(t,e)}get tileInfo(){return this.basemapTerrain?.tilingScheme?.toTileInfo()}get dataExtent(){let e=this._groundAndLayersExtent;const t=this.spatialReference||z.WGS84,i=_t(this.clippingArea,t);null!=i&&(e=null!=e?e.intersection(i):i);const r=this._get("dataExtent");return null!=e&&e.equals(r)?r:e}get _groundAndLayersExtent(){const e=this.spatialReference||z.WGS84;let t;const i=i=>{const r=_t(i,e);null!=r&&(null!=t?t.union(r):t=r.clone())},{basemapTerrain:r}=this;if(r?.spatialReference){const e=r.groundExtent;i(new D({xmin:e[0],ymin:e[1],zmin:0,xmax:e[2],ymax:e[3],zmax:0,spatialReference:r.spatialReference}))}const s=e=>{null==e.fullExtent||"graphics"===e.type&&e.internal||i(e.fullExtent)};if(this.map?.allLayers.forEach(e=>s(e)),null==t)return null;t.hasZ?(t.zmin=Math.min(0,t.zmin??0),t.zmax=Math.max(0,t.zmax??0)):(t.zmin=0,t.zmax=0);const n=this._get("_groundAndLayersExtent");return t.equals(n)?n:t}castEnvironment(e){return e?e instanceof we?e:e instanceof mt?this.environment?.cloneWithWebsceneEnvironment(e)??we.fromWebsceneEnvironment(e):A(we,e):new we}get extent(){return this.stateManager?.extent}set extent(e){this.stateManager&&(this.stateManager.extent=e)}get screenCenter(){return this.stateManager?.screenCenter}get frustum(){return this.stateManager?.frustum}get initialExtentRequired(){return this.stateManager&&!this.stateManager.hasInitialView}get defaultsFromMapSettings(){return{required:{tileInfo:!1,heightModelInfo:!0,extent:!1}}}get interacting(){return this.navigating||(this.toolViewManager?.interacting??!1)}get stationary(){return!this.animation&&!this.resizing&&(this.state?.stationary??!0)}get navigating(){return this.state?.navigating??!1}get scene(){return this.map&&se in this.map?this.map:null}get padding(){return this.stateManager?.padding}set padding(e){this.stateManager&&(this.stateManager.padding=e)}get featureTiles(){return this._featureTiles}set qualityProfile(e){Ee.isValidProfile(e)&&(Ee.apply(e,this.qualitySettings),this.stage?.renderView.updateQualitySettings(this.qualitySettings),this._set("qualityProfile",e))}get qualityProfile(){return this._get("qualityProfile")||Ee.getDefaultProfile()}_updateSlice(){null!=this.stage&&(this.stage.renderer.slice=this.slice)}get typeSpecificPreconditionsReady(){return!!this.viewingMode&&!!this.stateManager?.preinit(this.spatialReference)}get resolution(){return null!=this.spatialReference?$(this.scale,this.spatialReference):0}get scale(){return this.stateManager?.scale}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get heightModelInfo(){const e=this.getDefaultHeightModelInfo();return null!=e?G.deriveUnitFromSR(e,this.spatialReference):null}get updating(){if(this.destroying||this.destroyed)return!1;let e=0,t=this.layerViewManager.updating,i=t?this.layerViewManager.updatingRemaining:0;this.allLayerViews.forEach(r=>{if(r.isFulfilled()){if(r.updating){if(t=!0,r.suspended||Be(r))return;++i,e+=r.updatingProgress}}else++i});for(const s of this._updatingObjects)if(null!=s&&s.updating){const t=.1;i+=t,e+=.5*t}for(const s of this._updatingObjectsWithProgress)null!=s&&s.updating&&(++i,e+=s.updatingProgress);const r=!this.stateManager.test.updatingIgnoreRenderState&&this.state.updating;if(t=!!(t||i>0||this.updatingHandles.updating||!this.ready||!this.stationary||r||this._importControllers.size>0||this.inputManager?.updating||this.map?.allLayers?.some(e=>!e.isFulfilled())),t?(this._numUpdating=Math.max(i,this._numUpdating),e+=this._numUpdating-i):this._numUpdating=0,this._numUpdating>0?e/=this._numUpdating:e=t?0:1,this._get("updatingProgress")!==e){const i=performance.now();if(e<1){const t=Math.min((i-this._lastUpdateTime)/2e3,1);e=this.updatingProgress*(1-t)+e*t}this._set("updatingProgress",e),this._lastUpdateTime=t&&e<1?i:0}return t}get _updatingObjects(){return[this.graphicsView,this.basemapView,this._resourceController,this.stage,this.featureTiles,this.pointsOfInterest,this.environmentManager,this.overlay,this._featureTreeDebugger,this.toolViewManager,this.analysisViewManager]}get _updatingObjectsWithProgress(){return[this.deconflictor,this.labeler,this.basemapTerrain]}get viewingMode(){const e=this._predeterminedViewingMode;if(null!=e)return de(e);const t=this.spatialReference;return t?null!=this.defaultsFromMap?.viewingMode&&t.equals(this.defaultsFromMap.spatialReference)?de(this.defaultsFromMap.viewingMode):pt(t,1)?"global":"local":"global"}set viewingMode(e){this.ready?l.getLogger(this).error("#viewingMode","viewingMode cannot be set once view is ready"):this._overrideIfSome("viewingMode",e)}get viewpoint(){return this.stateManager?.viewpoint}set viewpoint(e){this.stateManager&&(this.stateManager.viewpoint=e)}get visibleArea(){return this.stateManager?.visibleArea}get zoom(){return this.stateManager.zoom}set zoom(e){this.stateManager&&(this.stateManager.zoom=e)}get highlightOptions(){return this.highlights.find(({name:e})=>e===st)??new nt}set highlightOptions(e){for(let t=0;t<this.highlights.length;++t){if(this.highlights.at(t).name===st)return void this.highlights.items[t].assignFrom(e)}}get resourceController(){return this._resourceController}get quality(){return this._resourceController?.memoryController?.memoryFactor??1}get resolutionScale(){return Math.sqrt(Math.min(1,this.quality/.75))}get performanceInfo(){return new Ue(this)}on(e,t,i,r){const s=this.viewEvents.on(e,t,i,r);return s||super.on(e,t)}hasEventListener(e){return super.hasEventListener(e)||this.viewEvents.hasHandler(e)}toMap(e,t){if(!this.ready)return l.getLogger(this).error("#toMap()","Scene view cannot be used before it is ready"),null;const i=ot(e)?lt(this,e):e;return Le(this,i,t,this._defaultToMapOptions)}toScreen(e){if(!this.ready)return l.getLogger(this).error("#toScreen()","Scene view cannot be used before it is ready"),null;const t=(null==e.z?He(this.elevationProvider,e):null)??0;return N(e,bt,this.renderSpatialReference,t),this.state.camera.projectToScreen(bt,Mt),V(Mt[0],Mt[1])}pixelSizeAt(e,t){if(!this.ready)return l.getLogger(this).error("#pixelSizeAt()","Scene view cannot be used before it is ready"),null;if(!e)return 0;const i=this.renderSpatialReference;N(e,bt,i);const r=this.state.camera.computeScreenPixelSizeAt(bt);return t&&i!==t?r*C(i)/C(t):r}overlayPixelSizeInMapUnits(e){const t=this.basemapTerrain.overlayManager;return t?t.overlayPixelSizeInMapUnits(e,()=>this.pixelSizeAt(e)):1}hitTest(e,t){if(!this.ready)return l.getLogger(this).error("#hitTest()","Scene view cannot be used before it is ready"),null;const i=ot(e)?lt(this,e):e;return Ie(this,i,t,this._defaultHitTestOptions)}async popupHitTest(e){return Pe(this,e)}goTo(e,t){return this.updatingHandles.addPromise(this.stateManager.goTo(e,t))}async whenAnalysisView(e){if(null==e.parent)throw new n("view:no-analysisview-for-analysis","The analysis has not been added to view.analyses",{analysis:e});switch(e.parent.type){case"line-of-sight":case"dimension":case"viewshed":return(await this.whenLayerView(e.parent)).whenAnalysisView();default:return this.analysisViewManager.whenAnalysisView(e)}}whenLayerView(e){return super.whenLayerView(e)}async takeScreenshot(e){const t=await this._completeSettings(e);await this.whenReady();const i=(await this.stage.renderView.takeScreenshot(t))[0];return(await import("./support/screenshotUtils.js")).encode(i,t,this._pixelFormat())}async _takeScreenshot(e){const t=await this._completeSettings(e);await this.whenReady();const i=(await this.stage.renderView.takeScreenshot(t))[0];return(await import("./support/screenshotUtils.js")).encodeData(i,this._pixelFormat())}async _takeScreenshotWithObjectAndLayerId(e){const t=await this._completeSettings(e);t.objectAndLayerIdColor=!0,await this.whenReady();const i=await this.stage.renderView.takeScreenshot(t),{encodeData:r}=await import("./support/screenshotUtils.js");return[r(i[0],this._pixelFormat()),r(i[1],this._pixelFormat())]}async _completeSettings(e){const{toRenderSettings:t,screenshotSuperSampleSettings:i}=await import("./support/screenshotUtils.js"),r=t(e,this);return r.pixelRatio/=this.state.pixelRatio,i(r,this.supersampleScreenshotsEnabled,this.padding)}_pixelFormat(){return{flipY:!0,premultipliedAlpha:this.stage?.renderView.getAlpha()??!1}}get test(){}async takeScreenshotWithObjectAndLayerId(e){if(!Je())throw new n("360vr:objectAndLayerId-rendering-disabled","has enable-feature:objectAndLayerId-rendering must be true");const{encode:t}=await import("./support/screenshotUtils.js"),i=await this._completeSettings(e);i.objectAndLayerIdColor=!0,await this.whenReady();const r=await this.stage.renderView.takeScreenshot(i),s=t(r[0],i,this._pixelFormat()),a=await this._completeSettings(e);a.format="png";return[s,t(r[1],a,this._pixelFormat())]}getColorToObjectAndLayerIdMapping(){const e=this.stage.renderView.olidRenderHelper;if(e)return e.getColorToObjectAndLayerIdMapping();throw new n("360vr:objectAndLayerId-rendering-disabled","has enable-feature:objectAndLayerId-rendering must be true")}addUpdatingPromise(e){return this.updatingHandles.addPromise(e)}importLayerView(e){return ce.importLayerView(e)}hasLayerViewModule(e){return ce.hasLayerViewModule(e)}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){return this.scene?.initialViewProperties?.spatialReference||this.defaultsFromMap?.spatialReference||this.defaultsFromMap?.ready&&this._initialDefaultSpatialReference||null}async validate(){let e=ut(this.type);const t=has("safari");if(t&&t<9&&(e=new n("sceneview:browser-not-supported","This browser is not supported by SceneView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:t})),null!=e)throw l.getLogger(this).warn("#validate()",e.message),e}get _predeterminedViewingMode(){const e=this._isOverridden("viewingMode")?this._get("viewingMode"):this.scene?.initialViewProperties?.viewingMode;return null!=e?ue(e):null}getSpatialReferenceSupport(e,t){const i=this._predeterminedViewingMode;if(null!=i)return this._validateSpatialReferenceForViewingMode(e,t,i)?{constraints:this._makeSpatialReferenceConstraints(e,t,i)}:null;const r=this._validateSpatialReferenceForViewingMode(e,t,2),s=this._validateSpatialReferenceForViewingMode(e,t,1);return r||s?r&&s?{constraints:this._makeSpatialReferenceConstraints(e,t,null)}:r?{constraints:this._makeSpatialReferenceConstraints(e,t,2)}:{constraints:this._makeSpatialReferenceConstraints(e,t,1)}:null}_validateSpatialReferenceForViewingMode(e,t,i){return!!pt(e,i)&&(null==t||(!!J(t)||(!K(t)||null!=Ne(t,e,i))&&(!X(t)||1!==i)))}_makeSpatialReferenceConstraints(e,t,i){if(null==t)return[{spatialReference:e,viewingMode:i}];const{isWebMercator:r,isWGS84:s}=e;if(J(t)&&(r||s)){return!s||2===i||null===Qe(t.tileInfo,t.fullExtent,e,1)?[{spatialReference:e,viewingMode:i},{spatialReference:z.WebMercator,viewingMode:i}]:[{spatialReference:r?z.WGS84:z.WebMercator,viewingMode:i}]}return K(t)||X(t)||!r&&!s?K(t)&&r&&1!==i?[{spatialReference:e,viewingMode:i},{spatialReference:z.WGS84,viewingMode:2}]:[{spatialReference:e,viewingMode:i}]:[{spatialReference:e,viewingMode:i},{spatialReference:r?z.WGS84:z.WebMercator,viewingMode:i}]}_validateSpatialReference(e){const t=null!=this.getSpatialReferenceSupport(e),i=this._predeterminedViewingMode;return t||(null!=i?l.getLogger(this).warnOnce(`Spatial reference defined on view not supported in ${de(i)} viewing mode.`):e.isGeographic&&l.getLogger(this).warnOnce("Spatial reference is geographic but not supported.")),t}whenReady(){return new Promise(e=>{this.ready?e(this):this._resolveWhenReady.push(e)})}trackGraphicState(e){if(!e.graphic)return l.getLogger(this).error("trackGraphicState","GraphicState.graphic must not be null or undefined to start tracking"),null;const t=this.getViewForGraphic(e.graphic);let i=null,r=!1;const s=t=>{!r&&null!=t&&"processor"in t&&"graphics-3d"===t.processor?.type&&t.processor.graphicsCore&&(i=t.processor.graphicsCore.trackGraphicState(e))};return null!=t?s(t):this.whenViewForGraphic(e.graphic,{waitForLayer:!0}).then(e=>s(e),()=>{}).catch(()=>{}),o(()=>{r=!0,null!=i&&(i.remove(),i=null)})}maskOccludee(e){if(!e)return l.getLogger(this).error("maskOccludee","GraphicState.graphic must not be null or undefined to mask an occludee"),null;const t=this.getViewForGraphic(e);let i=null,r=!1;const s=t=>{!r&&null!=t&&at(t)&&(i=t.maskOccludee(e))};return null!=t?s(t):this.whenViewForGraphic(e,{waitForLayer:!0}).then(e=>s(e),()=>{}).catch(()=>{}),o(()=>{r=!0,null!=i&&(i.remove(),i=null)})}getViewForGraphic(e){return e.layer===this?this.graphicsView:e.layer?this.allLayerViews.filter(e=>"media-3d"!==e.type).find(t=>t.layer===e.layer):null}graphicChanged(e){null!=this.graphicsView&&this.graphicsView.graphicChanged(e)}async whenViewForGraphic(e,t){return e.layer===this?(await v(()=>this.graphicsView),this.graphicsView):e.layer&&this.map?t&&t.waitForLayer&&!this.map.allLayers.includes(e.layer)?new Promise((t,i)=>{const r=this.map.allLayers.on("change",s=>{s.added.includes(e.layer)&&(r.remove(),this.whenLayerView(e.layer).then(t,i))})}):this.whenLayerView(e.layer):null}enableFeatureTiles(){const e=Symbol();return this._featureTileTreeClients.add(e),o(()=>this._featureTileTreeClients.delete(e))}async _importModule(e,t){const i=new AbortController;this._importControllers.set(e,i),this._updatingChanged();try{const r=await Vt[e]();if(t&&(d(this),u(i.signal),await t(i.signal)),this.destroyed)throw c();return u(i.signal),r}catch{return null}finally{this._importControllers.delete(e),this._updatingChanged()}}_abortImport(e){this._importControllers.get(e)?.abort(),this._importControllers.delete(e),this._updatingChanged()}_initBasemapTerrain(){this._set("basemapTerrain",new ke({view:this})),this._set("elevationProvider",new Oe({view:this})),this.elevationProvider.register("ground",this.basemapTerrain)}_exitBasemapTerrain(){const{basemapTerrain:e,elevationProvider:t}=this;e&&(this._set("basemapTerrain",null),this._set("elevationProvider",null),t.unregister(e),t.destroy(),e.destroy())}_initGlobe(){this._initCoordinateSystem(),this.state.createInitialCamera(),this._initBasemapTerrain(),this._set("pointsOfInterest",new ze({view:this})),this.addHandles([this.updatingHandles.add(()=>Ae.FEATURE_TILE_TREE_SHOW_TILES,e=>{e&&!this._featureTreeDebugger?this.updatingHandles.addPromise(import("./3d/layers/support/FeatureTileTree3DDebugger.js")).then(({FeatureTileTree3DDebugger:e})=>{!this._featureTreeDebugger&&Ae.FEATURE_TILE_TREE_SHOW_TILES&&(this._featureTreeDebugger=new e({view:this}))}):e||(this._featureTreeDebugger=p(this._featureTreeDebugger))},_),this.updatingHandles.add(()=>({basemapExtent:this.basemapTerrain?.extent,basemapSpatialReference:this.basemapTerrain?.spatialReference,clippingArea:this.clippingArea,featureTiles:this._featureTiles}),({basemapExtent:e,basemapSpatialReference:t,clippingArea:i,featureTiles:r})=>{if(!r)return;const s=!!e;if(i||s)if(s&&t){const s=e&&t?W(Q(e,t),this.spatialReference):null;r.filterExtent=i?i.intersection(s):s}else r.filterExtent=i;else r.filterExtent=null},_),this.updatingHandles.add(()=>this._featureTileTreeClients.size>0,e=>{e?this._ensureFeatureTileTree():this._featureTiles=p(this._featureTiles)},w)],ft),this.stateManager.init()}async _ensureFeatureTileTree(){if(this._featureTiles||this._importControllers.has("FeatureTileTree3D"))return;const e=(await this.updatingHandles.addPromise(this._importModule("FeatureTileTree3D")))?.FeatureTileTree3D;e&&(this._featureTiles=new e({renderCoordsHelper:this.renderCoordsHelper,pointsOfInterest:this.pointsOfInterest,viewState:this.state,scheduler:this._resourceController.scheduler,terrain:this.basemapTerrain}),this._updatingChanged())}_exitTerrain(){this.stateManager.exit(),this.removeHandles(wt),this.removeHandles(ft),this._featureTiles=p(this.featureTiles),this._set("pointsOfInterest",p(this.pointsOfInterest)),this._exitBasemapTerrain(),this.state.reset(),this._exitCoordinateSystem()}_initCoordinateSystem(){if(this.spatialReference){const e=this.spatialReference,t=this.state.isGlobal,i=Z(t,e);i!==this.renderSpatialReference&&(this._set("renderCoordsHelper",De.create(this.state.viewingMode,i)),t||this.addHandles(y(()=>this.basemapTerrain?.extent,e=>{const t=this.renderCoordsHelper.spatialReference;null==e||0===e[0]&&0===e[1]&&0===e[2]&&0===e[3]||!B(e,this.basemapTerrain.spatialReference,St,t)||(this.renderCoordsHelper.extent=St)},w),wt),this.sceneIntersectionHelper&&this.sceneIntersectionHelper.setTolerance(Xe/this.renderCoordsHelper.unitInMeters))}else this._set("renderCoordsHelper",null)}_exitCoordinateSystem(){this.removeHandles(wt),this._set("renderCoordsHelper",null)}_updatingChanged(){this.notifyChange("updating")}_updateUpdatingMonitors(e=null){null!=e&&4===e.type||(this.removeHandles("updatingMonitors"),this.allLayerViews.forEach(e=>{e.destroyed||(this.addHandles(y(()=>[e.updating,e.updatingProgress],()=>this._updatingChanged(),w),"updatingMonitors"),e.when(()=>this._updatingChanged(),()=>this._updatingChanged()))}),this._updatingChanged())}async _prepareScreenshotOverlay(){this.overlay&&await this.overlay.prepare()}_renderScreenshotOverlay(e,t,i){if(!this.overlay||!this.overlay.hasVisibleItems)return i;const r=e.getContext("2d",{willReadFrequently:!0});return r.putImageData(i,0,0),this.overlay.renderCanvas(e,{disableDecorations:t}),r.getImageData(0,0,i.width,i.height)}_initStage(){const e={deactivatedWebGLExtensions:this.deactivatedWebGLExtensions,debugWebGLExtensions:this.debugWebGLExtensions,alpha:this.alphaCompositingEnabled,preserveDrawingBuffer:this.preserveDrawingBufferEnabled,canvas:this.renderCanvas,screenshot:{prepareOverlay:()=>this._prepareScreenshotOverlay(),renderOverlay:(e,t,i)=>this._renderScreenshotOverlay(e,t,i)}},t=new Re(this.state.viewingMode,e=>this.stage.layers.forEach(e),this);this._set("sceneIntersectionHelper",t);const i=s(this.surface);this._stage=new $e({view:this,options:e,container:i}),this.notifyChange("stage"),this._updateSlice(),this.addHandles([this.updatingHandles.add(()=>this.qualitySettings.highQualityTransparency,e=>this.stage.renderer.setParameters({highQualityTransparency:e}),f),this.on("pointer-move",()=>this.stage?.renderer.resetAnimation()),a(this.stage.renderView.canvas,"webglcontextlost",e=>{this.fatalError=new n("webgl-context-lost",e.statusMessage)})],"stage"),this.renderCoordsHelper&&this.sceneIntersectionHelper.setTolerance(Xe/this.renderCoordsHelper.unitInMeters),this._set("canvas",this.stage.renderView.canvas)}_exitStage(){this.sceneIntersectionHelper?.destroy(),this._set("sceneIntersectionHelper",null),this._stage=p(this.stage),this._set("stage",null),this.removeHandles("stage"),this._set("canvas",null)}_initSurface(e){this._exitSurface(),this._initStage(),this._initGlobe(),this.sharedSymbolResources=new We({view:this,viewingMode:e,resourceController:this._resourceController,pointsOfInterest:this.pointsOfInterest,viewState:this.state})}_exitSurface(){this.sharedSymbolResources&&(this.sharedSymbolResources.objectResourceCache.destroy(),this.sharedSymbolResources.destroy(),this.sharedSymbolResources=null,this._exitTerrain(),this._exitStage())}async _ensureGraphicsView(){if(this.graphicsView||this._importControllers.has("GraphicsView3D")||0===this.graphics.length)return;this.removeHandles("GraphicsView3D");const e=(await this.updatingHandles.addPromise(this._importModule("GraphicsView3D",e=>v(()=>this.basemapTerrain?.ready,e))))?.default;e&&this._set("graphicsView",new e({view:this,getGraphics:()=>this.graphics})),this._updatingChanged()}_disposeGraphicsView(){this._abortImport("GraphicsView3D"),this.removeHandles("GraphicsView3D"),this.graphicsView&&(this.removeHandles(this.graphicsView.processor.layer.id),this.graphicsView.destroy(),this._set("graphicsView",null))}_disposeFocusAreasView(){this._abortImport("FocusAreasView"),this.removeHandles("FocusAreasView"),this.focusAreasView=p(this.focusAreasView)}async _ensureFocusAreasView(e){if(this.focusAreasView||this._importControllers.has("FocusAreasView")||0===e)return;this.removeHandles("FocusAreasView");const t=(await this.updatingHandles.addPromise(this._importModule("FocusAreasView")))?.FocusAreasView;t&&(this.focusAreasView=new t({view:this})),this._updatingChanged()}_startup(){const e=ue(this.viewingMode);1===e&&(this._clippingArea=null),this._initSurface(e),this._set("ready",!0),this.addHandles(m(()=>this.graphics,"after-changes",()=>this._ensureGraphicsView()),"GraphicsView3D"),this._ensureGraphicsView(),this.addHandles(y(()=>this.map?.focusAreas?.areas.length??0,e=>this._ensureFocusAreasView(e),{initial:!0}),"FocusAreasView");const t=this.scene?.initialViewProperties??null,i=t?.environment;i&&(this._overrideDefaultEnvironmentOnly?H(this.environment,i):this.environment=this.environment.cloneWithWebsceneEnvironment(i)),this.timeExtent=t?.timeExtent,t?.analyses.applyTo(this),this.labeler.setup(),this.environmentManager.connectView(this),this.inputManager.connect();const r=this._resolveWhenReady;this._resolveWhenReady=[],r.forEach(e=>e(this))}_teardown(){this._initialDefaultSpatialReference=null,this.inputManager.disconnect(),this.environmentManager.disconnectView(),this._overrideDefaultEnvironmentOnly=!1,this.labeler.dispose(),this._disposeGraphicsView(),this._disposeFocusAreasView(),this._exitSurface(),this._set("ready",!1)}get _defaultToMapOptions(){const e={include:new Set};if(!this.map)return e;this.map.ground&&e.include.add(tt);for(const t of this.allLayerViews)ee(t.layer.type)&&e.include.add(t.uid);return e}get _defaultHitTestOptions(){const e={exclude:new Set};if(!this.map)return e;this.map.ground&&this.map.ground.opacity<1&&e.exclude.add(tt);for(const t of this.allLayerViews)ee(t.layer.type)&&t.layer.opacity<1&&e.exclude.add(t.uid);return e}static{this.type="3d"}static clearStatics(){yt(),L(),j(),it(),Ce(),me(),Se(),k(),rt(),ie(),Ze(),et(),Te(),xe(),P(),M(),Ke(),Ye(),Me.cleanupI3SLodHandling(),te.cleanupTilemapCache(),Ve.cleanupViewstate(),ke.cleanupTerrainSurface()}};function _t(e,t){return null!=e&&q(e.spatialReference,t)?W(e,t):null}e([R()],vt.prototype,"_userClippingArea",void 0),e([R()],vt.prototype,"_resourceController",void 0),e([R()],vt.prototype,"stage",null),e([R({readOnly:!0})],vt.prototype,"deconflictor",void 0),e([R({readOnly:!0})],vt.prototype,"labeler",void 0),e([R(F(re,"analyses"))],vt.prototype,"analyses",void 0),e([R({type:he,readOnly:!0})],vt.prototype,"animation",null),e([R({readOnly:!0})],vt.prototype,"basemapTerrain",void 0),e([R({readOnly:!0})],vt.prototype,"elevationProvider",void 0),e([R()],vt.prototype,"camera",null),e([R({type:t})],vt.prototype,"contentCamera",null),e([R({readOnly:!0})],vt.prototype,"canvas",null),e([R({type:U})],vt.prototype,"center",null),e([R({type:D})],vt.prototype,"clippingArea",null),e([R({type:ye})],vt.prototype,"constraints",void 0),e([R({type:D,readOnly:!0})],vt.prototype,"renderDataExtent",null),e([R({readOnly:!0})],vt.prototype,"tileInfo",null),e([R({type:D,readOnly:!0})],vt.prototype,"dataExtent",null),e([R({type:D,readOnly:!0})],vt.prototype,"_groundAndLayersExtent",null),e([R({type:we})],vt.prototype,"environment",void 0),e([x("environment")],vt.prototype,"castEnvironment",null),e([R({readOnly:!0})],vt.prototype,"environmentManager",void 0),e([R({type:D})],vt.prototype,"extent",null),e([R({type:r})],vt.prototype,"floors",void 0),e([R()],vt.prototype,"screenCenter",null),e([R()],vt.prototype,"frustum",null),e([R({type:Number,readOnly:!0})],vt.prototype,"fullOpacity",void 0),e([R({readOnly:!0})],vt.prototype,"graphicsView",void 0),e([R({})],vt.prototype,"analysisViewManager",void 0),e([R()],vt.prototype,"groundView",void 0),e([R({type:Boolean})],vt.prototype,"initialExtentRequired",null),e([R()],vt.prototype,"defaultsFromMapSettings",null),e([R()],vt.prototype,"interacting",null),e([R()],vt.prototype,"stationary",null),e([R()],vt.prototype,"navigating",null),e([R()],vt.prototype,"map",void 0),e([R()],vt.prototype,"padding",null),e([R({type:ze,readOnly:!0})],vt.prototype,"pointsOfInterest",void 0),e([R()],vt.prototype,"_featureTiles",void 0),e([R()],vt.prototype,"featureTiles",null),e([R()],vt.prototype,"_featureTreeDebugger",void 0),e([R({type:Boolean})],vt.prototype,"screenSizePerspectiveEnabled",void 0),e([R({constructOnly:!0})],vt.prototype,"deactivatedWebGLExtensions",void 0),e([R({constructOnly:!0})],vt.prototype,"debugWebGLExtensions",void 0),e([R({constructOnly:!0})],vt.prototype,"renderCanvas",void 0),e([R({constructOnly:!0})],vt.prototype,"state",void 0),e([R({readOnly:!0})],vt.prototype,"inputManager",void 0),e([R({readOnly:!0})],vt.prototype,"stateManager",void 0),e([R({type:["low","medium","high"]})],vt.prototype,"qualityProfile",null),e([R({type:Fe,get(){let e=this._get("qualitySettings");return e||(e=new Fe,Ee.apply(this.qualityProfile,e)),e}})],vt.prototype,"qualitySettings",void 0),e([R()],vt.prototype,"slice",void 0),e([R({readOnly:!0})],vt.prototype,"typeSpecificPreconditionsReady",null),e([R({readOnly:!0})],vt.prototype,"renderCoordsHelper",void 0),e([R({readOnly:!0})],vt.prototype,"sceneIntersectionHelper",void 0),e([R({type:Number,dependsOn:["scale","spatialReference"],readOnly:!0})],vt.prototype,"resolution",null),e([R({type:Number})],vt.prototype,"scale",null),e([R()],vt.prototype,"heightModelInfo",null),e([R()],vt.prototype,"spatialReference",void 0),e([R({type:Boolean,constructOnly:!0})],vt.prototype,"alphaCompositingEnabled",void 0),e([R({constructOnly:!0})],vt.prototype,"preserveDrawingBufferEnabled",void 0),e([R({type:Boolean})],vt.prototype,"supersampleScreenshotsEnabled",void 0),e([R({readOnly:!0})],vt.prototype,"type",void 0),e([R(),x(e=>e instanceof ct?e:E(gt,e))],vt.prototype,"ui",void 0),e([R({type:Boolean,readOnly:!0,dependsOn:["graphicsView.updating","basemapView.updating","basemapTerrain.updating","layerViewManager.updating","layerViewManager.updatingRemaining","_resourceController.updating","stage.updating","featureTiles.updating","pointsOfInterest.updating","environmentManager.updating","overlay.updating","updatingHandles.updating","featureTreeDebugger.updating","labeler.updating","deconflictor.updating","ready","stationary","inputManager.updating","toolViewManager.updating","analysisViewManager.updating","state.updating","textures.updating"]})],vt.prototype,"updating",null),e([R()],vt.prototype,"_updatingObjects",null),e([R()],vt.prototype,"_updatingObjectsWithProgress",null),e([R({type:Number,readOnly:!0,dependsOn:["updating"]})],vt.prototype,"updatingProgress",void 0),e([R({type:["global","local"]})],vt.prototype,"viewingMode",null),e([R({type:i})],vt.prototype,"viewpoint",null),e([R({readOnly:!0})],vt.prototype,"visibleArea",null),e([R({type:Number})],vt.prototype,"zoom",null),e([R({type:nt})],vt.prototype,"highlightOptions",null),e([R({readOnly:!0})],vt.prototype,"quality",null),e([R({readOnly:!0})],vt.prototype,"resolutionScale",null),e([R()],vt.prototype,"focusAreasView",void 0),e([R()],vt.prototype,"_defaultToMapOptions",null),e([R()],vt.prototype,"_defaultHitTestOptions",null),vt=e([O("esri.views.SceneView")],vt);const bt=I(),Mt=S(),St=Y(),Vt={GraphicsView3D:()=>import("./3d/layers/GraphicsView3D.js"),FocusAreasView:()=>import("./3d/FocusAreasView.js"),FeatureTileTree3D:()=>import("./3d/layers/support/FeatureTileTree3D.js")},jt=vt;export{jt as default};
5
+ import{__decorate as e}from"tslib";import t from"../Camera.js";import i from"../Viewpoint.js";import r from"../core/Collection.js";import{byId as s}from"../core/domUtils.js";import n from"../core/Error.js";import{on as a}from"../core/events.js";import{makeHandle as o}from"../core/handleUtils.js";import has from"../core/has.js";import l from"../core/Logger.js";import{destroyMaybe as p,maybeProperty as h}from"../core/maybe.js";import{throwIfDestroyed as d,throwIfAborted as u,createAbortError as c}from"../core/promiseUtils.js";import g from"../core/ReactiveSet.js";import{on as m,watch as y,initial as f,sync as w,whenOnce as v,syncAndInitial as _}from"../core/reactiveUtils.js";import{setFrameDuration as b,cleanupScheduling as M}from"../core/scheduling.js";import{createScreenPointArray as S,createScreenPoint as V}from"../core/screenUtils.js";import{cleanupWhereClauseCache as j}from"../core/sql.js";import{getMetersPerUnitForSR as C}from"../core/unitUtils.js";import{initialize as T}from"../core/workers/workers.js";import{property as R}from"../core/accessorSupport/decorators/property.js";import{cast as x}from"../core/accessorSupport/decorators/cast.js";import"../core/RandomLCG.js";import{subclass as O}from"../core/accessorSupport/decorators/subclass.js";import{ensureType as A,ensureClass as E}from"../core/accessorSupport/ensureType.js";import{overrideDefaultsFrom as H}from"../core/accessorSupport/overrideDefaultsFrom.js";import{drainNotificationQueue as L}from"../core/accessorSupport/trackingUtils.js";import{create as I}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{cleanupPooledRBush as P}from"../core/libs/rbush/PooledRBush.js";import{owningCollectionProperty as F}from"../core/support/OwningCollection.js";import D from"../geometry/Extent.js";import G from"../geometry/HeightModelInfo.js";import U from"../geometry/Point.js";import{project as W,canProjectWithoutEngine as q}from"../geometry/projectionUtils.js";import z from"../geometry/SpatialReference.js";import{cleanupSpatialReferenceEllipsoidUtils as k}from"../geometry/spatialReferenceEllipsoidUtils.js";import{projectBoundingRect as B}from"../geometry/projection/projectBoundingRect.js";import{projectPointToVector as N}from"../geometry/projection/projectPointToVector.js";import{toExtent as Q,create as Y}from"../geometry/support/aaBoundingRect.js";import{renderSRFromViewSR as Z}from"../geometry/support/coordinateSystem.js";import{getResolutionForScale as $}from"../geometry/support/scaleUtils.js";import{isImageryTileLayer as J,isTiledLayer as K,isVoxelLayer as X,isIntegratedMeshLayer as ee}from"../layers/support/layerUtils.js";import{TilemapCache as te}from"../layers/support/TilemapCache.js";import{clearDefaultPortalInstance as ie}from"../portal/portalDefault.js";import{AnalysesCollection as re}from"../support/AnalysesCollection.js";import{WebSceneTag as se}from"../support/tagSymbols.js";import{BreakpointsOwner as ne}from"./BreakpointsOwner.js";import{DOMContainer as ae}from"./DOMContainer.js";import oe from"./GroundView.js";import{PopupView as le}from"./PopupView.js";import pe from"./View.js";import he from"./ViewAnimation.js";import{stringFromViewingMode as de,viewingModeFromString as ue}from"./ViewingMode.js";import{layerView3DImporter as ce}from"./3d/layerViewModuleImportUtils.js";import ge from"./3d/analysis/AnalysisViewManager3D.js";import{cleanupIntersectionUtils as me}from"./3d/camera/intersectionUtils.js";import{Constraints as ye}from"./3d/constraints/Constraints.js";import{EnvironmentManager as fe}from"./3d/environment/EnvironmentManager.js";import we from"./3d/environment/SceneViewEnvironment.js";import ve from"./3d/input/SceneInputManager.js";import{GraphicsDeconflictor as _e}from"./3d/layers/graphics/GraphicsDeconflictor.js";import{Labeler as be}from"./3d/layers/graphics/Labeler.js";import Me from"./3d/layers/i3s/I3SLodHandling.js";import{cleanupStageLayerElevationProvider as Se}from"./3d/layers/support/StageLayerElevationProvider.js";import Ve from"./3d/state/ViewState.js";import{ViewStateManager as je,cleanupViewStateManager as Ce}from"./3d/state/ViewStateManager.js";import{cleanupPointToPointAnimationController as Te}from"./3d/state/controllers/PointToPointAnimationController.js";import{SceneIntersectionHelper as Re}from"./3d/state/helpers/SceneIntersectionHelper.js";import{cleanupNavigationUtils as xe}from"./3d/state/utils/navigationUtils.js";import{CombinedElevationProvider as Oe}from"./3d/support/CombinedElevationProvider.js";import{debugFlags as Ae}from"./3d/support/debugFlags.js";import Ee from"./3d/support/DisplayQualityProfile.js";import{getElevationAtPoint as He}from"./3d/support/ElevationProvider.js";import{toMap as Le,hitTest as Ie}from"./3d/support/hitTest.js";import{popupHitTest as Pe}from"./3d/support/popupHitTest.js";import Fe from"./3d/support/QualitySettings.js";import{RenderCoordsHelper as De}from"./3d/support/RenderCoordsHelper.js";import{newResourceController as Ge}from"./3d/support/ResourceController.js";import Ue from"./3d/support/SceneViewPerformanceInfo.js";import{SharedSymbolResources as We}from"./3d/support/SharedSymbolResources.js";import{ViewSlice as qe}from"./3d/support/ViewSlice.js";import{PointsOfInterest as ze}from"./3d/support/pointsOfInterest/PointsOfInterest.js";import ke from"./3d/terrain/TerrainSurface.js";import{isSurfaceLayerView as Be,getTiledLayerInfo as Ne,checkIfTileInfoSupportedForView as Qe}from"./3d/terrain/terrainUtils.js";import{clearTilePerLayerInfo as Ye}from"./3d/terrain/TilePerLayerInfo.js";import{cleanupTileRenderer as Ze}from"./3d/terrain/TileRenderer.js";import{Stage as $e}from"./3d/webgl-engine/Stage.js";import{olidEnabled as Je}from"./3d/webgl-engine/effects/geometry/olidUtils.js";import{cleanupRenderOccluded as Ke}from"./3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js";import{defaultTolerance as Xe}from"./3d/webgl-engine/lib/Intersector.js";import{cleanupShadowmap as et}from"./3d/webgl-engine/lib/ShadowMap.js";import{terrainId as tt}from"./3d/webgl-engine/lib/verticalOffsetUtils.js";import{cleanupEdgeProcessing as it}from"./3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js";import{cleanupDrapedUtils as rt}from"./support/drapedUtils.js";import{defaultHighlightName as st}from"./support/HighlightDefaults.js";import nt from"./support/HighlightOptions.js";import{occludeesSupported as at}from"./support/layerViewUtils.js";import{isSupportedScreenPointEvent as ot,createScreenPointFromSupportedEvent as lt}from"./support/screenUtils.js";import{isSpatialReferenceSupported as pt}from"./support/spatialReferenceSupport.js";import{initializeTextureCompressionWorker as ht,destroyTextureCompressionWorker as dt}from"./support/TextureCompressionHelper.js";import{check as ut}from"./support/WebGLRequirements.js";import ct from"./ui/DefaultUI.js";import gt from"./ui/3d/DefaultUI3D.js";import mt from"../webscene/Environment.js";import{clearVNodeCache as yt}from"../widgets/support/vnodeCache.js";const ft=Symbol(),wt=Symbol();let vt=class extends(ne(le(ae(pe)))){constructor(e){super(e),this._userClippingArea=null,this._clippingArea=null,this._initialDefaultSpatialReference=null,this._overrideDefaultEnvironmentOnly=!0,this._resolveWhenReady=[],this._resourceController=Ge(this),this.deconflictor=new _e({view:this}),this.labeler=new be({view:this,deconflictor:this.deconflictor.labels}),this.sharedSymbolResources=null,this.analyses=new re,this.basemapTerrain=null,this.elevationProvider=null,this._canvas=null,this.constraints=new ye,this.environment=new we,this.environmentManager=new fe,this.floors=new r,this.fullOpacity=1,this.graphicsView=null,this.analysisViewManager=new ge({view:this}),this.groundView=null,this.map=null,this._featureTileTreeClients=new g,this._featureTiles=null,this._featureTreeDebugger=null,this.screenSizePerspectiveEnabled=!0,this.state=new Ve({view:this}),this.slice=new qe,this.spatialReference=null,this.alphaCompositingEnabled=!1,this.preserveDrawingBufferEnabled=!1,this.supersampleScreenshotsEnabled=!0,this.type="3d",this.ui=new gt,this._numUpdating=0,this._lastUpdateTime=0,this.updatingProgress=.5,this._importControllers=new Map,T();const t=(e=null)=>{null!=e&&4===e.type||(this._updatingChanged(),this.map?.allLayers.forEach(async e=>{try{await e.when()}catch(t){}this._updatingChanged()}))};this.addHandles([m(()=>this.map?.allLayers,"after-changes",e=>t(e),{onListenerAdd:()=>t(),onListenerRemove:()=>t(),sync:!0}),this.allLayerViews.on("after-changes",e=>this._updateUpdatingMonitors(e)),y(()=>this.scene,e=>e?.load().catch(()=>{}))]),this.inputManager=new ve({view:this}),this.stateManager=new je({view:this})}initialize(){if(has("enable-feature:esri-compress-textures")&&has("wasm-simd")){const e=ht(this,this.resourceController);this.addResolvingPromise(e.promise)}this.groundView=new oe({view:this}),this._updateUpdatingMonitors(),this.updatingHandles.add(()=>this.qualitySettings.memoryLimit,e=>{this.resourceController&&(this.resourceController.memoryController.maxMemory=e)},f),this.updatingHandles.add(()=>this.qualitySettings.additionalCacheMemory,e=>{this.resourceController&&(this.resourceController.memoryController.additionalCacheMemory=e)},f),this.updatingHandles.add(()=>this.qualitySettings.frameRate??0,e=>b(e>0?1e3/Math.ceil(e):0),f),this.addHandles([y(()=>this.spatialReference,()=>this.notifyChange("clippingArea"),w),y(()=>({plane:this.slice.plane,isDecoration:this.slice.isDecoration}),()=>this._updateSlice(),w)])}destroy(){this.destroyed||(dt(this),this.updatingHandles.removeAll(),this.basemapTerrain?.clearHandles(),this.ui.removeAllHandles(),this.layerViewManager.clearHandles(),this.invalidate(),this.activeTool=null,this.layerViewManager.clear(),this._set("analysisViewManager",p(this.analysisViewManager)),this._exitSurface(),this._disposeGraphicsView(),this._disposeFocusAreasView(),this.sharedSymbolResources=p(this.sharedSymbolResources),this._set("labeler",p(this.labeler)),this._set("deconflictor",p(this.deconflictor)),this._resourceController=p(this._resourceController),this._set("stateManager",p(this.stateManager)),this._set("inputManager",p(this.inputManager)),this.state.destroy(),this.highlights.destroy(),this.removeHandles("updatingMonitors"),this._set("environmentManager",p(this.environmentManager)),this._set("environment",p(this.environment)),this.groundView=p(this.groundView),this.slice.destroy(),this._updatingObjectsWithProgress.length=0,this._updatingObjects.length=0,this.ui?.destroy(),this._set("ui",null),this._set("renderCanvas",null),this._set("canvas",null),this._canvas=null)}get stage(){return this._stage}get renderSpatialReference(){return this.renderCoordsHelper?.spatialReference}get basemapSpatialReference(){return this.basemapTerrain?.spatialReference}get animation(){return this.state?.animation}get camera(){return this.stateManager?.camera}set camera(e){this.stateManager&&(this.stateManager.camera=e)}get contentCamera(){return this.stateManager?.contentCamera}set contentCamera(e){this.stateManager&&(this.stateManager.contentCamera=e)}installContentCameraReset(e={sticky:!1}){return this.stateManager.installContentCameraReset(e)}get canvas(){return this._canvas}get center(){return this.stateManager?.center}set center(e){this.stateManager&&(this.stateManager.center=e)}get clippingArea(){if("global"===this.viewingMode)return null;const e=this.map;let t=this._userClippingArea||h(e,"clippingArea");return!this._userClippingArea&&!h(e,"clippingEnabled")||null==t?(this._clippingArea=null,null):t instanceof D?this.spatialReference&&(t=_t(t,this.spatialReference),null==t)?(l.getLogger(this).error("#clippingArea","setting clippingArea with incompatible SpatialReference"),this._clippingArea):(t=t.clone(),null==t.intersection(this._groundAndLayersExtent)&&(t.xmin=t.xmax,t.ymin=t.ymax),t.zmin=void 0,t.zmax=void 0,t.equals(this._clippingArea)||(this._clippingArea=t),this._clippingArea):(l.getLogger(this).error("#clippingArea","only clippingArea geometries of type Extent are supported"),this._clippingArea)}set clippingArea(e){this.ready&&"global"===this.viewingMode&&null!=e?l.getLogger(this).error("#clippingArea=","Clipping area is only supported in local viewingMode"):this._userClippingArea=e}get renderDataExtent(){if(1===this.state.viewingMode)return null;const e=this.renderSpatialReference,t=this.dataExtent;return null==t||null==e||t.spatialReference.equals(e)?t:_t(t,e)}get tileInfo(){return this.basemapTerrain?.tilingScheme?.toTileInfo()}get dataExtent(){let e=this._groundAndLayersExtent;const t=this.spatialReference||z.WGS84,i=_t(this.clippingArea,t);null!=i&&(e=null!=e?e.intersection(i):i);const r=this._get("dataExtent");return null!=e&&e.equals(r)?r:e}get _groundAndLayersExtent(){const e=this.spatialReference||z.WGS84;let t;const i=i=>{const r=_t(i,e);null!=r&&(null!=t?t.union(r):t=r.clone())},{basemapTerrain:r}=this;if(r?.spatialReference){const e=r.groundExtent;i(new D({xmin:e[0],ymin:e[1],zmin:0,xmax:e[2],ymax:e[3],zmax:0,spatialReference:r.spatialReference}))}const s=e=>{null==e.fullExtent||"graphics"===e.type&&e.internal||i(e.fullExtent)};if(this.map?.allLayers.forEach(e=>s(e)),null==t)return null;t.hasZ?(t.zmin=Math.min(0,t.zmin??0),t.zmax=Math.max(0,t.zmax??0)):(t.zmin=0,t.zmax=0);const n=this._get("_groundAndLayersExtent");return t.equals(n)?n:t}castEnvironment(e){return e?e instanceof we?e:e instanceof mt?this.environment?.cloneWithWebsceneEnvironment(e)??we.fromWebsceneEnvironment(e):A(we,e):new we}get extent(){return this.stateManager?.extent}set extent(e){this.stateManager&&(this.stateManager.extent=e)}get screenCenter(){return this.stateManager?.screenCenter}get frustum(){return this.stateManager?.frustum}get initialExtentRequired(){return this.stateManager&&!this.stateManager.hasInitialView}get defaultsFromMapSettings(){return{required:{tileInfo:!1,heightModelInfo:!0,extent:!1}}}get interacting(){return this.navigating||(this.toolViewManager?.interacting??!1)}get stationary(){return!this.animation&&!this.resizing&&(this.state?.stationary??!0)}get navigating(){return this.state?.navigating??!1}get scene(){return this.map&&se in this.map?this.map:null}get padding(){return this.stateManager?.padding}set padding(e){this.stateManager&&(this.stateManager.padding=e)}get featureTiles(){return this._featureTiles}set qualityProfile(e){Ee.isValidProfile(e)&&(Ee.apply(e,this.qualitySettings),this.stage?.renderView.updateQualitySettings(this.qualitySettings),this._set("qualityProfile",e))}get qualityProfile(){return this._get("qualityProfile")||Ee.getDefaultProfile()}_updateSlice(){null!=this.stage&&(this.stage.renderer.slice=this.slice)}get typeSpecificPreconditionsReady(){return!!this.viewingMode&&!!this.stateManager?.preinit(this.spatialReference)}get resolution(){return null!=this.spatialReference?$(this.scale,this.spatialReference):0}get scale(){return this.stateManager?.scale}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get heightModelInfo(){const e=this.getDefaultHeightModelInfo();return null!=e?G.deriveUnitFromSR(e,this.spatialReference):null}get updating(){if(this.destroying||this.destroyed)return!1;let e=0,t=this.layerViewManager.updating,i=t?this.layerViewManager.updatingRemaining:0;this.allLayerViews.forEach(r=>{if(r.isFulfilled()){if(r.updating){if(t=!0,r.suspended||Be(r))return;++i,e+=r.updatingProgress}}else++i});for(const s of this._updatingObjects)if(null!=s&&s.updating){const t=.1;i+=t,e+=.5*t}for(const s of this._updatingObjectsWithProgress)null!=s&&s.updating&&(++i,e+=s.updatingProgress);const r=!this.stateManager.test.updatingIgnoreRenderState&&this.state.updating;if(t=!!(t||i>0||this.updatingHandles.updating||!this.ready||!this.stationary||r||this._importControllers.size>0||this.inputManager?.updating||this.map?.allLayers?.some(e=>!e.isFulfilled())),t?(this._numUpdating=Math.max(i,this._numUpdating),e+=this._numUpdating-i):this._numUpdating=0,this._numUpdating>0?e/=this._numUpdating:e=t?0:1,this._get("updatingProgress")!==e){const i=performance.now();if(e<1){const t=Math.min((i-this._lastUpdateTime)/2e3,1);e=this.updatingProgress*(1-t)+e*t}this._set("updatingProgress",e),this._lastUpdateTime=t&&e<1?i:0}return t}get _updatingObjects(){return[this.graphicsView,this.basemapView,this._resourceController,this.stage,this.featureTiles,this.pointsOfInterest,this.environmentManager,this.overlay,this._featureTreeDebugger,this.toolViewManager,this.analysisViewManager]}get _updatingObjectsWithProgress(){return[this.deconflictor,this.labeler,this.basemapTerrain]}get viewingMode(){const e=this._predeterminedViewingMode;if(null!=e)return de(e);const t=this.spatialReference;return t?null!=this.defaultsFromMap?.viewingMode&&t.equals(this.defaultsFromMap.spatialReference)?de(this.defaultsFromMap.viewingMode):pt(t,1)?"global":"local":"global"}set viewingMode(e){this.ready?l.getLogger(this).error("#viewingMode","viewingMode cannot be set once view is ready"):this._overrideIfSome("viewingMode",e)}get viewpoint(){return this.stateManager?.viewpoint}set viewpoint(e){this.stateManager&&(this.stateManager.viewpoint=e)}get visibleArea(){return this.stateManager?.visibleArea}get zoom(){return this.stateManager.zoom}set zoom(e){this.stateManager&&(this.stateManager.zoom=e)}get highlightOptions(){return this.highlights.find(({name:e})=>e===st)??new nt}set highlightOptions(e){for(let t=0;t<this.highlights.length;++t){if(this.highlights.at(t).name===st)return void this.highlights.items[t].assignFrom(e)}}get resourceController(){return this._resourceController}get quality(){return this._resourceController?.memoryController?.memoryFactor??1}get resolutionScale(){return Math.sqrt(Math.min(1,this.quality/.75))}get performanceInfo(){return new Ue(this)}on(e,t,i,r){const s=this.viewEvents.on(e,t,i,r);return s||super.on(e,t)}hasEventListener(e){return super.hasEventListener(e)||this.viewEvents.hasHandler(e)}toMap(e,t){if(!this.ready)return l.getLogger(this).error("#toMap()","Scene view cannot be used before it is ready"),null;const i=ot(e)?lt(this,e):e;return Le(this,i,t,this._defaultToMapOptions)}toScreen(e){if(!this.ready)return l.getLogger(this).error("#toScreen()","Scene view cannot be used before it is ready"),null;const t=(null==e.z?He(this.elevationProvider,e):null)??0;return N(e,bt,this.renderSpatialReference,t),this.state.camera.projectToScreen(bt,Mt),V(Mt[0],Mt[1])}pixelSizeAt(e,t){if(!this.ready)return l.getLogger(this).error("#pixelSizeAt()","Scene view cannot be used before it is ready"),null;if(!e)return 0;const i=this.renderSpatialReference;N(e,bt,i);const r=this.state.camera.computeScreenPixelSizeAt(bt);return t&&i!==t?r*C(i)/C(t):r}overlayPixelSizeInMapUnits(e){const t=this.basemapTerrain.overlayManager;return t?t.overlayPixelSizeInMapUnits(e,()=>this.pixelSizeAt(e)):1}hitTest(e,t){if(!this.ready)return l.getLogger(this).error("#hitTest()","Scene view cannot be used before it is ready"),null;const i=ot(e)?lt(this,e):e;return Ie(this,i,t,this._defaultHitTestOptions)}async popupHitTest(e){return Pe(this,e)}goTo(e,t){return this.updatingHandles.addPromise(this.stateManager.goTo(e,t))}async whenAnalysisView(e){if(null==e.parent)throw new n("view:no-analysisview-for-analysis","The analysis has not been added to view.analyses",{analysis:e});switch(e.parent.type){case"line-of-sight":case"dimension":case"viewshed":return(await this.whenLayerView(e.parent)).whenAnalysisView();default:return this.analysisViewManager.whenAnalysisView(e)}}whenLayerView(e){return super.whenLayerView(e)}async takeScreenshot(e){const t=await this._completeSettings(e);await this.whenReady();const i=(await this.stage.renderView.takeScreenshot(t))[0];return(await import("./support/screenshotUtils.js")).encode(i,t,this._pixelFormat())}async _takeScreenshot(e){const t=await this._completeSettings(e);await this.whenReady();const i=(await this.stage.renderView.takeScreenshot(t))[0];return(await import("./support/screenshotUtils.js")).encodeData(i,this._pixelFormat())}async _takeScreenshotWithObjectAndLayerId(e){const t=await this._completeSettings(e);t.olidColor=!0,await this.whenReady();const i=await this.stage.renderView.takeScreenshot(t),{encodeData:r}=await import("./support/screenshotUtils.js");return[r(i[0],this._pixelFormat()),r(i[1],this._pixelFormat())]}async _completeSettings(e){const{toRenderSettings:t,screenshotSuperSampleSettings:i}=await import("./support/screenshotUtils.js"),r=t(e,this);return r.pixelRatio/=this.state.pixelRatio,i(r,this.supersampleScreenshotsEnabled,this.padding)}_pixelFormat(){return{flipY:!0,premultipliedAlpha:this.stage?.renderView.getAlpha()??!1}}get test(){}async takeScreenshotWithObjectAndLayerId(e){if(!Je())throw new n("360vr:objectAndLayerId-rendering-disabled","has enable-feature:objectAndLayerId-rendering must be true");const{encode:t}=await import("./support/screenshotUtils.js"),i=await this._completeSettings(e);i.olidColor=!0,await this.whenReady();const r=await this.stage.renderView.takeScreenshot(i),s=t(r[0],i,this._pixelFormat()),a=await this._completeSettings(e);a.format="png";return[s,t(r[1],a,this._pixelFormat())]}getColorToObjectAndLayerIdMapping(){const e=this.stage.renderView.olidRenderHelper;if(e)return e.getColorToObjectAndLayerIdMapping();throw new n("360vr:objectAndLayerId-rendering-disabled","has enable-feature:objectAndLayerId-rendering must be true")}addUpdatingPromise(e){return this.updatingHandles.addPromise(e)}importLayerView(e){return ce.importLayerView(e)}hasLayerViewModule(e){return ce.hasLayerViewModule(e)}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){return this.scene?.initialViewProperties?.spatialReference||this.defaultsFromMap?.spatialReference||this.defaultsFromMap?.ready&&this._initialDefaultSpatialReference||null}async validate(){let e=ut(this.type);const t=has("safari");if(t&&t<9&&(e=new n("sceneview:browser-not-supported","This browser is not supported by SceneView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:t})),null!=e)throw l.getLogger(this).warn("#validate()",e.message),e}get _predeterminedViewingMode(){const e=this._isOverridden("viewingMode")?this._get("viewingMode"):this.scene?.initialViewProperties?.viewingMode;return null!=e?ue(e):null}getSpatialReferenceSupport(e,t){const i=this._predeterminedViewingMode;if(null!=i)return this._validateSpatialReferenceForViewingMode(e,t,i)?{constraints:this._makeSpatialReferenceConstraints(e,t,i)}:null;const r=this._validateSpatialReferenceForViewingMode(e,t,2),s=this._validateSpatialReferenceForViewingMode(e,t,1);return r||s?r&&s?{constraints:this._makeSpatialReferenceConstraints(e,t,null)}:r?{constraints:this._makeSpatialReferenceConstraints(e,t,2)}:{constraints:this._makeSpatialReferenceConstraints(e,t,1)}:null}_validateSpatialReferenceForViewingMode(e,t,i){return!!pt(e,i)&&(null==t||(!!J(t)||(!K(t)||null!=Ne(t,e,i))&&(!X(t)||1!==i)))}_makeSpatialReferenceConstraints(e,t,i){if(null==t)return[{spatialReference:e,viewingMode:i}];const{isWebMercator:r,isWGS84:s}=e;if(J(t)&&(r||s)){return!s||2===i||null===Qe(t.tileInfo,t.fullExtent,e,1)?[{spatialReference:e,viewingMode:i},{spatialReference:z.WebMercator,viewingMode:i}]:[{spatialReference:r?z.WGS84:z.WebMercator,viewingMode:i}]}return K(t)||X(t)||!r&&!s?K(t)&&r&&1!==i?[{spatialReference:e,viewingMode:i},{spatialReference:z.WGS84,viewingMode:2}]:[{spatialReference:e,viewingMode:i}]:[{spatialReference:e,viewingMode:i},{spatialReference:r?z.WGS84:z.WebMercator,viewingMode:i}]}_validateSpatialReference(e){const t=null!=this.getSpatialReferenceSupport(e),i=this._predeterminedViewingMode;return t||(null!=i?l.getLogger(this).warnOnce(`Spatial reference defined on view not supported in ${de(i)} viewing mode.`):e.isGeographic&&l.getLogger(this).warnOnce("Spatial reference is geographic but not supported.")),t}whenReady(){return new Promise(e=>{this.ready?e(this):this._resolveWhenReady.push(e)})}trackGraphicState(e){if(!e.graphic)return l.getLogger(this).error("trackGraphicState","GraphicState.graphic must not be null or undefined to start tracking"),null;const t=this.getViewForGraphic(e.graphic);let i=null,r=!1;const s=t=>{!r&&null!=t&&"processor"in t&&"graphics-3d"===t.processor?.type&&t.processor.graphicsCore&&(i=t.processor.graphicsCore.trackGraphicState(e))};return null!=t?s(t):this.whenViewForGraphic(e.graphic,{waitForLayer:!0}).then(e=>s(e),()=>{}).catch(()=>{}),o(()=>{r=!0,null!=i&&(i.remove(),i=null)})}maskOccludee(e){if(!e)return l.getLogger(this).error("maskOccludee","GraphicState.graphic must not be null or undefined to mask an occludee"),null;const t=this.getViewForGraphic(e);let i=null,r=!1;const s=t=>{!r&&null!=t&&at(t)&&(i=t.maskOccludee(e))};return null!=t?s(t):this.whenViewForGraphic(e,{waitForLayer:!0}).then(e=>s(e),()=>{}).catch(()=>{}),o(()=>{r=!0,null!=i&&(i.remove(),i=null)})}getViewForGraphic(e){return e.layer===this?this.graphicsView:e.layer?this.allLayerViews.filter(e=>"media-3d"!==e.type).find(t=>t.layer===e.layer):null}graphicChanged(e){null!=this.graphicsView&&this.graphicsView.graphicChanged(e)}async whenViewForGraphic(e,t){return e.layer===this?(await v(()=>this.graphicsView),this.graphicsView):e.layer&&this.map?t&&t.waitForLayer&&!this.map.allLayers.includes(e.layer)?new Promise((t,i)=>{const r=this.map.allLayers.on("change",s=>{s.added.includes(e.layer)&&(r.remove(),this.whenLayerView(e.layer).then(t,i))})}):this.whenLayerView(e.layer):null}enableFeatureTiles(){const e=Symbol();return this._featureTileTreeClients.add(e),o(()=>this._featureTileTreeClients.delete(e))}async _importModule(e,t){const i=new AbortController;this._importControllers.set(e,i),this._updatingChanged();try{const r=await Vt[e]();if(t&&(d(this),u(i.signal),await t(i.signal)),this.destroyed)throw c();return u(i.signal),r}catch{return null}finally{this._importControllers.delete(e),this._updatingChanged()}}_abortImport(e){this._importControllers.get(e)?.abort(),this._importControllers.delete(e),this._updatingChanged()}_initBasemapTerrain(){this._set("basemapTerrain",new ke({view:this})),this._set("elevationProvider",new Oe({view:this})),this.elevationProvider.register("ground",this.basemapTerrain)}_exitBasemapTerrain(){const{basemapTerrain:e,elevationProvider:t}=this;e&&(this._set("basemapTerrain",null),this._set("elevationProvider",null),t.unregister(e),t.destroy(),e.destroy())}_initGlobe(){this._initCoordinateSystem(),this.state.createInitialCamera(),this._initBasemapTerrain(),this._set("pointsOfInterest",new ze({view:this})),this.addHandles([this.updatingHandles.add(()=>Ae.FEATURE_TILE_TREE_SHOW_TILES,e=>{e&&!this._featureTreeDebugger?this.updatingHandles.addPromise(import("./3d/layers/support/FeatureTileTree3DDebugger.js")).then(({FeatureTileTree3DDebugger:e})=>{!this._featureTreeDebugger&&Ae.FEATURE_TILE_TREE_SHOW_TILES&&(this._featureTreeDebugger=new e({view:this}))}):e||(this._featureTreeDebugger=p(this._featureTreeDebugger))},_),this.updatingHandles.add(()=>({basemapExtent:this.basemapTerrain?.extent,basemapSpatialReference:this.basemapTerrain?.spatialReference,clippingArea:this.clippingArea,featureTiles:this._featureTiles}),({basemapExtent:e,basemapSpatialReference:t,clippingArea:i,featureTiles:r})=>{if(!r)return;const s=!!e;if(i||s)if(s&&t){const s=e&&t?W(Q(e,t),this.spatialReference):null;r.filterExtent=i?i.intersection(s):s}else r.filterExtent=i;else r.filterExtent=null},_),this.updatingHandles.add(()=>this._featureTileTreeClients.size>0,e=>{e?this._ensureFeatureTileTree():this._featureTiles=p(this._featureTiles)},w)],ft),this.stateManager.init()}async _ensureFeatureTileTree(){if(this._featureTiles||this._importControllers.has("FeatureTileTree3D"))return;const e=(await this.updatingHandles.addPromise(this._importModule("FeatureTileTree3D")))?.FeatureTileTree3D;e&&(this._featureTiles=new e({renderCoordsHelper:this.renderCoordsHelper,pointsOfInterest:this.pointsOfInterest,viewState:this.state,scheduler:this._resourceController.scheduler,terrain:this.basemapTerrain}),this._updatingChanged())}_exitTerrain(){this.stateManager.exit(),this.removeHandles(wt),this.removeHandles(ft),this._featureTiles=p(this.featureTiles),this._set("pointsOfInterest",p(this.pointsOfInterest)),this._exitBasemapTerrain(),this.state.reset(),this._exitCoordinateSystem()}_initCoordinateSystem(){if(this.spatialReference){const e=this.spatialReference,t=this.state.isGlobal,i=Z(t,e);i!==this.renderSpatialReference&&(this._set("renderCoordsHelper",De.create(this.state.viewingMode,i)),t||this.addHandles(y(()=>this.basemapTerrain?.extent,e=>{const t=this.renderCoordsHelper.spatialReference;null==e||0===e[0]&&0===e[1]&&0===e[2]&&0===e[3]||!B(e,this.basemapTerrain.spatialReference,St,t)||(this.renderCoordsHelper.extent=St)},w),wt),this.sceneIntersectionHelper&&this.sceneIntersectionHelper.setTolerance(Xe/this.renderCoordsHelper.unitInMeters))}else this._set("renderCoordsHelper",null)}_exitCoordinateSystem(){this.removeHandles(wt),this._set("renderCoordsHelper",null)}_updatingChanged(){this.notifyChange("updating")}_updateUpdatingMonitors(e=null){null!=e&&4===e.type||(this.removeHandles("updatingMonitors"),this.allLayerViews.forEach(e=>{e.destroyed||(this.addHandles(y(()=>[e.updating,e.updatingProgress],()=>this._updatingChanged(),w),"updatingMonitors"),e.when(()=>this._updatingChanged(),()=>this._updatingChanged()))}),this._updatingChanged())}async _prepareScreenshotOverlay(){this.overlay&&await this.overlay.prepare()}_renderScreenshotOverlay(e,t,i){if(!this.overlay||!this.overlay.hasVisibleItems)return i;const r=e.getContext("2d",{willReadFrequently:!0});return r.putImageData(i,0,0),this.overlay.renderCanvas(e,{disableDecorations:t}),r.getImageData(0,0,i.width,i.height)}_initStage(){const e={deactivatedWebGLExtensions:this.deactivatedWebGLExtensions,debugWebGLExtensions:this.debugWebGLExtensions,alpha:this.alphaCompositingEnabled,preserveDrawingBuffer:this.preserveDrawingBufferEnabled,canvas:this.renderCanvas,screenshot:{prepareOverlay:()=>this._prepareScreenshotOverlay(),renderOverlay:(e,t,i)=>this._renderScreenshotOverlay(e,t,i)}},t=new Re(this.state.viewingMode,e=>this.stage.layers.forEach(e),this);this._set("sceneIntersectionHelper",t);const i=s(this.surface);this._stage=new $e({view:this,options:e,container:i}),this.notifyChange("stage"),this._updateSlice(),this.addHandles([this.updatingHandles.add(()=>this.qualitySettings.highQualityTransparency,e=>this.stage.renderer.setParameters({highQualityTransparency:e}),f),this.on("pointer-move",()=>this.stage?.renderer.resetAnimation()),a(this.stage.renderView.canvas,"webglcontextlost",e=>{this.fatalError=new n("webgl-context-lost",e.statusMessage)})],"stage"),this.renderCoordsHelper&&this.sceneIntersectionHelper.setTolerance(Xe/this.renderCoordsHelper.unitInMeters),this._set("canvas",this.stage.renderView.canvas)}_exitStage(){this.sceneIntersectionHelper?.destroy(),this._set("sceneIntersectionHelper",null),this._stage=p(this.stage),this._set("stage",null),this.removeHandles("stage"),this._set("canvas",null)}_initSurface(e){this._exitSurface(),this._initStage(),this._initGlobe(),this.sharedSymbolResources=new We({view:this,viewingMode:e,resourceController:this._resourceController,pointsOfInterest:this.pointsOfInterest,viewState:this.state})}_exitSurface(){this.sharedSymbolResources&&(this.sharedSymbolResources.objectResourceCache.destroy(),this.sharedSymbolResources.destroy(),this.sharedSymbolResources=null,this._exitTerrain(),this._exitStage())}async _ensureGraphicsView(){if(this.graphicsView||this._importControllers.has("GraphicsView3D")||0===this.graphics.length)return;this.removeHandles("GraphicsView3D");const e=(await this.updatingHandles.addPromise(this._importModule("GraphicsView3D",e=>v(()=>this.basemapTerrain?.ready,e))))?.default;e&&this._set("graphicsView",new e({view:this,getGraphics:()=>this.graphics})),this._updatingChanged()}_disposeGraphicsView(){this._abortImport("GraphicsView3D"),this.removeHandles("GraphicsView3D"),this.graphicsView&&(this.removeHandles(this.graphicsView.processor.layer.id),this.graphicsView.destroy(),this._set("graphicsView",null))}_disposeFocusAreasView(){this._abortImport("FocusAreasView"),this.removeHandles("FocusAreasView"),this.focusAreasView=p(this.focusAreasView)}async _ensureFocusAreasView(e){if(this.focusAreasView||this._importControllers.has("FocusAreasView")||0===e)return;this.removeHandles("FocusAreasView");const t=(await this.updatingHandles.addPromise(this._importModule("FocusAreasView")))?.FocusAreasView;t&&(this.focusAreasView=new t({view:this})),this._updatingChanged()}_startup(){const e=ue(this.viewingMode);1===e&&(this._clippingArea=null),this._initSurface(e),this._set("ready",!0),this.addHandles(m(()=>this.graphics,"after-changes",()=>this._ensureGraphicsView()),"GraphicsView3D"),this._ensureGraphicsView(),this.addHandles(y(()=>this.map?.focusAreas?.areas.length??0,e=>this._ensureFocusAreasView(e),{initial:!0}),"FocusAreasView");const t=this.scene?.initialViewProperties??null,i=t?.environment;i&&(this._overrideDefaultEnvironmentOnly?H(this.environment,i):this.environment=this.environment.cloneWithWebsceneEnvironment(i)),this.timeExtent=t?.timeExtent,t?.analyses.applyTo(this),this.labeler.setup(),this.environmentManager.connectView(this),this.inputManager.connect();const r=this._resolveWhenReady;this._resolveWhenReady=[],r.forEach(e=>e(this))}_teardown(){this._initialDefaultSpatialReference=null,this.inputManager.disconnect(),this.environmentManager.disconnectView(),this._overrideDefaultEnvironmentOnly=!1,this.labeler.dispose(),this._disposeGraphicsView(),this._disposeFocusAreasView(),this._exitSurface(),this._set("ready",!1)}get _defaultToMapOptions(){const e={include:new Set};if(!this.map)return e;this.map.ground&&e.include.add(tt);for(const t of this.allLayerViews)ee(t.layer.type)&&e.include.add(t.uid);return e}get _defaultHitTestOptions(){const e={exclude:new Set};if(!this.map)return e;this.map.ground&&this.map.ground.opacity<1&&e.exclude.add(tt);for(const t of this.allLayerViews)ee(t.layer.type)&&t.layer.opacity<1&&e.exclude.add(t.uid);return e}static{this.type="3d"}static clearStatics(){yt(),L(),j(),it(),Ce(),me(),Se(),k(),rt(),ie(),Ze(),et(),Te(),xe(),P(),M(),Ke(),Ye(),Me.cleanupI3SLodHandling(),te.cleanupTilemapCache(),Ve.cleanupViewstate(),ke.cleanupTerrainSurface()}};function _t(e,t){return null!=e&&q(e.spatialReference,t)?W(e,t):null}e([R()],vt.prototype,"_userClippingArea",void 0),e([R()],vt.prototype,"_resourceController",void 0),e([R()],vt.prototype,"stage",null),e([R({readOnly:!0})],vt.prototype,"deconflictor",void 0),e([R({readOnly:!0})],vt.prototype,"labeler",void 0),e([R(F(re,"analyses"))],vt.prototype,"analyses",void 0),e([R({type:he,readOnly:!0})],vt.prototype,"animation",null),e([R({readOnly:!0})],vt.prototype,"basemapTerrain",void 0),e([R({readOnly:!0})],vt.prototype,"elevationProvider",void 0),e([R()],vt.prototype,"camera",null),e([R({type:t})],vt.prototype,"contentCamera",null),e([R({readOnly:!0})],vt.prototype,"canvas",null),e([R({type:U})],vt.prototype,"center",null),e([R({type:D})],vt.prototype,"clippingArea",null),e([R({type:ye})],vt.prototype,"constraints",void 0),e([R({type:D,readOnly:!0})],vt.prototype,"renderDataExtent",null),e([R({readOnly:!0})],vt.prototype,"tileInfo",null),e([R({type:D,readOnly:!0})],vt.prototype,"dataExtent",null),e([R({type:D,readOnly:!0})],vt.prototype,"_groundAndLayersExtent",null),e([R({type:we})],vt.prototype,"environment",void 0),e([x("environment")],vt.prototype,"castEnvironment",null),e([R({readOnly:!0})],vt.prototype,"environmentManager",void 0),e([R({type:D})],vt.prototype,"extent",null),e([R({type:r})],vt.prototype,"floors",void 0),e([R()],vt.prototype,"screenCenter",null),e([R()],vt.prototype,"frustum",null),e([R({type:Number,readOnly:!0})],vt.prototype,"fullOpacity",void 0),e([R({readOnly:!0})],vt.prototype,"graphicsView",void 0),e([R({})],vt.prototype,"analysisViewManager",void 0),e([R()],vt.prototype,"groundView",void 0),e([R({type:Boolean})],vt.prototype,"initialExtentRequired",null),e([R()],vt.prototype,"defaultsFromMapSettings",null),e([R()],vt.prototype,"interacting",null),e([R()],vt.prototype,"stationary",null),e([R()],vt.prototype,"navigating",null),e([R()],vt.prototype,"map",void 0),e([R()],vt.prototype,"padding",null),e([R({type:ze,readOnly:!0})],vt.prototype,"pointsOfInterest",void 0),e([R()],vt.prototype,"_featureTiles",void 0),e([R()],vt.prototype,"featureTiles",null),e([R()],vt.prototype,"_featureTreeDebugger",void 0),e([R({type:Boolean})],vt.prototype,"screenSizePerspectiveEnabled",void 0),e([R({constructOnly:!0})],vt.prototype,"deactivatedWebGLExtensions",void 0),e([R({constructOnly:!0})],vt.prototype,"debugWebGLExtensions",void 0),e([R({constructOnly:!0})],vt.prototype,"renderCanvas",void 0),e([R({constructOnly:!0})],vt.prototype,"state",void 0),e([R({readOnly:!0})],vt.prototype,"inputManager",void 0),e([R({readOnly:!0})],vt.prototype,"stateManager",void 0),e([R({type:["low","medium","high"]})],vt.prototype,"qualityProfile",null),e([R({type:Fe,get(){let e=this._get("qualitySettings");return e||(e=new Fe,Ee.apply(this.qualityProfile,e)),e}})],vt.prototype,"qualitySettings",void 0),e([R()],vt.prototype,"slice",void 0),e([R({readOnly:!0})],vt.prototype,"typeSpecificPreconditionsReady",null),e([R({readOnly:!0})],vt.prototype,"renderCoordsHelper",void 0),e([R({readOnly:!0})],vt.prototype,"sceneIntersectionHelper",void 0),e([R({type:Number,dependsOn:["scale","spatialReference"],readOnly:!0})],vt.prototype,"resolution",null),e([R({type:Number})],vt.prototype,"scale",null),e([R()],vt.prototype,"heightModelInfo",null),e([R()],vt.prototype,"spatialReference",void 0),e([R({type:Boolean,constructOnly:!0})],vt.prototype,"alphaCompositingEnabled",void 0),e([R({constructOnly:!0})],vt.prototype,"preserveDrawingBufferEnabled",void 0),e([R({type:Boolean})],vt.prototype,"supersampleScreenshotsEnabled",void 0),e([R({readOnly:!0})],vt.prototype,"type",void 0),e([R(),x(e=>e instanceof ct?e:E(gt,e))],vt.prototype,"ui",void 0),e([R({type:Boolean,readOnly:!0,dependsOn:["graphicsView.updating","basemapView.updating","basemapTerrain.updating","layerViewManager.updating","layerViewManager.updatingRemaining","_resourceController.updating","stage.updating","featureTiles.updating","pointsOfInterest.updating","environmentManager.updating","overlay.updating","updatingHandles.updating","featureTreeDebugger.updating","labeler.updating","deconflictor.updating","ready","stationary","inputManager.updating","toolViewManager.updating","analysisViewManager.updating","state.updating","textures.updating"]})],vt.prototype,"updating",null),e([R()],vt.prototype,"_updatingObjects",null),e([R()],vt.prototype,"_updatingObjectsWithProgress",null),e([R({type:Number,readOnly:!0,dependsOn:["updating"]})],vt.prototype,"updatingProgress",void 0),e([R({type:["global","local"]})],vt.prototype,"viewingMode",null),e([R({type:i})],vt.prototype,"viewpoint",null),e([R({readOnly:!0})],vt.prototype,"visibleArea",null),e([R({type:Number})],vt.prototype,"zoom",null),e([R({type:nt})],vt.prototype,"highlightOptions",null),e([R({readOnly:!0})],vt.prototype,"quality",null),e([R({readOnly:!0})],vt.prototype,"resolutionScale",null),e([R()],vt.prototype,"focusAreasView",void 0),e([R()],vt.prototype,"_defaultToMapOptions",null),e([R()],vt.prototype,"_defaultHitTestOptions",null),vt=e([O("esri.views.SceneView")],vt);const bt=I(),Mt=S(),St=Y(),Vt={GraphicsView3D:()=>import("./3d/layers/GraphicsView3D.js"),FocusAreasView:()=>import("./3d/FocusAreasView.js"),FeatureTileTree3D:()=>import("./3d/layers/support/FeatureTileTree3D.js")},jt=vt;export{jt as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../Color.js";import i from"../Viewpoint.js";import s from"../core/Accessor.js";import{EventedMixin as r}from"../core/Evented.js";import{destroyMaybe as o}from"../core/maybe.js";import a from"../core/Promise.js";import{watch as n,initial as l,whenOnce as p,syncAndInitial as m}from"../core/reactiveUtils.js";import{property as h}from"../core/accessorSupport/decorators/property.js";import{cast as d}from"../core/accessorSupport/decorators/cast.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import{ensureClass as g}from"../core/accessorSupport/ensureType.js";import f from"../geometry/Extent.js";import u from"../geometry/Point.js";import y from"../geometry/SpatialReference.js";import{load as j,execute as w}from"../geometry/operators/projectOperator.js";import b from"../layers/support/ExtentAndRotationGeoreference.js";import{MediaElementView as v}from"../layers/support/MediaElementView.js";import M from"../layers/support/TileInfo.js";import _ from"../layers/support/VideoElement.js";import{DOMContainer as S}from"./DOMContainer.js";import{Viewport2DBaseMixin as V}from"./Viewport2DBaseMixin.js";import{Viewport2DMixin as C}from"./Viewport2DMixin.js";import x from"./2d/AnimationManager.js";import P from"./2d/MapViewConstraints.js";import"../core/Error.js";import"../core/scheduling.js";import"../core/Logger.js";import"../core/mathUtils.js";import"../config.js";import"../core/floatRGBA.js";import"../geometry/Geometry.js";import"../geometry/Multipoint.js";import"../geometry/Polygon.js";import"../geometry/Polyline.js";import"../symbols/Font.js";import"../core/ObjectPool.js";import"../geometry/support/spatialReferenceUtils.js";import"../symbols/cim/effects/EffectAddControlPoints.js";import"../symbols/cim/effects/EffectArrow.js";import"../symbols/cim/effects/EffectBuffer.js";import"../symbols/cim/effects/EffectControlMeasureLine.js";import"../symbols/cim/effects/EffectCut.js";import"../symbols/cim/effects/EffectDashes.js";import"../symbols/cim/effects/EffectDonut.js";import"../symbols/cim/effects/EffectEnclosingPolygon.js";import"../symbols/cim/effects/EffectJog.js";import"../symbols/cim/effects/EffectMove.js";import"../symbols/cim/effects/EffectOffset.js";import"../symbols/cim/effects/EffectRadial.js";import"../symbols/cim/effects/EffectReverse.js";import"../symbols/cim/effects/EffectRotate.js";import"../symbols/cim/effects/EffectScale.js";import"../symbols/cim/effects/EffectSuppress.js";import"../symbols/cim/effects/EffectTaperedPolygon.js";import"../symbols/cim/effects/EffectWave.js";import"../symbols/cim/placements/PlacementAlongLineSameSize.js";import"../symbols/cim/placements/PlacementAtExtremities.js";import"../symbols/cim/placements/PlacementAtRatioPositions.js";import"../symbols/cim/placements/PlacementInsidePolygon.js";import"../symbols/cim/placements/PlacementOnLine.js";import"../symbols/cim/placements/PlacementOnVertices.js";import"../symbols/cim/placements/PlacementPolygonCenter.js";import"../symbols/cim/constants.js";import"../core/libs/gl-matrix-2/factories/vec2f32.js";import"../symbols/support/defaults.js";import"../symbols/cim/OverrideHelper.js";import{Container as E}from"./2d/engine/Container.js";import"../core/libs/gl-matrix-2/factories/vec4f32.js";import"./webgl/enums.js";import"./2d/engine/webgl/shaders/BackgroundPrograms.js";import"./webgl/Program.js";import"./2d/engine/webgl/DefaultVertexAttributeLayouts.js";import"./webgl/BufferObject.js";import"./webgl/checkWebGLError.js";import"./2d/engine/webgl/AFeatureTile.js";import"./2d/engine/webgl/DisplayEntity.js";import"./2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"./2d/engine/webgl/cpuMapped/MappedMesh.js";import"./2d/engine/webgl/number.js";import"./2d/engine/webgl/shaders/TileInfoPrograms.js";import"./webgl/Texture.js";import"./2d/engine/webgl/shaders/BitBlitPrograms.js";import"../request.js";import"../core/urlUtils.js";import"../core/pbf.js";import"./2d/engine/webgl/shaders/StencilPrograms.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js";import"./2d/engine/webgl/shaders/HighlightPrograms.js";import"./webgl/FramebufferObject.js";import"./2d/engine/webgl/meshing/SimpleMesh.js";import"./webgl/Renderbuffer.js";import"./2d/engine/webgl/PooledUint32Array.js";import"./2d/engine/webgl/Profiler.js";import"./2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"./2d/engine/webgl/shaderGraph/techniques/animated/attributes.js";import"./2d/engine/webgl/mesh/templates/templateUtils.js";import"./2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapMeshWriter.js";import"../geometry/support/aaBoundingBox.js";import"./2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js";import"../core/sql/UnknownTimeZone.js";import"luxon";import"../intl/locale.js";import"../layers/support/fieldUtils.js";import"../time/constants.js";import"./2d/engine/webgl/animations/instructions.js";import"./2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js";import"./webgl/renderState.js";import"./3d/webgl-engine/core/shaderModules/glsl.js";import"./webgl/testSVGPremultipliedAlpha.js";import{ManagedCanvas as G}from"./2d/engine/ManagedCanvas.js";import"./2d/engine/transitions/FadeTransition.js";import"./2d/engine/webgl/meshing/definitions.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"./2d/LabelManager.js";import"./2d/layers/graphics/GraphicsView2D.js";import"../chunks/earcut.js";import"../core/libs/gl-matrix-2/factories/vec3f32.js";import"../geometry/support/normalizeUtilsCommon.js";import"../geometry/support/Ellipsoid.js";import"../kernel.js";import"./2d/layers/support/util.js";import D from"./2d/navigation/MapViewNavigation.js";import"../core/asyncUtils.js";import"../core/support/UpdatingHandles.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../core/unitUtils.js";import"../geometry/ellipsoidUtils.js";import"../chunks/pe.js";import"../geometry/projection/projectors.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../geometry/support/geodesicConstants.js";import{ViewStateManager as R}from"./2d/ViewStateManager.js";import q from"./2d/engine/webgl/Overlay.js";import z from"./2d/engine/webgl/OverlayContainer.js";import O from"./navigation/Navigation.js";import T from"./ui/DefaultUI.js";import W from"./ui/video/DefaultUIVideo.js";const k=new t("#000");let A;async function U(){const[,{ParentStage:e}]=await Promise.all([import("./2d/webglDeps.js"),import("./2d/mapViewDeps.js")]);A=e}const F=.01,H=["feature","geojson","csv","stream","ogc-feature","catalog","wfs","parquet","graphics","group"];let L=class extends s{};L=e([c("esri.views.VideoView.Base")],L);let B=class extends(C(V(S(r(a.EsriPromiseMixin(L)))))){constructor(e){super(e),this._isValid=!1,this._prevZoomEnabled=!1,this._prevRotationEnabled=!1,this.stage=null,this.childStage=null,this._operationalDataView=null,this.operationalDataVisible=!1,this.layer=null,this.map=null,this.navigation=new O,this.ready=!1,this.spatialReference=new y({wkid:0}),this.stateManager=new R({constraints:new P({view:this,minScale:1,maxScale:F})}),this.type="2d",this.ui=new W,this.view2dType="video",this.addHandles([n(()=>this.preconditionsReady,e=>e?this._startup():this._teardown()),n(()=>this.layer,()=>this.addResolvingPromise(p(()=>this.ready)),l),n(()=>this.videoSize,([e,t])=>{this._extent&&e&&t&&(this._extent.xmax=e,this._extent.ymax=t)}),n(()=>this.size,e=>{this._operationalDataView&&this._operationalDataView.stateManager.resize(e[0],e[1])}),n(()=>[this.layer?.frameEffect,this._effectsContainer],()=>{this._effectsContainer&&(this._effectsContainer.effect=this.layer?.frameEffect??null)},m)])}initialize(){this._prevZoomEnabled="zoom"===this.navigation.actionMap.mouseWheel&&this.ui.components.includes("zoom"),this._prevRotationEnabled="rotate"===this.navigation.actionMap.dragSecondary&&this.ui.components.includes("compass"),this.addHandles([n(()=>[this.operationalDataVisible,this.childStage],()=>{this.childStage&&(this.childStage.videoScreenRenderer.visible=this.operationalDataVisible),this.operationalDataVisible&&(this.scale=1,this.rotation=0),this.navigation&&(this._prevZoomEnabled&&(this.navigation.actionMap.mouseWheel=this.operationalDataVisible?"none":"zoom",this.navigation.actionMap.dragPrimary=this.operationalDataVisible?"none":"pan",this.ui.components&&(this.ui.components=this.operationalDataVisible?this.ui.components.filter(e=>"zoom"!==e):[...new Set([...this.ui.components,"zoom"])])),this._prevRotationEnabled&&(this.navigation.actionMap.dragSecondary=this.operationalDataVisible?"none":"rotate",this.ui.components&&(this.ui.components=this.operationalDataVisible?this.ui.components.filter(e=>"compass"!==e):[...new Set([...this.ui.components,"compass"])])))},m)]),this.addResolvingPromise(U().then(()=>(this._isValid=!0,p(()=>this.ready))))}destroy(){this._teardown(),this.removeAllHandles(),this._set("preconditionsReady",!1),this.frameTask=o(this.frameTask),this.goToManager.destroy(),this.inputManager.destroy(),this._set("inputManager",null)}get constraintsInfo(){return{lods:null,spatialReference:this.spatialReference}}get preconditionsReady(){return!(!this._isValid||0===this.width||0===this.height||0===this.videoSize[0]||0===this.videoSize[1])}get rendering(){return this.stage?.renderRequested??!1}get scale(){return this.stateManager?.scale??0}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get videoSize(){if(!this.layer?.videoWidth||!this.layer?.videoHeight)return[0,0];const[e,t]=this.size,i=(this.layer?.videoWidth||0)/(this.layer?.videoHeight||0),s=t*i,r=e/i;return e/t>=1?i>=1?s<=e?[s,t]:[e,r]:r<=t?[e,r]:[s,t]:i>=1?r<=t?[e,r]:[s,t]:s<=e?[s,t]:[e,r]}async hitTest(e,t){return this._operationalDataView&&this._operationalDataView.ready?this._operationalDataView.hitTest(e,t):{screenPoint:e,results:[]}}_startup(){if(!this.layer)return;const e=this._getViewpoint();this.stateManager.startup(e,this.size,e.targetGeometry.spatialReference);const t={renderingOptions:this.renderingOptions,backgroundColor:k,groundControlPoints:()=>this.layer?.groundControlPoints,getSize:()=>this.videoSize},i=new A(this.surface,t,new G(this.surface));this.stage=i,this._prepareStage(this.stage),this.childStage=i.childStage,this._prepareChildStage(this.childStage);const s=new x({view:this});this._set("animationManager",s);const r=new D({view:this,animationManager:s});this._set("mapViewNavigation",r),this._updateConstraints(),this.frameTask.start(),this._set("ready",!0)}_teardown(){this.stage.destroy(),this.stage=null,this._videoElementView=null,this._overlayContainer.removeAllChildren(),this._overlayContainer=null,this.removeHandles("video-view"),this._set("ready",!1),this.stateManager.teardown(),this.frameTask.stop(),this.stationaryManager.clear()}_getViewpoint(){return new i({targetGeometry:new u({x:this.videoSize[0]/2,y:this.videoSize[1]/2,spatialReference:this.spatialReference}),scale:1})}_prepareStage(e){this.addHandles([n(()=>this.stationary,t=>e.stationary=t,m),n(()=>this.state.id,()=>e.state=this.state,m),n(()=>this.renderingOptions,t=>e.renderingOptions=t,m)],"video-view"),this._extent=new f({xmin:0,ymin:0,xmax:this.videoSize[0],ymax:this.videoSize[1],spatialReference:{wkid:0}}),this._videoElementView=new v({element:new _({video:this.layer?.videoElement,georeference:new b({extent:this._extent}),autoplay:!1}),spatialReference:this.spatialReference});const t=new q(this._videoElementView);this._overlayContainer=new z,this._overlayContainer.addChild(t),this._effectsContainer=new E,this._effectsContainer.addChild(this._overlayContainer),this.stage.addChild(this._effectsContainer);const i=document.createElement("div");i.classList.add("esri-video-poster"),this.container?.classList.add("esri-video-view"),this.container?.appendChild(i)}_prepareChildStage(e){this.addHandles([n(()=>this.map,async t=>{if(!t)return;const{default:i}=await import("./video/VideoOperationalDataView.js");this._operationalDataView=new i({stage:e,layerViewFilter:e=>new Set(H).has(e.type),width:this.size[0],height:this.size[1],map:t}),p(()=>this._operationalDataView?.ready).then(()=>{e.videoScreenRenderer.visible=this.operationalDataVisible})},m),n(()=>this.layer?.groundControlPoints,async()=>{if(!this.layer?.groundControlPoints||!e.state)return;const t=this.layer.groundControlPoints,i=t?.length;if(!i)return;await j();const s=new Array(i),r=e.state.spatialReference;for(let e=0;e<i;e++){const{lat:i,lon:o}=t[e];s[e]=w(new u(o,i),r)}let o=1/0,a=1/0,n=-1/0,l=-1/0;for(const e of s)o=Math.min(o,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),l=Math.max(l,e.y);const p=f.fromJSON({xmin:o,ymin:a,xmax:n,ymax:l,spatialReference:r});await(this._operationalDataView?.goTo(p,{animate:!1}).catch(()=>{}))},m)])}_updateConstraints(){this._updateZoomConstraints(),this._updatePanConstraints()}_updateZoomConstraints(){const e=this.videoSize,t=Math.max(e[0]/this.size[0],e[1]/this.size[1]),i=[];for(let r=t;r>F;r/=2)i.push(r);i.push(F);const{lods:s}=M.create({scales:i});this.constraints.set({lods:s,minScale:t})}_updatePanConstraints(){const e=e=>{if(!e.targetGeometry)return e;const[t,i]=this.videoSize,s=t*e.scale/2,r=i*e.scale/2,o=e.targetGeometry.clone();return o.x=Math.max(s,Math.min(t-s,o.x)),o.y=Math.max(r,Math.min(i-r,o.y)),e.targetGeometry=o,e};this.constraints.customConstraints.add({constrain:e,applyPanConstraint:e})}};e([h()],B.prototype,"_overlayContainer",void 0),e([h()],B.prototype,"_isValid",void 0),e([h()],B.prototype,"_effectsContainer",void 0),e([h()],B.prototype,"constraintsInfo",null),e([h()],B.prototype,"operationalDataVisible",void 0),e([h()],B.prototype,"layer",void 0),e([h()],B.prototype,"map",void 0),e([h({type:O,nonNullable:!0})],B.prototype,"navigation",void 0),e([h({readOnly:!0})],B.prototype,"preconditionsReady",null),e([h({readOnly:!0})],B.prototype,"ready",void 0),e([h({readOnly:!0})],B.prototype,"rendering",null),e([h()],B.prototype,"scale",null),e([h()],B.prototype,"spatialReference",void 0),e([h()],B.prototype,"stateManager",void 0),e([h()],B.prototype,"type",void 0),e([h(),d(e=>e instanceof T?e:g(W,e))],B.prototype,"ui",void 0),e([h({readOnly:!0})],B.prototype,"videoSize",null),e([h({readOnly:!0})],B.prototype,"view2dType",void 0),B=e([c("esri.views.VideoView")],B);const I=B;export{I as default};
5
+ import{__decorate as e}from"tslib";import t from"../Color.js";import i from"../Viewpoint.js";import s from"../core/Accessor.js";import{EventedMixin as r}from"../core/Evented.js";import{destroyMaybe as o}from"../core/maybe.js";import{EsriPromiseMixin as a}from"../core/Promise.js";import{watch as n,initial as l,whenOnce as p,syncAndInitial as m}from"../core/reactiveUtils.js";import{property as h}from"../core/accessorSupport/decorators/property.js";import{cast as d}from"../core/accessorSupport/decorators/cast.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import{ensureClass as g}from"../core/accessorSupport/ensureType.js";import f from"../geometry/Extent.js";import u from"../geometry/Point.js";import y from"../geometry/SpatialReference.js";import{load as j,execute as w}from"../geometry/operators/projectOperator.js";import b from"../layers/support/ExtentAndRotationGeoreference.js";import{MediaElementView as v}from"../layers/support/MediaElementView.js";import M from"../layers/support/TileInfo.js";import _ from"../layers/support/VideoElement.js";import{DOMContainer as S}from"./DOMContainer.js";import{Viewport2DBaseMixin as V}from"./Viewport2DBaseMixin.js";import{Viewport2DMixin as C}from"./Viewport2DMixin.js";import x from"./2d/AnimationManager.js";import P from"./2d/MapViewConstraints.js";import"../core/Error.js";import"../core/scheduling.js";import"../core/Logger.js";import"../core/mathUtils.js";import"../config.js";import"../core/floatRGBA.js";import"../geometry/Geometry.js";import"../geometry/Multipoint.js";import"../geometry/Polygon.js";import"../geometry/Polyline.js";import"../symbols/Font.js";import"../core/ObjectPool.js";import"../geometry/support/spatialReferenceUtils.js";import"../symbols/cim/effects/EffectAddControlPoints.js";import"../symbols/cim/effects/EffectArrow.js";import"../symbols/cim/effects/EffectBuffer.js";import"../symbols/cim/effects/EffectControlMeasureLine.js";import"../symbols/cim/effects/EffectCut.js";import"../symbols/cim/effects/EffectDashes.js";import"../symbols/cim/effects/EffectDonut.js";import"../symbols/cim/effects/EffectEnclosingPolygon.js";import"../symbols/cim/effects/EffectJog.js";import"../symbols/cim/effects/EffectMove.js";import"../symbols/cim/effects/EffectOffset.js";import"../symbols/cim/effects/EffectRadial.js";import"../symbols/cim/effects/EffectReverse.js";import"../symbols/cim/effects/EffectRotate.js";import"../symbols/cim/effects/EffectScale.js";import"../symbols/cim/effects/EffectSuppress.js";import"../symbols/cim/effects/EffectTaperedPolygon.js";import"../symbols/cim/effects/EffectWave.js";import"../symbols/cim/placements/PlacementAlongLineSameSize.js";import"../symbols/cim/placements/PlacementAtExtremities.js";import"../symbols/cim/placements/PlacementAtRatioPositions.js";import"../symbols/cim/placements/PlacementInsidePolygon.js";import"../symbols/cim/placements/PlacementOnLine.js";import"../symbols/cim/placements/PlacementOnVertices.js";import"../symbols/cim/placements/PlacementPolygonCenter.js";import"../symbols/cim/constants.js";import"../core/libs/gl-matrix-2/factories/vec2f32.js";import"../symbols/support/defaults.js";import"../symbols/cim/OverrideHelper.js";import{Container as E}from"./2d/engine/Container.js";import"../core/libs/gl-matrix-2/factories/vec4f32.js";import"./webgl/enums.js";import"./2d/engine/webgl/shaders/BackgroundPrograms.js";import"./webgl/Program.js";import"./webgl/BufferObject.js";import"./webgl/checkWebGLError.js";import"./webgl/VertexAttributeLayouts.js";import"./2d/engine/webgl/AFeatureTile.js";import"./2d/engine/webgl/DisplayEntity.js";import"./2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"./2d/engine/webgl/cpuMapped/MappedMesh.js";import"./2d/engine/webgl/number.js";import"./2d/engine/webgl/shaders/TileInfoPrograms.js";import"./webgl/Texture.js";import"./2d/engine/webgl/shaders/BitBlitPrograms.js";import"../request.js";import"../core/urlUtils.js";import"../core/pbf.js";import"./2d/engine/webgl/shaders/StencilPrograms.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js";import"./2d/engine/webgl/shaders/HighlightPrograms.js";import"./webgl/FramebufferObject.js";import"./2d/engine/webgl/meshing/SimpleMesh.js";import"./webgl/Renderbuffer.js";import"./2d/engine/webgl/PooledUint32Array.js";import"./2d/engine/webgl/Profiler.js";import"./2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"./2d/engine/webgl/shaderGraph/techniques/animated/attributes.js";import"./2d/engine/webgl/mesh/templates/templateUtils.js";import"./2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapMeshWriter.js";import"../geometry/support/aaBoundingBox.js";import"./2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js";import"./2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js";import"../core/sql/UnknownTimeZone.js";import"luxon";import"../intl/locale.js";import"../layers/support/fieldUtils.js";import"../time/constants.js";import"./2d/engine/webgl/animations/instructions.js";import"./2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js";import"./webgl/renderState.js";import"./3d/webgl-engine/core/shaderModules/glsl.js";import"./webgl/testSVGPremultipliedAlpha.js";import{ManagedCanvas as G}from"./2d/engine/ManagedCanvas.js";import"./2d/engine/transitions/FadeTransition.js";import"./2d/engine/webgl/meshing/definitions.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"./2d/LabelManager.js";import"./2d/layers/graphics/GraphicsView2D.js";import"../chunks/earcut.js";import"../core/libs/gl-matrix-2/factories/vec3f32.js";import"../geometry/support/normalizeUtilsCommon.js";import"../geometry/support/Ellipsoid.js";import"../kernel.js";import"./2d/layers/support/util.js";import D from"./2d/navigation/MapViewNavigation.js";import"../core/asyncUtils.js";import"../core/support/UpdatingHandles.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../core/unitUtils.js";import"../geometry/ellipsoidUtils.js";import"../chunks/pe.js";import"../geometry/projection/projectors.js";import"./2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../geometry/support/geodesicConstants.js";import{ViewStateManager as R}from"./2d/ViewStateManager.js";import q from"./2d/engine/webgl/Overlay.js";import z from"./2d/engine/webgl/OverlayContainer.js";import O from"./navigation/Navigation.js";import T from"./ui/DefaultUI.js";import W from"./ui/video/DefaultUIVideo.js";const k=new t("#000");let A;async function U(){const[,{ParentStage:e}]=await Promise.all([import("./2d/webglDeps.js"),import("./2d/mapViewDeps.js")]);A=e}const F=.01,H=["feature","geojson","csv","stream","ogc-feature","catalog","wfs","parquet","graphics","group"];let L=class extends s{};L=e([c("esri.views.VideoView.Base")],L);let B=class extends(C(V(S(r(a(L)))))){constructor(e){super(e),this._isValid=!1,this._prevZoomEnabled=!1,this._prevRotationEnabled=!1,this.stage=null,this.childStage=null,this._operationalDataView=null,this.operationalDataVisible=!1,this.layer=null,this.map=null,this.navigation=new O,this.ready=!1,this.spatialReference=new y({wkid:0}),this.stateManager=new R({constraints:new P({view:this,minScale:1,maxScale:F})}),this.type="2d",this.ui=new W,this.view2dType="video",this.addHandles([n(()=>this.preconditionsReady,e=>e?this._startup():this._teardown()),n(()=>this.layer,()=>this.addResolvingPromise(p(()=>this.ready)),l),n(()=>this.videoSize,([e,t])=>{this._extent&&e&&t&&(this._extent.xmax=e,this._extent.ymax=t)}),n(()=>this.size,e=>{this._operationalDataView&&this._operationalDataView.stateManager.resize(e[0],e[1])}),n(()=>[this.layer?.frameEffect,this._effectsContainer],()=>{this._effectsContainer&&(this._effectsContainer.effect=this.layer?.frameEffect??null)},m)])}initialize(){this._prevZoomEnabled="zoom"===this.navigation.actionMap.mouseWheel&&this.ui.components.includes("zoom"),this._prevRotationEnabled="rotate"===this.navigation.actionMap.dragSecondary&&this.ui.components.includes("compass"),this.addHandles([n(()=>[this.operationalDataVisible,this.childStage],()=>{this.childStage&&(this.childStage.videoScreenRenderer.visible=this.operationalDataVisible),this.operationalDataVisible&&(this.scale=1,this.rotation=0),this.navigation&&(this._prevZoomEnabled&&(this.navigation.actionMap.mouseWheel=this.operationalDataVisible?"none":"zoom",this.navigation.actionMap.dragPrimary=this.operationalDataVisible?"none":"pan",this.ui.components&&(this.ui.components=this.operationalDataVisible?this.ui.components.filter(e=>"zoom"!==e):[...new Set([...this.ui.components,"zoom"])])),this._prevRotationEnabled&&(this.navigation.actionMap.dragSecondary=this.operationalDataVisible?"none":"rotate",this.ui.components&&(this.ui.components=this.operationalDataVisible?this.ui.components.filter(e=>"compass"!==e):[...new Set([...this.ui.components,"compass"])])))},m)]),this.addResolvingPromise(U().then(()=>(this._isValid=!0,p(()=>this.ready))))}destroy(){this._teardown(),this.removeAllHandles(),this._set("preconditionsReady",!1),this.frameTask=o(this.frameTask),this.goToManager.destroy(),this.inputManager.destroy(),this._set("inputManager",null)}get constraintsInfo(){return{lods:null,spatialReference:this.spatialReference}}get preconditionsReady(){return!(!this._isValid||0===this.width||0===this.height||0===this.videoSize[0]||0===this.videoSize[1])}get rendering(){return this.stage?.renderRequested??!1}get scale(){return this.stateManager?.scale??0}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get videoSize(){if(!this.layer?.videoWidth||!this.layer?.videoHeight)return[0,0];const[e,t]=this.size,i=(this.layer?.videoWidth||0)/(this.layer?.videoHeight||0),s=t*i,r=e/i;return e/t>=1?i>=1?s<=e?[s,t]:[e,r]:r<=t?[e,r]:[s,t]:i>=1?r<=t?[e,r]:[s,t]:s<=e?[s,t]:[e,r]}async hitTest(e,t){return this._operationalDataView&&this._operationalDataView.ready?this._operationalDataView.hitTest(e,t):{screenPoint:e,results:[]}}_startup(){if(!this.layer)return;const e=this._getViewpoint();this.stateManager.startup(e,this.size,e.targetGeometry.spatialReference);const t={renderingOptions:this.renderingOptions,backgroundColor:k,groundControlPoints:()=>this.layer?.groundControlPoints,getSize:()=>this.videoSize},i=new A(this.surface,t,new G(this.surface));this.stage=i,this._prepareStage(this.stage),this.childStage=i.childStage,this._prepareChildStage(this.childStage);const s=new x({view:this});this._set("animationManager",s);const r=new D({view:this,animationManager:s});this._set("mapViewNavigation",r),this._updateConstraints(),this.frameTask.start(),this._set("ready",!0)}_teardown(){this.stage.destroy(),this.stage=null,this._videoElementView=null,this._overlayContainer.removeAllChildren(),this._overlayContainer=null,this.removeHandles("video-view"),this._set("ready",!1),this.stateManager.teardown(),this.frameTask.stop(),this.stationaryManager.clear()}_getViewpoint(){return new i({targetGeometry:new u({x:this.videoSize[0]/2,y:this.videoSize[1]/2,spatialReference:this.spatialReference}),scale:1})}_prepareStage(e){this.addHandles([n(()=>this.stationary,t=>e.stationary=t,m),n(()=>this.state.id,()=>e.state=this.state,m),n(()=>this.renderingOptions,t=>e.renderingOptions=t,m)],"video-view"),this._extent=new f({xmin:0,ymin:0,xmax:this.videoSize[0],ymax:this.videoSize[1],spatialReference:{wkid:0}}),this._videoElementView=new v({element:new _({video:this.layer?.videoElement,georeference:new b({extent:this._extent}),autoplay:!1}),spatialReference:this.spatialReference});const t=new q(this._videoElementView);this._overlayContainer=new z,this._overlayContainer.addChild(t),this._effectsContainer=new E,this._effectsContainer.addChild(this._overlayContainer),this.stage.addChild(this._effectsContainer);const i=document.createElement("div");i.classList.add("esri-video-poster"),this.container?.classList.add("esri-video-view"),this.container?.appendChild(i)}_prepareChildStage(e){this.addHandles([n(()=>this.map,async t=>{if(!t)return;const{default:i}=await import("./video/VideoOperationalDataView.js");this._operationalDataView=new i({stage:e,layerViewFilter:e=>new Set(H).has(e.type),width:this.size[0],height:this.size[1],map:t}),p(()=>this._operationalDataView?.ready).then(()=>{e.videoScreenRenderer.visible=this.operationalDataVisible})},m),n(()=>this.layer?.groundControlPoints,async()=>{if(!this.layer?.groundControlPoints||!e.state)return;const t=this.layer.groundControlPoints,i=t?.length;if(!i)return;await j();const s=new Array(i),r=e.state.spatialReference;for(let e=0;e<i;e++){const{lat:i,lon:o}=t[e];s[e]=w(new u(o,i),r)}let o=1/0,a=1/0,n=-1/0,l=-1/0;for(const e of s)o=Math.min(o,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),l=Math.max(l,e.y);const p=f.fromJSON({xmin:o,ymin:a,xmax:n,ymax:l,spatialReference:r});await(this._operationalDataView?.goTo(p,{animate:!1}).catch(()=>{}))},m)])}_updateConstraints(){this._updateZoomConstraints(),this._updatePanConstraints()}_updateZoomConstraints(){const e=this.videoSize,t=Math.max(e[0]/this.size[0],e[1]/this.size[1]),i=[];for(let r=t;r>F;r/=2)i.push(r);i.push(F);const{lods:s}=M.create({scales:i});this.constraints.set({lods:s,minScale:t})}_updatePanConstraints(){const e=e=>{if(!e.targetGeometry)return e;const[t,i]=this.videoSize,s=t*e.scale/2,r=i*e.scale/2,o=e.targetGeometry.clone();return o.x=Math.max(s,Math.min(t-s,o.x)),o.y=Math.max(r,Math.min(i-r,o.y)),e.targetGeometry=o,e};this.constraints.customConstraints.add({constrain:e,applyPanConstraint:e})}};e([h()],B.prototype,"_overlayContainer",void 0),e([h()],B.prototype,"_isValid",void 0),e([h()],B.prototype,"_effectsContainer",void 0),e([h()],B.prototype,"constraintsInfo",null),e([h()],B.prototype,"operationalDataVisible",void 0),e([h()],B.prototype,"layer",void 0),e([h()],B.prototype,"map",void 0),e([h({type:O,nonNullable:!0})],B.prototype,"navigation",void 0),e([h({readOnly:!0})],B.prototype,"preconditionsReady",null),e([h({readOnly:!0})],B.prototype,"ready",void 0),e([h({readOnly:!0})],B.prototype,"rendering",null),e([h()],B.prototype,"scale",null),e([h()],B.prototype,"spatialReference",void 0),e([h()],B.prototype,"stateManager",void 0),e([h()],B.prototype,"type",void 0),e([h(),d(e=>e instanceof T?e:g(W,e))],B.prototype,"ui",void 0),e([h({readOnly:!0})],B.prototype,"videoSize",null),e([h({readOnly:!0})],B.prototype,"view2dType",void 0),B=e([c("esri.views.VideoView")],B);const I=B;export{I as default};
package/views/View.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../Map.js";import i from"../core/Accessor.js";import{createTask as r}from"../core/asyncUtils.js";import s from"../core/Collection.js";import a from"../core/CollectionFlattener.js";import{referenceSetter as o}from"../core/collectionUtils.js";import n from"../core/Error.js";import{EventedMixin as l}from"../core/Evented.js";import p from"../core/Handles.js";import{makeHandle as h}from"../core/handleUtils.js";import has from"../core/has.js";import{isLoadable as d}from"../core/Loadable.js";import y from"../core/Logger.js";import{destroyMaybe as u,abortMaybe as m}from"../core/maybe.js";import c from"../core/Promise.js";import{after as g}from"../core/promiseUtils.js";import{watch as f,sync as w,whenOnce as v,when as _,syncAndInitial as V}from"../core/reactiveUtils.js";import{property as M}from"../core/accessorSupport/decorators/property.js";import"../core/RandomLCG.js";import{subclass as R}from"../core/accessorSupport/decorators/subclass.js";import{owningCollectionProperty as S}from"../core/support/OwningCollection.js";import{UpdatingHandles as j}from"../core/support/UpdatingHandles.js";import T from"../geometry/Extent.js";import F from"../geometry/HeightModelInfo.js";import E from"../geometry/SpatialReference.js";import{equals as k}from"../geometry/support/spatialReferenceUtils.js";import{AnalysesCollection as x}from"../support/AnalysesCollection.js";import{GraphicsCollection as b}from"../support/GraphicsCollection.js";import{system as O}from"../time/constants.js";import{T as C}from"../chunks/TimeExtent.js";import{isTimeZoneValid as L}from"../time/timeZoneUtils.js";import H from"./BasemapView.js";import P from"./Magnifier.js";import Z from"./SelectionManager.js";import I from"./Theme.js";import{ToolViewManager as W}from"./ToolViewManager.js";import{makeDefaultHighlightOptions as q}from"./3d/support/DefaultHighlights.js";import D from"./input/Input.js";import{ViewEvents as U}from"./input/ViewEvents.js";import A from"./navigation/Navigation.js";import{DefaultsFromMap as z}from"./support/DefaultsFromMap.js";import G from"./support/HighlightOptions.js";import N from"./support/LayerViewManager.js";import $ from"./support/RequiredFieldsOptions.js";var B;let J=class extends(l(c.EsriPromiseMixin(i))){static{B=this}constructor(e){super(e),this._userSpatialReference=null,this.handles=new p,this.updatingHandles=new j,this.allLayerViews=new a({getCollections:()=>[this.basemapView?.baseLayerViews,this.groundView?.layerViews,this.layerViews,this.basemapView?.referenceLayerViews],getChildrenFunction:X}),this.analyses=new x,this.basemapView=null,this.displayFilterEnabled=!0,this.fatalError=null,this.graphics=new b,this.groundView=null,this.typeSpecificPreconditionsReady=!0,this.layerViews=new s,this.magnifier=new P,this.padding={left:0,top:0,right:0,bottom:0},this.ready=!1,this._readyStateWaitingTask=null,this.supportsGround=!0,this.type=null,this.scale=null,this.updating=!1,this.initialExtentRequired=!0,this._lowPriorityCursorHandles=new s,this._highPriorityCursorHandles=new s,this.input=new D,this.navigation=new A,this.layerViewManager=null,this.analysisViewManager=null,this.isHeightModelInfoRequired=!1,this.width=null,this.height=null,this.resizing=!1,this.suspended=!1,this.viewEvents=new U(this),this.persistableViewModels=new s,this.requiredFieldsOptions=new $,this._isValid=!1,this._readyCycleForced=!1,this._lockedSpatialReference=null,this._userTimeZone=null,this._lockedTimeZone=null,this._userTimeExtent=null,this._lockedTimeExtent=null,this.theme=null,this.handles.add(f(()=>this.preconditionsReady,e=>{const t=this.ready;if(e?(this._lockedSpatialReference=this.spatialReference,this._lockedTimeZone=this.timeZone,this._lockedTimeExtent=this.timeExtent,B.views.add(this)):(this._lockedSpatialReference=null,B.views.remove(this)),this.notifyChange("spatialReference"),!e&&t)this.toolViewManager?.detach(),null!=this.analysisViewManager&&this.analysisViewManager.detach(),this.layerViewManager?.clear(),this._teardown();else if(e&&!t){try{this._startup()}catch(i){return void queueMicrotask(()=>{this.fatalError=new n("view:startup-error","View._startup failed",i)})}null!=this.analysisViewManager&&this.analysisViewManager.attach(),this.toolViewManager.attach()}},w))}initialize(){this.addResolvingPromise(Promise.all([this.loadAsyncDependencies(),this.validate()]).then(()=>(this._isValid=!0,v(()=>this.ready)))),this.basemapView=new H({view:this}),this.layerViewManager=new N({view:this,layerViewFilter:e=>this.layerViewFilter?.(e)??!0,layerViewImporter:{importLayerView:e=>this.importLayerView(e),hasLayerViewModule:e=>this.hasLayerViewModule(e)},supportsGround:this.supportsGround}),this.toolViewManager=new W({view:this}),this.selectionManager=new Z({view:this}),this.addHandles([_(()=>"map-content-error"===this.readyState&&!this.spatialReference,()=>{y.getLogger(this).warn("#spatialReference","no spatial reference could be derived from the currently added map layers")}),f(()=>this.initialExtentRequired,e=>this.defaultsFromMap.required={...this.defaultsFromMap.required,extent:e},V),f(()=>this.ready,e=>{this.defaultsFromMap&&(this.defaultsFromMap.suspended=e,this.defaultsFromMap.userSpatialReference=e?this.spatialReference:this._userSpatialReference)},w),f(()=>this._userSpatialReference,e=>{this.defaultsFromMap&&(this.defaultsFromMap.userSpatialReference=e)},V)])}destroy(){this.destroyed||(B.views.remove(this),this.viewEvents.destroy(),this.allLayerViews.destroy(),this.navigation&&(this.navigation.destroy(),this._set("navigation",null)),this.graphics=u(this.graphics),this.analyses=u(this.analyses),this.defaultsFromMap.destroy(),this._set("defaultsFromMap",null),u(this.analysisViewManager),this.toolViewManager=u(this.toolViewManager),this.layerViewManager=u(this.layerViewManager),this.selectionManager=u(this.selectionManager),this.basemapView=u(this.basemapView),this.groundView?.destroy(),this.layerViews?.forEach(e=>e.destroy()),this.layerViews.length=0,this.invalidate(),this._emitter.clear(),this.handles.destroy(),this.map=u(this.map),this.updatingHandles.destroy())}_startup(){this._set("ready",!0)}_teardown(){this._set("ready",!1)}whenReady(){return Promise.resolve(this)}toMap(){return y.getLogger(this).error("#toMap()","Not implemented on this instance of View"),null}get activeTool(){return this.toolViewManager?.activeTool}set activeTool(e){this.toolViewManager&&(this.toolViewManager.activeTool=e)}get animation(){return this._get("animation")}set animation(e){this._set("animation",e)}get center(){return null}get defaultsFromMapSettings(){return{}}get defaultsFromMap(){return new z({required:{tileInfo:!1,heightModelInfo:!1,extent:!1},map:()=>this.map,getSpatialReferenceSupport:(e,t)=>this.getSpatialReferenceSupport(e,t),...this.defaultsFromMapSettings})}get extent(){return this._get("extent")}set extent(e){this._set("extent",e)}get heightModelInfo(){return this.getDefaultHeightModelInfo()}get highlights(){return this._get("highlights")??q()}set highlights(e){this._set("highlights",o(e,this._get("highlights"),s.ofType(G)))}get interacting(){return this.navigating}get navigating(){return!1}get preconditionsReady(){return!this.destroying&&!this.destroyed&&!(this.fatalError||!this._isValid||this._readyCycleForced||!this.map||d(this.map)&&!this.map.loaded||0===this.width||0===this.height||!this.spatialReference||!this._validateSpatialReference(this.spatialReference)||!this._lockedSpatialReference&&!this.defaultsFromMap?.ready||!this.typeSpecificPreconditionsReady)}get resolution(){return 0}set map(e){e!==this._get("map")&&(e?.destroyed&&(y.getLogger(this).warn("#map","The provided map is already destroyed",{map:e}),e=null),d(e)&&e.load().catch(()=>{}),this.constructed&&!this.destroyed&&(this.forceReadyCycle(),this._lockedSpatialReference=null),this._set("map",e))}get readyState(){if(this.destroyed)return this._get("readyState");if(!this.map)return"missing-map";if("container"in this&&!this.container)return"missing-container";if(this.fatalError)return"rendering-error";if((this.defaultsFromMap?.ready??!1)&&!this.spatialReference){const e=!("loaded"in this.map)||this.map.loaded,t=this.map.ground.loaded,i=this.map.basemap?.loaded??!0;return e&&i&&t&&!this.map?.allLayers.length?"empty-map":(this._readyStateWaitingTask||(this._readyStateWaitingTask=r(e=>g(has("view-readyState-waiting-delay"),null,e)),this.addHandles(this._readyStateWaitingTask),this.addHandles(this._readyStateWaitingTask,"ready-state-task")),this._readyStateWaitingTask?.finished?"map-content-error":"loading")}return this._readyStateWaitingTask=m(this._readyStateWaitingTask),this.removeHandles("ready-state-task"),this.ready?"ready":"loading"}get spatialReference(){const e=this._userSpatialReference||this._lockedSpatialReference||this.getDefaultSpatialReference()||null;if(e&&this.defaultsFromMap?.required?.heightModelInfo){const t=e.clone();return t.vcsWkid=this.defaultsFromMap.vcsWkid,t.latestVcsWkid=this.defaultsFromMap.latestVcsWkid,t}return e}set spatialReference(e){const t=!k(e,this._get("spatialReference"));this._set("_userSpatialReference",e),t&&(this._set("spatialReference",e),this._spatialReferenceChanged(e))}_spatialReferenceChanged(e){}get stationary(){return!this.animation&&!this.navigating&&!this.resizing}get timeExtent(){return this._userTimeExtent??this._lockedTimeExtent??this.getDefaultTimeExtent()??null}set timeExtent(e){this._userTimeExtent=e}get timeZone(){return this._userTimeZone??this._lockedTimeZone??this.getDefaultTimeZone()??O}set timeZone(e){this._userTimeZone=e,L(e)||y.getLogger(this).warn("#timeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}get tools(){return this.toolViewManager?.tools}get initialExtent(){return this.defaultsFromMap?.extent}get cursor(){return this.toolViewManager?.cursor??this._highPriorityCursorHandles.at(-1)?.cursor??this._lowPriorityCursorHandles.at(-1)?.cursor??"default"}acquireCursor(e,t="low"){const i="high"===t?this._highPriorityCursorHandles:this._lowPriorityCursorHandles,r={cursor:e},s=h(()=>i.remove(r));return i.add(r),this.addHandles(s),s}get size(){return[this.width,this.height]}get effectiveTheme(){return this.theme??new I}whenLayerView(e){return this.layerViewManager?.whenLayerView(e)??Promise.reject()}getDefaultSpatialReference(){return this.defaultsFromMap?.spatialReference}getDefaultHeightModelInfo(){return(this.map&&"heightModelInfo"in this.map?this.map.heightModelInfo:void 0)??this.defaultsFromMap?.heightModelInfo??null}getDefaultTimeZone(){return null}getDefaultTimeExtent(){return null}importLayerView(e){throw new n("view:importLayerView-missing","importLayerView() not implemented")}hasLayerViewModule(e){return!1}async validate(){}async loadAsyncDependencies(){}invalidate(){this._isValid=!1}getSpatialReferenceSupport(){return{constraints:null}}_validateSpatialReference(e){return null!=this.getSpatialReferenceSupport(e)}when(e,t){return this.isResolved()&&!this.ready&&y.getLogger(this).warn("#when()","Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() => view.ready).then(...) instead."),super.when(e,t)}forceReadyCycle(){this.ready&&(_(()=>this.destroyed||!1===this.preconditionsReady,()=>this._readyCycleForced=!1,{once:!0}),this._readyCycleForced=!0)}addAndActivateTool(e){this.toolViewManager.tools.add(e),this.activeTool=e}tryFatalErrorRecovery(){this.fatalError=null}static{this.views=new s}};e([M()],J.prototype,"_userSpatialReference",void 0),e([M()],J.prototype,"activeTool",null),e([M({readOnly:!0})],J.prototype,"allLayerViews",void 0),e([M(S(x,"analyses"))],J.prototype,"analyses",void 0),e([M()],J.prototype,"animation",null),e([M()],J.prototype,"basemapView",void 0),e([M()],J.prototype,"center",null),e([M()],J.prototype,"defaultsFromMapSettings",null),e([M()],J.prototype,"defaultsFromMap",null),e([M()],J.prototype,"displayFilterEnabled",void 0),e([M({type:T})],J.prototype,"extent",null),e([M()],J.prototype,"fatalError",void 0),e([M(S(b,"graphics"))],J.prototype,"graphics",void 0),e([M()],J.prototype,"groundView",void 0),e([M({readOnly:!0,type:F})],J.prototype,"heightModelInfo",null),e([M({type:s.ofType(G)})],J.prototype,"highlights",null),e([M({readOnly:!0})],J.prototype,"interacting",null),e([M({constructOnly:!0})],J.prototype,"layerViewFilter",void 0),e([M({readOnly:!0})],J.prototype,"navigating",null),e([M({readOnly:!0,dependsOn:["fatalError","_isValid","_readyCycleForced","map","map.loaded?","width","height","spatialReference","_lockedSpatialReference","defaultsFromMap.ready","typeSpecificPreconditionsReady"]})],J.prototype,"preconditionsReady",null),e([M({readOnly:!0})],J.prototype,"typeSpecificPreconditionsReady",void 0),e([M({type:s,readOnly:!0})],J.prototype,"layerViews",void 0),e([M()],J.prototype,"resolution",null),e([M({type:P})],J.prototype,"magnifier",void 0),e([M({value:null,type:t})],J.prototype,"map",null),e([M()],J.prototype,"padding",void 0),e([M({readOnly:!0})],J.prototype,"ready",void 0),e([M()],J.prototype,"_readyStateWaitingTask",void 0),e([M({readOnly:!0})],J.prototype,"readyState",null),e([M({type:E})],J.prototype,"spatialReference",null),e([M()],J.prototype,"stationary",null),e([M({readOnly:!0})],J.prototype,"supportsGround",void 0),e([M({type:C})],J.prototype,"timeExtent",null),e([M({type:String,nonNullable:!0})],J.prototype,"timeZone",null),e([M()],J.prototype,"tools",null),e([M()],J.prototype,"toolViewManager",void 0),e([M({readOnly:!0})],J.prototype,"type",void 0),e([M({type:Number})],J.prototype,"scale",void 0),e([M({readOnly:!0})],J.prototype,"updating",void 0),e([M({readOnly:!0})],J.prototype,"initialExtentRequired",void 0),e([M({readOnly:!0})],J.prototype,"initialExtent",null),e([M()],J.prototype,"cursor",null),e([M({readOnly:!0})],J.prototype,"input",void 0),e([M({type:A,nonNullable:!0})],J.prototype,"navigation",void 0),e([M()],J.prototype,"layerViewManager",void 0),e([M()],J.prototype,"analysisViewManager",void 0),e([M()],J.prototype,"selectionManager",void 0),e([M()],J.prototype,"width",void 0),e([M()],J.prototype,"height",void 0),e([M({readOnly:!0})],J.prototype,"resizing",void 0),e([M({value:null,readOnly:!0})],J.prototype,"size",null),e([M({readOnly:!0})],J.prototype,"suspended",void 0),e([M({readOnly:!0})],J.prototype,"viewEvents",void 0),e([M({readOnly:!0})],J.prototype,"persistableViewModels",void 0),e([M()],J.prototype,"_isValid",void 0),e([M()],J.prototype,"_readyCycleForced",void 0),e([M()],J.prototype,"_lockedSpatialReference",void 0),e([M()],J.prototype,"_userTimeZone",void 0),e([M()],J.prototype,"_lockedTimeZone",void 0),e([M()],J.prototype,"_userTimeExtent",void 0),e([M()],J.prototype,"_lockedTimeExtent",void 0),e([M({type:I})],J.prototype,"theme",void 0),e([M({readOnly:!0,type:I})],J.prototype,"effectiveTheme",null),J=B=e([R("esri.views.View")],J);const K=globalThis.$arcgis;K&&!K.views&&Object.defineProperty(K,"views",{configurable:!1,enumerable:!0,writable:!1,value:J.views});const Q=J;function X(e){return e.layerViews}export{Q as default};
5
+ import{__decorate as e}from"tslib";import t from"../Map.js";import i from"../core/Accessor.js";import{createTask as r}from"../core/asyncUtils.js";import s from"../core/Collection.js";import a from"../core/CollectionFlattener.js";import{referenceSetter as o}from"../core/collectionUtils.js";import n from"../core/Error.js";import{EventedMixin as l}from"../core/Evented.js";import p from"../core/Handles.js";import{makeHandle as h}from"../core/handleUtils.js";import has from"../core/has.js";import{isLoadable as d}from"../core/Loadable.js";import y from"../core/Logger.js";import{destroyMaybe as u,abortMaybe as m}from"../core/maybe.js";import{EsriPromiseMixin as c}from"../core/Promise.js";import{after as g}from"../core/promiseUtils.js";import{watch as f,sync as w,whenOnce as v,when as _,syncAndInitial as V}from"../core/reactiveUtils.js";import{property as M}from"../core/accessorSupport/decorators/property.js";import"../core/RandomLCG.js";import{subclass as R}from"../core/accessorSupport/decorators/subclass.js";import{owningCollectionProperty as S}from"../core/support/OwningCollection.js";import{UpdatingHandles as j}from"../core/support/UpdatingHandles.js";import T from"../geometry/Extent.js";import F from"../geometry/HeightModelInfo.js";import E from"../geometry/SpatialReference.js";import{equals as k}from"../geometry/support/spatialReferenceUtils.js";import{AnalysesCollection as x}from"../support/AnalysesCollection.js";import{GraphicsCollection as b}from"../support/GraphicsCollection.js";import{system as O}from"../time/constants.js";import{T as C}from"../chunks/TimeExtent.js";import{isTimeZoneValid as L}from"../time/timeZoneUtils.js";import H from"./BasemapView.js";import P from"./Magnifier.js";import Z from"./SelectionManager.js";import I from"./Theme.js";import{ToolViewManager as W}from"./ToolViewManager.js";import{makeDefaultHighlightOptions as q}from"./3d/support/DefaultHighlights.js";import D from"./input/Input.js";import{ViewEvents as U}from"./input/ViewEvents.js";import A from"./navigation/Navigation.js";import{DefaultsFromMap as z}from"./support/DefaultsFromMap.js";import G from"./support/HighlightOptions.js";import N from"./support/LayerViewManager.js";import $ from"./support/RequiredFieldsOptions.js";var B;let J=class extends(l(c(i))){static{B=this}constructor(e){super(e),this._userSpatialReference=null,this.handles=new p,this.updatingHandles=new j,this.allLayerViews=new a({getCollections:()=>[this.basemapView?.baseLayerViews,this.groundView?.layerViews,this.layerViews,this.basemapView?.referenceLayerViews],getChildrenFunction:X}),this.analyses=new x,this.basemapView=null,this.displayFilterEnabled=!0,this.fatalError=null,this.graphics=new b,this.groundView=null,this.typeSpecificPreconditionsReady=!0,this.layerViews=new s,this.magnifier=new P,this.padding={left:0,top:0,right:0,bottom:0},this.ready=!1,this._readyStateWaitingTask=null,this.supportsGround=!0,this.type=null,this.scale=null,this.updating=!1,this.initialExtentRequired=!0,this._lowPriorityCursorHandles=new s,this._highPriorityCursorHandles=new s,this.input=new D,this.navigation=new A,this.layerViewManager=null,this.analysisViewManager=null,this.isHeightModelInfoRequired=!1,this.width=null,this.height=null,this.resizing=!1,this.suspended=!1,this.viewEvents=new U(this),this.persistableViewModels=new s,this.requiredFieldsOptions=new $,this._isValid=!1,this._readyCycleForced=!1,this._lockedSpatialReference=null,this._userTimeZone=null,this._lockedTimeZone=null,this._userTimeExtent=null,this._lockedTimeExtent=null,this.theme=null,this.handles.add(f(()=>this.preconditionsReady,e=>{const t=this.ready;if(e?(this._lockedSpatialReference=this.spatialReference,this._lockedTimeZone=this.timeZone,this._lockedTimeExtent=this.timeExtent,B.views.add(this)):(this._lockedSpatialReference=null,B.views.remove(this)),this.notifyChange("spatialReference"),!e&&t)this.toolViewManager?.detach(),null!=this.analysisViewManager&&this.analysisViewManager.detach(),this.layerViewManager?.clear(),this._teardown();else if(e&&!t){try{this._startup()}catch(i){return void queueMicrotask(()=>{this.fatalError=new n("view:startup-error","View._startup failed",i)})}null!=this.analysisViewManager&&this.analysisViewManager.attach(),this.toolViewManager.attach()}},w))}initialize(){this.addResolvingPromise(Promise.all([this.loadAsyncDependencies(),this.validate()]).then(()=>(this._isValid=!0,v(()=>this.ready)))),this.basemapView=new H({view:this}),this.layerViewManager=new N({view:this,layerViewFilter:e=>this.layerViewFilter?.(e)??!0,layerViewImporter:{importLayerView:e=>this.importLayerView(e),hasLayerViewModule:e=>this.hasLayerViewModule(e)},supportsGround:this.supportsGround}),this.toolViewManager=new W({view:this}),this.selectionManager=new Z({view:this}),this.addHandles([_(()=>"map-content-error"===this.readyState&&!this.spatialReference,()=>{y.getLogger(this).warn("#spatialReference","no spatial reference could be derived from the currently added map layers")}),f(()=>this.initialExtentRequired,e=>this.defaultsFromMap.required={...this.defaultsFromMap.required,extent:e},V),f(()=>this.ready,e=>{this.defaultsFromMap&&(this.defaultsFromMap.suspended=e,this.defaultsFromMap.userSpatialReference=e?this.spatialReference:this._userSpatialReference)},w),f(()=>this._userSpatialReference,e=>{this.defaultsFromMap&&(this.defaultsFromMap.userSpatialReference=e)},V)])}destroy(){this.destroyed||(B.views.remove(this),this.viewEvents.destroy(),this.allLayerViews.destroy(),this.navigation&&(this.navigation.destroy(),this._set("navigation",null)),this.graphics=u(this.graphics),this.analyses=u(this.analyses),this.defaultsFromMap.destroy(),this._set("defaultsFromMap",null),u(this.analysisViewManager),this.toolViewManager=u(this.toolViewManager),this.layerViewManager=u(this.layerViewManager),this.selectionManager=u(this.selectionManager),this.basemapView=u(this.basemapView),this.groundView?.destroy(),this.layerViews?.forEach(e=>e.destroy()),this.layerViews.length=0,this.invalidate(),this._emitter.clear(),this.handles.destroy(),this.map=u(this.map),this.updatingHandles.destroy())}_startup(){this._set("ready",!0)}_teardown(){this._set("ready",!1)}whenReady(){return Promise.resolve(this)}toMap(){return y.getLogger(this).error("#toMap()","Not implemented on this instance of View"),null}get activeTool(){return this.toolViewManager?.activeTool}set activeTool(e){this.toolViewManager&&(this.toolViewManager.activeTool=e)}get animation(){return this._get("animation")}set animation(e){this._set("animation",e)}get center(){return null}get defaultsFromMapSettings(){return{}}get defaultsFromMap(){return new z({required:{tileInfo:!1,heightModelInfo:!1,extent:!1},map:()=>this.map,getSpatialReferenceSupport:(e,t)=>this.getSpatialReferenceSupport(e,t),...this.defaultsFromMapSettings})}get extent(){return this._get("extent")}set extent(e){this._set("extent",e)}get heightModelInfo(){return this.getDefaultHeightModelInfo()}get highlights(){return this._get("highlights")??q()}set highlights(e){this._set("highlights",o(e,this._get("highlights"),s.ofType(G)))}get interacting(){return this.navigating}get navigating(){return!1}get preconditionsReady(){return!this.destroying&&!this.destroyed&&!(this.fatalError||!this._isValid||this._readyCycleForced||!this.map||d(this.map)&&!this.map.loaded||0===this.width||0===this.height||!this.spatialReference||!this._validateSpatialReference(this.spatialReference)||!this._lockedSpatialReference&&!this.defaultsFromMap?.ready||!this.typeSpecificPreconditionsReady)}get resolution(){return 0}set map(e){e!==this._get("map")&&(e?.destroyed&&(y.getLogger(this).warn("#map","The provided map is already destroyed",{map:e}),e=null),d(e)&&e.load().catch(()=>{}),this.constructed&&!this.destroyed&&(this.forceReadyCycle(),this._lockedSpatialReference=null),this._set("map",e))}get readyState(){if(this.destroyed)return this._get("readyState");if(!this.map)return"missing-map";if("container"in this&&!this.container)return"missing-container";if(this.fatalError)return"rendering-error";if((this.defaultsFromMap?.ready??!1)&&!this.spatialReference){const e=!("loaded"in this.map)||this.map.loaded,t=this.map.ground.loaded,i=this.map.basemap?.loaded??!0;return e&&i&&t&&!this.map?.allLayers.length?"empty-map":(this._readyStateWaitingTask||(this._readyStateWaitingTask=r(e=>g(has("view-readyState-waiting-delay"),null,e)),this.addHandles(this._readyStateWaitingTask),this.addHandles(this._readyStateWaitingTask,"ready-state-task")),this._readyStateWaitingTask?.finished?"map-content-error":"loading")}return this._readyStateWaitingTask=m(this._readyStateWaitingTask),this.removeHandles("ready-state-task"),this.ready?"ready":"loading"}get spatialReference(){const e=this._userSpatialReference||this._lockedSpatialReference||this.getDefaultSpatialReference()||null;if(e&&this.defaultsFromMap?.required?.heightModelInfo){const t=e.clone();return t.vcsWkid=this.defaultsFromMap.vcsWkid,t.latestVcsWkid=this.defaultsFromMap.latestVcsWkid,t}return e}set spatialReference(e){const t=!k(e,this._get("spatialReference"));this._set("_userSpatialReference",e),t&&(this._set("spatialReference",e),this._spatialReferenceChanged(e))}_spatialReferenceChanged(e){}get stationary(){return!this.animation&&!this.navigating&&!this.resizing}get timeExtent(){return this._userTimeExtent??this._lockedTimeExtent??this.getDefaultTimeExtent()??null}set timeExtent(e){this._userTimeExtent=e}get timeZone(){return this._userTimeZone??this._lockedTimeZone??this.getDefaultTimeZone()??O}set timeZone(e){this._userTimeZone=e,L(e)||y.getLogger(this).warn("#timeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}get tools(){return this.toolViewManager?.tools}get initialExtent(){return this.defaultsFromMap?.extent}get cursor(){return this.toolViewManager?.cursor??this._highPriorityCursorHandles.at(-1)?.cursor??this._lowPriorityCursorHandles.at(-1)?.cursor??"default"}acquireCursor(e,t="low"){const i="high"===t?this._highPriorityCursorHandles:this._lowPriorityCursorHandles,r={cursor:e},s=h(()=>i.remove(r));return i.add(r),this.addHandles(s),s}get size(){return[this.width,this.height]}get effectiveTheme(){return this.theme??new I}whenLayerView(e){return this.layerViewManager?.whenLayerView(e)??Promise.reject()}getDefaultSpatialReference(){return this.defaultsFromMap?.spatialReference}getDefaultHeightModelInfo(){return(this.map&&"heightModelInfo"in this.map?this.map.heightModelInfo:void 0)??this.defaultsFromMap?.heightModelInfo??null}getDefaultTimeZone(){return null}getDefaultTimeExtent(){return null}importLayerView(e){throw new n("view:importLayerView-missing","importLayerView() not implemented")}hasLayerViewModule(e){return!1}async validate(){}async loadAsyncDependencies(){}invalidate(){this._isValid=!1}getSpatialReferenceSupport(){return{constraints:null}}_validateSpatialReference(e){return null!=this.getSpatialReferenceSupport(e)}when(e,t){return this.isResolved()&&!this.ready&&y.getLogger(this).warn("#when()","Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() => view.ready).then(...) instead."),super.when(e,t)}forceReadyCycle(){this.ready&&(_(()=>this.destroyed||!1===this.preconditionsReady,()=>this._readyCycleForced=!1,{once:!0}),this._readyCycleForced=!0)}addAndActivateTool(e){this.toolViewManager.tools.add(e),this.activeTool=e}tryFatalErrorRecovery(){this.fatalError=null}static{this.views=new s}};e([M()],J.prototype,"_userSpatialReference",void 0),e([M()],J.prototype,"activeTool",null),e([M({readOnly:!0})],J.prototype,"allLayerViews",void 0),e([M(S(x,"analyses"))],J.prototype,"analyses",void 0),e([M()],J.prototype,"animation",null),e([M()],J.prototype,"basemapView",void 0),e([M()],J.prototype,"center",null),e([M()],J.prototype,"defaultsFromMapSettings",null),e([M()],J.prototype,"defaultsFromMap",null),e([M()],J.prototype,"displayFilterEnabled",void 0),e([M({type:T})],J.prototype,"extent",null),e([M()],J.prototype,"fatalError",void 0),e([M(S(b,"graphics"))],J.prototype,"graphics",void 0),e([M()],J.prototype,"groundView",void 0),e([M({readOnly:!0,type:F})],J.prototype,"heightModelInfo",null),e([M({type:s.ofType(G)})],J.prototype,"highlights",null),e([M({readOnly:!0})],J.prototype,"interacting",null),e([M({constructOnly:!0})],J.prototype,"layerViewFilter",void 0),e([M({readOnly:!0})],J.prototype,"navigating",null),e([M({readOnly:!0,dependsOn:["fatalError","_isValid","_readyCycleForced","map","map.loaded?","width","height","spatialReference","_lockedSpatialReference","defaultsFromMap.ready","typeSpecificPreconditionsReady"]})],J.prototype,"preconditionsReady",null),e([M({readOnly:!0})],J.prototype,"typeSpecificPreconditionsReady",void 0),e([M({type:s,readOnly:!0})],J.prototype,"layerViews",void 0),e([M()],J.prototype,"resolution",null),e([M({type:P})],J.prototype,"magnifier",void 0),e([M({value:null,type:t})],J.prototype,"map",null),e([M()],J.prototype,"padding",void 0),e([M({readOnly:!0})],J.prototype,"ready",void 0),e([M()],J.prototype,"_readyStateWaitingTask",void 0),e([M({readOnly:!0})],J.prototype,"readyState",null),e([M({type:E})],J.prototype,"spatialReference",null),e([M()],J.prototype,"stationary",null),e([M({readOnly:!0})],J.prototype,"supportsGround",void 0),e([M({type:C})],J.prototype,"timeExtent",null),e([M({type:String,nonNullable:!0})],J.prototype,"timeZone",null),e([M()],J.prototype,"tools",null),e([M()],J.prototype,"toolViewManager",void 0),e([M({readOnly:!0})],J.prototype,"type",void 0),e([M({type:Number})],J.prototype,"scale",void 0),e([M({readOnly:!0})],J.prototype,"updating",void 0),e([M({readOnly:!0})],J.prototype,"initialExtentRequired",void 0),e([M({readOnly:!0})],J.prototype,"initialExtent",null),e([M()],J.prototype,"cursor",null),e([M({readOnly:!0})],J.prototype,"input",void 0),e([M({type:A,nonNullable:!0})],J.prototype,"navigation",void 0),e([M()],J.prototype,"layerViewManager",void 0),e([M()],J.prototype,"analysisViewManager",void 0),e([M()],J.prototype,"selectionManager",void 0),e([M()],J.prototype,"width",void 0),e([M()],J.prototype,"height",void 0),e([M({readOnly:!0})],J.prototype,"resizing",void 0),e([M({value:null,readOnly:!0})],J.prototype,"size",null),e([M({readOnly:!0})],J.prototype,"suspended",void 0),e([M({readOnly:!0})],J.prototype,"viewEvents",void 0),e([M({readOnly:!0})],J.prototype,"persistableViewModels",void 0),e([M()],J.prototype,"_isValid",void 0),e([M()],J.prototype,"_readyCycleForced",void 0),e([M()],J.prototype,"_lockedSpatialReference",void 0),e([M()],J.prototype,"_userTimeZone",void 0),e([M()],J.prototype,"_lockedTimeZone",void 0),e([M()],J.prototype,"_userTimeExtent",void 0),e([M()],J.prototype,"_lockedTimeExtent",void 0),e([M({type:I})],J.prototype,"theme",void 0),e([M({readOnly:!0,type:I})],J.prototype,"effectiveTheme",null),J=B=e([R("esri.views.View")],J);const K=globalThis.$arcgis;K&&!K.views&&Object.defineProperty(K,"views",{configurable:!1,enumerable:!0,writable:!1,value:J.views});const Q=J;function X(e){return e.layerViews}export{Q as default};
package/views/View2D.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../Viewpoint.js";import i from"../core/Collection.js";import r from"../core/CollectionFlattener.js";import s from"../core/Error.js";import has from"../core/has.js";import a from"../core/Logger.js";import{destroyMaybe as n}from"../core/maybe.js";import{watch as o,syncAndInitial as l}from"../core/reactiveUtils.js";import{initialize as p}from"../core/workers/workers.js";import{property as h}from"../core/accessorSupport/decorators/property.js";import{cast as d}from"../core/accessorSupport/decorators/cast.js";import"../core/RandomLCG.js";import{subclass as g}from"../core/accessorSupport/decorators/subclass.js";import{ensureClass as c}from"../core/accessorSupport/ensureType.js";import u from"../geometry/Polygon.js";import{isLoadedOrLoadFor as m}from"../geometry/projectionUtils.js";import y from"../layers/support/TileInfo.js";import{BreakpointsOwner as f}from"./BreakpointsOwner.js";import{DOMContainer as w}from"./DOMContainer.js";import{PopupView as V}from"./PopupView.js";import M from"./View.js";import{Viewport2DBaseMixin as b}from"./Viewport2DBaseMixin.js";import{Viewport2DMixin as v}from"./Viewport2DMixin.js";import _ from"./2d/AnimationManager.js";import{layerView2DImporter as j}from"./2d/layerViewModuleImportUtils.js";import S from"./2d/tiling/TileInfoView.js";import"./2d/tiling/TileKey.js";import"./2d/tiling/TileQueue.js";import"./2d/tiling/TileStrategy.js";import{extentToScale as L}from"./2d/viewpointUtils.js";import{ManagedCanvas as R}from"./2d/engine/ManagedCanvas.js";import O from"./2d/layers/features/support/TileStore.js";import{createOrReuseHighlightGradient as T}from"./2d/layers/support/util.js";import{clipContainsPoint as C}from"./2d/support/clippingUtils.js";import{getDefaultHighlightOptions as k,setDefaultHighlightOptions as x}from"./2d/support/highlightOptionsUtils.js";import{hitTest as D}from"./2d/support/hitTestUtils.js";import{takeRawScreenshot as E,takeScreenshot as P}from"./2d/support/screenshotUtils.js";import{Timeline as G}from"./2d/support/Timeline.js";import U from"./navigation/Navigation.js";import q from"./navigation/NavigationActionMap.js";import z from"./support/HighlightOptions.js";import{check as A}from"./support/WebGLRequirements.js";import I from"./ui/DefaultUI.js";import N from"./ui/2d/DefaultUI2D.js";import{isWebMap as W}from"../webmap/utils.js";import $ from"../webmap/background/ColorBackground.js";let F,H,B,Z,J,K,Q;async function X(){const[,{GraphicsView2D:e,GraphicContainer:t,LabelManager:i,MapViewNavigation:r,MagnifierView2D:s,GridView2D:a,Stage:n}]=await Promise.all([import("./2d/webglDeps.js"),import("./2d/mapViewDeps.js")]);H=e,B=t,Z=i,J=r,K=s,Q=a,F=n}let Y=class extends(v(b(f(V(w(M)))))){constructor(e){super(e),this._magnifierView=null,this._gridView=null,this.stage=null,this._resolveWhenReady=[],this.rootLayerViews=new r({getCollections:()=>[this.basemapView?.baseLayerViews,this.layerViews,this.basemapView?.referenceLayerViews],getChildrenFunction:()=>null}),this.featuresTilingScheme=null,this.graphicsView=null,this.labelManager=null,this.navigation=new U({actionMap:new q({dragTertiary:"none"})}),this.renderingOptions={samplingMode:"dynamic",edgeLabelsVisible:!0,labelsAnimationTime:125,labelCollisionsEnabled:!0},this.supersampleScreenshotsEnabled=!0,this.supportsGround=!1,this.floors=new i,this.grid=null,this.map=null,this.spatialReferenceLocked=!1,this.timeline=new G,this.type="2d",this.view2dType=null,this.ui=new N,this.test={takeScreenshot:async e=>E(this._getScreenshotView(e),e)},this.padding={top:0,right:0,bottom:0,left:0},p()}destroy(){this.layerViewManager.clear(),this._set("preconditionsReady",!1),this.frameTask=n(this.frameTask),this.goToManager.destroy(),this.rootLayerViews.destroy(),this.inputManager.destroy(),this._set("inputManager",null)}get graphicsTileStore(){return new O(this.featuresTilingScheme)}get constraintsInfo(){const e=this.defaultsFromMap?.tileInfo,t=this.spatialReference;return{lods:e?.spatialReference?.equals(t)?e.lods:null,spatialReference:t}}get initialExtentRequired(){if(!this.stateManager)return!1;const{scale:e,constraints:t,center:i,viewpoint:r,extent:s}=this;let a=this.zoom;return!(this.map&&"initialViewProperties"in this.map&&this.map.initialViewProperties?.viewpoint)&&(!s&&(t?.effectiveLODs||(a=-1),(!i||0===e&&-1===a)&&(null==r?.targetGeometry||"extent"!==r.targetGeometry.type&&!r.scale)))}get defaultsFromMapSettings(){return{required:{extent:!1,heightModelInfo:!1,tileInfo:!0},requiresExtentInSpatialReference:this.spatialReferenceLocked}}get scheduler(){return this.frameTask.scheduler}get typeSpecificPreconditionsReady(){const e=this._getDefaultViewpoint();if(!e)return!1;const t=e.targetGeometry,i=this.spatialReference;return m(t.spatialReference,i)}get background(){return W(this.map)?this.map.initialViewProperties.background:null}set background(e){this._override("background",e)}get center(){return this.stateManager?.center??null}set center(e){this.stateManager.center=e}get highlightOptions(){return k(this)}set highlightOptions(e){x(this,e)}get padding(){return this.stateManager?.padding}set padding(e){this.stateManager&&(this.stateManager.padding=e)}get rendering(){return this.stage?.renderRequested??!1}get resolution(){return this.stateManager.resolution??0}get scale(){return this.stateManager?.scale??0}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get tileInfo(){return this.featuresTilingScheme?.tileInfo}get updating(){const e=!(!this.magnifier.visible||null===this.magnifier.position||!this._magnifierView?.updatingHandles.updating),t=!this.destroyed&&(!this.layerViewManager||!this.labelManager||!this.graphicsView||!0===this.layerViewManager.updating||!0===this.labelManager.updating||!0===this.graphicsView.updating||this.allLayerViews.some(e=>!e.destroyed&&!("layerViews"in e)&&!0===e.updating)||e);if(has("esri-2d-log-updating")){const i=this.allLayerViews.reduce((e,t)=>({...e,[`${t.layer.id}(${t.layer.type})`]:!t.destroyed&&!("layerViews"in t)&&t.updating}),{});console.log(`Updating MapView: ${t}\n-> Null LayerViewManager: ${!this.layerViewManager}\n-> Null LabelManager: ${!this.labelManager}\n-> Null GraphicsView: ${!this.graphicsView}\n-> layerViewManager.updating: ${this.layerViewManager?.updating}\n-> labelManager.updating: ${this.labelManager?.updating}\n-> graphicsView.updating: ${this.graphicsView?.updating}\n-> allLayerViews: ${JSON.stringify(i)}\n-> updatingMagnifier: ${e}\n`)}return t}get visibleArea(){const e=this.stateManager.visibleArea;return e?new u({rings:[e.map(e=>[e[0],e[1]])],spatialReference:this.spatialReference}):e}get zoom(){return this.stateManager.zoom??-1}set zoom(e){this.stateManager.zoom=e}get navigating(){return this.mapViewNavigation?.interacting??!1}async hitTest(e,t){return D(this,e,t)}async takeScreenshot(e){return P(this._getScreenshotView(e),e)}toScreen(e,t){return this.stateManager.toScreen(e,t)}whenLayerView(e){return super.whenLayerView(e)}graphicChanged(e){if(this.graphicsView){this.graphicsView.graphicUpdateHandler(e)}}whenReady(){return new Promise(e=>{this.ready?e(this):this._resolveWhenReady.push(e)})}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){return this.map&&"initialViewProperties"in this.map&&this.map.initialViewProperties.spatialReference||this.defaultsFromMap?.spatialReference||null}getDefaultTimeZone(){return W(this.map)?this.map.initialViewProperties.timeZone:null}getDefaultTimeExtent(){return W(this.map)?this.map.initialViewProperties.timeExtent:null}hasLayerViewModule(e){return j.hasLayerViewModule(e)}importLayerView(e){return j.importLayerView(e)}pixelSizeAt(){return this.ready?this.resolution:(a.getLogger(this).error("#pixelSizeAt()","Map view cannot be used before it is ready"),null)}async popupHitTest(e){const t=this.toMap(e),i=await this.hitTest(e),r=this.allLayerViews.toArray().filter(i=>i.clips.every(i=>C(this,i,e,t))).reverse(),s=new globalThis.Map(r.map(e=>[e.layer.uid,e])),a=[];let n=0,o=0;for(;n<i.results.length||o<r.length;){const e=i.results.at(n);if(e&&"graphic"!==e.type){++n;continue}const l=s.get((e?.layer??e?.graphic.layer)?.uid);if((!e||l)&&o<r.length&&r.at(o)!==l){const e=r.at(o);"fetchPopupFeaturesAtLocation"in e&&a.push({mapPoint:t,layerView:e}),++o}else e&&(a.push({graphic:e.graphic,layerView:l}),++n)}return{hits:a,location:t}}requestUpdate(){this.ready&&this.frameTask.requestUpdate()}async validate(){let e=A(this.type);if(has("safari")&&has("safari")<9&&(e=new s("mapview:browser-not-supported","This browser is not supported by MapView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:has("safari")})),null!=e){a.getLogger(this).warn("#validate()",e.message);const t=document.createElement("div");t.setAttribute("style","display: flex; flex-direction: column; gap: 8px; padding: 20px; height: 100%; justify-content: center; color: black; background: white; font-family: sans-serif;");const i=document.createElement("div");i.innerHTML="Unable to display map. WebGL2 support is required.",i.setAttribute("style","font-size: 24px; font-weight: bold;");const r=document.createElement("div");r.innerHTML="Ensure that your browser and hardware meet the minimum requirements.",r.setAttribute("style","font-size: 18px;");const s=document.createElement("a");throw s.innerHTML="https://esriurl.com/systemRequirements",s.target="_blank",s.setAttribute("style","font-size: 18px;"),s.href="https://esriurl.com/systemRequirements",t.appendChild(i),t.appendChild(r),t.appendChild(s),this.surface.appendChild(t),e}}loadAsyncDependencies(){return X()}_getDefaultViewpoint(){const{constraints:e,initialExtent:i,map:r,padding:s,size:a}=this;if(!e)return null;const n=r&&"initialViewProperties"in r?r.initialViewProperties:void 0,o=this.stateManager.getUserStartupOptions(this.size),l=n?.viewpoint,p=l?.targetGeometry?.extent??i,h=p?.center,d=l?.rotation??0,g=l?.scale||p&&L(p,[a[0]-s.left-s.right,a[1]-s.top-s.bottom]),c=o.center??h,u=o.rotation??d,m=o.scale??g;return c&&m?new t({targetGeometry:c,scale:m,rotation:u}):null}_startup(){this.timeline.begin("MapView Startup");const e=this._getDefaultViewpoint();this.stateManager.startup(e,this.size,this.spatialReference,this.defaultsFromMap.extent?.center),this.graphics.owner=this;const t=new R(this.surface),i=new F(this.surface,{canvas:this.renderCanvas,contextOptions:{disabledExtensions:this.deactivatedWebGLExtensions,debugWebGLExtensions:this.debugWebGLExtensions},renderingOptions:this.renderingOptions,timeline:this.timeline},t);this.stage=i,this._magnifierView=new K,this._magnifierView.magnifier=this.magnifier,this._gridView=new Q;const r=new Z({view:this});this._set("labelManager",r);const s=new _({view:this});this._set("animationManager",s);const a=new J({view:this,animationManager:s});this._set("mapViewNavigation",a),this._setupSpatialReferenceDependentProperties(),this.addHandles([this.rootLayerViews.on("change",()=>this._updateStageChildren()),i.on("webgl-error",e=>this.fatalError=e.error),o(()=>this.stationary,e=>i.stationary=e,l),o(()=>this.background,e=>{i.backgroundColor=e?.color,this._magnifierView.backgroundColor=e?.color},l),o(()=>this.magnifier,e=>this._magnifierView.magnifier=e,l),o(()=>this.grid,e=>this._gridView.grid=e,l),o(()=>this.renderingOptions,e=>i.renderingOptions=e,l),o(()=>this.highlights.items.map(e=>({name:e.name,options:{fillColor:e.color,haloColor:e.haloColor,fillOpacity:e.fillOpacity,haloOpacity:e.haloOpacity,haloWidth:e.haloWidth,haloBlur:e.haloBlur}})),()=>{i.highlightGradient=T(i.highlightGradient,this.highlights.items)},l),o(()=>this.state.id,()=>i.state=this.state,l)],"map-view"),this._updateStageChildren();const n=this._resolveWhenReady;this._resolveWhenReady=[],n.forEach(e=>e(this)),this.timeline.end("MapView Startup"),this.frameTask.start(),this._set("ready",!0)}_teardown(){this._destroySpatialReferenceDependentProperties(),this.removeHandles("map-view"),this.mapViewNavigation.destroy(),this._set("mapViewNavigation",null),this.animation=null,this.animationManager.destroy(),this._set("animationManager",null),this.layerViewManager.clear(),this.labelManager.destroy(),this._magnifierView.destroy(),this._gridView.destroy(),this.stage.destroy(),this.stage=null,this._set("graphicsView",null),this._magnifierView=null,this._gridView=null,this._set("labelManager",null),this._set("mapViewNavigation",null),this.graphics.owner=null,this.frameTask.stop(),this.stationaryManager.clear(),this._set("ready",!1),this.stateManager.teardown()}_updateStageChildren(){this.stage.removeAllChildren(),this.rootLayerViews.forEach(e=>{this.stage.addChild(e.container)});const e=this.graphicsView;this.stage.addChild(e.container),this.stage.addChild(this._magnifierView),this.stage.addChild(this._gridView)}_setupSpatialReferenceDependentProperties(){const e=new S(y.create({spatialReference:this.spatialReference,size:512,numLODs:36}));this._set("featuresTilingScheme",e);const t=new H({view:this,graphics:this.graphics,requestUpdateCallback:()=>this.requestUpdate(),container:new B(e)});this._set("graphicsView",t)}_destroySpatialReferenceDependentProperties(){const e=this.graphicsView;this._set("graphicsView",null),e.destroy(),this._set("featuresTilingScheme",null)}_getScreenshotView(e){const{allLayerViews:t,padding:i,size:r,stage:s}=this;return{allLayerViews:t,backgroundColor:e?.ignoreBackground?null:this.background?.color,padding:i,size:r,stage:s}}_spatialReferenceChanged(e){if(this.ready){this.frameTask.stop();for(const e of this.allLayerViews)e.processDetach();this._destroySpatialReferenceDependentProperties(),this.stateManager.changeSpatialReference(e),this.stage.state=this.state,this._setupSpatialReferenceDependentProperties();for(const e of this.allLayerViews)e.processAttach();this.frameTask.requestFrame(),this.frameTask.start(),this._updateStageChildren()}}static{this.type="2d"}};e([h({constructOnly:!0})],Y.prototype,"deactivatedWebGLExtensions",void 0),e([h({constructOnly:!0})],Y.prototype,"debugWebGLExtensions",void 0),e([h({readOnly:!0})],Y.prototype,"featuresTilingScheme",void 0),e([h({readOnly:!0})],Y.prototype,"graphicsTileStore",null),e([h()],Y.prototype,"graphicsView",void 0),e([h()],Y.prototype,"constraintsInfo",null),e([h()],Y.prototype,"initialExtentRequired",null),e([h()],Y.prototype,"labelManager",void 0),e([h({type:U,nonNullable:!0})],Y.prototype,"navigation",void 0),e([h({constructOnly:!0})],Y.prototype,"renderCanvas",void 0),e([h()],Y.prototype,"renderingOptions",void 0),e([h({constructOnly:!0})],Y.prototype,"supersampleScreenshotsEnabled",void 0),e([h({readOnly:!0})],Y.prototype,"supportsGround",void 0),e([h()],Y.prototype,"defaultsFromMapSettings",null),e([h({readOnly:!0})],Y.prototype,"typeSpecificPreconditionsReady",null),e([h({type:$})],Y.prototype,"background",null),e([h()],Y.prototype,"center",null),e([h({type:i})],Y.prototype,"floors",void 0),e([h()],Y.prototype,"grid",void 0),e([h({type:z})],Y.prototype,"highlightOptions",null),e([h()],Y.prototype,"map",void 0),e([h()],Y.prototype,"padding",null),e([h({readOnly:!0})],Y.prototype,"rendering",null),e([h({readOnly:!0})],Y.prototype,"resolution",null),e([h()],Y.prototype,"scale",null),e([h({constructOnly:!0})],Y.prototype,"spatialReferenceLocked",void 0),e([h({readOnly:!0})],Y.prototype,"tileInfo",null),e([h({type:G,readOnly:!0})],Y.prototype,"timeline",void 0),e([h({readOnly:!0})],Y.prototype,"type",void 0),e([h({readOnly:!0})],Y.prototype,"updating",null),e([h({readOnly:!0})],Y.prototype,"view2dType",void 0),e([h({readOnly:!0})],Y.prototype,"visibleArea",null),e([h()],Y.prototype,"zoom",null),e([h({readOnly:!0})],Y.prototype,"navigating",null),e([h(),d(e=>e instanceof I?e:c(N,e))],Y.prototype,"ui",void 0),Y=e([g("esri.views.View2D")],Y);const ee=Y;export{ee as default};
5
+ import{__decorate as e}from"tslib";import t from"../Viewpoint.js";import i from"../core/Collection.js";import r from"../core/CollectionFlattener.js";import s from"../core/Error.js";import has from"../core/has.js";import a from"../core/Logger.js";import{destroyMaybe as n}from"../core/maybe.js";import{watch as o,syncAndInitial as l}from"../core/reactiveUtils.js";import{initialize as p}from"../core/workers/workers.js";import{property as h}from"../core/accessorSupport/decorators/property.js";import{cast as d}from"../core/accessorSupport/decorators/cast.js";import"../core/RandomLCG.js";import{subclass as g}from"../core/accessorSupport/decorators/subclass.js";import{ensureClass as c}from"../core/accessorSupport/ensureType.js";import u from"../geometry/Polygon.js";import{isLoadedOrLoadFor as m}from"../geometry/projectionUtils.js";import y from"../layers/support/TileInfo.js";import{BreakpointsOwner as f}from"./BreakpointsOwner.js";import{DOMContainer as w}from"./DOMContainer.js";import{PopupView as V}from"./PopupView.js";import M from"./View.js";import{Viewport2DBaseMixin as b}from"./Viewport2DBaseMixin.js";import{Viewport2DMixin as v}from"./Viewport2DMixin.js";import _ from"./2d/AnimationManager.js";import{layerView2DImporter as j}from"./2d/layerViewModuleImportUtils.js";import S from"./2d/tiling/TileInfoView.js";import"./2d/tiling/TileKey.js";import"./2d/tiling/TileQueue.js";import"./2d/tiling/TileStrategy.js";import{extentToScale as R}from"./2d/viewpointUtils.js";import{ManagedCanvas as L}from"./2d/engine/ManagedCanvas.js";import O from"./2d/layers/features/support/TileStore.js";import{createOrReuseHighlightGradient as T}from"./2d/layers/support/util.js";import{clipContainsPoint as C}from"./2d/support/clippingUtils.js";import{getDefaultHighlightOptions as k,setDefaultHighlightOptions as x}from"./2d/support/highlightOptionsUtils.js";import{hitTest as D}from"./2d/support/hitTestUtils.js";import{takeRawScreenshot as P,takeScreenshot as E}from"./2d/support/screenshotUtils.js";import{Timeline as G}from"./2d/support/Timeline.js";import U from"./navigation/Navigation.js";import q from"./navigation/NavigationActionMap.js";import z from"./support/HighlightOptions.js";import{check as A}from"./support/WebGLRequirements.js";import I from"./ui/DefaultUI.js";import N from"./ui/2d/DefaultUI2D.js";import{RenderingContextOptions as W}from"./webgl/RenderingContextOptions.js";import{isWebMap as $}from"../webmap/utils.js";import F from"../webmap/background/ColorBackground.js";let H,B,Z,J,K,Q,X;async function Y(){const[,{GraphicsView2D:e,GraphicContainer:t,LabelManager:i,MapViewNavigation:r,MagnifierView2D:s,GridView2D:a,Stage:n}]=await Promise.all([import("./2d/webglDeps.js"),import("./2d/mapViewDeps.js")]);B=e,Z=t,J=i,K=r,Q=s,X=a,H=n}let ee=class extends(v(b(f(V(w(M)))))){constructor(e){super(e),this._magnifierView=null,this._gridView=null,this.stage=null,this._resolveWhenReady=[],this.rootLayerViews=new r({getCollections:()=>[this.basemapView?.baseLayerViews,this.layerViews,this.basemapView?.referenceLayerViews],getChildrenFunction:()=>null}),this.featuresTilingScheme=null,this.graphicsView=null,this.labelManager=null,this.navigation=new U({actionMap:new q({dragTertiary:"none"})}),this.renderingOptions={samplingMode:"dynamic",edgeLabelsVisible:!0,labelsAnimationTime:125,labelCollisionsEnabled:!0},this.supersampleScreenshotsEnabled=!0,this.supportsGround=!1,this.floors=new i,this.grid=null,this.map=null,this.spatialReferenceLocked=!1,this.timeline=new G,this.type="2d",this.view2dType=null,this.ui=new N,this.test={takeScreenshot:async e=>P(this._getScreenshotView(e),e)},this.padding={top:0,right:0,bottom:0,left:0},p()}destroy(){this.layerViewManager.clear(),this._set("preconditionsReady",!1),this.frameTask=n(this.frameTask),this.goToManager.destroy(),this.rootLayerViews.destroy(),this.inputManager.destroy(),this._set("inputManager",null)}get graphicsTileStore(){return new O(this.featuresTilingScheme)}get constraintsInfo(){const e=this.defaultsFromMap?.tileInfo,t=this.spatialReference;return{lods:e?.spatialReference?.equals(t)?e.lods:null,spatialReference:t}}get initialExtentRequired(){if(!this.stateManager)return!1;const{scale:e,constraints:t,center:i,viewpoint:r,extent:s}=this;let a=this.zoom;return!(this.map&&"initialViewProperties"in this.map&&this.map.initialViewProperties?.viewpoint)&&(!s&&(t?.effectiveLODs||(a=-1),(!i||0===e&&-1===a)&&(null==r?.targetGeometry||"extent"!==r.targetGeometry.type&&!r.scale)))}get defaultsFromMapSettings(){return{required:{extent:!1,heightModelInfo:!1,tileInfo:!0},requiresExtentInSpatialReference:this.spatialReferenceLocked}}get scheduler(){return this.frameTask.scheduler}get typeSpecificPreconditionsReady(){const e=this._getDefaultViewpoint();if(!e)return!1;const t=e.targetGeometry,i=this.spatialReference;return m(t.spatialReference,i)}get background(){return $(this.map)?this.map.initialViewProperties.background:null}set background(e){this._override("background",e)}get center(){return this.stateManager?.center??null}set center(e){this.stateManager.center=e}get highlightOptions(){return k(this)}set highlightOptions(e){x(this,e)}get padding(){return this.stateManager?.padding}set padding(e){this.stateManager&&(this.stateManager.padding=e)}get rendering(){return this.stage?.renderRequested??!1}get resolution(){return this.stateManager.resolution??0}get scale(){return this.stateManager?.scale??0}set scale(e){this.stateManager&&(this.stateManager.scale=e)}get tileInfo(){return this.featuresTilingScheme?.tileInfo}get updating(){const e=!(!this.magnifier.visible||null===this.magnifier.position||!this._magnifierView?.updatingHandles.updating),t=!this.destroyed&&(!this.layerViewManager||!this.labelManager||!this.graphicsView||!0===this.layerViewManager.updating||!0===this.labelManager.updating||!0===this.graphicsView.updating||this.allLayerViews.some(e=>!e.destroyed&&!("layerViews"in e)&&!0===e.updating)||e);if(has("esri-2d-log-updating")){const i=this.allLayerViews.reduce((e,t)=>({...e,[`${t.layer.id}(${t.layer.type})`]:!t.destroyed&&!("layerViews"in t)&&t.updating}),{});console.log(`Updating MapView: ${t}\n-> Null LayerViewManager: ${!this.layerViewManager}\n-> Null LabelManager: ${!this.labelManager}\n-> Null GraphicsView: ${!this.graphicsView}\n-> layerViewManager.updating: ${this.layerViewManager?.updating}\n-> labelManager.updating: ${this.labelManager?.updating}\n-> graphicsView.updating: ${this.graphicsView?.updating}\n-> allLayerViews: ${JSON.stringify(i)}\n-> updatingMagnifier: ${e}\n`)}return t}get visibleArea(){const e=this.stateManager.visibleArea;return e?new u({rings:[e.map(e=>[e[0],e[1]])],spatialReference:this.spatialReference}):e}get zoom(){return this.stateManager.zoom??-1}set zoom(e){this.stateManager.zoom=e}get navigating(){return this.mapViewNavigation?.interacting??!1}async hitTest(e,t){return D(this,e,t)}async takeScreenshot(e){return E(this._getScreenshotView(e),e)}toScreen(e,t){return this.stateManager.toScreen(e,t)}whenLayerView(e){return super.whenLayerView(e)}graphicChanged(e){if(this.graphicsView){this.graphicsView.graphicUpdateHandler(e)}}whenReady(){return new Promise(e=>{this.ready?e(this):this._resolveWhenReady.push(e)})}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){return this.map&&"initialViewProperties"in this.map&&this.map.initialViewProperties.spatialReference||this.defaultsFromMap?.spatialReference||null}getDefaultTimeZone(){return $(this.map)?this.map.initialViewProperties.timeZone:null}getDefaultTimeExtent(){return $(this.map)?this.map.initialViewProperties.timeExtent:null}hasLayerViewModule(e){return j.hasLayerViewModule(e)}importLayerView(e){return j.importLayerView(e)}pixelSizeAt(){return this.ready?this.resolution:(a.getLogger(this).error("#pixelSizeAt()","Map view cannot be used before it is ready"),null)}async popupHitTest(e){const t=this.toMap(e),i=await this.hitTest(e),r=this.allLayerViews.toArray().filter(i=>i.clips.every(i=>C(this,i,e,t))).reverse(),s=new globalThis.Map(r.map(e=>[e.layer.uid,e])),a=[];let n=0,o=0;for(;n<i.results.length||o<r.length;){const e=i.results.at(n);if(e&&"graphic"!==e.type){++n;continue}const l=s.get((e?.layer??e?.graphic.layer)?.uid);if((!e||l)&&o<r.length&&r.at(o)!==l){const e=r.at(o);"fetchPopupFeaturesAtLocation"in e&&a.push({mapPoint:t,layerView:e}),++o}else e&&(a.push({graphic:e.graphic,layerView:l}),++n)}return{hits:a,location:t}}requestUpdate(){this.ready&&this.frameTask.requestUpdate()}async validate(){let e=A(this.type);if(has("safari")&&has("safari")<9&&(e=new s("mapview:browser-not-supported","This browser is not supported by MapView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:has("safari")})),null!=e){a.getLogger(this).warn("#validate()",e.message);const t=document.createElement("div");t.setAttribute("style","display: flex; flex-direction: column; gap: 8px; padding: 20px; height: 100%; justify-content: center; color: black; background: white; font-family: sans-serif;");const i=document.createElement("div");i.innerHTML="Unable to display map. WebGL2 support is required.",i.setAttribute("style","font-size: 24px; font-weight: bold;");const r=document.createElement("div");r.innerHTML="Ensure that your browser and hardware meet the minimum requirements.",r.setAttribute("style","font-size: 18px;");const s=document.createElement("a");throw s.innerHTML="https://esriurl.com/systemRequirements",s.target="_blank",s.setAttribute("style","font-size: 18px;"),s.href="https://esriurl.com/systemRequirements",t.appendChild(i),t.appendChild(r),t.appendChild(s),this.surface.appendChild(t),e}}loadAsyncDependencies(){return Y()}_getDefaultViewpoint(){const{constraints:e,initialExtent:i,map:r,padding:s,size:a}=this;if(!e)return null;const n=r&&"initialViewProperties"in r?r.initialViewProperties:void 0,o=this.stateManager.getUserStartupOptions(this.size),l=n?.viewpoint,p=l?.targetGeometry?.extent??i,h=p?.center,d=l?.rotation??0,g=l?.scale||p&&R(p,[a[0]-s.left-s.right,a[1]-s.top-s.bottom]),c=o.center??h,u=o.rotation??d,m=o.scale??g;return c&&m?new t({targetGeometry:c,scale:m,rotation:u}):null}_startup(){this.timeline.begin("MapView Startup");const e=this._getDefaultViewpoint();this.stateManager.startup(e,this.size,this.spatialReference,this.defaultsFromMap.extent?.center),this.graphics.owner=this;const t=new L(this.surface),i=new H(this.surface,{canvas:this.renderCanvas,contextOptions:new W(this.deactivatedWebGLExtensions,this.debugWebGLExtensions),renderingOptions:this.renderingOptions,timeline:this.timeline},t);this.stage=i,this._magnifierView=new Q,this._magnifierView.magnifier=this.magnifier,this._gridView=new X;const r=new J({view:this});this._set("labelManager",r);const s=new _({view:this});this._set("animationManager",s);const a=new K({view:this,animationManager:s});this._set("mapViewNavigation",a),this._setupSpatialReferenceDependentProperties(),this.addHandles([this.rootLayerViews.on("change",()=>this._updateStageChildren()),i.on("webgl-error",e=>this.fatalError=e.error),o(()=>this.stationary,e=>i.stationary=e,l),o(()=>this.background,e=>{i.backgroundColor=e?.color,this._magnifierView.backgroundColor=e?.color},l),o(()=>this.magnifier,e=>this._magnifierView.magnifier=e,l),o(()=>this.grid,e=>this._gridView.grid=e,l),o(()=>this.renderingOptions,e=>i.renderingOptions=e,l),o(()=>this.highlights.items.map(e=>({name:e.name,options:{fillColor:e.color,haloColor:e.haloColor,fillOpacity:e.fillOpacity,haloOpacity:e.haloOpacity,haloWidth:e.haloWidth,haloBlur:e.haloBlur}})),()=>{i.highlightGradient=T(i.highlightGradient,this.highlights.items)},l),o(()=>this.state.id,()=>i.state=this.state,l)],"map-view"),this._updateStageChildren();const n=this._resolveWhenReady;this._resolveWhenReady=[],n.forEach(e=>e(this)),this.timeline.end("MapView Startup"),this.frameTask.start(),this._set("ready",!0)}_teardown(){this._destroySpatialReferenceDependentProperties(),this.removeHandles("map-view"),this.mapViewNavigation.destroy(),this._set("mapViewNavigation",null),this.animation=null,this.animationManager.destroy(),this._set("animationManager",null),this.layerViewManager.clear(),this.labelManager.destroy(),this._magnifierView.destroy(),this._gridView.destroy(),this.stage.destroy(),this.stage=null,this._set("graphicsView",null),this._magnifierView=null,this._gridView=null,this._set("labelManager",null),this._set("mapViewNavigation",null),this.graphics.owner=null,this.frameTask.stop(),this.stationaryManager.clear(),this._set("ready",!1),this.stateManager.teardown()}_updateStageChildren(){this.stage.removeAllChildren(),this.rootLayerViews.forEach(e=>{this.stage.addChild(e.container)});const e=this.graphicsView;this.stage.addChild(e.container),this.stage.addChild(this._magnifierView),this.stage.addChild(this._gridView)}_setupSpatialReferenceDependentProperties(){const e=new S(y.create({spatialReference:this.spatialReference,size:512,numLODs:36}));this._set("featuresTilingScheme",e);const t=new B({view:this,graphics:this.graphics,requestUpdateCallback:()=>this.requestUpdate(),container:new Z(e)});this._set("graphicsView",t)}_destroySpatialReferenceDependentProperties(){const e=this.graphicsView;this._set("graphicsView",null),e.destroy(),this._set("featuresTilingScheme",null)}_getScreenshotView(e){const{allLayerViews:t,padding:i,size:r,stage:s}=this;return{allLayerViews:t,backgroundColor:e?.ignoreBackground?null:this.background?.color,padding:i,size:r,stage:s}}_spatialReferenceChanged(e){if(this.ready){this.frameTask.stop();for(const e of this.allLayerViews)e.processDetach();this._destroySpatialReferenceDependentProperties(),this.stateManager.changeSpatialReference(e),this.stage.state=this.state,this._setupSpatialReferenceDependentProperties();for(const e of this.allLayerViews)e.processAttach();this.frameTask.requestFrame(),this.frameTask.start(),this._updateStageChildren()}}static{this.type="2d"}};e([h({constructOnly:!0})],ee.prototype,"deactivatedWebGLExtensions",void 0),e([h({constructOnly:!0})],ee.prototype,"debugWebGLExtensions",void 0),e([h({readOnly:!0})],ee.prototype,"featuresTilingScheme",void 0),e([h({readOnly:!0})],ee.prototype,"graphicsTileStore",null),e([h()],ee.prototype,"graphicsView",void 0),e([h()],ee.prototype,"constraintsInfo",null),e([h()],ee.prototype,"initialExtentRequired",null),e([h()],ee.prototype,"labelManager",void 0),e([h({type:U,nonNullable:!0})],ee.prototype,"navigation",void 0),e([h({constructOnly:!0})],ee.prototype,"renderCanvas",void 0),e([h()],ee.prototype,"renderingOptions",void 0),e([h({constructOnly:!0})],ee.prototype,"supersampleScreenshotsEnabled",void 0),e([h({readOnly:!0})],ee.prototype,"supportsGround",void 0),e([h()],ee.prototype,"defaultsFromMapSettings",null),e([h({readOnly:!0})],ee.prototype,"typeSpecificPreconditionsReady",null),e([h({type:F})],ee.prototype,"background",null),e([h()],ee.prototype,"center",null),e([h({type:i})],ee.prototype,"floors",void 0),e([h()],ee.prototype,"grid",void 0),e([h({type:z})],ee.prototype,"highlightOptions",null),e([h()],ee.prototype,"map",void 0),e([h()],ee.prototype,"padding",null),e([h({readOnly:!0})],ee.prototype,"rendering",null),e([h({readOnly:!0})],ee.prototype,"resolution",null),e([h()],ee.prototype,"scale",null),e([h({constructOnly:!0})],ee.prototype,"spatialReferenceLocked",void 0),e([h({readOnly:!0})],ee.prototype,"tileInfo",null),e([h({type:G,readOnly:!0})],ee.prototype,"timeline",void 0),e([h({readOnly:!0})],ee.prototype,"type",void 0),e([h({readOnly:!0})],ee.prototype,"updating",null),e([h({readOnly:!0})],ee.prototype,"view2dType",void 0),e([h({readOnly:!0})],ee.prototype,"visibleArea",null),e([h()],ee.prototype,"zoom",null),e([h({readOnly:!0})],ee.prototype,"navigating",null),e([h(),d(e=>e instanceof I?e:c(N,e))],ee.prototype,"ui",void 0),ee=e([g("esri.views.View2D")],ee);const te=ee;export{te as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import e from"../core/Error.js";import s from"../core/Promise.js";import{createResolver as r,isPromiseLike as o}from"../core/promiseUtils.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";let n=class extends s{constructor(t){super(t),this.state="running",this.target=null,this._resolver=null}initialize(){this._resolver=r(),this.addResolvingPromise(this._resolver.promise)}get done(){return"finished"===this.state||"stopped"===this.state}stop(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","stopped"),this._resolver?.reject(new e("view:animation-stopped","ViewAnimation stopped")))}finish(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","finished"),this._resolver?.resolve())}update(t,e){e||(e=o(t)?"waiting-for-target":"running"),this._set("target",t),this._set("state",e)}};t([i({readOnly:!0})],n.prototype,"done",null),t([i({readOnly:!0,type:String})],n.prototype,"state",void 0),t([i()],n.prototype,"target",void 0),n=t([p("esri.views.ViewAnimation")],n),function(t){t.State={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"}}(n||(n={}));const a=n;export{a as default};
5
+ import{__decorate as t}from"tslib";import e from"../core/Error.js";import{EsriPromise as s}from"../core/Promise.js";import{createResolver as r,isPromiseLike as i}from"../core/promiseUtils.js";import{property as o}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";let a=class extends s{constructor(t){super(t),this.state="running",this.target=null,this._resolver=null}initialize(){this._resolver=r(),this.addResolvingPromise(this._resolver.promise)}get done(){return"finished"===this.state||"stopped"===this.state}stop(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","stopped"),this._resolver?.reject(new e("view:animation-stopped","ViewAnimation stopped")))}finish(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","finished"),this._resolver?.resolve())}update(t,e){e||(e=i(t)?"waiting-for-target":"running"),this._set("target",t),this._set("state",e)}static{this.state={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"}}};t([o({readOnly:!0})],a.prototype,"done",null),t([o({readOnly:!0,type:String})],a.prototype,"state",void 0),t([o()],a.prototype,"target",void 0),a=t([p("esri.views.ViewAnimation")],a);const n=a;export{n as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../core/Evented.js";import{clone as i}from"../../core/lang.js";import{destroyMaybe as r}from"../../core/maybe.js";import n from"../../core/Promise.js";import{ignoreAbortErrors as s}from"../../core/promiseUtils.js";import{createScreenPointArray as o}from"../../core/screenUtils.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import d from"../../layers/GraphicsLayer.js";import{makeDehydratedPoint as h}from"../../layers/graphics/dehydratedPoint.js";import{SnappingVisualizer2D as l}from"../2d/interactive/SnappingVisualizer2D.js";import{createCoordinateHelper as c}from"../interactive/coordinateHelper.js";import{EditGeometry as m,Component as _}from"../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as u}from"../interactive/editGeometry/EditGeometryOperations.js";import{SnappingContext as g}from"../interactive/snapping/SnappingContext.js";import{SnappingOperation as y}from"../interactive/snapping/SnappingOperation.js";var v;let f=class extends(n.EsriPromiseMixin(t)){static{v=this}constructor(e){super(e),this._hasZ=null,this._cursorScreenPoint=null,this._activePointerId=null,this._stagedVertexUnsnapped=null,this._lastVertexUnsnapped=null,this.interactiveUndoDisabled=!1,this.history=[],this.redoHistory=[],this.snapToScene=!1,this.view=null,this.elevationInfo=null,this.defaultZ=0,this._coordinateHelper=c(!!e.hasZ,!1,e.view.spatialReference),this._snappingManager=e.snappingManager,this._editGeometryOperations=new u(new m(e.editGeometryType??"polygon",this._coordinateHelper),2),this._snappingGraphicsLayer=new d({id:v.SNAPPING_GRAPHICS_LAYER_ID,listMode:"hide",internal:!0,title:"Snapping graphics"}),this._snappingContext=new g({editGeometryOperations:this._editGeometryOperations,elevationInfo:{mode:"on-the-ground",offset:0},pointer:"mouse",visualizer:new l(this._snappingGraphicsLayer)}),this._activeComponent=new _(e.view.spatialReference,2),this._editGeometryOperations.data.components.push(this._activeComponent)}normalizeCtorArgs(e){const t={...e};return delete t.editGeometryType,delete t.snappingManager,t}initialize(){this._snappingOperation=new y({view:this.view}),"2d"===this.view.type&&this.view.map.layers.add(this._snappingGraphicsLayer)}destroy(){this.view.map.layers.remove(this._snappingGraphicsLayer),this._snappingGraphicsLayer.destroy(),null!=this._snappingManager&&this._snappingManager.doneSnapping(),this._snappingOperation=r(this._snappingOperation),this._editGeometryOperations.destroy()}get _committedVertices(){return this._editGeometryOperations.data.components[0].vertices.map(e=>e.pos)}get vertices(){return null!=this._stagedVertex?[...this._committedVertices,this._coordinateHelper.pointToArray(this._stagedVertex)]:this._committedVertices}get hasZ(){return null!=this._hasZ?this._hasZ:"3d"===this.view.type}set hasZ(e){this._hasZ=e,this.notifyChange("hasZ")}get _stagedVertex(){return this._snappingOperation?.stagedPoint}set _stagedVertex(e){this._snappingOperation&&(this._snappingOperation.stagedPoint=i(e))}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this.canUndo&&this._editGeometryOperations.undo()}redo(){this.canRedo&&this._editGeometryOperations.redo()}getCoordsFromScreenPoint(e){const t=e&&this.screenToMap(e);return null==t?null:t.hasZ?[t.x,t.y,t.z]:[t.x,t.y]}getCoordsAndPointFromScreenPoint(e){const t=this.screenToMap(e);return null==t?null:t.hasZ?{vertex:[t.x,t.y,t.z],mapPoint:t}:{vertex:[t.x,t.y],mapPoint:t}}screenToMap(e){let t=null;if("3d"===this.view.type)if(this.hasZ){const i=this.elevationInfo??x;t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(o(e.x,e.y),i,this._getGeometryZValue())}else{const i=this.elevationInfo??G;t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(o(e.x,e.y),i,0),null!=t&&(t.z=void 0)}else t=this.view.toMap(e),null!=t&&(t.z=this.hasZ?this._getGeometryZValue():void 0);return t}_pushCursorVertex(e,t){const i=h(e[0],e[1],void 0,this.view.spatialReference);this._stagedVertexUnsnapped=i;const r=this._snappingManager;if(null==r)return this._stagedVertex=i,void t();s(this._snappingOperation.snap({point:i},r,this._snappingContext)).then(()=>{t()})}_popCursorVertex(){this._stagedVertexUnsnapped=null,this._stagedVertex=null}_getGeometryZValue(){return this.defaultZ}_abortSnapping(){this._snappingOperation.abort()}_isDuplicateOfLastVertex(e){const t=this._editGeometryOperations.data.components[0].getLastVertex()?.pos;if(t&&e[0]===t[0]&&e[1]===t[1])return!0;const{x:i,y:r}=this._coordinateHelper.vectorToDehydratedPoint(e);return null!=this._lastVertexUnsnapped&&i===this._lastVertexUnsnapped.x&&r===this._lastVertexUnsnapped.y}_shouldHandlePointerEvent(e){return w(e)&&(null==this._activePointerId||this._activePointerId===e.pointerId)}_vertexAddHandler(e){const t=null!=this._stagedVertex?this._coordinateHelper.pointToArray(this._stagedVertex):this.getCoordsFromScreenPoint(this._cursorScreenPoint);null!=t&&this._addVertex(t,e.native)}_drawCompleteHandler(e){this._completeDrawing(e.native)}static{this.SNAPPING_GRAPHICS_LAYER_ID="DrawAction-snapping-graphics-layer"}};e([a({readOnly:!0})],f.prototype,"vertices",null),e([a({type:Boolean,nonNullable:!0})],f.prototype,"interactiveUndoDisabled",void 0),e([a({readOnly:!0})],f.prototype,"history",void 0),e([a({readOnly:!0})],f.prototype,"redoHistory",void 0),e([a()],f.prototype,"snapToScene",void 0),e([a()],f.prototype,"view",void 0),e([a()],f.prototype,"elevationInfo",void 0),e([a({nonNullable:!0})],f.prototype,"defaultZ",void 0),e([a()],f.prototype,"hasZ",null),e([a()],f.prototype,"_snappingOperation",void 0),e([a()],f.prototype,"_stagedVertex",null),f=v=e([p("esri.views.draw.DrawAction")],f);const x={mode:"absolute-height",offset:0},G={mode:"on-the-ground",offset:0};function w(e){return"mouse"!==e.pointerType||0===e.button}const V=f;export{V as default};
5
+ import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../core/Evented.js";import{clone as i}from"../../core/lang.js";import{destroyMaybe as r}from"../../core/maybe.js";import{EsriPromiseMixin as n}from"../../core/Promise.js";import{ignoreAbortErrors as s}from"../../core/promiseUtils.js";import{createScreenPointArray as o}from"../../core/screenUtils.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import d from"../../layers/GraphicsLayer.js";import{makeDehydratedPoint as h}from"../../layers/graphics/dehydratedPoint.js";import{SnappingVisualizer2D as l}from"../2d/interactive/SnappingVisualizer2D.js";import{createCoordinateHelper as c}from"../interactive/coordinateHelper.js";import{EditGeometry as m,Component as _}from"../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as u}from"../interactive/editGeometry/EditGeometryOperations.js";import{SnappingContext as g}from"../interactive/snapping/SnappingContext.js";import{SnappingOperation as y}from"../interactive/snapping/SnappingOperation.js";var v;let f=class extends(n(t)){static{v=this}constructor(e){super(e),this._hasZ=null,this._cursorScreenPoint=null,this._activePointerId=null,this._stagedVertexUnsnapped=null,this._lastVertexUnsnapped=null,this.interactiveUndoDisabled=!1,this.history=[],this.redoHistory=[],this.snapToScene=!1,this.view=null,this.elevationInfo=null,this.defaultZ=0,this._coordinateHelper=c(!!e.hasZ,!1,e.view.spatialReference),this._snappingManager=e.snappingManager,this._editGeometryOperations=new u(new m(e.editGeometryType??"polygon",this._coordinateHelper),2),this._snappingGraphicsLayer=new d({id:v.SNAPPING_GRAPHICS_LAYER_ID,listMode:"hide",internal:!0,title:"Snapping graphics"}),this._snappingContext=new g({editGeometryOperations:this._editGeometryOperations,elevationInfo:{mode:"on-the-ground",offset:0},pointer:"mouse",visualizer:new l(this._snappingGraphicsLayer)}),this._activeComponent=new _(e.view.spatialReference,2),this._editGeometryOperations.data.components.push(this._activeComponent)}normalizeCtorArgs(e){const t={...e};return delete t.editGeometryType,delete t.snappingManager,t}initialize(){this._snappingOperation=new y({view:this.view}),"2d"===this.view.type&&this.view.map.layers.add(this._snappingGraphicsLayer)}destroy(){this.view.map.layers.remove(this._snappingGraphicsLayer),this._snappingGraphicsLayer.destroy(),null!=this._snappingManager&&this._snappingManager.doneSnapping(),this._snappingOperation=r(this._snappingOperation),this._editGeometryOperations.destroy()}get _committedVertices(){return this._editGeometryOperations.data.components[0].vertices.map(e=>e.pos)}get vertices(){return null!=this._stagedVertex?[...this._committedVertices,this._coordinateHelper.pointToArray(this._stagedVertex)]:this._committedVertices}get hasZ(){return null!=this._hasZ?this._hasZ:"3d"===this.view.type}set hasZ(e){this._hasZ=e,this.notifyChange("hasZ")}get _stagedVertex(){return this._snappingOperation?.stagedPoint}set _stagedVertex(e){this._snappingOperation&&(this._snappingOperation.stagedPoint=i(e))}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this.canUndo&&this._editGeometryOperations.undo()}redo(){this.canRedo&&this._editGeometryOperations.redo()}getCoordsFromScreenPoint(e){const t=e&&this.screenToMap(e);return null==t?null:t.hasZ?[t.x,t.y,t.z]:[t.x,t.y]}getCoordsAndPointFromScreenPoint(e){const t=this.screenToMap(e);return null==t?null:t.hasZ?{vertex:[t.x,t.y,t.z],mapPoint:t}:{vertex:[t.x,t.y],mapPoint:t}}screenToMap(e){let t=null;if("3d"===this.view.type)if(this.hasZ){const i=this.elevationInfo??x;t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(o(e.x,e.y),i,this._getGeometryZValue())}else{const i=this.elevationInfo??G;t=this.view.sceneIntersectionHelper.intersectElevationFromScreen(o(e.x,e.y),i,0),null!=t&&(t.z=void 0)}else t=this.view.toMap(e),null!=t&&(t.z=this.hasZ?this._getGeometryZValue():void 0);return t}_pushCursorVertex(e,t){const i=h(e[0],e[1],void 0,this.view.spatialReference);this._stagedVertexUnsnapped=i;const r=this._snappingManager;if(null==r)return this._stagedVertex=i,void t();s(this._snappingOperation.snap({point:i},r,this._snappingContext)).then(()=>{t()})}_popCursorVertex(){this._stagedVertexUnsnapped=null,this._stagedVertex=null}_getGeometryZValue(){return this.defaultZ}_abortSnapping(){this._snappingOperation.abort()}_isDuplicateOfLastVertex(e){const t=this._editGeometryOperations.data.components[0].getLastVertex()?.pos;if(t&&e[0]===t[0]&&e[1]===t[1])return!0;const{x:i,y:r}=this._coordinateHelper.vectorToDehydratedPoint(e);return null!=this._lastVertexUnsnapped&&i===this._lastVertexUnsnapped.x&&r===this._lastVertexUnsnapped.y}_shouldHandlePointerEvent(e){return w(e)&&(null==this._activePointerId||this._activePointerId===e.pointerId)}_vertexAddHandler(e){const t=null!=this._stagedVertex?this._coordinateHelper.pointToArray(this._stagedVertex):this.getCoordsFromScreenPoint(this._cursorScreenPoint);null!=t&&this._addVertex(t,e.native)}_drawCompleteHandler(e){this._completeDrawing(e.native)}static{this.SNAPPING_GRAPHICS_LAYER_ID="DrawAction-snapping-graphics-layer"}};e([a({readOnly:!0})],f.prototype,"vertices",null),e([a({type:Boolean,nonNullable:!0})],f.prototype,"interactiveUndoDisabled",void 0),e([a({readOnly:!0})],f.prototype,"history",void 0),e([a({readOnly:!0})],f.prototype,"redoHistory",void 0),e([a()],f.prototype,"snapToScene",void 0),e([a()],f.prototype,"view",void 0),e([a()],f.prototype,"elevationInfo",void 0),e([a({nonNullable:!0})],f.prototype,"defaultZ",void 0),e([a()],f.prototype,"hasZ",null),e([a()],f.prototype,"_snappingOperation",void 0),e([a()],f.prototype,"_stagedVertex",null),f=v=e([p("esri.views.draw.DrawAction")],f);const x={mode:"absolute-height",offset:0},G={mode:"on-the-ground",offset:0};function w(e){return"mouse"!==e.pointerType||0===e.button}const V=f;export{V as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import i from"../../../core/Accessor.js";import{createTask as t}from"../../../core/asyncUtils.js";import{makeHandle as r,handlesGroup as s}from"../../../core/handleUtils.js";import a from"../../../core/Logger.js";import{getOrCreateMapValue as o}from"../../../core/MapUtils.js";import{throwIfAborted as n}from"../../../core/promiseUtils.js";import{whenOnce as p,watch as d}from"../../../core/reactiveUtils.js";import{addMaybe as c}from"../../../core/SetUtils.js";import{property as h}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import{subclass as u}from"../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as l}from"../../../core/support/UpdatingHandles.js";import m from"../../../layers/GraphicsLayer.js";import{isSubtypeSublayer as y,isKnowledgeGraphSublayer as v}from"../../../layers/support/layerUtils.js";import{getDisplayedSymbol as g}from"../../../symbols/support/symbolUtils.js";import{GraphicState as f}from"../../3d/layers/graphics/GraphicState.js";var _;!function(e){e[e.FeatureMove=0]="FeatureMove",e[e.VertexMove=1]="VertexMove"}(_||(_={}));const w=()=>a.getLogger("esri.views.draw.support.ConnectedReshapeManager"),G=Symbol();let L=class extends i{constructor(e){super(e),this.activeOperationType=null,this.providerFactories=[],this.view=null,this._activeProviders=new Set,this._graphics=new Map,this._modifiedFeatures=new Map,this._modifiedGraphicsLayer=new m({listMode:"hide",internal:!0,title:"Connected Reshape Modified Graphics (Internal)"}),this._pendingGraphicsLayer=new m({listMode:"hide",internal:!0,title:"Connected Reshape Pending Graphics (Internal)"}),this._pendingFeatures=new Map,this._updatingHandles=new l}initialize(){this.view.map.addMany([this._modifiedGraphicsLayer,this._pendingGraphicsLayer])}destroy(){this.view.destroyed||this.view.map.removeMany([this._modifiedGraphicsLayer,this._pendingGraphicsLayer]),this._modifiedGraphicsLayer.destroy(),this._pendingGraphicsLayer.destroy(),this._updatingHandles.destroy()}get updating(){return this._updatingHandles.updating||Array.from(this._activeProviders).some(e=>e.updating)}startFeatureMove(e){this.activeOperationType=_.FeatureMove,this._activeProviders.clear();for(const i of this.providerFactories)c(this._activeProviders,i.getFeatureReshapeProvider(e))}startVertexMove(e,i){this.activeOperationType=_.VertexMove,this._activeProviders.clear();for(const t of this.providerFactories)c(this._activeProviders,t.getVertexReshapeProvider(e,i))}finish(){this.activeOperationType=null,this._activeProviders.clear();for(const[e,i]of this._pendingFeatures){this._pendingFeatures.delete(e),this._modifiedFeatures.set(e,i);const t=this._graphics.get(e);t&&(this._modifiedGraphicsLayer.add(t),this._pendingGraphicsLayer.remove(t))}}translate(e,i,t=0){if(null===this.activeOperationType)return;const r=P(e),s=P(i),a=P(t);for(const o of this._activeProviders){const e=o.translate(r,s,a);this._update(e)}}async _initializeGraphic(e,i){e.symbol??=await this._updatingHandles.addPromise(g(e,{scale:this.view.scale,useSourceLayer:!0})),this._pendingFeatures.has(i.uniqueId)?this._pendingGraphicsLayer.add(e):this._modifiedFeatures.has(i.uniqueId)&&this._modifiedGraphicsLayer.add(e),this.addHandles(await F(i.originalGraphic,e,this.view),G)}_update(e){for(const i of e){const e=this._modifiedFeatures.delete(i.uniqueId);this._pendingFeatures.set(i.uniqueId,i);const t=o(this._graphics,i.uniqueId,()=>{const e=i.graphic.cloneShallow();return this._initializeGraphic(e,i),e});t.geometry=i.graphic.geometry,e&&(this._modifiedGraphicsLayer.remove(t),this._pendingGraphicsLayer.add(t))}}get test(){return{activeProviders:this._activeProviders,modifiedFeatures:this._modifiedFeatures,modifiedGraphicsLayer:this._modifiedGraphicsLayer,pendingFeatures:this._pendingFeatures,pendingGraphicsLayer:this._pendingGraphicsLayer}}};async function F(e,i,a){const o=e.sourceLayer,d=e.getObjectId();if(null==d)return w().error("editing:cannot-hide-graphic","Unable to hide original graphic because it has no objectId."),r();let c=null;function h(e){c?.abort(),c=t(async i=>{const t=await b(a,o);n(i),t&&t.setVisibility?.(d,e)})}return await M(a,i),h(!1),s([j(a,i,e=>h(!e)),r(async()=>{h(!0);const e=await b(a,o);await p(()=>!e?.updating)})])}function j(e,i,t){if("3d"===e.type){const r=new f({graphic:i});return s([e.trackGraphicState(r),d(()=>r.displaying,t)])}return d(()=>i.visible,t)}async function M(e,i){if("3d"===e.type){const t=new f({graphic:i}),r=e.trackGraphicState(t);await p(()=>t.displaying||t.error),r.remove()}else await p(()=>i.visible)}async function b(e,i){const t=y(i)||v(i)?i.parent:i;return t?e.whenLayerView(t):null}function P(e){return isNaN(e)?0:e}e([h()],L.prototype,"activeOperationType",void 0),e([h()],L.prototype,"providerFactories",void 0),e([h()],L.prototype,"updating",null),e([h({constructOnly:!0})],L.prototype,"view",void 0),L=e([u("esri.views.draw.support.ConnectedReshapeManager")],L);export{L as ConnectedReshapeManager,_ as ConnectedReshapeOperationType,F as swapForEditingSession,j as watchGraphicVisibility,M as whenGraphicDisplayed};
5
+ import{__decorate as e}from"tslib";import i from"../../../core/Accessor.js";import{createTask as t}from"../../../core/asyncUtils.js";import{makeHandle as r,handlesGroup as s}from"../../../core/handleUtils.js";import a from"../../../core/Logger.js";import{getOrCreateMapValue as o}from"../../../core/MapUtils.js";import{throwIfAborted as n}from"../../../core/promiseUtils.js";import{whenOnce as p,watch as d}from"../../../core/reactiveUtils.js";import{addMaybe as c}from"../../../core/SetUtils.js";import{property as h}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/RandomLCG.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import{UpdatingHandles as u}from"../../../core/support/UpdatingHandles.js";import m from"../../../layers/GraphicsLayer.js";import{isSubtypeSublayer as y,isKnowledgeGraphSublayer as g}from"../../../layers/support/layerUtils.js";import{getDisplayedSymbol as f}from"../../../symbols/support/symbolUtils.js";import{GraphicState as v}from"../../3d/layers/graphics/GraphicState.js";const _=()=>a.getLogger("esri.views.draw.support.ConnectedReshapeManager"),w=Symbol();let G=class extends i{constructor(e){super(e),this.activeOperationType=null,this.providerFactories=[],this.view=null,this._activeProviders=new Set,this._graphics=new Map,this._modifiedFeatures=new Map,this._modifiedGraphicsLayer=new m({listMode:"hide",internal:!0,title:"Connected Reshape Modified Graphics (Internal)"}),this._pendingGraphicsLayer=new m({listMode:"hide",internal:!0,title:"Connected Reshape Pending Graphics (Internal)"}),this._pendingFeatures=new Map,this._updatingHandles=new u}initialize(){this.view.map.addMany([this._modifiedGraphicsLayer,this._pendingGraphicsLayer])}destroy(){this.view.destroyed||this.view.map.removeMany([this._modifiedGraphicsLayer,this._pendingGraphicsLayer]),this._modifiedGraphicsLayer.destroy(),this._pendingGraphicsLayer.destroy(),this._updatingHandles.destroy()}get updating(){return this._updatingHandles.updating||Array.from(this._activeProviders).some(e=>e.updating)}startFeatureMove(e){this.activeOperationType=0,this._activeProviders.clear();for(const i of this.providerFactories)c(this._activeProviders,i.getFeatureReshapeProvider(e))}startVertexMove(e,i){this.activeOperationType=1,this._activeProviders.clear();for(const t of this.providerFactories)c(this._activeProviders,t.getVertexReshapeProvider(e,i))}finish(){this.activeOperationType=null,this._activeProviders.clear();for(const[e,i]of this._pendingFeatures){this._pendingFeatures.delete(e),this._modifiedFeatures.set(e,i);const t=this._graphics.get(e);t&&(this._modifiedGraphicsLayer.add(t),this._pendingGraphicsLayer.remove(t))}}translate(e,i,t=0){if(null===this.activeOperationType)return;const r=P(e),s=P(i),a=P(t);for(const o of this._activeProviders){const e=o.translate(r,s,a);this._update(e)}}async _initializeGraphic(e,i){e.symbol??=await this._updatingHandles.addPromise(f(e,{scale:this.view.scale,useSourceLayer:!0})),this._pendingFeatures.has(i.uniqueId)?this._pendingGraphicsLayer.add(e):this._modifiedFeatures.has(i.uniqueId)&&this._modifiedGraphicsLayer.add(e),this.addHandles(await L(i.originalGraphic,e,this.view),w)}_update(e){for(const i of e){const e=this._modifiedFeatures.delete(i.uniqueId);this._pendingFeatures.set(i.uniqueId,i);const t=o(this._graphics,i.uniqueId,()=>{const e=i.graphic.cloneShallow();return this._initializeGraphic(e,i),e});t.geometry=i.graphic.geometry,e&&(this._modifiedGraphicsLayer.remove(t),this._pendingGraphicsLayer.add(t))}}get test(){return{activeProviders:this._activeProviders,modifiedFeatures:this._modifiedFeatures,modifiedGraphicsLayer:this._modifiedGraphicsLayer,pendingFeatures:this._pendingFeatures,pendingGraphicsLayer:this._pendingGraphicsLayer}}};async function L(e,i,a){const o=e.sourceLayer,d=e.getObjectId();if(null==d)return _().error("editing:cannot-hide-graphic","Unable to hide original graphic because it has no objectId."),r();let c=null;function h(e){c?.abort(),c=t(async i=>{const t=await b(a,o);n(i),t&&t.setVisibility?.(d,e)})}return await F(a,i),h(!1),s([j(a,i,e=>h(!e)),r(async()=>{h(!0);const e=await b(a,o);await p(()=>!e?.updating)})])}function j(e,i,t){if("3d"===e.type){const r=new v({graphic:i});return s([e.trackGraphicState(r),d(()=>r.displaying,t)])}return d(()=>i.visible,t)}async function F(e,i){if("3d"===e.type){const t=new v({graphic:i}),r=e.trackGraphicState(t);await p(()=>t.displaying||t.error),r.remove()}else await p(()=>i.visible)}async function b(e,i){const t=y(i)||g(i)?i.parent:i;return t?e.whenLayerView(t):null}function P(e){return isNaN(e)?0:e}e([h()],G.prototype,"activeOperationType",void 0),e([h()],G.prototype,"providerFactories",void 0),e([h()],G.prototype,"updating",null),e([h({constructOnly:!0})],G.prototype,"view",void 0),G=e([l("esri.views.draw.support.ConnectedReshapeManager")],G);export{G as ConnectedReshapeManager,L as swapForEditingSession,j as watchGraphicVisibility,F as whenGraphicDisplayed};