@arcgis/core 4.34.0-next.36 → 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 (1338) hide show
  1. package/AttributeBinsGraphic.js +1 -1
  2. package/Basemap.js +1 -1
  3. package/Camera.js +1 -1
  4. package/CameraLayout.js +1 -1
  5. package/Color.js +1 -1
  6. package/Graphic.js +1 -1
  7. package/Ground.js +1 -1
  8. package/Map.js +1 -1
  9. package/PopupTemplate.js +1 -1
  10. package/Viewpoint.js +1 -1
  11. package/WebDocument2D.js +1 -1
  12. package/WebScene.js +1 -1
  13. package/analysis/Analysis.js +1 -1
  14. package/analysis/DimensionSimpleStyle.js +1 -1
  15. package/analysis/ElevationProfileLine.js +1 -1
  16. package/analysis/ElevationProfileLineChartOptions.js +1 -1
  17. package/analysis/ElevationProfileLineViewOptions.js +1 -1
  18. package/analysis/ElevationProfileUnits.js +1 -1
  19. package/analysis/LengthDimension.js +1 -1
  20. package/analysis/LineOfSightAnalysisObserver.js +1 -1
  21. package/analysis/LineOfSightAnalysisTarget.js +1 -1
  22. package/analysis/SlicePlane.js +1 -1
  23. package/analysis/Viewshed.js +1 -1
  24. package/analysis/VolumeMeasurement/CutFillOptions.js +1 -1
  25. package/analysis/support/AnalysisOriginWebScene.js +1 -1
  26. package/analysis/support/SliceAnalysisExcludedLayer.js +1 -1
  27. package/arcade/featureSetUtils.js +1 -1
  28. package/assets/esri/core/workers/RemoteClient.js +1 -1
  29. package/assets/esri/core/workers/chunks/00f3fe4a09bbdbc8f8b4.js +1 -0
  30. package/assets/esri/core/workers/chunks/{209c70ba2925171ef742.js → 01ae7d36bda6b6186786.js} +1 -1
  31. package/assets/esri/core/workers/chunks/01bd8f90e55081e65b38.js +1 -0
  32. package/assets/esri/core/workers/chunks/022091e5240b9d872dd2.js +1 -0
  33. package/assets/esri/core/workers/chunks/03df4668002eb4cb4f98.js +1 -0
  34. package/assets/esri/core/workers/chunks/{c4a20b8038bfbb2af329.js → 09f0c9f0b6aa58ae3c52.js} +1 -1
  35. package/assets/esri/core/workers/chunks/0a27f9b11d03874809ee.js +346 -0
  36. package/assets/esri/core/workers/chunks/{ce8f0ed9179c0d314df8.js → 0e8d3d38e9b1f6abf6f2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/0faec78b2dd6990a5da0.js +1 -0
  38. package/assets/esri/core/workers/chunks/14b536e0c1de6c7422bc.js +1 -0
  39. package/assets/esri/core/workers/chunks/19391d60c76a1dc7c262.js +1 -0
  40. package/assets/esri/core/workers/chunks/1acc620bfd2983d6853f.js +1 -0
  41. package/assets/esri/core/workers/chunks/{6b5be459ec4c418cc6fd.js → 1d9212a70df68a508dca.js} +1 -1
  42. package/assets/esri/core/workers/chunks/21aaf2dede61f28727a9.js +1 -0
  43. package/assets/esri/core/workers/chunks/21dd626a5b5ea6a7e18e.js +1 -0
  44. package/assets/esri/core/workers/chunks/224872bfd923cf4c9d78.js +1 -0
  45. package/assets/esri/core/workers/chunks/23a85252e4164354553e.js +1 -0
  46. package/assets/esri/core/workers/chunks/257428fff4bef42716e0.js +1 -0
  47. package/assets/esri/core/workers/chunks/27027493a8dba8305693.js +1 -0
  48. package/assets/esri/core/workers/chunks/2a26c3fc324d672ebe88.js +1 -0
  49. package/assets/esri/core/workers/chunks/{7efc3ac70a005a771b9c.js → 2c399991e8627baa51b3.js} +1 -1
  50. package/assets/esri/core/workers/chunks/306a68137e62656b0f05.js +1 -0
  51. package/assets/esri/core/workers/chunks/{4c54239974a5847b8fdd.js → 30b9c131b69297ee186f.js} +1 -1
  52. package/assets/esri/core/workers/chunks/31ad9949b08a5b07218c.js +989 -0
  53. package/assets/esri/core/workers/chunks/31c6716d9ca188d3b870.js +1 -0
  54. package/assets/esri/core/workers/chunks/31e6eb2685872baf538a.js +1 -0
  55. package/assets/esri/core/workers/chunks/3264d58aeef8cf074b86.js +1 -0
  56. package/assets/esri/core/workers/chunks/3358c1b04490706681cc.js +1 -0
  57. package/assets/esri/core/workers/chunks/3386420c9ae891db5be7.js +2 -0
  58. package/assets/esri/core/workers/chunks/3488e88882f40199ab33.js +1 -0
  59. package/assets/esri/core/workers/chunks/34f677e8c1691c10e4e9.js +1 -0
  60. package/assets/esri/core/workers/chunks/35df19d1eab3a694c3fa.js +1 -0
  61. package/assets/esri/core/workers/chunks/3984ca7e05f30724adaf.js +1 -0
  62. package/assets/esri/core/workers/chunks/4162c633efefc63c5506.js +1 -0
  63. package/assets/esri/core/workers/chunks/{0852abaa440c14cc2b36.js → 4459c8e495a37d4c4eb8.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{6e36b247a24172edd5ea.js → 476a6e5ca558db2adaa1.js} +1 -1
  65. package/assets/esri/core/workers/chunks/48369e4c340413c531ff.js +1 -0
  66. package/assets/esri/core/workers/chunks/49eac96a01931b8c4ace.js +1 -0
  67. package/assets/esri/core/workers/chunks/4ae15645e68e7f6dd6b7.js +1 -0
  68. package/assets/esri/core/workers/chunks/508c302fed242956d3b7.js +1 -0
  69. package/assets/esri/core/workers/chunks/5156410dd84ea1232a6c.js +1 -0
  70. package/assets/esri/core/workers/chunks/{c64aa9793764eba2c6da.js → 51ddda291bbbf5db9905.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{bd6c6acf23db2a2e8ef8.js → 53e166944a42af027345.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{4b9003ddfe61dc3729f4.js → 54658c87396223d85abd.js} +1 -1
  73. package/assets/esri/core/workers/chunks/5b2d40a2ce2594ce8eef.js +1 -0
  74. package/assets/esri/core/workers/chunks/{36024406932b0a44a74a.js → 5b2ff220aebe464dac23.js} +1 -1
  75. package/assets/esri/core/workers/chunks/5b91a49202129eedaf00.js +1 -0
  76. package/assets/esri/core/workers/chunks/{a0dfd99dc8f4eac0b7ae.js → 5d1d909354c90cb8eb60.js} +1 -1
  77. package/assets/esri/core/workers/chunks/5fe3c279d57f44416c28.js +1 -0
  78. package/assets/esri/core/workers/chunks/60d889c58a542e59b07b.js +1 -0
  79. package/assets/esri/core/workers/chunks/647cff1eaaf1b622f439.js +1 -0
  80. package/assets/esri/core/workers/chunks/6530449cd1975deb61f1.js +1 -0
  81. package/assets/esri/core/workers/chunks/6759319f3fd2d03c446b.js +1 -0
  82. package/assets/esri/core/workers/chunks/69dc5a7abc1fda2474ad.js +1 -0
  83. package/assets/esri/core/workers/chunks/{e91800c1ea026e5b2d9b.js → 6acffacbb4a03af52e3b.js} +1 -1
  84. package/assets/esri/core/workers/chunks/6b5b609b357924fa35be.js +1 -0
  85. package/assets/esri/core/workers/chunks/{d6eff6cc30acdca04835.js → 6c167daf115cd6abb3e5.js} +1 -1
  86. package/assets/esri/core/workers/chunks/6e82c1d1e02e320ec5e7.js +1 -0
  87. package/assets/esri/core/workers/chunks/712c740cf58c2e282efc.js +1 -0
  88. package/assets/esri/core/workers/chunks/7159e7a3274e64b337ce.js +1 -0
  89. package/assets/esri/core/workers/chunks/{0e7e4426daba4a008849.js → 719b89341b26c3568c2f.js} +1 -1
  90. package/assets/esri/core/workers/chunks/7617fe2fbf223c108f1e.js +1 -0
  91. package/assets/esri/core/workers/chunks/774844eea928efa811f2.js +1 -0
  92. package/assets/esri/core/workers/chunks/77ee4afaa4a1c7047940.js +1 -0
  93. package/assets/esri/core/workers/chunks/{904e701e1a12f67beaee.js → 787d281b2fe1edf6cf30.js} +1 -1
  94. package/assets/esri/core/workers/chunks/78de16f65ea297452a65.js +1 -0
  95. package/assets/esri/core/workers/chunks/{056fdd5570af28d334cd.js → 79b389baf972d329c38d.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{0ca8d6516323fc28dd58.js → 7a5808c6e67c43274d86.js} +1 -1
  97. package/assets/esri/core/workers/chunks/7b1fc59822ac2d421a5a.js +1 -0
  98. package/assets/esri/core/workers/chunks/7b82ed4cc475c782256b.js +1 -0
  99. package/assets/esri/core/workers/chunks/7b95da70d39ba316b051.js +1 -0
  100. package/assets/esri/core/workers/chunks/7c97c4c8c2cf73835517.js +1 -0
  101. package/assets/esri/core/workers/chunks/{7a4730c1e6a5355b7a05.js → 7d082bfcd13ad6e8c89d.js} +1 -1
  102. package/assets/esri/core/workers/chunks/7e04b4592128e884b58c.js +1 -0
  103. package/assets/esri/core/workers/chunks/7ef29640de297a0cf744.js +1 -0
  104. package/assets/esri/core/workers/chunks/{ac88e0aabbd6c1f1ec98.js → 7f523fa4d4ade4316625.js} +1 -1
  105. package/assets/esri/core/workers/chunks/80a930881a99ceda240a.js +1 -0
  106. package/assets/esri/core/workers/chunks/{69d44e08861fb8cdd954.js → 82de1b50ae286f1e6c44.js} +1 -1
  107. package/assets/esri/core/workers/chunks/85bfd380d4f522ff8e83.js +1 -0
  108. package/assets/esri/core/workers/chunks/{a82d7e2eecfe654a65de.js → 88308a0dcc479688e67c.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{360223d8bd4ee77ecda1.js → 896c7d137bfd7a8fa0bc.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{74db0831bcbd48152c1d.js → 899f493412acd5a5d91f.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{20a96c17d1a117dfdf77.js → 8ad95fe91ba0a9f284a2.js} +1 -1
  112. package/assets/esri/core/workers/chunks/{b331543767c35e5edcc6.js → 8c1bd9bcfc59497de3b5.js} +1 -1
  113. package/assets/esri/core/workers/chunks/8ca95499e00ce8b0af9a.js +1 -0
  114. package/assets/esri/core/workers/chunks/8d51b6823ef5d290c670.js +1 -0
  115. package/assets/esri/core/workers/chunks/{1512ed7b869b3e8e07bc.js → 8e40c409a9b0a2a768a9.js} +1 -1
  116. package/assets/esri/core/workers/chunks/9155dbfce5ef2c25bbbf.js +1 -0
  117. package/assets/esri/core/workers/chunks/{7d25f57299c642e727a6.js → 91be247f868ce6596c9e.js} +1 -1
  118. package/assets/esri/core/workers/chunks/9247d768c3eccc0828a9.js +1 -0
  119. package/assets/esri/core/workers/chunks/{02bd15e0adaffcdd645b.js → 947085d176bd3a930e6f.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{dca2b487152cde45fb65.js → 94850c094e076d81a016.js} +1 -1
  121. package/assets/esri/core/workers/chunks/9595b39e882f9a9ac839.js +1 -0
  122. package/assets/esri/core/workers/chunks/962c0ef63de1635fb4aa.js +1 -0
  123. package/assets/esri/core/workers/chunks/98ac849cccc4d5316021.js +1 -0
  124. package/assets/esri/core/workers/chunks/9928e432b884c75c3436.js +1 -0
  125. package/assets/esri/core/workers/chunks/{e9a366c225b0687293e3.js → 9b5e04d87116ce2b68b2.js} +1 -1
  126. package/assets/esri/core/workers/chunks/9c60599131860f635483.js +1 -0
  127. package/assets/esri/core/workers/chunks/9cd9b22354dbdf1b1df0.js +1 -0
  128. package/assets/esri/core/workers/chunks/9e7af4c3c0f8cf0f5c5b.js +1 -0
  129. package/assets/esri/core/workers/chunks/9f869b331dff505b6b55.js +1 -0
  130. package/assets/esri/core/workers/chunks/9ffbd5216aa0a45a4199.js +1 -0
  131. package/assets/esri/core/workers/chunks/a13a36207f265f720255.js +1 -0
  132. package/assets/esri/core/workers/chunks/a5c0b365b9f55e63ab52.js +1 -0
  133. package/assets/esri/core/workers/chunks/{0550e775677597f3752c.js → a89c060ad302381aaf7d.js} +1 -1
  134. package/assets/esri/core/workers/chunks/a939d2af7e4a359c7b4d.js +1 -0
  135. package/assets/esri/core/workers/chunks/aaab7694eb333ad480f5.js +1 -0
  136. package/assets/esri/core/workers/chunks/{871da12fb3029177df6f.js → ad106f5f6d6848f40de3.js} +1 -1
  137. package/assets/esri/core/workers/chunks/{dec9656997683ef01ba6.js → ad1e5c24c1eae5ab8e45.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{c9fe9792312f0161ef5a.js → b1b6300451cc4ccefd46.js} +1 -1
  139. package/assets/esri/core/workers/chunks/b1c2e5e0a70fb5d27da5.js +1 -0
  140. package/assets/esri/core/workers/chunks/b40845b45f8d7cd347a1.js +1 -0
  141. package/assets/esri/core/workers/chunks/b5f6a0607b620b027cdd.js +1 -0
  142. package/assets/esri/core/workers/chunks/{8abcf9d3343dd8d45103.js → b884bd2f50aaccfa24c5.js} +1 -1
  143. package/assets/esri/core/workers/chunks/{1285ccdde515aca9a2d5.js → bb23371335ac049861e6.js} +1 -1
  144. package/assets/esri/core/workers/chunks/{469a018d94080fbcde22.js → bbdadced49446c907361.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{c06dda7263e64d696c88.js → c110941e87923ba47193.js} +1 -1
  146. package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +1 -0
  147. package/assets/esri/core/workers/chunks/{b00ad853fa4826d0ceb3.js → c660b6e67d5d13583f19.js} +1 -1
  148. package/assets/esri/core/workers/chunks/c6e3d4c6bb02d58d5cfe.js +1 -0
  149. package/assets/esri/core/workers/chunks/c8c85ba6451b5dfc2fc0.js +1 -0
  150. package/assets/esri/core/workers/chunks/c8d57588267e2fc4406c.js +1 -0
  151. package/assets/esri/core/workers/chunks/ca7c9756802214e41c56.js +1 -0
  152. package/assets/esri/core/workers/chunks/cca36750c86352c6d1f9.js +1 -0
  153. package/assets/esri/core/workers/chunks/cf474c055a85bdbfa8d0.js +1 -0
  154. package/assets/esri/core/workers/chunks/{9f933a7e9d3b0cd69383.js → d08b80583a23ba253c7e.js} +1 -1
  155. package/assets/esri/core/workers/chunks/d29f894491618931d92a.js +1 -0
  156. package/assets/esri/core/workers/chunks/d465e1b3a8a53d9c0a12.js +1 -0
  157. package/assets/esri/core/workers/chunks/d5262c95116d3bdfd117.js +1 -0
  158. package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +1 -0
  159. package/assets/esri/core/workers/chunks/{b8bd0f1be54b318990f6.js → d7c679374aa2d256becf.js} +1 -1
  160. package/assets/esri/core/workers/chunks/d93b24e863379116b2aa.js +1 -0
  161. package/assets/esri/core/workers/chunks/{6589133542fa130c0628.js → dd1d9913b33d4e48baff.js} +1 -1
  162. package/assets/esri/core/workers/chunks/de499e33035b56b6697d.js +1 -0
  163. package/assets/esri/core/workers/chunks/e177d0ab454dfa024b39.js +1 -0
  164. package/assets/esri/core/workers/chunks/{948ecf0bfbc886ec3b52.js → e1b25b1ce3bd4f0f2cda.js} +1 -1
  165. package/assets/esri/core/workers/chunks/{eedf97211883713c413e.js → e1b573840ec1f7c3afd3.js} +1 -1
  166. package/assets/esri/core/workers/chunks/{b117e054a2bc54f5f93b.js → e3f2cdf5d71a7040894b.js} +1 -1
  167. package/assets/esri/core/workers/chunks/e666ca4d14b6490485d6.js +1 -0
  168. package/assets/esri/core/workers/chunks/{672751823261a5763684.js → e92d9e0ac789bcf1cdf4.js} +1 -1
  169. package/assets/esri/core/workers/chunks/{d3b932ff2299c89c2582.js → e95a8c988ef822723503.js} +1 -1
  170. package/assets/esri/core/workers/chunks/{9f43736d6d80c8e858b2.js → eb7dd722e4cd7f83b3f5.js} +1 -1
  171. package/assets/esri/core/workers/chunks/ec9ed7c9d64f88fcb806.js +1 -0
  172. package/assets/esri/core/workers/chunks/f42938e1602306cfa7a8.js +1 -0
  173. package/assets/esri/core/workers/chunks/{77e083d1e425026fa030.js → f4b145feab275b268c2e.js} +1 -1
  174. package/assets/esri/core/workers/chunks/f4d7cbd33ef8710d7316.js +1 -0
  175. package/assets/esri/core/workers/chunks/f88fe2e8fbc763bdc940.js +1 -0
  176. package/assets/esri/core/workers/chunks/{451ae19a0a120b27c6da.js → fb0f729eff2f2911d6c3.js} +1 -1
  177. package/assets/esri/core/workers/chunks/{ce0683921ccefc580018.js → fd3009164d5e38fda85f.js} +1 -1
  178. package/assets/esri/core/workers/chunks/{236fc659747e812f6424.js → ff34fdda7899e784ac73.js} +1 -1
  179. package/chunks/ColorMaterial.glsl.js +2 -2
  180. package/chunks/DefaultMaterial.glsl.js +4 -4
  181. package/chunks/HUDMaterial.glsl.js +5 -5
  182. package/chunks/LineMarker.glsl.js +19 -19
  183. package/chunks/Pattern.glsl.js +6 -6
  184. package/chunks/RibbonLine.glsl.js +2 -2
  185. package/chunks/TimeExtent.js +1 -1
  186. package/chunks/TimeInterval.js +1 -1
  187. package/chunks/languageUtils.js +1 -1
  188. package/chunks/pe.js +1 -1
  189. package/colorUtils.js +1 -1
  190. package/config.js +1 -1
  191. package/core/Clonable.d.ts +1 -1
  192. package/core/Clonable.js +1 -1
  193. package/core/Collection.js +1 -1
  194. package/core/Evented.d.ts +1 -1
  195. package/core/Evented.js +1 -1
  196. package/core/Identifiable.d.ts +1 -1
  197. package/core/Identifiable.js +1 -1
  198. package/core/JSONSupport.d.ts +1 -1
  199. package/core/JSONSupport.js +1 -1
  200. package/core/Loadable.d.ts +1 -1
  201. package/core/Loadable.js +1 -1
  202. package/core/Promise.d.ts +1 -1
  203. package/core/Promise.js +1 -1
  204. package/core/has.js +1 -1
  205. package/core/loadAll.js +1 -1
  206. package/core/object.js +1 -1
  207. package/core/workers/RemoteClient.js +1 -1
  208. package/core/workers/utils.js +1 -1
  209. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  210. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  211. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  212. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  213. package/editing/sharedTemplates/templateDefinitions/parts/TemplatePartBase.js +1 -1
  214. package/effects/FocusArea.js +1 -1
  215. package/effects/FocusAreaOutline.js +1 -1
  216. package/effects/FocusAreas.js +1 -1
  217. package/form/ExpressionInfo.js +1 -1
  218. package/form/FormTemplate.js +1 -1
  219. package/form/elements/Element.js +1 -1
  220. package/form/elements/UtilityNetworkAssociationsElement.js +1 -1
  221. package/form/elements/inputs/Input.js +1 -1
  222. package/form/elements/inputs/attachments/Input.js +1 -1
  223. package/geometry/Geometry.js +1 -1
  224. package/geometry/HeightModelInfo.js +1 -1
  225. package/geometry/Mesh.js +1 -1
  226. package/geometry/SpatialReference.js +1 -1
  227. package/geometry/support/MeshComponent.js +1 -1
  228. package/geometry/support/MeshGeoreferencedVertexSpace.js +1 -1
  229. package/geometry/support/MeshLocalVertexSpace.js +1 -1
  230. package/geometry/support/MeshMaterial.js +1 -1
  231. package/geometry/support/MeshTexture.js +1 -1
  232. package/geometry/support/MeshTextureTransform.js +1 -1
  233. package/geometry/support/MeshTransform.js +1 -1
  234. package/geometry/support/MeshVertexAttributes.js +1 -1
  235. package/geometry/support/heightModelInfoUtils.js +1 -1
  236. package/geometry/support/meshUtils/Metadata.js +1 -1
  237. package/graphic/GeoRSSGraphicOrigin.d.ts +4 -0
  238. package/graphic/GeoRSSGraphicOrigin.js +5 -0
  239. package/graphic/GraphicOrigin.js +1 -1
  240. package/graphic/KnowledgeGraphGraphicOrigin.d.ts +4 -0
  241. package/graphic/KnowledgeGraphGraphicOrigin.js +5 -0
  242. package/graphic/MapImageGraphicOrigin.d.ts +4 -0
  243. package/graphic/MapImageGraphicOrigin.js +5 -0
  244. package/graphic/MapNotesGraphicOrigin.d.ts +4 -0
  245. package/graphic/MapNotesGraphicOrigin.js +5 -0
  246. package/graphic/OrientedImageryGraphicOrigin.d.ts +4 -0
  247. package/graphic/OrientedImageryGraphicOrigin.js +5 -0
  248. package/graphic/ParquetGraphicOrigin.d.ts +4 -0
  249. package/graphic/ParquetGraphicOrigin.js +5 -0
  250. package/graphic/SubtypeGroupGraphicOrigin.d.ts +4 -0
  251. package/graphic/SubtypeGroupGraphicOrigin.js +5 -0
  252. package/graphic/TileGraphicOrigin.d.ts +4 -0
  253. package/graphic/TileGraphicOrigin.js +5 -0
  254. package/graphic/graphicOrigins.d.ts +8 -0
  255. package/graphic/graphicOrigins.js +1 -1
  256. package/graphic/isGeoRSSGraphicOrigin.js +5 -0
  257. package/graphic/isKnowledgeGraphGraphicOrigin.js +5 -0
  258. package/graphic/isMapImageGraphicOrigin.js +5 -0
  259. package/graphic/isMapNotesGraphicOrigin.js +5 -0
  260. package/graphic/isOrientedImageryGraphicOrigin.js +5 -0
  261. package/graphic/isParquetGraphicOrigin.js +5 -0
  262. package/graphic/isSubtypeGroupGraphicOrigin.js +5 -0
  263. package/graphic/isTileGraphicOrigin.js +5 -0
  264. package/grids/MeasuredGrid.js +1 -1
  265. package/ground/NavigationConstraint.js +1 -1
  266. package/identity/IdentityManagerBase.js +1 -1
  267. package/identity/OAuthInfo.js +1 -1
  268. package/identity/ServerInfo.js +1 -1
  269. package/interfaces.d.ts +228 -0
  270. package/kernel.js +1 -1
  271. package/layers/BuildingSceneLayer.js +1 -1
  272. package/layers/CSVLayer.js +1 -1
  273. package/layers/FeatureLayer.js +1 -1
  274. package/layers/GaussianSplatLayer.js +5 -0
  275. package/layers/GeoJSONLayer.js +1 -1
  276. package/layers/ImageryLayer.js +1 -1
  277. package/layers/ImageryTileLayer.js +1 -1
  278. package/layers/Layer.js +1 -1
  279. package/layers/MapNotesLayer.js +1 -1
  280. package/layers/OGCFeatureLayer.js +1 -1
  281. package/layers/OrientedImageryLayer.js +1 -1
  282. package/layers/ParquetLayer.js +1 -1
  283. package/layers/SceneLayer.js +1 -1
  284. package/layers/StreamLayer.js +1 -1
  285. package/layers/SubtypeGroupLayer.js +1 -1
  286. package/layers/WCSLayer.js +1 -1
  287. package/layers/WFSLayer.js +1 -1
  288. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  289. package/layers/buildingSublayers/BuildingGroupSublayer.js +1 -1
  290. package/layers/buildingSublayers/BuildingSublayer.js +1 -1
  291. package/layers/buildingSublayers/utils.js +5 -0
  292. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  293. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  294. package/layers/graphics/data/FeatureStore.js +1 -1
  295. package/layers/graphics/sources/CSVSource.js +1 -1
  296. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  297. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  298. package/layers/graphics/sources/MemorySource.js +1 -1
  299. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  300. package/layers/graphics/sources/ParquetSource.js +1 -1
  301. package/layers/graphics/sources/WFSSource.js +1 -1
  302. package/layers/knowledgeGraph/IdealEdgeLengthTypeOptions.js +1 -1
  303. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  304. package/layers/mixins/EditBusLayer.js +1 -1
  305. package/layers/mixins/OperationalLayer.js +1 -1
  306. package/layers/mixins/TemporalSceneLayer.js +1 -1
  307. package/layers/mixins/operationalLayerModuleMap.js +1 -1
  308. package/layers/orientedImagery/core/CameraOrientationHPR.js +1 -1
  309. package/layers/orientedImagery/core/CameraOrientationLTP.js +1 -1
  310. package/layers/orientedImagery/core/CameraOrientationOPK.js +1 -1
  311. package/layers/orientedImagery/core/CameraOrientationYPR.js +1 -1
  312. package/layers/orientedImagery/core/ElevationSourceDefinitions.js +1 -1
  313. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  314. package/layers/pointCloudFilters/PointCloudFilter.js +1 -1
  315. package/layers/support/AggregateField.js +1 -1
  316. package/layers/support/BuildingFilter.js +1 -1
  317. package/layers/support/BuildingFilterAuthoringInfo.js +1 -1
  318. package/layers/support/BuildingFilterAuthoringInfoBlock.js +1 -1
  319. package/layers/support/BuildingFilterAuthoringInfoType.js +1 -1
  320. package/layers/support/BuildingFilterBlock.js +1 -1
  321. package/layers/support/BuildingFilterMode.js +1 -1
  322. package/layers/support/BuildingSummaryStatistics.js +1 -1
  323. package/layers/support/CodedValue.js +1 -1
  324. package/layers/support/ControlPointsGeoreference.js +1 -1
  325. package/layers/support/DimensionalDefinition.js +1 -1
  326. package/layers/support/DisplayFilter.js +1 -1
  327. package/layers/support/DisplayFilterInfo.js +1 -1
  328. package/layers/support/Domain.js +1 -1
  329. package/layers/support/EditFieldsInfo.js +1 -1
  330. package/layers/support/ExportImageServiceParameters.js +1 -1
  331. package/layers/support/ExpressionInfo.js +1 -1
  332. package/layers/support/FacilityLayerInfo.js +1 -1
  333. package/layers/support/FeatureEffect.js +1 -1
  334. package/layers/support/FeatureFilter.js +1 -1
  335. package/layers/support/FeatureIndex.js +1 -1
  336. package/layers/support/FeatureReduction.js +1 -1
  337. package/layers/support/FeatureReductionCluster.js +1 -1
  338. package/layers/support/FeatureTemplate.js +1 -1
  339. package/layers/support/FeatureType.js +1 -1
  340. package/layers/support/Field.js +1 -1
  341. package/layers/support/GeometryFieldsInfo.js +1 -1
  342. package/layers/support/GeoreferenceBase.js +1 -1
  343. package/layers/support/I3SLayerDefinitions.js +1 -1
  344. package/layers/support/KMLMapImage.js +1 -1
  345. package/layers/support/KMLSublayer.js +1 -1
  346. package/layers/support/LOD.js +1 -1
  347. package/layers/support/LabelClass.js +1 -1
  348. package/layers/support/LabelExpressionInfo.js +1 -1
  349. package/layers/support/LayerContingentValuesCache.js +1 -1
  350. package/layers/support/LayerFloorInfo.js +1 -1
  351. package/layers/support/LayerTimeOptions.js +1 -1
  352. package/layers/support/LevelLayerInfo.js +1 -1
  353. package/layers/support/LocalMediaElementSource.js +1 -1
  354. package/layers/support/MapImage.js +1 -1
  355. package/layers/support/MediaElementBase.js +1 -1
  356. package/layers/support/MosaicRule.js +1 -1
  357. package/layers/support/MultidimensionalSubset.js +1 -1
  358. package/layers/support/OrderByInfo.js +1 -1
  359. package/layers/support/ParquetEncodingBase.js +1 -1
  360. package/layers/support/ParquetEncodingLocation.js +1 -1
  361. package/layers/support/ParquetEncodingWkb.js +1 -1
  362. package/layers/support/PixelBlock.js +1 -1
  363. package/layers/support/PlaybackInfo.js +1 -1
  364. package/layers/support/PolygonCollection.js +1 -1
  365. package/layers/support/PurgeOptions.js +1 -1
  366. package/layers/support/RangeInfo.js +1 -1
  367. package/layers/support/RasterBandInfo.js +1 -1
  368. package/layers/support/RasterFunction.js +1 -1
  369. package/layers/support/RasterFunctionInfo.js +1 -1
  370. package/layers/support/RasterFunctionProperties.js +1 -1
  371. package/layers/support/RasterFunctionTemplate.js +1 -1
  372. package/layers/support/RasterFunctionVariable.js +1 -1
  373. package/layers/support/RasterInfo.js +1 -1
  374. package/layers/support/RasterSensorInfo.js +1 -1
  375. package/layers/support/RasterStorageInfo.js +1 -1
  376. package/layers/support/Relationship.js +1 -1
  377. package/layers/support/RouteStopSymbols.js +1 -1
  378. package/layers/support/RouteSymbols.js +1 -1
  379. package/layers/support/SceneFilter.js +1 -1
  380. package/layers/support/SceneModification.js +1 -1
  381. package/layers/support/SceneModifications.js +1 -1
  382. package/layers/support/SiteLayerInfo.js +1 -1
  383. package/layers/support/StreamConnection.js +1 -1
  384. package/layers/support/Sublayer.js +1 -1
  385. package/layers/support/Subtype.js +1 -1
  386. package/layers/support/SubtypeSublayer.js +1 -1
  387. package/layers/support/TelemetryData.js +1 -1
  388. package/layers/support/TelemetryDisplay.js +1 -1
  389. package/layers/support/TileInfo.js +1 -1
  390. package/layers/support/TileMatrixSet.js +1 -1
  391. package/layers/support/TimeInfo.js +1 -1
  392. package/layers/support/TrackInfo.js +1 -1
  393. package/layers/support/TrackPartInfo.js +1 -1
  394. package/layers/support/VideoFrame.js +1 -1
  395. package/layers/support/VideoTimeExtent.js +1 -1
  396. package/layers/support/WMSSublayer.js +1 -1
  397. package/layers/support/WMTSLayerInfo.js +1 -1
  398. package/layers/support/WMTSStyle.js +1 -1
  399. package/layers/support/WMTSSublayer.js +1 -1
  400. package/layers/support/lazyLayerLoader.js +1 -1
  401. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  402. package/layers/support/rasterFunctions/BaseFunctionArguments.js +1 -1
  403. package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
  404. package/layers/support/rasterTransforms/BaseRasterTransform.js +1 -1
  405. package/layers/support/source/DataLayerSource.js +1 -1
  406. package/layers/support/source/MapLayerSource.js +1 -1
  407. package/layers/support/source/QueryTableDataSource.js +1 -1
  408. package/layers/support/source/RasterDataSource.js +1 -1
  409. package/layers/support/source/TableDataSource.js +1 -1
  410. package/layers/voxel/VoxelColorStop.js +1 -1
  411. package/layers/voxel/VoxelDimension.js +1 -1
  412. package/layers/voxel/VoxelDynamicSection.js +1 -1
  413. package/layers/voxel/VoxelFormat.js +1 -1
  414. package/layers/voxel/VoxelIrregularSpacing.js +1 -1
  415. package/layers/voxel/VoxelIsosurface.js +1 -1
  416. package/layers/voxel/VoxelOpacityStop.js +1 -1
  417. package/layers/voxel/VoxelRangeFilter.js +1 -1
  418. package/layers/voxel/VoxelRegularSpacing.js +1 -1
  419. package/layers/voxel/VoxelSection.js +1 -1
  420. package/layers/voxel/VoxelSimpleShading.js +1 -1
  421. package/layers/voxel/VoxelSlice.js +1 -1
  422. package/layers/voxel/VoxelTransferFunctionStyle.js +1 -1
  423. package/layers/voxel/VoxelUniqueValue.js +1 -1
  424. package/layers/voxel/VoxelVariable.js +1 -1
  425. package/layers/voxel/VoxelVariableStyle.js +1 -1
  426. package/layers/voxel/VoxelVolume.js +1 -1
  427. package/layers/voxel/VoxelVolumeIndex.js +1 -1
  428. package/layers/voxel/VoxelVolumeStyle.js +1 -1
  429. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  430. package/linkChart/ChronologicalLayoutSettings.js +1 -1
  431. package/linkChart/LayoutSettings.js +1 -1
  432. package/linkChart/LinkChartProperties.js +1 -1
  433. package/linkChart/NonspatialDataDisplay.js +1 -1
  434. package/linkChart/OrganicLayoutSettings.js +1 -1
  435. package/networks/CircuitManager.js +1 -1
  436. package/networks/Network.js +1 -1
  437. package/networks/RulesTable.js +1 -1
  438. package/networks/UnitIdentifierManager.js +1 -1
  439. package/networks/UtilityNetwork.js +1 -1
  440. package/networks/support/NetworkSystemLayers.js +1 -1
  441. package/networks/support/Terminal.js +1 -1
  442. package/networks/support/TerminalConfiguration.js +1 -1
  443. package/networks/support/TraceConfiguration.js +1 -1
  444. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  445. package/package.json +2 -2
  446. package/popup/ElementExpressionInfo.js +1 -1
  447. package/popup/ExpressionInfo.js +1 -1
  448. package/popup/FieldInfo.js +1 -1
  449. package/popup/LayerOptions.js +1 -1
  450. package/popup/RelatedRecordsInfo.js +1 -1
  451. package/popup/content/AttachmentsContent.js +1 -1
  452. package/popup/content/Content.js +1 -1
  453. package/popup/content/RelationshipContent.js +1 -1
  454. package/popup/content/UtilityNetworkAssociationsContent.js +1 -1
  455. package/popup/content/mixins/MediaInfo.js +1 -1
  456. package/popup/content/support/ChartMediaInfoValue.js +1 -1
  457. package/popup/content/support/ImageMediaInfoValue.js +1 -1
  458. package/popup/support/AttachmentsOrderByInfo.js +1 -1
  459. package/popup/support/FieldInfoFormat.js +1 -1
  460. package/popup/support/RelatedRecordsInfoFieldOrder.js +1 -1
  461. package/popup/support/UtilityNetworkAssociationType.js +1 -1
  462. package/portal/Portal.js +1 -1
  463. package/portal/PortalFolder.js +1 -1
  464. package/portal/PortalGroup.js +1 -1
  465. package/portal/PortalItem.js +1 -1
  466. package/portal/PortalUser.js +1 -1
  467. package/renderers/FlowRenderer.js +1 -1
  468. package/renderers/PieChartRenderer.js +1 -1
  469. package/renderers/PointCloudClassBreaksRenderer.js +1 -1
  470. package/renderers/PointCloudRenderer.js +1 -1
  471. package/renderers/PointCloudStretchRenderer.js +1 -1
  472. package/renderers/PointCloudUniqueValueRenderer.js +1 -1
  473. package/renderers/RasterColormapRenderer.js +1 -1
  474. package/renderers/RasterShadedReliefRenderer.js +1 -1
  475. package/renderers/RasterStretchRenderer.js +1 -1
  476. package/renderers/Renderer.js +1 -1
  477. package/renderers/VectorFieldRenderer.js +1 -1
  478. package/renderers/support/AttributeColorInfo.js +1 -1
  479. package/renderers/support/AuthoringInfo.js +1 -1
  480. package/renderers/support/AuthoringInfoClassBreakInfo.js +1 -1
  481. package/renderers/support/AuthoringInfoFieldInfo.js +1 -1
  482. package/renderers/support/AuthoringInfoSizeStop.js +1 -1
  483. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  484. package/renderers/support/ClassBreakInfo.js +1 -1
  485. package/renderers/support/ColormapInfo.js +1 -1
  486. package/renderers/support/DotDensityLegendOptions.js +1 -1
  487. package/renderers/support/HeatmapColorStop.js +1 -1
  488. package/renderers/support/HeatmapLegendOptions.js +1 -1
  489. package/renderers/support/OthersCategory.js +1 -1
  490. package/renderers/support/RasterPresetRenderer.js +1 -1
  491. package/renderers/support/RasterSymbolizer.js +1 -1
  492. package/renderers/support/RendererLegendOptions.js +1 -1
  493. package/renderers/support/UniqueValue.js +1 -1
  494. package/renderers/support/UniqueValueClass.js +1 -1
  495. package/renderers/support/UniqueValueGroup.js +1 -1
  496. package/renderers/support/UniqueValueInfo.js +1 -1
  497. package/renderers/support/pointCloud/ColorClassBreakInfo.js +1 -1
  498. package/renderers/support/pointCloud/ColorModulation.js +1 -1
  499. package/renderers/support/pointCloud/ColorUniqueValueInfo.js +1 -1
  500. package/renderers/support/pointCloud/PointSizeAlgorithm.js +1 -1
  501. package/renderers/support/pointCloud/fieldsMap.js +5 -0
  502. package/renderers/visualVariables/VisualVariable.js +1 -1
  503. package/renderers/visualVariables/support/ColorSizeStop.js +1 -1
  504. package/renderers/visualVariables/support/ColorStop.js +1 -1
  505. package/renderers/visualVariables/support/OpacityStop.js +1 -1
  506. package/renderers/visualVariables/support/SizeStop.js +1 -1
  507. package/renderers/visualVariables/support/VisualVariableLegendOptions.js +1 -1
  508. package/rest/featureService/FeatureService.js +1 -1
  509. package/rest/knowledgeGraph/DataModel.js +1 -1
  510. package/rest/knowledgeGraph/FieldIndex.js +1 -1
  511. package/rest/knowledgeGraph/GraphObject.js +1 -1
  512. package/rest/knowledgeGraph/GraphObjectType.js +1 -1
  513. package/rest/knowledgeGraph/GraphProperty.js +1 -1
  514. package/rest/knowledgeGraph/KnowledgeGraph.js +1 -1
  515. package/rest/knowledgeGraph/Path.js +1 -1
  516. package/rest/knowledgeGraph/ProtoFeatureCollection.js +1 -1
  517. package/rest/knowledgeGraph/ServiceDefinition.js +1 -1
  518. package/rest/knowledgeGraph/SourceTypeValueBehavior.js +1 -1
  519. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.js +1 -1
  520. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.js +1 -1
  521. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.js +1 -1
  522. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.js +1 -1
  523. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
  524. package/rest/knowledgeGraph/wasmInterface/WasmQueryWrapperInterfaces.js +1 -1
  525. package/rest/knowledgeGraph/wasmInterface/WasmSerializedLayerData.js +1 -1
  526. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  527. package/rest/knowledgeGraph/wasmInterface/wasmToFeatureFactories.js +1 -1
  528. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  529. package/rest/networks/circuits/support/CircuitVerifyResult.js +1 -1
  530. package/rest/networks/circuits/support/CreateAlterCircuitParameters.js +1 -1
  531. package/rest/networks/circuits/support/DeleteCircuitsParameters.js +1 -1
  532. package/rest/networks/circuits/support/EditCircuitsResult.js +1 -1
  533. package/rest/networks/circuits/support/ExportCircuitsParameters.js +1 -1
  534. package/rest/networks/circuits/support/ExportCircuitsResult.js +1 -1
  535. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  536. package/rest/networks/circuits/support/QueryCircuitsResult.js +1 -1
  537. package/rest/networks/circuits/support/VerifyCircuitsParameters.js +1 -1
  538. package/rest/networks/circuits/support/VerifyCircuitsResult.js +1 -1
  539. package/rest/networks/support/AggregatedGeometry.js +1 -1
  540. package/rest/networks/support/Association.js +1 -1
  541. package/rest/networks/support/AssociationGeometriesResult.js +1 -1
  542. package/rest/networks/support/CircuitPath.js +1 -1
  543. package/rest/networks/support/CircuitPathConnectivityElement.js +1 -1
  544. package/rest/networks/support/CircuitTraceResult.js +1 -1
  545. package/rest/networks/support/FunctionResult.js +1 -1
  546. package/rest/networks/support/NetworkElement.js +1 -1
  547. package/rest/networks/support/QueryAssociationsParameters.js +1 -1
  548. package/rest/networks/support/QueryAssociationsResult.js +1 -1
  549. package/rest/networks/support/QueryNamedTraceConfigurationsParameters.js +1 -1
  550. package/rest/networks/support/QueryNamedTraceConfigurationsResult.js +1 -1
  551. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.js +1 -1
  552. package/rest/networks/support/TraceLocation.js +1 -1
  553. package/rest/networks/support/TraceParameters.js +1 -1
  554. package/rest/networks/support/TraceResult.js +1 -1
  555. package/rest/networks/support/ValidateNetworkTopologyParameters.js +1 -1
  556. package/rest/networks/support/ValidateNetworkTopologyResult.js +1 -1
  557. package/rest/networks/unitIdentifiers/support/EditUnitIdentifiersResult.js +1 -1
  558. package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +1 -1
  559. package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParameters.js +1 -1
  560. package/rest/networks/unitIdentifiers/support/ResetParameters.js +1 -1
  561. package/rest/networks/unitIdentifiers/support/ResizeParameters.js +1 -1
  562. package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +1 -1
  563. package/rest/query/support/AttachmentInfo.js +1 -1
  564. package/rest/support/AddressCandidate.js +1 -1
  565. package/rest/support/AddressToLocationsParameters.js +1 -1
  566. package/rest/support/AddressesToLocationsParameters.js +1 -1
  567. package/rest/support/ArealUnit.js +1 -1
  568. package/rest/support/AreasAndLengthsParameters.js +1 -1
  569. package/rest/support/AttachmentQuery.js +1 -1
  570. package/rest/support/AttributeBinsFeatureSet.js +1 -1
  571. package/rest/support/AttributeBinsGrouping.js +1 -1
  572. package/rest/support/AttributeBinsQuery.js +1 -1
  573. package/rest/support/BaseImageMeasureParameters.js +1 -1
  574. package/rest/support/BaseImageMeasureResult.js +1 -1
  575. package/rest/support/BinParametersBase.js +1 -1
  576. package/rest/support/BufferParameters.js +1 -1
  577. package/rest/support/CameraInfo.js +1 -1
  578. package/rest/support/ClassBreaksDefinition.js +1 -1
  579. package/rest/support/ClosestFacilityParameters.js +1 -1
  580. package/rest/support/ClosestFacilitySolveResult.js +1 -1
  581. package/rest/support/ColorRamp.js +1 -1
  582. package/rest/support/DataFile.js +1 -1
  583. package/rest/support/DataLayer.js +1 -1
  584. package/rest/support/DateBinTimeInterval.js +1 -1
  585. package/rest/support/DensifyParameters.js +1 -1
  586. package/rest/support/DirectionLine.js +1 -1
  587. package/rest/support/DirectionPoint.js +1 -1
  588. package/rest/support/DirectionsEvent.js +1 -1
  589. package/rest/support/DirectionsString.js +1 -1
  590. package/rest/support/FeatureSet.js +1 -1
  591. package/rest/support/FindImagesParameters.js +1 -1
  592. package/rest/support/FindImagesResult.js +1 -1
  593. package/rest/support/FindParameters.js +1 -1
  594. package/rest/support/FindResult.js +1 -1
  595. package/rest/support/FullTextSearch.js +1 -1
  596. package/rest/support/GPMessage.js +1 -1
  597. package/rest/support/GeneralizeParameters.js +1 -1
  598. package/rest/support/GenerateRendererParameters.js +1 -1
  599. package/rest/support/IdentifyParameters.js +1 -1
  600. package/rest/support/IdentifyResult.js +1 -1
  601. package/rest/support/ImageAngleParameters.js +1 -1
  602. package/rest/support/ImageAngleResult.js +1 -1
  603. package/rest/support/ImageBoundaryParameters.js +1 -1
  604. package/rest/support/ImageBoundaryResult.js +1 -1
  605. package/rest/support/ImageGPSInfo.js +1 -1
  606. package/rest/support/ImageGPSInfoParameters.js +1 -1
  607. package/rest/support/ImageGPSInfoResult.js +1 -1
  608. package/rest/support/ImageHistogramParameters.js +1 -1
  609. package/rest/support/ImageIdentifyParameters.js +1 -1
  610. package/rest/support/ImageIdentifyResult.js +1 -1
  611. package/rest/support/ImageInspectionInfo.js +1 -1
  612. package/rest/support/ImagePixelLocationParameters.js +1 -1
  613. package/rest/support/ImagePixelLocationResult.js +1 -1
  614. package/rest/support/ImageSample.js +1 -1
  615. package/rest/support/ImageSampleParameters.js +1 -1
  616. package/rest/support/ImageSampleResult.js +1 -1
  617. package/rest/support/ImageToMapMultirayParameters.js +1 -1
  618. package/rest/support/ImageToMapParameters.js +1 -1
  619. package/rest/support/ImageUrlParameters.js +1 -1
  620. package/rest/support/ImageUrlResult.js +1 -1
  621. package/rest/support/ImageVolume.js +1 -1
  622. package/rest/support/ImageVolumeParameters.js +1 -1
  623. package/rest/support/ImageVolumeResult.js +1 -1
  624. package/rest/support/JobInfo.js +1 -1
  625. package/rest/support/LegendLayer.js +1 -1
  626. package/rest/support/LengthsParameters.js +1 -1
  627. package/rest/support/LinearUnit.js +1 -1
  628. package/rest/support/LocationToAddressParameters.js +1 -1
  629. package/rest/support/MapToImageParameters.js +1 -1
  630. package/rest/support/MeasureAreaFromImageResult.js +1 -1
  631. package/rest/support/MeasureFromImageParameters.js +1 -1
  632. package/rest/support/MeasureLengthFromImageResult.js +1 -1
  633. package/rest/support/MultipartColorRamp.js +1 -1
  634. package/rest/support/NetworkAttribute.js +1 -1
  635. package/rest/support/NetworkDataset.js +1 -1
  636. package/rest/support/NetworkServiceDescription.js +1 -1
  637. package/rest/support/NetworkUrl.js +1 -1
  638. package/rest/support/OffsetParameters.js +1 -1
  639. package/rest/support/ParameterValue.js +1 -1
  640. package/rest/support/PointBarrier.js +1 -1
  641. package/rest/support/PolygonBarrier.js +1 -1
  642. package/rest/support/PolylineBarrier.js +1 -1
  643. package/rest/support/ProjectParameters.js +1 -1
  644. package/rest/support/QuantizationParameters.js +1 -1
  645. package/rest/support/Query.js +1 -1
  646. package/rest/support/RasterData.js +1 -1
  647. package/rest/support/RelationParameters.js +1 -1
  648. package/rest/support/RelationshipQuery.js +1 -1
  649. package/rest/support/RouteInfo.js +1 -1
  650. package/rest/support/RouteParameters.js +1 -1
  651. package/rest/support/RouteResult.js +1 -1
  652. package/rest/support/RouteSettings.js +1 -1
  653. package/rest/support/RouteSolveResult.js +1 -1
  654. package/rest/support/ServiceAreaParameters.js +1 -1
  655. package/rest/support/ServiceAreaSolveResult.js +1 -1
  656. package/rest/support/StatisticDefinition.js +1 -1
  657. package/rest/support/Stop.js +1 -1
  658. package/rest/support/SuggestLocationsParameters.js +1 -1
  659. package/rest/support/SuggestionCandidate.js +1 -1
  660. package/rest/support/TopFeaturesQuery.js +1 -1
  661. package/rest/support/TopFilter.js +1 -1
  662. package/rest/support/TranslateContent.js +1 -1
  663. package/rest/support/TranslateParameters.js +1 -1
  664. package/rest/support/TranslateResult.js +1 -1
  665. package/rest/support/TravelMode.js +1 -1
  666. package/rest/support/TrimExtendParameters.js +1 -1
  667. package/rest/support/UniqueValueDefinition.js +1 -1
  668. package/rest/support/imageMeasureUtils.js +1 -1
  669. package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.js +1 -1
  670. package/rest/versionManagement/gdbVersion/support/ConflictsParameters.js +1 -1
  671. package/rest/versionManagement/gdbVersion/support/ConflictsResult.js +1 -1
  672. package/rest/versionManagement/gdbVersion/support/DeleteForwardEditsParameters.js +1 -1
  673. package/rest/versionManagement/gdbVersion/support/DifferencesParameters.js +1 -1
  674. package/rest/versionManagement/gdbVersion/support/DifferencesResult.js +1 -1
  675. package/rest/versionManagement/gdbVersion/support/InspectConflictsParameters.js +1 -1
  676. package/rest/versionManagement/gdbVersion/support/PostParameters.js +1 -1
  677. package/rest/versionManagement/gdbVersion/support/PostResult.js +1 -1
  678. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.js +1 -1
  679. package/rest/versionManagement/gdbVersion/support/ReconcileResult.js +1 -1
  680. package/rest/versionManagement/gdbVersion/support/RestoreRowsParameters.js +1 -1
  681. package/rest/versionManagement/gdbVersion/support/RestoreRowsResult.js +1 -1
  682. package/rest/versionManagement/support/CreateVersionParameters.js +1 -1
  683. package/rest/versionManagement/support/DeleteVersionParameters.js +1 -1
  684. package/rest/versionManagement/support/GetVersionInfosParameters.js +1 -1
  685. package/rest/versionManagement/support/GetVersionInfosResult.js +1 -1
  686. package/smartMapping/raster/support/adapters/RasterLayerAdapter.js +1 -1
  687. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  688. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  689. package/smartMapping/support/adapters/LayerAdapter.js +1 -1
  690. package/support/MapFloorInfo.js +1 -1
  691. package/support/actions/ActionBase.js +1 -1
  692. package/support/revision.js +1 -1
  693. package/symbols/Font.js +1 -1
  694. package/symbols/LineStyleMarker3D.js +1 -1
  695. package/symbols/LineSymbolMarker.js +1 -1
  696. package/symbols/PathSymbol3DLayer.js +1 -1
  697. package/symbols/Symbol.js +1 -1
  698. package/symbols/Symbol3DLayer.js +1 -1
  699. package/symbols/WaterSymbol3DLayer.js +1 -1
  700. package/symbols/callouts/Callout3D.js +1 -1
  701. package/symbols/callouts/LineCallout3DBorder.js +1 -1
  702. package/symbols/edges/Edges3D.js +1 -1
  703. package/symbols/patterns/LinePattern3D.js +1 -1
  704. package/symbols/patterns/Pattern3D.js +1 -1
  705. package/symbols/support/ElevationInfo.js +1 -1
  706. package/symbols/support/FeatureExpressionInfo.js +1 -1
  707. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  708. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  709. package/symbols/support/Symbol3DEmissive.js +1 -1
  710. package/symbols/support/Symbol3DHalo.js +1 -1
  711. package/symbols/support/Symbol3DIconOutline.js +1 -1
  712. package/symbols/support/Symbol3DMaterial.js +1 -1
  713. package/symbols/support/Symbol3DOutline.js +1 -1
  714. package/symbols/support/Symbol3DTextBackground.js +1 -1
  715. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  716. package/symbols/support/previewSymbol3D.js +1 -1
  717. package/tables/AttributeTableTemplate.js +1 -1
  718. package/tables/elements/AttributeTableAttachmentElement.js +1 -1
  719. package/tables/elements/AttributeTableElement.js +1 -1
  720. package/tables/elements/AttributeTableFieldElement.js +1 -1
  721. package/tables/elements/AttributeTableGroupElement.js +1 -1
  722. package/tables/elements/AttributeTableRelationshipElement.js +1 -1
  723. package/tables/support/FieldOrder.js +1 -1
  724. package/undoredo/support/Services.js +1 -1
  725. package/versionManagement/VersionManagementService.js +1 -1
  726. package/versionManagement/VersioningState.js +1 -1
  727. package/views/2d/AnimationManager.js +1 -1
  728. package/views/2d/ViewState.js +1 -1
  729. package/views/2d/constraints/GeometryConstraint.js +1 -1
  730. package/views/2d/constraints/RotationConstraint.js +1 -1
  731. package/views/2d/constraints/ZoomConstraint.js +1 -1
  732. package/views/2d/engine/DisplayObject.js +1 -1
  733. package/views/2d/engine/ManagedCanvas.js +1 -1
  734. package/views/2d/engine/Stage.js +1 -1
  735. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  736. package/views/2d/engine/flow/styles/Particles.js +1 -1
  737. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  738. package/views/2d/engine/imagery/BrushVectorField.js +1 -1
  739. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  740. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  741. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  742. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  743. package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
  744. package/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial.js +1 -1
  745. package/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial.js +1 -1
  746. package/views/2d/engine/vectorTiles/shaders/VTLFillMaterial.js +1 -1
  747. package/views/2d/engine/vectorTiles/shaders/VTLLineMaterial.js +1 -1
  748. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  749. package/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial.js +1 -1
  750. package/views/2d/engine/webgl/BitBlitRenderer.js +1 -1
  751. package/views/2d/engine/webgl/ClippingInfo.js +1 -1
  752. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  753. package/views/2d/engine/webgl/MaterialManager.js +1 -1
  754. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  755. package/views/2d/engine/webgl/Painter.js +1 -1
  756. package/views/2d/engine/webgl/Profiler.js +1 -1
  757. package/views/2d/engine/webgl/TextureManager.js +1 -1
  758. package/views/2d/engine/webgl/Utils.js +1 -1
  759. package/views/2d/engine/webgl/VertexStream.js +1 -1
  760. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  761. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  762. package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
  763. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  764. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +1 -1
  765. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  766. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  767. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  768. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  769. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  770. package/views/2d/engine/webgl/effects/post-processing/Bloom.js +1 -1
  771. package/views/2d/engine/webgl/effects/post-processing/Blur.js +1 -1
  772. package/views/2d/engine/webgl/effects/post-processing/Colorize.js +1 -1
  773. package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +1 -1
  774. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  775. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  776. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  777. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  778. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  779. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  780. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
  781. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  782. package/views/2d/engine/webgl/shaders/BackgroundPrograms.js +1 -1
  783. package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +1 -1
  784. package/views/2d/engine/webgl/shaders/HighlightPrograms.js +1 -1
  785. package/views/2d/engine/webgl/shaders/MaterialPrograms.js +1 -1
  786. package/views/2d/engine/webgl/shaders/StencilPrograms.js +1 -1
  787. package/views/2d/engine/webgl/shaders/TileInfoPrograms.js +1 -1
  788. package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
  789. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  790. package/views/2d/layerViewModuleImportUtils.js +1 -1
  791. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  792. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  793. package/views/2d/layers/MediaLayerView2D.js +1 -1
  794. package/views/2d/layers/StreamLayerView2D.js +1 -1
  795. package/views/2d/layers/TileLayerView2D.js +1 -1
  796. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  797. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  798. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  799. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  800. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  801. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  802. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  803. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  804. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  805. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  806. package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
  807. package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
  808. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  809. package/views/2d/layers/features/schema/processor/SubtypeProcessorSchema.js +1 -1
  810. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  811. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  812. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  813. package/views/2d/layers/features/support/TileStore.js +1 -1
  814. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  815. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  816. package/views/2d/layers/support/DebugOverlay.js +1 -1
  817. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  818. package/views/3d/FocusAreasView.js +1 -1
  819. package/views/3d/analysis/AnalysisView3D.js +1 -1
  820. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  821. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  822. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  823. package/views/3d/constraints/AltitudeConstraint.js +1 -1
  824. package/views/3d/constraints/ClipDistanceConstraint.js +1 -1
  825. package/views/3d/constraints/Constraints.js +1 -1
  826. package/views/3d/constraints/TiltConstraint.js +1 -1
  827. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  828. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  829. package/views/3d/environment/CloudsRenderer.js +1 -1
  830. package/views/3d/environment/CloudsTechnique.js +1 -1
  831. package/views/3d/environment/CloudyWeather.js +1 -1
  832. package/views/3d/environment/EnvironmentManager.js +1 -1
  833. package/views/3d/environment/FogTechnique.js +1 -1
  834. package/views/3d/environment/FoggyWeather.js +1 -1
  835. package/views/3d/environment/LocalAtmosphere.js +1 -1
  836. package/views/3d/environment/MarsAtmosphere.js +1 -1
  837. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  838. package/views/3d/environment/Precipitation.js +1 -1
  839. package/views/3d/environment/RainyWeather.js +1 -1
  840. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  841. package/views/3d/environment/SnowyWeather.js +1 -1
  842. package/views/3d/environment/SunLighting.js +1 -1
  843. package/views/3d/environment/SunnyWeather.js +1 -1
  844. package/views/3d/environment/VirtualLighting.js +1 -1
  845. package/views/3d/glTF/internal/Resource.js +1 -1
  846. package/views/3d/glTF/loader.js +1 -1
  847. package/views/3d/interactive/Manipulator3D.js +1 -1
  848. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  849. package/views/3d/interactive/editingTools/ManipulatedObject3DMediaElement.js +1 -1
  850. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  851. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  852. package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
  853. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  854. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  855. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  856. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  857. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  858. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  859. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  860. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  861. package/views/3d/layerViewModuleImportUtils.js +1 -1
  862. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  863. package/views/3d/layers/FlowSubView3D.js +1 -1
  864. package/views/3d/layers/GaussianSplatLayerView3D.js +5 -0
  865. package/views/3d/layers/GraphicsView3D.js +1 -1
  866. package/views/3d/layers/GraphicsView3DDummyLayer.js +1 -1
  867. package/views/3d/layers/I3SMeshView3D.js +1 -1
  868. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  869. package/views/3d/layers/TiledLayerView3D.js +1 -1
  870. package/views/3d/layers/graphics/GraphicState.js +1 -1
  871. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  872. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  873. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  874. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  875. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  876. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  877. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  878. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  879. package/views/3d/layers/graphics/StreamController.js +1 -1
  880. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  881. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  882. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  883. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  884. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  885. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  886. package/views/3d/layers/graphics/pipeline/rendering/LodRenderer.js +1 -1
  887. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
  888. package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
  889. package/views/3d/layers/graphics/pipeline/symbolization/ObjectSymbolLayerRenderer.js +1 -1
  890. package/views/3d/layers/graphics/pipeline/symbolization/primitiveObjectUtils.js +1 -1
  891. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  892. package/views/3d/layers/i3s/I3SGraphicsMap.js +1 -1
  893. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  894. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  895. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  896. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  897. package/views/3d/layers/support/FeatureTile.js +1 -1
  898. package/views/3d/layers/support/FlowTileTree3DDebugger.js +5 -0
  899. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  900. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  901. package/views/3d/state/ViewState.js +1 -1
  902. package/views/3d/state/controllers/AnimationController.js +1 -1
  903. package/views/3d/support/CombinedElevationProvider.js +1 -1
  904. package/views/3d/support/DisplayQualityProfile.js +1 -1
  905. package/views/3d/support/EventedSet.js +1 -1
  906. package/views/3d/support/GraphicsMap.js +1 -1
  907. package/views/3d/support/LimitGraphicsMap.js +1 -1
  908. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  909. package/views/3d/support/buffer/glUtil.js +1 -1
  910. package/views/3d/support/flow/geometryUtils.js +1 -1
  911. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  912. package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
  913. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  914. package/views/3d/terrain/OverlayRenderer.js +1 -1
  915. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  916. package/views/3d/terrain/PatchRenderData.js +1 -1
  917. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  918. package/views/3d/terrain/TerrainAttributes.js +1 -1
  919. package/views/3d/terrain/TerrainAttributesCache.js +1 -1
  920. package/views/3d/terrain/TerrainRenderer.js +1 -1
  921. package/views/3d/terrain/TerrainSurface.js +1 -1
  922. package/views/3d/terrain/TileCompositor.js +1 -1
  923. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  924. package/views/3d/terrain/tileUtils.js +1 -1
  925. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  926. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  927. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  928. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  929. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  930. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  931. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +2 -2
  932. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +2 -2
  933. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +4 -4
  934. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
  935. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  936. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
  937. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +4 -4
  938. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  939. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  940. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  941. package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
  942. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  943. package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
  944. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +3 -3
  945. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  946. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  947. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  948. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  949. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  950. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  951. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  952. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  953. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  954. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  955. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  956. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  957. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  958. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  959. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  960. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  961. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  962. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  963. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  964. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  965. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  966. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  967. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  968. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  969. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  970. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  971. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  972. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  973. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  974. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  975. package/views/3d/webgl-engine/lib/Material.js +1 -1
  976. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  977. package/views/3d/webgl-engine/lib/Program.js +1 -1
  978. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  979. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  980. package/views/3d/webgl-engine/lib/RenderingContextOptions.js +5 -0
  981. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  982. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  983. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  984. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  985. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  986. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  987. package/views/3d/webgl-engine/lib/WebGLLayer.js +1 -1
  988. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  989. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  990. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  991. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  992. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  993. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  994. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  995. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  996. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  997. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  998. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  999. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  1000. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  1001. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  1002. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  1003. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  1004. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  1005. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  1006. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  1007. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  1008. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  1009. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  1010. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  1011. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  1012. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  1013. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  1014. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  1015. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  1016. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  1017. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  1018. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  1019. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  1020. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  1021. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  1022. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  1023. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  1024. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +5 -5
  1025. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  1026. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  1027. package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
  1028. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  1029. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  1030. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  1031. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  1032. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  1033. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  1034. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  1035. package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
  1036. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  1037. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  1038. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  1039. package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
  1040. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  1041. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  1042. package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
  1043. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  1044. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  1045. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +0 -1
  1046. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  1047. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  1048. package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
  1049. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  1050. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  1051. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  1052. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  1053. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  1054. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  1055. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  1056. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
  1057. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  1058. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  1059. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  1060. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  1061. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  1062. package/views/3d/webgl.js +1 -1
  1063. package/views/SceneView.js +1 -1
  1064. package/views/SelectionManager.js +1 -1
  1065. package/views/Theme.js +1 -1
  1066. package/views/VideoView.js +1 -1
  1067. package/views/View.js +1 -1
  1068. package/views/View2D.js +1 -1
  1069. package/views/ViewAnimation.js +1 -1
  1070. package/views/analysis/ElevationProfileResult.js +1 -1
  1071. package/views/draw/DrawAction.js +1 -1
  1072. package/views/draw/DrawGraphicTool.js +1 -1
  1073. package/views/draw/DrawManipulator.js +1 -1
  1074. package/views/draw/DrawOperation.js +1 -1
  1075. package/views/draw/support/Box.js +1 -1
  1076. package/views/draw/support/ConnectedReshapeManager.js +1 -1
  1077. package/views/draw/support/GraphicMover.js +1 -1
  1078. package/views/draw/support/Reshape.js +1 -1
  1079. package/views/interactive/GraphicManipulator.js +1 -1
  1080. package/views/interactive/InteractiveToolBase.js +1 -1
  1081. package/views/interactive/Tooltip.js +1 -1
  1082. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  1083. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  1084. package/views/interactive/snapping/Settings.js +1 -1
  1085. package/views/interactive/snapping/SnappingManager.js +1 -1
  1086. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  1087. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  1088. package/views/layers/LayerView.js +1 -1
  1089. package/views/layers/support/ClipArea.js +1 -1
  1090. package/views/support/GroundViewElevationSampler.js +1 -1
  1091. package/views/support/PixelHighlightOptions.js +1 -1
  1092. package/views/support/Scheduler.js +1 -1
  1093. package/views/support/TileTreeDebugger.js +1 -1
  1094. package/views/support/imageReprojection.js +1 -1
  1095. package/views/support/screenshotUtils.js +1 -1
  1096. package/views/ui/UI.js +1 -1
  1097. package/views/webgl/FramebufferObject.js +1 -1
  1098. package/views/webgl/InstanceCounter.js +1 -1
  1099. package/views/webgl/Parameters.js +1 -1
  1100. package/views/webgl/Program.js +1 -1
  1101. package/views/webgl/ProgramCache.js +1 -1
  1102. package/views/webgl/ProgramTemplate.js +1 -1
  1103. package/views/webgl/RenderingContext.js +1 -1
  1104. package/views/webgl/RenderingContextOptions.js +5 -0
  1105. package/views/webgl/ShaderBuilder.js +1 -1
  1106. package/views/webgl/Texture.js +1 -1
  1107. package/views/webgl/TextureDescriptor.js +1 -1
  1108. package/views/webgl/Util.js +1 -1
  1109. package/views/webgl/VertexArrayObject.js +1 -1
  1110. package/views/webgl/VertexAttributeLayouts.js +5 -0
  1111. package/views/webgl/VertexAttributeLocations.js +5 -0
  1112. package/views/{3d/terrain/RenderOrder.js → webgl/VertexBuffer.js} +1 -0
  1113. package/views/webgl/capabilities/Capabilities.js +1 -1
  1114. package/views/webgl/enums.js +1 -1
  1115. package/views/webgl/heatmapTextureUtils.js +1 -1
  1116. package/views/webgl/rasterUtils.js +1 -1
  1117. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  1118. package/views/webgl/testFloatBufferBlend.js +1 -1
  1119. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  1120. package/views/webgl/textureUtils.js +1 -1
  1121. package/webdoc/GeotriggersInfo.js +1 -1
  1122. package/webdoc/IPSInfo.js +1 -1
  1123. package/webdoc/RangeInfo.js +1 -1
  1124. package/webdoc/Widgets.js +1 -1
  1125. package/webdoc/applicationProperties/Search.js +1 -1
  1126. package/webdoc/applicationProperties/SearchLayer.js +1 -1
  1127. package/webdoc/applicationProperties/SearchLayerField.js +1 -1
  1128. package/webdoc/applicationProperties/SearchTable.js +1 -1
  1129. package/webdoc/applicationProperties/SearchTableField.js +1 -1
  1130. package/webdoc/applicationProperties/Viewing.js +1 -1
  1131. package/webdoc/geotriggersInfo/DeviceLocationFeed.js +1 -1
  1132. package/webdoc/geotriggersInfo/ExpressionInfo.js +1 -1
  1133. package/webdoc/geotriggersInfo/FeatureFenceParameters.js +1 -1
  1134. package/webdoc/geotriggersInfo/FeatureFilter.js +1 -1
  1135. package/webdoc/geotriggersInfo/FeatureLayerSource.js +1 -1
  1136. package/webdoc/geotriggersInfo/Geotrigger.js +1 -1
  1137. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.js +1 -1
  1138. package/webdoc/ips/AppleIPSProperties.js +1 -1
  1139. package/webdoc/ips/Configuration.js +1 -1
  1140. package/webdoc/ips/GNSSProperties.js +1 -1
  1141. package/webdoc/ips/PathSnappingProperties.js +1 -1
  1142. package/webdoc/ips/PositioningService.js +1 -1
  1143. package/webdoc/ips/SmoothingProperties.js +1 -1
  1144. package/webdoc/support/SlideThumbnail.js +1 -1
  1145. package/webdoc/widgets/FloorFilter.js +1 -1
  1146. package/webdoc/widgets/Range.js +1 -1
  1147. package/webdoc/widgets/TimeSlider.js +1 -1
  1148. package/webmap/ApplicationProperties.js +1 -1
  1149. package/webmap/Bookmark.js +1 -1
  1150. package/webmap/InitialViewProperties.js +1 -1
  1151. package/webmap/background/ColorBackground.js +1 -1
  1152. package/webscene/ApplicationProperties.js +1 -1
  1153. package/webscene/Environment.js +1 -1
  1154. package/webscene/InitialViewProperties.js +1 -1
  1155. package/webscene/Presentation.js +1 -1
  1156. package/webscene/Slide.js +1 -1
  1157. package/webscene/SlideLegendInfo.js +1 -1
  1158. package/webscene/SunLighting.js +1 -1
  1159. package/webscene/TransportationNetwork.js +1 -1
  1160. package/webscene/VirtualLighting.js +1 -1
  1161. package/webscene/background/Background.js +1 -1
  1162. package/webscene/support/Description.js +1 -1
  1163. package/webscene/support/FeatureReference.js +1 -1
  1164. package/webscene/support/FeatureReferenceId.js +1 -1
  1165. package/webscene/support/LayerReference.js +1 -1
  1166. package/webscene/support/SlideElements.js +1 -1
  1167. package/webscene/support/SlideEnvironment.js +1 -1
  1168. package/webscene/support/SlideGround.js +1 -1
  1169. package/webscene/support/SlidePopupInfo.js +1 -1
  1170. package/webscene/support/SlideVisibleLayer.js +1 -1
  1171. package/webscene/support/Title.js +1 -1
  1172. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  1173. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  1174. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  1175. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  1176. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  1177. package/widgets/BasemapLayerList.js +1 -1
  1178. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  1179. package/widgets/BatchAttributeForm/templates/ElementTemplateBase.js +1 -1
  1180. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  1181. package/widgets/Bookmarks.js +1 -1
  1182. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  1183. package/widgets/CatalogLayerList.js +1 -1
  1184. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  1185. package/widgets/Daylight/DaylightViewModel.js +1 -1
  1186. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  1187. package/widgets/Directions/DirectionsViewModel.js +1 -1
  1188. package/widgets/Directions/support/directionsUtils.js +1 -1
  1189. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  1190. package/widgets/Editor/EditorViewModel.js +1 -1
  1191. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  1192. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  1193. package/widgets/Editor/Workflow.js +1 -1
  1194. package/widgets/Editor/support/SketchController.js +1 -1
  1195. package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
  1196. package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
  1197. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  1198. package/widgets/Feature/FeatureViewModel.js +1 -1
  1199. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  1200. package/widgets/FeatureForm/Format.js +1 -1
  1201. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  1202. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  1203. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  1204. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  1205. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  1206. package/widgets/FeatureTemplates/TemplateItemGroup.js +1 -1
  1207. package/widgets/Home/HomeViewModel.js +1 -1
  1208. package/widgets/LayerList/LayerListViewModel.js +1 -1
  1209. package/widgets/LayerList/ListItem.js +1 -1
  1210. package/widgets/LayerList/ListItemPanel.js +1 -1
  1211. package/widgets/LayerList.js +1 -1
  1212. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.js +1 -1
  1213. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  1214. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  1215. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  1216. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  1217. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  1218. package/widgets/OrientedImageryViewer/components/NavigationAction.js +1 -1
  1219. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  1220. package/widgets/PanoramicViewer/PanoramicZoomConditions.js +1 -1
  1221. package/widgets/Print/CustomTemplate.js +1 -1
  1222. package/widgets/Print/PrintViewModel.js +1 -1
  1223. package/widgets/Search/SearchSource.js +1 -1
  1224. package/widgets/Search/SearchViewModel.js +1 -1
  1225. package/widgets/Sketch/SketchViewModel.js +1 -1
  1226. package/widgets/Sketch/support/OperationHandle.js +1 -1
  1227. package/widgets/TableList/ListItem.js +1 -1
  1228. package/widgets/TableList/ListItemPanel.js +1 -1
  1229. package/widgets/TableList/TableListViewModel.js +1 -1
  1230. package/widgets/TableList.js +1 -1
  1231. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  1232. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  1233. package/widgets/ValuePicker/ValuePickerViewModel.js +1 -1
  1234. package/widgets/Widget.js +1 -1
  1235. package/widgets/support/AnchorElementViewModel.js +1 -1
  1236. package/widgets/support/GeolocationPositioning.js +1 -1
  1237. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  1238. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  1239. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  1240. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  1241. package/assets/esri/core/workers/chunks/038bd2fec9a91b5a949d.js +0 -1
  1242. package/assets/esri/core/workers/chunks/04798411698a48438bd3.js +0 -1
  1243. package/assets/esri/core/workers/chunks/093de3942e1ead231990.js +0 -1
  1244. package/assets/esri/core/workers/chunks/0997e09fe5b0aba1f804.js +0 -1
  1245. package/assets/esri/core/workers/chunks/0c0080b652cf8afc4e6b.js +0 -1
  1246. package/assets/esri/core/workers/chunks/0f6207d84d15484a3181.js +0 -1
  1247. package/assets/esri/core/workers/chunks/125fdea50620d4db2678.js +0 -1
  1248. package/assets/esri/core/workers/chunks/152128775b4740e779ab.js +0 -1
  1249. package/assets/esri/core/workers/chunks/173c5b8fa1ac7aa6e072.js +0 -1
  1250. package/assets/esri/core/workers/chunks/1dc410bc070cabb7198d.js +0 -1
  1251. package/assets/esri/core/workers/chunks/1e58b1e191498417c21d.js +0 -1
  1252. package/assets/esri/core/workers/chunks/2032b649350a75ba294f.js +0 -1
  1253. package/assets/esri/core/workers/chunks/2105d2cc75e75bf8f1c0.js +0 -1
  1254. package/assets/esri/core/workers/chunks/21246dfe99a4c5906f71.js +0 -1
  1255. package/assets/esri/core/workers/chunks/221748295a5ec633177e.js +0 -1
  1256. package/assets/esri/core/workers/chunks/2a695b50a384c45ace9a.js +0 -1
  1257. package/assets/esri/core/workers/chunks/2ad63b8d6986ac21c398.js +0 -1
  1258. package/assets/esri/core/workers/chunks/2c29f8a708a03cb703ab.js +0 -1
  1259. package/assets/esri/core/workers/chunks/2df9bfddc737d89c94b8.js +0 -1
  1260. package/assets/esri/core/workers/chunks/34ddb8da5c5c8533bd71.js +0 -1
  1261. package/assets/esri/core/workers/chunks/37bfc1a771792b6697fd.js +0 -990
  1262. package/assets/esri/core/workers/chunks/40b0c5368b8322498189.js +0 -1
  1263. package/assets/esri/core/workers/chunks/427deb82fae9c500b375.js +0 -1
  1264. package/assets/esri/core/workers/chunks/4433c195c62a59739c06.js +0 -1
  1265. package/assets/esri/core/workers/chunks/4930bf8f57f481f3a4a3.js +0 -1
  1266. package/assets/esri/core/workers/chunks/4ac6bf9ff1cfbde87c7b.js +0 -1
  1267. package/assets/esri/core/workers/chunks/4bb6148df66e62a5fcf0.js +0 -1
  1268. package/assets/esri/core/workers/chunks/4fb13252a985131d3dae.js +0 -1
  1269. package/assets/esri/core/workers/chunks/528212fb0474bdb2ec92.js +0 -1
  1270. package/assets/esri/core/workers/chunks/5dba8c0c957becedf7f7.js +0 -1
  1271. package/assets/esri/core/workers/chunks/5f995450f720483fcffa.js +0 -1
  1272. package/assets/esri/core/workers/chunks/61aed9a292c981921869.js +0 -1
  1273. package/assets/esri/core/workers/chunks/641ca71d7c1a07bde66a.js +0 -1
  1274. package/assets/esri/core/workers/chunks/6aeff5908c41600a5dfc.js +0 -1
  1275. package/assets/esri/core/workers/chunks/6b6ab092f578b20c8e56.js +0 -1
  1276. package/assets/esri/core/workers/chunks/6c72e2c09ed62cb2fd79.js +0 -1
  1277. package/assets/esri/core/workers/chunks/7099ff8dc699fedea931.js +0 -1
  1278. package/assets/esri/core/workers/chunks/752eabfbed7b8b65cf3f.js +0 -1
  1279. package/assets/esri/core/workers/chunks/7848ea5ca13ec350779a.js +0 -1
  1280. package/assets/esri/core/workers/chunks/7a4ec66a577f7f7996c5.js +0 -1
  1281. package/assets/esri/core/workers/chunks/81be8d23b8dfa4937eaf.js +0 -1
  1282. package/assets/esri/core/workers/chunks/82c10f2418e2f754388c.js +0 -1
  1283. package/assets/esri/core/workers/chunks/831d58235b8b9eb4cdc8.js +0 -1
  1284. package/assets/esri/core/workers/chunks/8d914ea9b18b32fd62b8.js +0 -1
  1285. package/assets/esri/core/workers/chunks/90a0c1c5c851cc9b6d6d.js +0 -1
  1286. package/assets/esri/core/workers/chunks/969a9edba4be8dcbcedd.js +0 -1
  1287. package/assets/esri/core/workers/chunks/9742804f8ee350bf8052.js +0 -1
  1288. package/assets/esri/core/workers/chunks/97a56b058f8472fec1b2.js +0 -1
  1289. package/assets/esri/core/workers/chunks/9a54c96b48e94d816881.js +0 -1
  1290. package/assets/esri/core/workers/chunks/a2bfb7b2f3f909dc5e59.js +0 -1
  1291. package/assets/esri/core/workers/chunks/a53f2529b7067c28f320.js +0 -1
  1292. package/assets/esri/core/workers/chunks/a6b6915b7321f77f765f.js +0 -1
  1293. package/assets/esri/core/workers/chunks/aa12ba96fb8c91105473.js +0 -1
  1294. package/assets/esri/core/workers/chunks/ab73df4f809430db6249.js +0 -1
  1295. package/assets/esri/core/workers/chunks/acb95ae6203f708d71b4.js +0 -1
  1296. package/assets/esri/core/workers/chunks/ae7f1499912c86973921.js +0 -1
  1297. package/assets/esri/core/workers/chunks/afb7e346779adefa4b05.js +0 -1
  1298. package/assets/esri/core/workers/chunks/b28855db6a30d4d4f348.js +0 -1
  1299. package/assets/esri/core/workers/chunks/b4bbd38df56e57783cc0.js +0 -1
  1300. package/assets/esri/core/workers/chunks/b50841f898d4eb420b73.js +0 -1
  1301. package/assets/esri/core/workers/chunks/b98a049561b12a0555b7.js +0 -1
  1302. package/assets/esri/core/workers/chunks/bf60d4da0dff1e14da8e.js +0 -1
  1303. package/assets/esri/core/workers/chunks/c0718a0461839be41a2a.js +0 -1
  1304. package/assets/esri/core/workers/chunks/c0aee315b6218d6456cd.js +0 -1
  1305. package/assets/esri/core/workers/chunks/c0ec1600a86bb9a848d4.js +0 -1
  1306. package/assets/esri/core/workers/chunks/c9b11c7170c99f9e0e93.js +0 -1
  1307. package/assets/esri/core/workers/chunks/ca88859fc69fcb4568c0.js +0 -1
  1308. package/assets/esri/core/workers/chunks/cc3ca1729af33688c1e3.js +0 -1
  1309. package/assets/esri/core/workers/chunks/cd150c7e1516134c7437.js +0 -1
  1310. package/assets/esri/core/workers/chunks/cde79c3644166d4798a8.js +0 -1
  1311. package/assets/esri/core/workers/chunks/d092a4b8fe3d37a6333d.js +0 -1
  1312. package/assets/esri/core/workers/chunks/d4cadde4a9cbfe2c51d8.js +0 -1
  1313. package/assets/esri/core/workers/chunks/d6a188a7d55db69ba30b.js +0 -1
  1314. package/assets/esri/core/workers/chunks/d6b2ab614f308db50c4a.js +0 -346
  1315. package/assets/esri/core/workers/chunks/d7172dc531b4548a8c60.js +0 -1
  1316. package/assets/esri/core/workers/chunks/d88935ae5669d14c5b29.js +0 -1
  1317. package/assets/esri/core/workers/chunks/d9f206e7ac1fad940be7.js +0 -2
  1318. package/assets/esri/core/workers/chunks/dab82564928265b9f22d.js +0 -1
  1319. package/assets/esri/core/workers/chunks/e7cbd1b5e4cb32851a5c.js +0 -1
  1320. package/assets/esri/core/workers/chunks/e82b1f91465d569012c4.js +0 -1
  1321. package/assets/esri/core/workers/chunks/e892ed8b0b990d7eba28.js +0 -1
  1322. package/assets/esri/core/workers/chunks/e897c5ce83db8a71b0a2.js +0 -1
  1323. package/assets/esri/core/workers/chunks/eec36628e638e244f452.js +0 -1
  1324. package/assets/esri/core/workers/chunks/ef3a11f7e047cff6183c.js +0 -1
  1325. package/assets/esri/core/workers/chunks/efec0f496491a0647051.js +0 -1
  1326. package/assets/esri/core/workers/chunks/f01a939af200616eb169.js +0 -1
  1327. package/assets/esri/core/workers/chunks/f19426eb53d8430ded51.js +0 -1
  1328. package/assets/esri/core/workers/chunks/f255b2232f6f049d462d.js +0 -1
  1329. package/assets/esri/core/workers/chunks/f3358b19af0f03f16543.js +0 -1
  1330. package/assets/esri/core/workers/chunks/f4c38a9c01c29b5a6244.js +0 -1
  1331. package/assets/esri/core/workers/chunks/f6c1854f36b029fa6c37.js +0 -1
  1332. package/assets/esri/core/workers/chunks/fa01d418237d7fa67efc.js +0 -1
  1333. package/assets/esri/core/workers/chunks/fe6fa1f2c2d54d41645e.js +0 -1
  1334. package/assets/esri/core/workers/chunks/ff736cb5a9fd18368244.js +0 -1
  1335. package/views/2d/engine/webgl/DefaultVertexAttributeLayouts.js +0 -5
  1336. package/views/2d/engine/webgl/shaderGraph/typed/TypedVertexArrayObject.js +0 -5
  1337. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +0 -5
  1338. /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{disposeMaybe as t}from"../../../../../../core/maybe.js";import e from"../../VertexStream.js";import{FramebufferObject as s}from"../../../../../webgl/FramebufferObject.js";import{TextureDescriptor as i}from"../../../../../webgl/TextureDescriptor.js";const r=5,o=[1,0],n=[0,1],a=[1,.8,.6,.4,.2],u=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];class l{constructor(){this._intensityFBO=null,this._compositeFBO=null,this._mipsFBOs=new Array(r),this._nMips=r,this._kernelSizeArray=[3,5,7,9,11],this._size=[0,0],this._programDesc={luminosityHighPass:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/luminosityHighPass",attributes:new Map([["a_position",0]])},gaussianBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/gaussianBlur",attributes:new Map([["a_position",0]])},composite:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/composite",attributes:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",attributes:new Map([["a_position",0]])}}}dispose(){if(this._quad=t(this._quad),this._intensityFBO=t(this._intensityFBO),this._compositeFBO=t(this._compositeFBO),this._mipsFBOs){for(let t=0;t<this._nMips;t++)this._mipsFBOs[t]&&(this._mipsFBOs[t].horizontal.dispose(),this._mipsFBOs[t].vertical.dispose());this._mipsFBOs=null}}draw(t,s,i){const{width:l,height:m}=s,{context:h,painter:p}=t,{materialManager:c}=p,_=h.gl,d=this._programDesc,{strength:f,radius:b,threshold:F}=i;this._quad||(this._quad=new e(h,[-1,-1,1,-1,-1,1,1,1])),this._createOrResizeResources(t,l,m),h.setStencilTestEnabled(!1),h.setBlendingEnabled(!0),h.setBlendFunction(1,771),h.setStencilWriteMask(0);const B=this._quad;B.bind(),h.bindFramebuffer(this._intensityFBO);const O=c.getProgram(d.luminosityHighPass);h.useProgram(O),h.bindTexture(s.colorTexture,0),O.setUniform1i("u_texture",0),O.setUniform3fv("u_defaultColor",[0,0,0]),O.setUniform1f("u_defaultOpacity",0),O.setUniform1f("u_luminosityThreshold",F),O.setUniform1f("u_smoothWidth",.01);const g=[Math.round(l/2),Math.round(m/2)];h.setViewport(0,0,g[0],g[1]),h.setClearColor(0,0,0,0),h.clear(_.COLOR_BUFFER_BIT),B.draw(),h.setBlendingEnabled(!1);let x=this._intensityFBO.colorTexture;for(let e=0;e<this._nMips;e++){const t=c.getProgram(d.gaussianBlur,[{name:"radius",value:this._kernelSizeArray[e]}]);h.useProgram(t),h.bindTexture(x,e+1),t.setUniform1i("u_colorTexture",e+1),t.setUniform2fv("u_texSize",g),t.setUniform2fv("u_direction",o),h.setViewport(0,0,g[0],g[1]);const s=this._mipsFBOs[e];h.bindFramebuffer(s.horizontal),B.draw(),x=s.horizontal.colorTexture,h.bindFramebuffer(s.vertical),h.bindTexture(x,e+1),t.setUniform2fv("u_direction",n),B.draw(),x=s.vertical.colorTexture,g[0]=Math.round(g[0]/2),g[1]=Math.round(g[1]/2)}h.setViewport(0,0,l,m);const T=c.getProgram(d.composite,[{name:"nummips",value:r}]);h.bindFramebuffer(this._compositeFBO),h.useProgram(T),T.setUniform1f("u_bloomStrength",f),T.setUniform1f("u_bloomRadius",b),T.setUniform1fv("u_bloomFactors",a),T.setUniform3fv("u_bloomTintColors",u),h.bindTexture(this._mipsFBOs[0].vertical.colorTexture,1),T.setUniform1i("u_blurTexture1",1),h.bindTexture(this._mipsFBOs[1].vertical.colorTexture,2),T.setUniform1i("u_blurTexture2",2),h.bindTexture(this._mipsFBOs[2].vertical.colorTexture,3),T.setUniform1i("u_blurTexture3",3),h.bindTexture(this._mipsFBOs[3].vertical.colorTexture,4),T.setUniform1i("u_blurTexture4",4),h.bindTexture(this._mipsFBOs[4].vertical.colorTexture,5),T.setUniform1i("u_blurTexture5",5),B.draw(),h.bindFramebuffer(s),h.setBlendingEnabled(!0);const w=c.getProgram(d.blit);h.useProgram(w),h.bindTexture(this._compositeFBO.colorTexture,6),w.setUniform1i("u_texture",6),h.setBlendFunction(1,1),B.draw(),B.unbind(),h.setBlendFunction(1,771),h.setStencilTestEnabled(!0)}_createOrResizeResources(t,e,r){const{context:o}=t;if(this._compositeFBO&&this._size[0]===e&&this._size[1]===r)return;this._size[0]=e,this._size[1]=r;const n=[Math.round(e/2),Math.round(r/2)];if(this._compositeFBO)this._compositeFBO.resize(e,r);else{const t=new i(e,r);t.internalFormat=6408,t.wrapMode=33071,this._compositeFBO=new s(o,t)}if(this._intensityFBO)this._intensityFBO.resize(n[0],n[1]);else{const t=new i(n[0],n[1]);t.internalFormat=6408,t.wrapMode=33071,this._intensityFBO=new s(o,t)}for(let a=0;a<this._nMips;a++){if(this._mipsFBOs[a])this._mipsFBOs[a].horizontal.resize(n[0],n[1]),this._mipsFBOs[a].vertical.resize(n[0],n[1]);else{const t=new i(n[0],n[1]);t.internalFormat=6408,t.wrapMode=33071,this._mipsFBOs[a]={horizontal:new s(o,t),vertical:new s(o,t)}}n[0]=Math.round(n[0]/2),n[1]=Math.round(n[1]/2)}}}export{l as Bloom};
5
+ import{disposeMaybe as t}from"../../../../../../core/maybe.js";import e from"../../VertexStream.js";import{FramebufferObject as s}from"../../../../../webgl/FramebufferObject.js";import{TextureDescriptor as i}from"../../../../../webgl/TextureDescriptor.js";const o=5,r=[1,0],n=[0,1],a=[1,.8,.6,.4,.2],u=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];class l{constructor(){this._intensityFBO=null,this._compositeFBO=null,this._mipsFBOs=new Array(o),this._nMips=o,this._kernelSizeArray=[3,5,7,9,11],this._size=[0,0],this._programDesc={luminosityHighPass:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/luminosityHighPass",locations:new Map([["a_position",0]])},gaussianBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/gaussianBlur",locations:new Map([["a_position",0]])},composite:{vsPath:"post-processing/pp",fsPath:"post-processing/bloom/composite",locations:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",locations:new Map([["a_position",0]])}}}dispose(){if(this._quad=t(this._quad),this._intensityFBO=t(this._intensityFBO),this._compositeFBO=t(this._compositeFBO),this._mipsFBOs){for(let t=0;t<this._nMips;t++)this._mipsFBOs[t]&&(this._mipsFBOs[t].horizontal.dispose(),this._mipsFBOs[t].vertical.dispose());this._mipsFBOs=null}}draw(t,s,i){const{width:l,height:m}=s,{context:h,painter:c}=t,{materialManager:p}=c,_=h.gl,d=this._programDesc,{strength:f,radius:F,threshold:b}=i;this._quad||(this._quad=new e(h,[-1,-1,1,-1,-1,1,1,1])),this._createOrResizeResources(t,l,m),h.setStencilTestEnabled(!1),h.setBlendingEnabled(!0),h.setBlendFunction(1,771),h.setStencilWriteMask(0);const B=this._quad;B.bind(),h.bindFramebuffer(this._intensityFBO);const O=p.getProgram(d.luminosityHighPass);h.useProgram(O),h.bindTexture(s.colorTexture,0),O.setUniform1i("u_texture",0),O.setUniform3fv("u_defaultColor",[0,0,0]),O.setUniform1f("u_defaultOpacity",0),O.setUniform1f("u_luminosityThreshold",b),O.setUniform1f("u_smoothWidth",.01);const g=[Math.round(l/2),Math.round(m/2)];h.setViewport(0,0,g[0],g[1]),h.setClearColor(0,0,0,0),h.clear(_.COLOR_BUFFER_BIT),B.draw(),h.setBlendingEnabled(!1);let x=this._intensityFBO.colorTexture;for(let e=0;e<this._nMips;e++){const t=p.getProgram(d.gaussianBlur,[{name:"radius",value:this._kernelSizeArray[e]}]);h.useProgram(t),h.bindTexture(x,e+1),t.setUniform1i("u_colorTexture",e+1),t.setUniform2fv("u_texSize",g),t.setUniform2fv("u_direction",r),h.setViewport(0,0,g[0],g[1]);const s=this._mipsFBOs[e];h.bindFramebuffer(s.horizontal),B.draw(),x=s.horizontal.colorTexture,h.bindFramebuffer(s.vertical),h.bindTexture(x,e+1),t.setUniform2fv("u_direction",n),B.draw(),x=s.vertical.colorTexture,g[0]=Math.round(g[0]/2),g[1]=Math.round(g[1]/2)}h.setViewport(0,0,l,m);const T=p.getProgram(d.composite,[{name:"nummips",value:o}]);h.bindFramebuffer(this._compositeFBO),h.useProgram(T),T.setUniform1f("u_bloomStrength",f),T.setUniform1f("u_bloomRadius",F),T.setUniform1fv("u_bloomFactors",a),T.setUniform3fv("u_bloomTintColors",u),h.bindTexture(this._mipsFBOs[0].vertical.colorTexture,1),T.setUniform1i("u_blurTexture1",1),h.bindTexture(this._mipsFBOs[1].vertical.colorTexture,2),T.setUniform1i("u_blurTexture2",2),h.bindTexture(this._mipsFBOs[2].vertical.colorTexture,3),T.setUniform1i("u_blurTexture3",3),h.bindTexture(this._mipsFBOs[3].vertical.colorTexture,4),T.setUniform1i("u_blurTexture4",4),h.bindTexture(this._mipsFBOs[4].vertical.colorTexture,5),T.setUniform1i("u_blurTexture5",5),B.draw(),h.bindFramebuffer(s),h.setBlendingEnabled(!0);const w=p.getProgram(d.blit);h.useProgram(w),h.bindTexture(this._compositeFBO.colorTexture,6),w.setUniform1i("u_texture",6),h.setBlendFunction(1,1),B.draw(),B.unbind(),h.setBlendFunction(1,771),h.setStencilTestEnabled(!0)}_createOrResizeResources(t,e,o){const{context:r}=t;if(this._compositeFBO&&this._size[0]===e&&this._size[1]===o)return;this._size[0]=e,this._size[1]=o;const n=[Math.round(e/2),Math.round(o/2)];if(this._compositeFBO)this._compositeFBO.resize(e,o);else{const t=new i(e,o);t.internalFormat=6408,t.wrapMode=33071,this._compositeFBO=new s(r,t)}if(this._intensityFBO)this._intensityFBO.resize(n[0],n[1]);else{const t=new i(n[0],n[1]);t.internalFormat=6408,t.wrapMode=33071,this._intensityFBO=new s(r,t)}for(let a=0;a<this._nMips;a++){if(this._mipsFBOs[a])this._mipsFBOs[a].horizontal.resize(n[0],n[1]),this._mipsFBOs[a].vertical.resize(n[0],n[1]);else{const t=new i(n[0],n[1]);t.internalFormat=6408,t.wrapMode=33071,this._mipsFBOs[a]={horizontal:new s(r,t),vertical:new s(r,t)}}n[0]=Math.round(n[0]/2),n[1]=Math.round(n[1]/2)}}}export{l as Bloom};
@@ -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 e from"../../VertexStream.js";import{FramebufferObject as t}from"../../../../../webgl/FramebufferObject.js";import{TextureDescriptor as s}from"../../../../../webgl/TextureDescriptor.js";const r=[1,0],i=[0,1];class a{constructor(){this._blurFBO=null,this._size=[0,0],this._programDesc={gaussianBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/gaussianBlur",attributes:new Map([["a_position",0]])},radialBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/radial-blur",attributes:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",attributes:new Map([["a_position",0]])}}}dispose(){this._blurFBO&&(this._blurFBO.dispose(),this._blurFBO=null)}draw(t,s,r){const{context:i}=t,{type:a,radius:n}=r;if(0===n)return;this._createOrResizeResources(t),this._quad||(this._quad=new e(i,[-1,-1,1,-1,-1,1,1,1]));const o=this._quad;o.bind(),"blur"===a?this._gaussianBlur(t,s,n):this._radialBlur(t,s),o.unbind()}_gaussianBlur(e,t,s){const{context:a,state:n,painter:o,pixelRatio:u}=e,{size:l}=n,{materialManager:d}=o,b=this._programDesc,c=this._quad,p=[Math.round(u*l[0]),Math.round(u*l[1])],h=this._blurFBO,_=d.getProgram(b.gaussianBlur,[{name:"radius",value:Math.ceil(s)}]);a.useProgram(_),a.setBlendingEnabled(!1),a.bindFramebuffer(h),a.bindTexture(t.colorTexture,4),_.setUniform1i("u_colorTexture",4),_.setUniform2fv("u_texSize",p),_.setUniform2fv("u_direction",r),_.setUniform1f("u_sigma",s),c.draw(),a.bindFramebuffer(t),a.setStencilWriteMask(0),a.setStencilTestEnabled(!1),a.setDepthWriteEnabled(!1),a.setDepthTestEnabled(!1),a.bindTexture(h?.colorTexture,5),_.setUniform1i("u_colorTexture",5),_.setUniform2fv("u_direction",i),c.draw(),a.setBlendingEnabled(!0),a.setBlendFunction(1,771),a.setStencilTestEnabled(!0)}_radialBlur(e,t){const{context:s,painter:r}=e,{materialManager:i}=r,a=this._programDesc,n=this._quad,o=this._blurFBO;s.bindFramebuffer(o);const u=i.getProgram(a.radialBlur);s.useProgram(u),s.setBlendingEnabled(!1),s.bindTexture(t.colorTexture,4),u.setUniform1i("u_colorTexture",4),n.draw(),s.bindFramebuffer(t),s.setStencilWriteMask(0),s.setStencilTestEnabled(!1),s.setDepthWriteEnabled(!1),s.setDepthTestEnabled(!1),s.setBlendingEnabled(!0);const l=i.getProgram(a.blit);s.useProgram(l),s.bindTexture(o?.colorTexture,5),l.setUniform1i("u_texture",5),s.setBlendFunction(1,771),n.draw()}_createOrResizeResources(e){const{context:r,state:i,pixelRatio:a}=e,{size:n}=i,o=Math.round(a*n[0]),u=Math.round(a*n[1]);if(!this._blurFBO||this._size[0]!==o||this._size[1]!==u)if(this._size[0]=o,this._size[1]=u,this._blurFBO)this._blurFBO.resize(o,u);else{const e=new s(o,u);e.internalFormat=6408,e.wrapMode=33071,this._blurFBO=new t(r,e)}}}export{a as Blur};
5
+ import e from"../../VertexStream.js";import{FramebufferObject as t}from"../../../../../webgl/FramebufferObject.js";import{TextureDescriptor as s}from"../../../../../webgl/TextureDescriptor.js";const r=[1,0],i=[0,1];class a{constructor(){this._blurFBO=null,this._size=[0,0],this._programDesc={gaussianBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/gaussianBlur",locations:new Map([["a_position",0]])},radialBlur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/radial-blur",locations:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",locations:new Map([["a_position",0]])}}}dispose(){this._blurFBO&&(this._blurFBO.dispose(),this._blurFBO=null)}draw(t,s,r){const{context:i}=t,{type:a,radius:n}=r;if(0===n)return;this._createOrResizeResources(t),this._quad||(this._quad=new e(i,[-1,-1,1,-1,-1,1,1,1]));const o=this._quad;o.bind(),"blur"===a?this._gaussianBlur(t,s,n):this._radialBlur(t,s),o.unbind()}_gaussianBlur(e,t,s){const{context:a,state:n,painter:o,pixelRatio:l}=e,{size:u}=n,{materialManager:d}=o,c=this._programDesc,b=this._quad,p=[Math.round(l*u[0]),Math.round(l*u[1])],h=this._blurFBO,_=d.getProgram(c.gaussianBlur,[{name:"radius",value:Math.ceil(s)}]);a.useProgram(_),a.setBlendingEnabled(!1),a.bindFramebuffer(h),a.bindTexture(t.colorTexture,4),_.setUniform1i("u_colorTexture",4),_.setUniform2fv("u_texSize",p),_.setUniform2fv("u_direction",r),_.setUniform1f("u_sigma",s),b.draw(),a.bindFramebuffer(t),a.setStencilWriteMask(0),a.setStencilTestEnabled(!1),a.setDepthWriteEnabled(!1),a.setDepthTestEnabled(!1),a.bindTexture(h?.colorTexture,5),_.setUniform1i("u_colorTexture",5),_.setUniform2fv("u_direction",i),b.draw(),a.setBlendingEnabled(!0),a.setBlendFunction(1,771),a.setStencilTestEnabled(!0)}_radialBlur(e,t){const{context:s,painter:r}=e,{materialManager:i}=r,a=this._programDesc,n=this._quad,o=this._blurFBO;s.bindFramebuffer(o);const l=i.getProgram(a.radialBlur);s.useProgram(l),s.setBlendingEnabled(!1),s.bindTexture(t.colorTexture,4),l.setUniform1i("u_colorTexture",4),n.draw(),s.bindFramebuffer(t),s.setStencilWriteMask(0),s.setStencilTestEnabled(!1),s.setDepthWriteEnabled(!1),s.setDepthTestEnabled(!1),s.setBlendingEnabled(!0);const u=i.getProgram(a.blit);s.useProgram(u),s.bindTexture(o?.colorTexture,5),u.setUniform1i("u_texture",5),s.setBlendFunction(1,771),n.draw()}_createOrResizeResources(e){const{context:r,state:i,pixelRatio:a}=e,{size:n}=i,o=Math.round(a*n[0]),l=Math.round(a*n[1]);if(!this._blurFBO||this._size[0]!==o||this._size[1]!==l)if(this._size[0]=o,this._size[1]=l,this._blurFBO)this._blurFBO.resize(o,l);else{const e=new s(o,l);e.internalFormat=6408,e.wrapMode=33071,this._blurFBO=new t(r,e)}}}export{a as Blur};
@@ -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{disposeMaybe as e}from"../../../../../../core/maybe.js";import t from"../../VertexStream.js";import{Texture as r}from"../../../../../webgl/Texture.js";import{TextureDescriptor as s}from"../../../../../webgl/TextureDescriptor.js";class i{constructor(){this._layerFBOTexture=null,this._size=[0,0],this._programDesc={vsPath:"post-processing/pp",fsPath:"post-processing/filterEffect",attributes:new Map([["a_position",0]])}}dispose(){this._layerFBOTexture=e(this._layerFBOTexture)}draw(e,t,r){const{width:s,height:i}=t;this._createOrResizeResources(e,s,i);const{context:o,painter:a}=e,{materialManager:n}=a,c=this._programDesc,l=this._quad,u=r.colorMatrix;l.bind();const h=this._layerFBOTexture;o.bindFramebuffer(t),t.copyToTexture(0,0,s,i,0,0,h),o.setBlendingEnabled(!1),o.setStencilTestEnabled(!1);const _=n.getProgram(c);o.useProgram(_),o.bindTexture(h,2),_.setUniformMatrix4fv("u_coefficients",u),_.setUniform1i("u_colorTexture",2),l.draw(),o.setBlendingEnabled(!0),o.setBlendFunction(1,771),o.setStencilTestEnabled(!0),l.unbind()}_createOrResizeResources(e,i,o){const{context:a}=e;if(!this._layerFBOTexture||this._size[0]!==i||this._size[1]!==o){if(this._size[0]=i,this._size[1]=o,this._layerFBOTexture)this._layerFBOTexture.resize(i,o);else{const e=new s(i,o);e.internalFormat=6408,e.wrapMode=33071,this._layerFBOTexture=new r(a,e)}this._quad||(this._quad=new t(a,[-1,-1,1,-1,-1,1,1,1]))}}}export{i as Colorize};
5
+ import{disposeMaybe as e}from"../../../../../../core/maybe.js";import t from"../../VertexStream.js";import{Texture as r}from"../../../../../webgl/Texture.js";import{TextureDescriptor as s}from"../../../../../webgl/TextureDescriptor.js";class i{constructor(){this._layerFBOTexture=null,this._size=[0,0],this._programDesc={vsPath:"post-processing/pp",fsPath:"post-processing/filterEffect",locations:new Map([["a_position",0]])}}dispose(){this._layerFBOTexture=e(this._layerFBOTexture)}draw(e,t,r){const{width:s,height:i}=t;this._createOrResizeResources(e,s,i);const{context:o,painter:a}=e,{materialManager:n}=a,c=this._programDesc,l=this._quad,u=r.colorMatrix;l.bind();const h=this._layerFBOTexture;o.bindFramebuffer(t),t.copyToTexture(0,0,s,i,0,0,h),o.setBlendingEnabled(!1),o.setStencilTestEnabled(!1);const _=n.getProgram(c);o.useProgram(_),o.bindTexture(h,2),_.setUniformMatrix4fv("u_coefficients",u),_.setUniform1i("u_colorTexture",2),l.draw(),o.setBlendingEnabled(!0),o.setBlendFunction(1,771),o.setStencilTestEnabled(!0),l.unbind()}_createOrResizeResources(e,i,o){const{context:a}=e;if(!this._layerFBOTexture||this._size[0]!==i||this._size[1]!==o){if(this._size[0]=i,this._size[1]=o,this._layerFBOTexture)this._layerFBOTexture.resize(i,o);else{const e=new s(i,o);e.internalFormat=6408,e.wrapMode=33071,this._layerFBOTexture=new r(a,e)}this._quad||(this._quad=new t(a,[-1,-1,1,-1,-1,1,1,1]))}}}export{i as Colorize};
@@ -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{disposeMaybe as e}from"../../../../../../core/maybe.js";import{pt2px as t}from"../../../../../../core/screenUtils.js";import r from"../../VertexStream.js";import{FramebufferObject as s}from"../../../../../webgl/FramebufferObject.js";import{Texture as i}from"../../../../../webgl/Texture.js";import{TextureDescriptor as o}from"../../../../../webgl/TextureDescriptor.js";const a=[1,0],n=[0,1];class l{constructor(){this._layerFBOTexture=null,this._horizontalBlurFBO=null,this._verticalBlurFBO=null,this._size=[0,0],this._quad=null,this._programDesc={blur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/gaussianBlur",attributes:new Map([["a_position",0]])},composite:{vsPath:"post-processing/pp",fsPath:"post-processing/drop-shadow/composite",attributes:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",attributes:new Map([["a_position",0]])}}}dispose(){this._layerFBOTexture=e(this._layerFBOTexture),this._horizontalBlurFBO=e(this._horizontalBlurFBO),this._verticalBlurFBO=e(this._verticalBlurFBO)}draw(e,s,i){const{context:o,state:l,painter:u}=e,{materialManager:h}=u,c=this._programDesc,p=s.width,_=s.height,f=[Math.round(p),Math.round(_)],{blurRadius:m,offsetX:d,offsetY:B,color:b}=i,F=[t(d),t(B)];this._createOrResizeResources(e,p,_,f);const x=this._horizontalBlurFBO,w=this._verticalBlurFBO;o.setStencilWriteMask(0),o.setStencilTestEnabled(!1),o.setDepthWriteEnabled(!1),o.setDepthTestEnabled(!1);const O=this._layerFBOTexture;s.copyToTexture(0,0,p,_,0,0,O),this._quad||(this._quad=new r(o,[-1,-1,1,-1,-1,1,1,1])),o.setViewport(0,0,f[0],f[1]);const T=this._quad;T.bind(),o.setBlendingEnabled(!1);const g=h.getProgram(c.blur,[{name:"radius",value:Math.ceil(m)}]);o.useProgram(g),o.bindFramebuffer(x),o.bindTexture(s.colorTexture,4),g.setUniform1i("u_colorTexture",4),g.setUniform2fv("u_texSize",f),g.setUniform2fv("u_direction",a),g.setUniform1f("u_sigma",m),T.draw(),o.bindFramebuffer(w),o.bindTexture(x?.colorTexture,5),g.setUniform1i("u_colorTexture",5),g.setUniform2fv("u_direction",n),T.draw(),o.bindFramebuffer(s),o.setViewport(0,0,p,_);const z=h.getProgram(c.composite);o.useProgram(z),o.bindTexture(w?.colorTexture,2),z.setUniform1i("u_blurTexture",2),o.bindTexture(O,3),z.setUniform1i("u_layerFBOTexture",3),z.setUniform4fv("u_shadowColor",[b[3]*(b[0]/255),b[3]*(b[1]/255),b[3]*(b[2]/255),b[3]]),z.setUniformMatrix3fv("u_displayViewMat3",l.displayMat3),z.setUniform2fv("u_shadowOffset",F),T.draw(),o.setBlendingEnabled(!0),o.setStencilTestEnabled(!0),o.setBlendFunction(1,771),T.unbind()}_createOrResizeResources(e,t,r,a){const{context:n}=e;if(!this._horizontalBlurFBO||this._size[0]!==t||this._size[1]!==r){if(this._size[0]=t,this._size[1]=r,this._horizontalBlurFBO)this._horizontalBlurFBO.resize(a[0],a[1]);else{const e=new o(a[0],a[1]);e.internalFormat=6408,e.wrapMode=33071,this._horizontalBlurFBO=new s(n,e)}if(this._verticalBlurFBO)this._verticalBlurFBO.resize(a[0],a[1]);else{const e=new o(a[0],a[1]);e.internalFormat=6408,e.wrapMode=33071,this._verticalBlurFBO=new s(n,e)}if(this._layerFBOTexture)this._layerFBOTexture.resize(t,r);else{const e=new o(t,r);e.internalFormat=6408,e.wrapMode=33071,this._layerFBOTexture=new i(n,e)}}}}export{l as DropShadow};
5
+ import{disposeMaybe as e}from"../../../../../../core/maybe.js";import{pt2px as t}from"../../../../../../core/screenUtils.js";import r from"../../VertexStream.js";import{FramebufferObject as s}from"../../../../../webgl/FramebufferObject.js";import{Texture as i}from"../../../../../webgl/Texture.js";import{TextureDescriptor as o}from"../../../../../webgl/TextureDescriptor.js";const a=[1,0],n=[0,1];class l{constructor(){this._layerFBOTexture=null,this._horizontalBlurFBO=null,this._verticalBlurFBO=null,this._size=[0,0],this._quad=null,this._programDesc={blur:{vsPath:"post-processing/pp",fsPath:"post-processing/blur/gaussianBlur",locations:new Map([["a_position",0]])},composite:{vsPath:"post-processing/pp",fsPath:"post-processing/drop-shadow/composite",locations:new Map([["a_position",0]])},blit:{vsPath:"post-processing/pp",fsPath:"post-processing/blit",locations:new Map([["a_position",0]])}}}dispose(){this._layerFBOTexture=e(this._layerFBOTexture),this._horizontalBlurFBO=e(this._horizontalBlurFBO),this._verticalBlurFBO=e(this._verticalBlurFBO)}draw(e,s,i){const{context:o,state:l,painter:u}=e,{materialManager:c}=u,h=this._programDesc,p=s.width,_=s.height,f=[Math.round(p),Math.round(_)],{blurRadius:m,offsetX:d,offsetY:B,color:b}=i,F=[t(d),t(B)];this._createOrResizeResources(e,p,_,f);const x=this._horizontalBlurFBO,w=this._verticalBlurFBO;o.setStencilWriteMask(0),o.setStencilTestEnabled(!1),o.setDepthWriteEnabled(!1),o.setDepthTestEnabled(!1);const O=this._layerFBOTexture;s.copyToTexture(0,0,p,_,0,0,O),this._quad||(this._quad=new r(o,[-1,-1,1,-1,-1,1,1,1])),o.setViewport(0,0,f[0],f[1]);const T=this._quad;T.bind(),o.setBlendingEnabled(!1);const g=c.getProgram(h.blur,[{name:"radius",value:Math.ceil(m)}]);o.useProgram(g),o.bindFramebuffer(x),o.bindTexture(s.colorTexture,4),g.setUniform1i("u_colorTexture",4),g.setUniform2fv("u_texSize",f),g.setUniform2fv("u_direction",a),g.setUniform1f("u_sigma",m),T.draw(),o.bindFramebuffer(w),o.bindTexture(x?.colorTexture,5),g.setUniform1i("u_colorTexture",5),g.setUniform2fv("u_direction",n),T.draw(),o.bindFramebuffer(s),o.setViewport(0,0,p,_);const z=c.getProgram(h.composite);o.useProgram(z),o.bindTexture(w?.colorTexture,2),z.setUniform1i("u_blurTexture",2),o.bindTexture(O,3),z.setUniform1i("u_layerFBOTexture",3),z.setUniform4fv("u_shadowColor",[b[3]*(b[0]/255),b[3]*(b[1]/255),b[3]*(b[2]/255),b[3]]),z.setUniformMatrix3fv("u_displayViewMat3",l.displayMat3),z.setUniform2fv("u_shadowOffset",F),T.draw(),o.setBlendingEnabled(!0),o.setStencilTestEnabled(!0),o.setBlendFunction(1,771),T.unbind()}_createOrResizeResources(e,t,r,a){const{context:n}=e;if(!this._horizontalBlurFBO||this._size[0]!==t||this._size[1]!==r){if(this._size[0]=t,this._size[1]=r,this._horizontalBlurFBO)this._horizontalBlurFBO.resize(a[0],a[1]);else{const e=new o(a[0],a[1]);e.internalFormat=6408,e.wrapMode=33071,this._horizontalBlurFBO=new s(n,e)}if(this._verticalBlurFBO)this._verticalBlurFBO.resize(a[0],a[1]);else{const e=new o(a[0],a[1]);e.internalFormat=6408,e.wrapMode=33071,this._verticalBlurFBO=new s(n,e)}if(this._layerFBOTexture)this._layerFBOTexture.resize(t,r);else{const e=new o(t,r);e.internalFormat=6408,e.wrapMode=33071,this._layerFBOTexture=new i(n,e)}}}}export{l as DropShadow};
@@ -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{BufferObject as r}from"../../../../webgl/BufferObject.js";import"../../../../webgl/FramebufferObject.js";import"../../../../webgl/Program.js";import"../../../../../core/has.js";import"../../../../webgl/Renderbuffer.js";import"../../../../webgl/Texture.js";import{VertexArrayObject as e}from"../../../../webgl/VertexArrayObject.js";import{dataSizeInBytes as t}from"./definitions.js";class s{constructor(e,t){this._boundPart=null,this.vertexBuffers=new Map,this.indexBuffers=new Map,this.groups=[];for(const s in t.vertex){const{data:o,attributes:i}=t.vertex[s],n=r.createVertex(e,35044,o);this.vertexBuffers.set(s,{buffer:n,attributes:i})}for(const s in t.index){const{data:o}=t.index[s],i=r.createIndex(e,35044,o);this.indexBuffers.set(s,{buffer:i})}for(const r of t.groups)this.groups.push({...r,vertexArrays:new Map});this.parts=t.parts}bind(r,t,s){this._boundPart=s;const{group:o}=this.parts[this._boundPart],i=this.groups[o];if(!i)throw new Error(`Missing group ${o}.`);let n=i.vertexArrays.get(t.stringHash);if(!n){const s=new Set(t.locations.keys()),o=i.index?this.indexBuffers.get(i.index)?.buffer:null,f=new Map,a=new Map;for(const[r,{buffer:e,attributes:t}]of this.vertexBuffers){const o=t.filter(r=>s.has(r.name));o.length>0&&(f.set(r,o),a.set(r,e))}n=new e(r,t.locations,f,a,o),i.vertexArrays.set(t.stringHash,n)}r.bindVAO(n)}draw(r){if(null==this._boundPart)throw new Error("Mesh.bind() has not been called.");const{start:e,count:s}=this.parts[this._boundPart],{group:o}=this.parts[this._boundPart],{primitive:i,index:n}=this.groups[o];if(n){const o=this.indexBuffers.get(n);if(!o)throw new Error(`Missing index buffer "${n}".`);const{indexType:f}=o.buffer;if(!f)throw new Error("Buffer type error.");r.drawElements(i,s,f,e*t[f])}else r.drawArrays(i,e,s)}unbind(r){this._boundPart=null,r.bindVAO(null)}destroy(){for(const{vertexArrays:r}of this.groups)for(const[e,t]of r)t.disposeVAOOnly();for(const{buffer:r}of this.vertexBuffers.values())r.dispose();for(const{buffer:r}of this.indexBuffers.values())r.dispose()}}export{s as Mesh};
5
+ import{toConst as r}from"../../../../../core/compilerUtils.js";import{BufferObject as e}from"../../../../webgl/BufferObject.js";import"../../../../webgl/FramebufferObject.js";import"../../../../webgl/Program.js";import"../../../../../core/has.js";import"../../../../webgl/Renderbuffer.js";import"../../../../webgl/Texture.js";import{VertexArrayObject as t}from"../../../../webgl/VertexArrayObject.js";import{dataSizeInBytes as s}from"./definitions.js";import{VertexBuffer as o}from"../../../../webgl/VertexBuffer.js";class i{constructor(r,t){this._boundPart=null,this.vertexBuffers=new Map,this.indexBuffers=new Map,this.groups=[];for(const s in t.vertex){const{data:o,attributes:i}=t.vertex[s],n=e.createVertex(r,35044,o);this.vertexBuffers.set(s,{buffer:n,attributes:i})}for(const s in t.index){const{data:o}=t.index[s],i=e.createIndex(r,35044,o);this.indexBuffers.set(s,{buffer:i})}for(const e of t.groups)this.groups.push({...e,vertexArrays:new Map});this.parts=t.parts}bind(e,s,i){this._boundPart=i;const{group:n}=this.parts[this._boundPart],f=this.groups[n];if(!f)throw new Error(`Missing group ${n}.`);let u=f.vertexArrays.get(s.stringHash);if(!u){const i=new Set(s.locations.keys()),n=f.index?this.indexBuffers.get(f.index)?.buffer:null,a=new Map;for(const[e,{buffer:t,attributes:s}]of this.vertexBuffers){const n=r(s.filter(r=>i.has(r.name)));n.length>0&&a.set(e,new o(n,t))}u=new t(e,a,n),f.vertexArrays.set(s.stringHash,u)}e.bindVAO(u)}draw(r){if(null==this._boundPart)throw new Error("Mesh.bind() has not been called.");const{start:e,count:t}=this.parts[this._boundPart],{group:o}=this.parts[this._boundPart],{primitive:i,index:n}=this.groups[o];if(n){const o=this.indexBuffers.get(n);if(!o)throw new Error(`Missing index buffer "${n}".`);const{indexType:f}=o.buffer;if(!f)throw new Error("Buffer type error.");r.drawElements(i,t,f,e*s[f])}else r.drawArrays(i,e,t)}unbind(r){this._boundPart=null,r.bindVAO(null)}destroy(){for(const{vertexArrays:r}of this.groups)for(const[e,t]of r)t.disposeVAOOnly();for(const{buffer:r}of this.vertexBuffers.values())r.dispose();for(const{buffer:r}of this.indexBuffers.values())r.dispose()}}export{i as Mesh};
@@ -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{numericHash as t}from"../../../../../core/string.js";import{TypedShaderProgram as e}from"./typed/TypedShaderProgram.js";class o{constructor(){this.computeAttributes={}}get locationsMap(){const t=new Map;for(const e in this.locations)t.set(e,this.locations[e].index);return t}get optionPropertyKeys(){if(!this._optionPropertyKeys){const t=new Set(Object.keys(this.options));this._optionPropertyKeys=t}return this._optionPropertyKeys}get _transformFeedbackBindings(){return[]}get locationInfo(){if(!this._locationInfo){const e=this.locationsMap,o=Array.from(e.entries()).map(([t,e])=>`${t}.${e}`).join("."),n=t(o);this._locationInfo={hash:n,stringHash:o,locations:e,computeAttributeMap:this.computeAttributes}}return this._locationInfo}get renamedLocationsMap(){const t=new Map;for(const[e,o]of this.locationsMap.entries())t.set("a_"+e,o);return t}getShaderKey(t,e,o){return`${Object.keys(t).map(e=>`${e}.${t[e]}`).join(".")}.${Object.keys(o).filter(t=>o[t]).map(t=>`${t}_${o[t].toString()}`).join(".")}.${Object.keys(e).filter(t=>this.optionPropertyKeys.has(t)).join(".")}`}getProgram(t,o,n,r){let i="",s="";for(const e in n)if(n[e]){const t="boolean"==typeof n[e]?`#define ${e}\n`:`#define ${e} ${n[e]}\n`;i+=t,s+=t}return i+=this.vertexShader,s+=this.fragmentShader,new e(i,s,this.renamedLocationsMap,this.locationInfo,this._getUniformBindings(o),this._transformFeedbackBindings)}_getUniformBindings(t){const e=[];for(const o in this.required){const t=this.required[o];e.push({uniformHydrated:null,shaderModulePath:o,uniformName:o,uniformType:t.type,uniformArrayElementType:n(t),uniformArrayLength:r(t)})}for(const o in t){const i=this.options[o];if(t[o])for(const t in i){const s=i[t];e.push({uniformHydrated:null,shaderModulePath:`${o}.${t}`,uniformName:t,uniformType:s.type,uniformArrayElementType:n(s),uniformArrayLength:r(s)})}}return e}}const n=t=>"array"===t.type?t.elementType?.type:void 0,r=t=>"array"===t.type?t.size:void 0;export{o as GLSLShaderModule};
5
+ import{TypedShaderProgram as t}from"./typed/TypedShaderProgram.js";class e{constructor(){this.computeAttributes={}}get locationsMap(){const t=new Map;for(const e in this.locations)t.set(e,this.locations[e].index);return t}get optionPropertyKeys(){if(!this._optionPropertyKeys){const t=new Set(Object.keys(this.options));this._optionPropertyKeys=t}return this._optionPropertyKeys}get _transformFeedbackBindings(){return[]}get locationInfo(){if(!this._locationInfo){const t=this.locationsMap,e=Array.from(t.entries()).map(([t,e])=>`${t}.${e}`).join(".");this._locationInfo={stringHash:e,locations:t,computeAttributeMap:this.computeAttributes}}return this._locationInfo}get renamedLocationsMap(){const t=new Map;for(const[e,o]of this.locationsMap.entries())t.set("a_"+e,o);return t}getShaderKey(t,e,o){return`${Object.keys(t).map(e=>`${e}.${t[e]}`).join(".")}.${Object.keys(o).filter(t=>o[t]).map(t=>`${t}_${o[t].toString()}`).join(".")}.${Object.keys(e).filter(t=>this.optionPropertyKeys.has(t)).join(".")}`}getProgram(e,o,n,r){let i="",s="";for(const t in n)if(n[t]){const e="boolean"==typeof n[t]?`#define ${t}\n`:`#define ${t} ${n[t]}\n`;i+=e,s+=e}return i+=this.vertexShader,s+=this.fragmentShader,new t(i,s,this.renamedLocationsMap,this._getUniformBindings(o),this._transformFeedbackBindings)}_getUniformBindings(t){const e=[];for(const r in this.required){const t=this.required[r];e.push({uniformHydrated:null,shaderModulePath:r,uniformName:r,uniformType:t.type,uniformArrayElementType:o(t),uniformArrayLength:n(t)})}for(const r in t){const i=this.options[r];if(t[r])for(const t in i){const s=i[t];e.push({uniformHydrated:null,shaderModulePath:`${r}.${t}`,uniformName:t,uniformType:s.type,uniformArrayElementType:o(s),uniformArrayLength:n(s)})}}return e}}const o=t=>"array"===t.type?t.elementType?.type:void 0,n=t=>"array"===t.type?t.size:void 0;export{e as GLSLShaderModule};
@@ -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"../../../../../core/has.js";import e from"../../../../../core/Logger.js";import{numericHash as r}from"../../../../../core/string.js";import{Float as o,Int as n,Vec4 as s,Vec2 as i}from"./graph/glsl.js";import{GlslShaderWriter as p}from"./graph/GlslGraphWriter.js";import{ShaderGraphContext as a}from"./graph/ShaderGraphContext.js";import{setReachableUids as u}from"./graph/ShaderGraphNode.js";import{TypedShaderProgram as c}from"./typed/TypedShaderProgram.js";import{ShaderBuilder as y}from"../../../../webgl/ShaderBuilder.js";function d(t){return new t}function h(t,e,r){const o=t.constructor[e]??[];t.constructor.hasOwnProperty(e)||Object.defineProperty(t.constructor,e,{value:o.slice()}),t.constructor[e].push(r)}function f(t,e){return(r,o)=>{h(r,"locations",{typeCtor:e,propertyKey:o,parameterIndex:null,index:t})}}const l=t=>(e,r)=>{h(e,"builtins",{builtin:t,propertyKey:r})},m=t=>(e,r,o)=>{h(e,"inputs",{inputCtor:t,propertyKey:r,parameterIndex:o})},g=t=>(e,r)=>{h(e,"uniforms",{typeCtor:t,propertyKey:r})},_=t=>(e,r)=>{h(e,"options",{typeCtor:t,propertyKey:r})},K=(t,e)=>{h(t,"defines",{propertyKey:e})};function x(t){return(e,r)=>{h(e,"transformFeedbackBindings",{propertyKey:r,parameterIndex:null,index:t})}}const b=(t,e)=>(r,o)=>{r.constructor.builtins.push({builtin:t,propertyKey:o,typeCtor:e})};class C{static{this.builtins=[]}}t([b("gl_VertexID",n)],C.prototype,"glVertexID",void 0);class I{}class v{static{this.builtins=[]}}t([b("gl_FragCoord",s)],v.prototype,"glFragCoord",void 0),t([b("gl_PointCoord",i)],v.prototype,"glPointCoord",void 0);class w{}t([l("gl_FragDepth")],w.prototype,"glFragDepth",void 0);class P{constructor(){this.type="uniform-group"}get _uniforms(){return this.constructor.uniforms??[]}}class j{constructor(){this.logShader=!1,this.computeAttributes={}}get vertexInput(){const t=this._shaderModuleClass.inputs.findLast(t=>"vertex"===t.propertyKey&&0===t.parameterIndex);if(!t)throw new Error("Unable to find vertex input parameter");return t}get computeInput(){return this._shaderModuleClass.inputs.findLast(t=>"vertex"===t.propertyKey&&1===t.parameterIndex)}get fragmentInput(){const t=this._shaderModuleClass.inputs.findLast(t=>"fragment"===t.propertyKey);if(!t)throw new Error("Unable to find fragment input parameter");return t}get transformFeedbackBindings(){return this.fragmentInput.inputCtor.transformFeedbackBindings??[]}get locations(){return[...this.vertexInput.inputCtor.locations,...this.computeInput?.inputCtor.locations??[]]}get locationsMap(){const t=new Map,r=new Set;for(const o of this.locations)r.has(o.index)?e.getLogger("esri.views.2d.engine.webgl.shaderGraph.GraphShaderModule").warnOnce("mapview-rendering",`Unable to assigned attribute ${o.propertyKey} to ${o.index}. Index already in use`,{locationsMap:t}):(t.set(o.propertyKey,o.index),r.add(o.index));return t}get locationInfo(){if(!this._locationInfo){const t=this.locationsMap,e=Array.from(t.entries()).map(([t,e])=>`${t}.${e}`).join("."),o=r(e),n=this.computeAttributes;this._locationInfo={hash:o,stringHash:e,locations:t,computeAttributeMap:n}}return this._locationInfo}get renamedLocationsMap(){const t=new Map;for(const e of this.locations)t.set("a_"+e.propertyKey,e.index);return t}get optionPropertyKeys(){if(!this._optionPropertyKeys){const t=new Set;for(const e of this._options)t.add(e.propertyKey);this._optionPropertyKeys=t}return this._optionPropertyKeys}get _shaderModuleClass(){return this.constructor}get _defines(){return this._shaderModuleClass.defines??[]}get _options(){return this._shaderModuleClass.options??[]}get _uniforms(){return this._shaderModuleClass.uniforms??[]}getProgram(t,e,r,o){try{const{vertex:n,fragment:s,uniformBindings:i}=this._generateShaders(t,e,r,o);return new c(n,s,this.renamedLocationsMap,this.locationInfo,i,this.transformFeedbackBindings)}catch(n){return new c("","",this.renamedLocationsMap,this.locationInfo,[],this.transformFeedbackBindings)}}getDebugUniformClassInfo(t){const e=this._options.find(e=>e.propertyKey===t);if(e)return{type:"option",className:e.typeCtor};const r=this._uniforms.find(e=>e.propertyKey===t);if(!r)throw new Error(`Unable to find uniform class type for property: ${t}`);return{type:"required",className:r.typeCtor}}getShaderKey(t,e,r,o){const n=Object.keys(t).map(e=>`${e}.${t[e]}`).join("."),s=Object.keys(r).map(t=>`${t}.${r[t]}`).join("."),i=Object.keys(o).map(t=>`${t}.${o[t]}`).join("."),p=Object.keys(e).filter(t=>this.optionPropertyKeys.has(t)&&e[t]).join(".");return`${this.type}.${n}.${s}.${i}.${p}`}_generateShaders(t,e,r,o){const n=[];this._setDefines(r),this._setOptionalUniforms(n,e),this._setRequiredUniforms(n);const s=this._hydrateVertexInput(o),i=this._injectPackPrecisionFactor(s,t),c=this._hydrateComputeInput(),y=c&&this._injectComputePackPrecisionFactor(c,t),d=this.vertex(i,y),h=this._hydrateFragmentInput(d),f=this.fragment(h),l=new Set;for(const p in f){const t=f[p];u(l,t)}const m=this._getVertexInputBuiltins(),g=a.createVertex({...s,...c},d,m,n,this.transformFeedbackBindings,l);(new p).write(g);const _=this._getFragmentInputBuiltins(f);_.set("glPointCoord","gl_PointCoord");const K=a.createFragment(h,f,_,n,g,this.transformFeedbackBindings);(new p).write(K);const x=this._createShaderBuilder(g,K),b=x.generate("vertex"),C=x.generate("fragment");return this.logShader&&(console.log(b),console.log(C)),{vertex:b,fragment:C,uniformBindings:n}}_setDefines(t){for(const e in t)this[e]=t[e]}_setOptionalUniforms(t,e){for(const r of this._options){e[r.propertyKey]?this[r.propertyKey]=this._hydrateUniformGroup(t,r):this[r.propertyKey]=null}}_setRequiredUniforms(t){for(const e of this._uniforms)this[e.propertyKey]=this._hydrateUniformGroup(t,e)}_hydrateUniformGroup(t,e){const r=new(0,e.typeCtor);for(const o of r._uniforms??[]){const n=d(o.typeCtor),s=`u_${e.propertyKey}_${o.propertyKey}`,i=n.type,p=[e.propertyKey,o.propertyKey].join(".");if("type"in o.typeCtor&&"array"===o.typeCtor.type){const e=n;t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformArrayLength:e.size,uniformArrayElementType:e.elementType.type,uniformHydrated:n})}else if("type"in o.typeCtor&&"array-2d"===o.typeCtor.type){const e=n;t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformArrayLength:e.size,uniformArrayElementType:e.elementType.type,uniformHydrated:n})}else t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformHydrated:n});r[o.propertyKey]=n}return r}_hydrateVertexInput(t){const e=this.vertexInput.inputCtor,r=e.locations.reduce((e,r)=>!1===t[r.propertyKey]?e:{...e,[r.propertyKey]:d(r.typeCtor)},{});for(const{propertyKey:o,typeCtor:n}of e.builtins){const t=d(n);r[o]=t}return r}_hydrateComputeInput(){if(null==this.computeInput)return null;return this.computeInput.inputCtor.locations.reduce((t,e)=>({...t,[e.propertyKey]:d(e.typeCtor)}),{})}_injectPackPrecisionFactor(t,e){const r={};for(const n in t){const s=t[n],i=e[n];if(i){if("float"!==s.type&&"vec2"!==s.type&&"vec3"!==s.type&&"vec4"!==s.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${s.type}`);r[n]=s.divide(new o(i))}else r[n]=s}return r}_injectComputePackPrecisionFactor(t,e){const r={},n=new Map;for(const o in this.computeAttributes)for(const t of this.computeAttributes[o]??[])n.set(t,o);for(const s in t){const i=t[s],p=n.get(s);if(!p)continue;const a=e[p];if(a){if("float"!==i.type&&"vec2"!==i.type&&"vec3"!==i.type&&"vec4"!==i.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${i.type}`);r[s]=i.divide(new o(a))}else r[s]=i}return r}_hydrateFragmentInput(t){const e={};for(const r in t)e[r]=t[r];for(const{propertyKey:r,typeCtor:o}of v.builtins){const t=d(o);e[r]=t}return e}_getVertexInputBuiltins(){const t=this.vertexInput.inputCtor,e=new Map;for(const{builtin:r,propertyKey:o}of t.builtins)e.set(o,r);return e}_getFragmentInputBuiltins(t){const e=t.constructor,r=new Map;for(const o of e.builtins??[])r.set(o.propertyKey,o.builtin);return r}_createShaderBuilder(t,e){const r=new y;return this._insertDebugInfo(r),t.insertVertexShader(r),e.insertFragmentShader(r),r}_insertDebugInfo(t){t.vertex.code.add("// DEFINES: "),t.vertex.code.add("// --------------------------------------------------------- ");for(const e of this._defines)this[e.propertyKey]?t.vertex.code.add(`// ${e.propertyKey}: true`):t.vertex.code.add(`// ${e.propertyKey}: false`);t.vertex.code.add(""),t.vertex.code.add("// OPTIONS: "),t.vertex.code.add("// --------------------------------------------------------- ");for(const e of this._options)this[e.propertyKey]?t.vertex.code.add(`// ${e.propertyKey}: true`):t.vertex.code.add(`// ${e.propertyKey}: false`)}}export{I as ComputeVertexInput,v as FragmentInput,w as FragmentOutput,j as GraphShaderModule,P as UniformGroup,C as VertexInput,l as builtin,K as define,m as input,f as location,_ as option,x as transformFeedback,g as uniform};
5
+ import{__decorate as t}from"tslib";import"../../../../../core/has.js";import e from"../../../../../core/Logger.js";import{Float as r,Int as o,Vec4 as n,Vec2 as s}from"./graph/glsl.js";import{GlslShaderWriter as i}from"./graph/GlslGraphWriter.js";import{ShaderGraphContext as p}from"./graph/ShaderGraphContext.js";import{setReachableUids as a}from"./graph/ShaderGraphNode.js";import{TypedShaderProgram as u}from"./typed/TypedShaderProgram.js";import{ShaderBuilder as c}from"../../../../webgl/ShaderBuilder.js";function y(t){return new t}function d(t,e,r){const o=t.constructor[e]??[];t.constructor.hasOwnProperty(e)||Object.defineProperty(t.constructor,e,{value:o.slice()}),t.constructor[e].push(r)}function f(t,e){return(r,o)=>{d(r,"locations",{typeCtor:e,propertyKey:o,parameterIndex:null,index:t})}}const h=t=>(e,r)=>{d(e,"builtins",{builtin:t,propertyKey:r})},l=t=>(e,r,o)=>{d(e,"inputs",{inputCtor:t,propertyKey:r,parameterIndex:o})},m=t=>(e,r)=>{d(e,"uniforms",{typeCtor:t,propertyKey:r})},g=t=>(e,r)=>{d(e,"options",{typeCtor:t,propertyKey:r})},_=(t,e)=>{d(t,"defines",{propertyKey:e})};function K(t){return(e,r)=>{d(e,"transformFeedbackBindings",{propertyKey:r,parameterIndex:null,index:t})}}const x=(t,e)=>(r,o)=>{r.constructor.builtins.push({builtin:t,propertyKey:o,typeCtor:e})};class b{static{this.builtins=[]}}t([x("gl_VertexID",o)],b.prototype,"glVertexID",void 0);class C{}class I{static{this.builtins=[]}}t([x("gl_FragCoord",n)],I.prototype,"glFragCoord",void 0),t([x("gl_PointCoord",s)],I.prototype,"glPointCoord",void 0);class v{}t([h("gl_FragDepth")],v.prototype,"glFragDepth",void 0);class w{constructor(){this.type="uniform-group"}get _uniforms(){return this.constructor.uniforms??[]}}class P{constructor(){this.logShader=!1,this.computeAttributes={}}get vertexInput(){const t=this._shaderModuleClass.inputs.findLast(t=>"vertex"===t.propertyKey&&0===t.parameterIndex);if(!t)throw new Error("Unable to find vertex input parameter");return t}get computeInput(){return this._shaderModuleClass.inputs.findLast(t=>"vertex"===t.propertyKey&&1===t.parameterIndex)}get fragmentInput(){const t=this._shaderModuleClass.inputs.findLast(t=>"fragment"===t.propertyKey);if(!t)throw new Error("Unable to find fragment input parameter");return t}get transformFeedbackBindings(){return this.fragmentInput.inputCtor.transformFeedbackBindings??[]}get locations(){return[...this.vertexInput.inputCtor.locations,...this.computeInput?.inputCtor.locations??[]]}get locationsMap(){const t=new Map,r=new Set;for(const o of this.locations)r.has(o.index)?e.getLogger("esri.views.2d.engine.webgl.shaderGraph.GraphShaderModule").warnOnce("mapview-rendering",`Unable to assigned attribute ${o.propertyKey} to ${o.index}. Index already in use`,{locationsMap:t}):(t.set(o.propertyKey,o.index),r.add(o.index));return t}get locationInfo(){if(!this._locationInfo){const t=this.locationsMap,e=Array.from(t.entries()).map(([t,e])=>`${t}.${e}`).join("."),r=this.computeAttributes;this._locationInfo={stringHash:e,locations:t,computeAttributeMap:r}}return this._locationInfo}get renamedLocationsMap(){const t=new Map;for(const e of this.locations)t.set("a_"+e.propertyKey,e.index);return t}get optionPropertyKeys(){if(!this._optionPropertyKeys){const t=new Set;for(const e of this._options)t.add(e.propertyKey);this._optionPropertyKeys=t}return this._optionPropertyKeys}get _shaderModuleClass(){return this.constructor}get _defines(){return this._shaderModuleClass.defines??[]}get _options(){return this._shaderModuleClass.options??[]}get _uniforms(){return this._shaderModuleClass.uniforms??[]}getProgram(t,e,r,o){try{const{vertex:n,fragment:s,uniformBindings:i}=this._generateShaders(t,e,r,o);return new u(n,s,this.renamedLocationsMap,i,this.transformFeedbackBindings)}catch(n){return new u("","",this.renamedLocationsMap,[],this.transformFeedbackBindings)}}getDebugUniformClassInfo(t){const e=this._options.find(e=>e.propertyKey===t);if(e)return{type:"option",className:e.typeCtor};const r=this._uniforms.find(e=>e.propertyKey===t);if(!r)throw new Error(`Unable to find uniform class type for property: ${t}`);return{type:"required",className:r.typeCtor}}getShaderKey(t,e,r,o){const n=Object.keys(t).map(e=>`${e}.${t[e]}`).join("."),s=Object.keys(r).map(t=>`${t}.${r[t]}`).join("."),i=Object.keys(o).map(t=>`${t}.${o[t]}`).join("."),p=Object.keys(e).filter(t=>this.optionPropertyKeys.has(t)&&e[t]).join(".");return`${this.type}.${n}.${s}.${i}.${p}`}_generateShaders(t,e,r,o){const n=[];this._setDefines(r),this._setOptionalUniforms(n,e),this._setRequiredUniforms(n);const s=this._hydrateVertexInput(o),u=this._injectPackPrecisionFactor(s,t),c=this._hydrateComputeInput(),y=c&&this._injectComputePackPrecisionFactor(c,t),d=this.vertex(u,y),f=this._hydrateFragmentInput(d),h=this.fragment(f),l=new Set;for(const i in h){const t=h[i];a(l,t)}const m=this._getVertexInputBuiltins(),g=p.createVertex({...s,...c},d,m,n,this.transformFeedbackBindings,l);(new i).write(g);const _=this._getFragmentInputBuiltins(h);_.set("glPointCoord","gl_PointCoord");const K=p.createFragment(f,h,_,n,g,this.transformFeedbackBindings);(new i).write(K);const x=this._createShaderBuilder(g,K),b=x.generate("vertex"),C=x.generate("fragment");return this.logShader&&(console.log(b),console.log(C)),{vertex:b,fragment:C,uniformBindings:n}}_setDefines(t){for(const e in t)this[e]=t[e]}_setOptionalUniforms(t,e){for(const r of this._options){e[r.propertyKey]?this[r.propertyKey]=this._hydrateUniformGroup(t,r):this[r.propertyKey]=null}}_setRequiredUniforms(t){for(const e of this._uniforms)this[e.propertyKey]=this._hydrateUniformGroup(t,e)}_hydrateUniformGroup(t,e){const r=new(0,e.typeCtor);for(const o of r._uniforms??[]){const n=y(o.typeCtor),s=`u_${e.propertyKey}_${o.propertyKey}`,i=n.type,p=[e.propertyKey,o.propertyKey].join(".");if("type"in o.typeCtor&&"array"===o.typeCtor.type){const e=n;t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformArrayLength:e.size,uniformArrayElementType:e.elementType.type,uniformHydrated:n})}else if("type"in o.typeCtor&&"array-2d"===o.typeCtor.type){const e=n;t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformArrayLength:e.size,uniformArrayElementType:e.elementType.type,uniformHydrated:n})}else t.push({shaderModulePath:p,uniformName:s,uniformType:i,uniformHydrated:n});r[o.propertyKey]=n}return r}_hydrateVertexInput(t){const e=this.vertexInput.inputCtor,r=e.locations.reduce((e,r)=>!1===t[r.propertyKey]?e:{...e,[r.propertyKey]:y(r.typeCtor)},{});for(const{propertyKey:o,typeCtor:n}of e.builtins){const t=y(n);r[o]=t}return r}_hydrateComputeInput(){if(null==this.computeInput)return null;return this.computeInput.inputCtor.locations.reduce((t,e)=>({...t,[e.propertyKey]:y(e.typeCtor)}),{})}_injectPackPrecisionFactor(t,e){const o={};for(const n in t){const s=t[n],i=e[n];if(i){if("float"!==s.type&&"vec2"!==s.type&&"vec3"!==s.type&&"vec4"!==s.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${s.type}`);o[n]=s.divide(new r(i))}else o[n]=s}return o}_injectComputePackPrecisionFactor(t,e){const o={},n=new Map;for(const r in this.computeAttributes)for(const t of this.computeAttributes[r]??[])n.set(t,r);for(const s in t){const i=t[s],p=n.get(s);if(!p)continue;const a=e[p];if(a){if("float"!==i.type&&"vec2"!==i.type&&"vec3"!==i.type&&"vec4"!==i.type)throw new Error(`InternalError: packPrecisionFactor requires GenType, but found ${i.type}`);o[s]=i.divide(new r(a))}else o[s]=i}return o}_hydrateFragmentInput(t){const e={};for(const r in t)e[r]=t[r];for(const{propertyKey:r,typeCtor:o}of I.builtins){const t=y(o);e[r]=t}return e}_getVertexInputBuiltins(){const t=this.vertexInput.inputCtor,e=new Map;for(const{builtin:r,propertyKey:o}of t.builtins)e.set(o,r);return e}_getFragmentInputBuiltins(t){const e=t.constructor,r=new Map;for(const o of e.builtins??[])r.set(o.propertyKey,o.builtin);return r}_createShaderBuilder(t,e){const r=new c;return this._insertDebugInfo(r),t.insertVertexShader(r),e.insertFragmentShader(r),r}_insertDebugInfo(t){t.vertex.code.add("// DEFINES: "),t.vertex.code.add("// --------------------------------------------------------- ");for(const e of this._defines)this[e.propertyKey]?t.vertex.code.add(`// ${e.propertyKey}: true`):t.vertex.code.add(`// ${e.propertyKey}: false`);t.vertex.code.add(""),t.vertex.code.add("// OPTIONS: "),t.vertex.code.add("// --------------------------------------------------------- ");for(const e of this._options)this[e.propertyKey]?t.vertex.code.add(`// ${e.propertyKey}: true`):t.vertex.code.add(`// ${e.propertyKey}: false`)}}export{C as ComputeVertexInput,I as FragmentInput,v as FragmentOutput,P as GraphShaderModule,w as UniformGroup,b as VertexInput,h as builtin,_ as define,l as input,f as location,g as option,K as transformFeedback,m as uniform};
@@ -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 t from"../../../../../../../core/RandomLCG.js";import{tileSize as e}from"../../../definitions.js";import{SimpleMesh as s}from"../../../meshing/SimpleMesh.js";import{SizedDepthStencilFormat as o,DataType as r,PrimitiveType as i}from"../../../../../../webgl/enums.js";import{FramebufferObject as n}from"../../../../../../webgl/FramebufferObject.js";import{Renderbuffer as d}from"../../../../../../webgl/Renderbuffer.js";import{RenderbufferDescriptor as h}from"../../../../../../webgl/RenderbufferDescriptor.js";import{Texture as u}from"../../../../../../webgl/Texture.js";import{TextureDescriptor as l}from"../../../../../../webgl/TextureDescriptor.js";const _={pos:{count:2,type:r.UNSIGNED_SHORT}};class m{constructor(){this._dotTextureSize=0,this._dotTextures=null,this._dotMesh=null}destroy(){this._disposeTextures(),this._dotFBO&&this._dotFBO.dispose(),this._dotMesh&&this._dotMesh.destroy()}getFBO(t){if(null==this._dotFBO){const s=e,r=e,i=new l(s,r);i.samplingMode=9728,i.wrapMode=33071;const u=new d(t,new h(o.DEPTH24_STENCIL8,s,r));this._dotFBO=new n(t,i,u)}return this._dotFBO}getDotDensityMesh(t){if(null==this._dotMesh){const o=e,r=o*o,n=2,d=new Int16Array(r*n);for(let t=0;t<o;t++)for(let e=0;e<o;e++)d[n*(e+t*o)]=e,d[n*(e+t*o)+1]=t;this._dotMesh=s.create(t,{primitive:i.POINTS,vertex:d,count:r,layout:_})}return this._dotMesh}getDotDensityTextures(e,s,o){if(this._dotTextureSize===s&&this._seed===o||(this._disposeTextures(),this._dotTextureSize=s,this._seed=o),null===this._dotTextures){const r=new t(o);this._dotTextures=[this._allocDotDensityTexture(e,s,r),this._allocDotDensityTexture(e,s,r)]}return this._dotTextures}_disposeTextures(){if(this._dotTextures){for(let t=0;t<this._dotTextures.length;t++)this._dotTextures[t].dispose();this._dotTextures=null}}_allocDotDensityTexture(t,e,s){const o=new Float32Array(e*e*4);for(let i=0;i<o.length;i++)o[i]=s.getFloat();const r=new l(e);return r.dataType=5126,r.samplingMode=9728,new u(t,r,o)}}export{m as DotDensityResources};
5
+ import t from"../../../../../../../core/RandomLCG.js";import{tileSize as e}from"../../../definitions.js";import{SimpleMesh as s}from"../../../meshing/SimpleMesh.js";import{SizedDepthStencilFormat as o,DataType as r,PrimitiveType as i,PixelType as n}from"../../../../../../webgl/enums.js";import{FramebufferObject as d}from"../../../../../../webgl/FramebufferObject.js";import{Renderbuffer as h}from"../../../../../../webgl/Renderbuffer.js";import{RenderbufferDescriptor as u}from"../../../../../../webgl/RenderbufferDescriptor.js";import{Texture as l}from"../../../../../../webgl/Texture.js";import{TextureDescriptor as _}from"../../../../../../webgl/TextureDescriptor.js";const T={pos:{count:2,type:r.UNSIGNED_SHORT}};class m{constructor(){this._dotTextureSize=0,this._dotTextures=null,this._dotMesh=null}destroy(){this._disposeTextures(),this._dotFBO&&this._dotFBO.dispose(),this._dotMesh&&this._dotMesh.destroy()}getFBO(t){if(null==this._dotFBO){const s=e,r=e,i=new _(s,r);i.samplingMode=9728,i.wrapMode=33071;const n=new h(t,new u(o.DEPTH24_STENCIL8,s,r));this._dotFBO=new d(t,i,n)}return this._dotFBO}getDotDensityMesh(t){if(null==this._dotMesh){const o=e,r=o*o,n=2,d=new Int16Array(r*n);for(let t=0;t<o;t++)for(let e=0;e<o;e++)d[n*(e+t*o)]=e,d[n*(e+t*o)+1]=t;this._dotMesh=s.create(t,{primitive:i.POINTS,vertex:d,count:r,layout:T})}return this._dotMesh}getDotDensityTextures(e,s,o){if(this._dotTextureSize===s&&this._seed===o||(this._disposeTextures(),this._dotTextureSize=s,this._seed=o),null===this._dotTextures){const r=new t(o);this._dotTextures=[this._allocDotDensityTexture(e,s,r),this._allocDotDensityTexture(e,s,r)]}return this._dotTextures}_disposeTextures(){if(this._dotTextures){for(let t=0;t<this._dotTextures.length;t++)this._dotTextures[t].dispose();this._dotTextures=null}}_allocDotDensityTexture(t,e,s){const o=new Float32Array(e*e*4);for(let i=0;i<o.length;i++)o[i]=s.getFloat();const r=new _(e);return r.dataType=n.FLOAT,r.samplingMode=9728,new l(t,r,o)}}export{m as DotDensityResources};
@@ -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 e from"../../../../../../../core/Logger.js";import{disposeMaybe as r}from"../../../../../../../core/maybe.js";import{SizedDepthStencilFormat as t}from"../../../../../../webgl/enums.js";import{FramebufferObject as a}from"../../../../../../webgl/FramebufferObject.js";import{loadHeatmapTextureConfiguration as i}from"../../../../../../webgl/heatmapTextureUtils.js";import{RenderbufferDescriptor as s}from"../../../../../../webgl/RenderbufferDescriptor.js";import{Texture as u}from"../../../../../../webgl/Texture.js";import{TextureDescriptor as l}from"../../../../../../webgl/TextureDescriptor.js";const o=()=>e.getLogger("esri.views.2d.engine.webgl.shaderGraph.techniques.heatmap.HeatmapResources");class n{destroy(){this._accumulateFramebuffer=r(this._accumulateFramebuffer),this._resolveGradientTexture=r(this._resolveGradientTexture),this._prevGradientHash=null,this._qualityProfile=null}get initialized(){return null!=this._accumulateFramebuffer&&null!=this._resolveGradientTexture}get accumulateFramebuffer(){return this._accumulateFramebuffer}get resolveGradientTexture(){return this._resolveGradientTexture}loadQualityProfile(e){if(null==this._qualityProfile){const r=i(e,o());this._qualityProfile={...r,defines:{usesHalfFloatPrecision:5126!==r.dataType}}}return this._qualityProfile}ensureAccumulateFBO(e,r,i){if(null==this._accumulateFramebuffer){const{dataType:u,samplingMode:o,pixelFormat:n,internalFormat:m}=this.loadQualityProfile(e),f=new l(r,i);f.pixelFormat=n,f.internalFormat=m,f.dataType=u,f.samplingMode=o,f.wrapMode=33071;const h=new s(t.DEPTH24_STENCIL8,r,i);this._accumulateFramebuffer=new a(e,f,h)}else{const{width:e,height:t}=this._accumulateFramebuffer;e===r&&t===i||this._accumulateFramebuffer.resize(r,i)}return this._accumulateFramebuffer}ensureResolveGradientTexture(e,r,t){if(null==this._resolveGradientTexture){const r=new l;r.wrapMode=33071,this._resolveGradientTexture=new u(e,r),this._prevGradientHash=null}return this._prevGradientHash!==r&&(this._resolveGradientTexture.resize(t.length/4,1),this._resolveGradientTexture.setData(t),this._prevGradientHash=r),this._resolveGradientTexture}}export{n as HeatmapResources};
5
+ import e from"../../../../../../../core/Logger.js";import{disposeMaybe as r}from"../../../../../../../core/maybe.js";import{PixelType as t,SizedDepthStencilFormat as a}from"../../../../../../webgl/enums.js";import{FramebufferObject as i}from"../../../../../../webgl/FramebufferObject.js";import{loadHeatmapTextureConfiguration as s}from"../../../../../../webgl/heatmapTextureUtils.js";import{RenderbufferDescriptor as u}from"../../../../../../webgl/RenderbufferDescriptor.js";import{Texture as l}from"../../../../../../webgl/Texture.js";import{TextureDescriptor as o}from"../../../../../../webgl/TextureDescriptor.js";const n=()=>e.getLogger("esri.views.2d.engine.webgl.shaderGraph.techniques.heatmap.HeatmapResources");class m{destroy(){this._accumulateFramebuffer=r(this._accumulateFramebuffer),this._resolveGradientTexture=r(this._resolveGradientTexture),this._prevGradientHash=null,this._qualityProfile=null}get initialized(){return null!=this._accumulateFramebuffer&&null!=this._resolveGradientTexture}get accumulateFramebuffer(){return this._accumulateFramebuffer}get resolveGradientTexture(){return this._resolveGradientTexture}loadQualityProfile(e){if(null==this._qualityProfile){const r=s(e,n());this._qualityProfile={...r,defines:{usesHalfFloatPrecision:r.dataType!==t.FLOAT}}}return this._qualityProfile}ensureAccumulateFBO(e,r,t){if(null==this._accumulateFramebuffer){const{dataType:s,samplingMode:l,pixelFormat:n,internalFormat:m}=this.loadQualityProfile(e),f=new o(r,t);f.pixelFormat=n,f.internalFormat=m,f.dataType=s,f.samplingMode=l,f.wrapMode=33071;const h=new u(a.DEPTH24_STENCIL8,r,t);this._accumulateFramebuffer=new i(e,f,h)}else{const{width:e,height:a}=this._accumulateFramebuffer;e===r&&a===t||this._accumulateFramebuffer.resize(r,t)}return this._accumulateFramebuffer}ensureResolveGradientTexture(e,r,t){if(null==this._resolveGradientTexture){const r=new o;r.wrapMode=33071,this._resolveGradientTexture=new l(e,r),this._prevGradientHash=null}return this._prevGradientHash!==r&&(this._resolveGradientTexture.resize(t.length/4,1),this._resolveGradientTexture.setData(t),this._prevGradientHash=r),this._resolveGradientTexture}}export{m as HeatmapResources};
@@ -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{memoize as e}from"../../../../../../../core/MapUtils.js";import{pt2px as t}from"../../../../../../../core/screenUtils.js";import{numericHash as i}from"../../../../../../../core/string.js";import{fromRotation as r,translate as s}from"../../../../../../../core/libs/gl-matrix-2/math/mat2d.js";import{create as o}from"../../../../../../../core/libs/gl-matrix-2/factories/mat2df32.js";import{transformMat2d as n,set as a,sub as l,normalize as h,add as c,scale as m}from"../../../../../../../core/libs/gl-matrix-2/math/vec2.js";import{fromValues as d}from"../../../../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{create as u}from"../../../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{GeometryCursor as f}from"../../../../../../../geometry/GeometryCursor.js";import{generalizeOptimizedGeometry as g,convertToGeometry as _}from"../../../../../../../layers/graphics/featureConversionUtils.js";import p from"../../../../../../../layers/graphics/OptimizedGeometry.js";import{tileSize as b,minMaxZoomPrecisionFactor as x}from"../../../definitions.js";import M from"../../../collisions/BoundingBox.js";import{LabelMetric as v}from"../../../collisions/LabelMetric.js";import{smoothPaths as y,pathDivide as P}from"../../../mesh/templates/segmentUtils.js";import{getMinMaxZoom as w,processColorInput as L}from"../fill/meshWriterUtils.js";import{TextMeshWriter as I,maxLabelZoom as B}from"../text/TextMeshWriter.js";const S=1,z=0,A=128;function D(e,t,r){return i(`${e}${t}${r}`)}function j(e,t,r,s,o){return i(`${e}${o}${t}${r*2**(B-s)}`)}const G=e(e=>{let t=0;if(0===e)return 1/0;for(;!(e%2);)t++,e/=2;return t});class Z extends I{constructor(){super(...arguments),this._zoomLevel=0}_write(e,t,i,r){if(this._zoomLevel=r||0,null!=i)throw new Error("InternalError: EffectGeometry not support for LabelMeshWriter");switch(t.geometryType){case"esriGeometryPoint":{const i=t.readXForDisplay(),r=t.readYForDisplay();this._writePoint(e,i,r,0,t);break}case"esriGeometryEnvelope":case"esriGeometryPolygon":{const i=t.readCentroidForDisplay();if(!i)return;const[r,s]=i.coords;this._writePoint(e,r,s,0,t);break}case"esriGeometryMultipoint":{let i=0;const r=f.fromFeatureSetReader(t);if(r?.nextPath())for(;r.nextPoint();)this._writePoint(e,r.x,r.y,i++,t);break}case"esriGeometryPolyline":this._writeLines(e,t)}}_getMetricDir(){const{horizontalAlignment:e,verticalAlignment:t}=this.evaluatedMeshParams;return["center"===e?0:"right"===e?-1:1,"middle"===t?0:"bottom"===t?-1:1]}_createLineLabelMetric(e,t,i,r,s){const[o,n]=this._getMetricDir(),a=this.evaluatedMeshParams.scaleInfo?.maxScale??0,l=this.evaluatedMeshParams.scaleInfo?.minScale??0,h=this.evaluatedMeshParams.labelClassId;return new v(e,h,t,i,r,o,n,a,l,s)}_writePoint(e,t,i,r,s){if(t<0||t>b||i<0||i>b)return;const o=this._getShaping();if(!o)return;const n=s.getDisplayId(),a=this.evaluatedMeshParams.labelClassId,l=D(s.getObjectId(),a,r),[h,c]=this._getMetricDir(),m=this.evaluatedMeshParams.scaleInfo?.maxScale??0,d=this.evaluatedMeshParams.scaleInfo?.minScale??0,u=this._getPointReferenceBounds()||{offsetX:0,offsetY:0,size:0};e.metricStart(new v(n,a,l,t,i,h,c,m,d,u)),this._writeGlyphs(e,n,t,i,o,0,u,void 0,!1),e.metricBoxWrite(o.boundsT),e.metricEnd()}_getPointReferenceBounds(){if(!this._references)return null;for(const e of this._references){const t=e.getBoundsInfo();if(t)return t}return null}_writeLines(e,t){const{scaleInfo:i,verticalAlignment:r}=this.evaluatedMeshParams,s=this.evaluatedMeshParams.repeatLabelDistance||128,o=this._getShaping("middle");if(!o)return;const n=(e,t,i,r)=>this._placeSubdivGlyphs(e,t,i,r),a=(o.bounds.width+s)/(1<<S);this._current={out:e,id:t.getDisplayId(),objId:t.getObjectId(),shaping:o,zoomRange:w(i,this.getTileInfo()),referenceBounds:this._getPointReferenceBounds()||{offsetX:0,offsetY:0,size:0},offsetDirection:null,pathIndex:0},this._verticalPlacement="bottom"===r?"above":"top"===r?"below":null,this._verticalPlacement?this._writeAboveAndBelowAlong(t,n,a):this._writeCenterAlong(t,n,a)}_writeAboveAndBelowAlong(e,t,i){const{repeatLabel:r}=this.evaluatedMeshParams,{shaping:s}=this._current,o=s.bounds.halfHeight,n=e.readGeometryForDisplay();if(!n)return;const a=new p;g(a,n,!1,!1,"esriGeometryPolyline",1);const l=k(new p,a,o),h=k(new p,a,-o),c=_(h,"esriGeometryPolyline",!1,!1),m=_(l,"esriGeometryPolyline",!1,!1),d=y(m.paths,s.bounds.width),u=y(c.paths,s.bounds.width);this._current.offsetDirection="above";for(let f=0;f<d.length;f++)this._current.pathIndex=f,P(d[f],i,t,!!r);this._current.offsetDirection="below";for(let f=0;f<u.length;f++)this._current.pathIndex=f,P(u[f],i,t,!!r)}_writeCenterAlong(e,t,i){const{repeatLabel:r}=this.evaluatedMeshParams,{shaping:s}=this._current,o=y(e.readLegacyGeometryForDisplay().paths,s.bounds.width);for(let n=0;n<o.length;n++)this._current.pathIndex=n,P(o[n],i,t,!!r)}_placeSubdivGlyphs(e,t,i,r){const{allowOverrun:s,labelPosition:o,repeatLabelDistance:n}=this.evaluatedMeshParams,a=this._current.zoomRange[0],l=G(t),h=this._current.shaping.bounds.width/(1<<S),c=Math.sqrt(n||A)/(1<<S),m=Math.min(i,r-i),d=this._current.shaping.isMultiline?B:Math.log2(m/(c+h/2)),u=0===t?d:Math.min(l,d),f=Math.max(a,this._zoomLevel+S-u),g=this._zoomLevel-f,_=this._current.shaping.bounds.width/2*2**g,p=j(this._current.objId,this._current.pathIndex,t,this._zoomLevel,this.evaluatedMeshParams.labelClassId);this._current.shaping.isMultiline?0===t&&this._placeStraight(e,f,p):s&&g<0?this._placeStraightAlong(e,a,p):"parallel"===o?this._placeStraightAlong(e,f,p):"curved"===o&&this._placeCurved(e,f,_,p)}_placeStraight(e,t,i){const{out:r,id:s,shaping:o,referenceBounds:n}=this._current,{x:a,y:l}=e;r.metricStart(this._createLineLabelMetric(s,i,a,l)),r.metricBoxWrite(o.boundsT);const h=e.angle*(180/Math.PI)%360,c=(e.angle*(180/Math.PI)+180)%360,m={clipAngle:h,mapAligned:!0,isLineLabel:!0,minZoom:t};this._writeGlyphs(r,s,a,l,o,0,n,m,!1);const d={clipAngle:c,mapAligned:!0,isLineLabel:!0,minZoom:t};this._writeGlyphs(r,s,a,l,o,0,n,d,!1),r.metricEnd()}_placeCurved(e,t,i,r){const{out:s,id:o}=this._current;s.metricStart(this._createLineLabelMetric(o,r,e.x,e.y));const n=e.clone(),a=e.angle*(180/Math.PI)%360,l=(e.angle*(180/Math.PI)+180)%360;this._verticalPlacement&&this._verticalPlacement!==this._current.offsetDirection||(this._placeFirst(n,t,1,a),this._placeBack(e,n,t,i,1,a),this._placeForward(e,n,t,i,1,a)),this._verticalPlacement&&this._verticalPlacement===this._current.offsetDirection||(this._placeFirst(n,t,0,l),this._placeBack(e,n,t,i,0,l),this._placeForward(e,n,t,i,0,l)),s.metricEnd()}_placeStraightAlong(e,i,n){const{out:a,id:l,shaping:h,zoomRange:c,referenceBounds:m}=this._current,{boxBorderLineColor:u,boxBackgroundColor:f}=this.evaluatedMeshParams,g=e.clone(),_=e.angle*(180/Math.PI)%360,p=(e.angle*(180/Math.PI)+180)%360,b=h.glyphs.length>0&&!(!u&&!f);if(a.metricStart(this._createLineLabelMetric(l,n,e.x,e.y)),b){const n=Math.max(i,c[0],0),u=Math.min(B,c[1]),f=r(o(),-e.angle),g={minZoom:n,maxZoom:u,clipAngle:_,mapAligned:!0,isLineLabel:!0},b=t(this.evaluatedMeshParams.offsetX),x=t(this.evaluatedMeshParams.offsetY);if(!this._verticalPlacement||this._verticalPlacement===this._current.offsetDirection){const t=d(b,-1*x),[i,r]=h.shapeBackground(s(o(),f,t));a.recordStart(this.instanceId,this.attributeLayout,h.glyphs[0].textureBinding),this._writeTextBox(a,l,e.x,e.y,r,m,g),a.recordEnd()}if(!this._verticalPlacement||this._verticalPlacement!==this._current.offsetDirection){const t=d(b,x),[i,r]=h.shapeBackground(s(o(),f,t));g.clipAngle=p,a.recordStart(this.instanceId,this.attributeLayout,h.glyphs[0].textureBinding),this._writeTextBox(a,l,e.x,e.y,r,m,g),a.recordEnd()}}this._verticalPlacement&&this._verticalPlacement!==this._current.offsetDirection||this._placeFirst(g,i,1,_,!0),this._verticalPlacement&&this._verticalPlacement===this._current.offsetDirection||this._placeFirst(g,i,0,p,!0),a.metricEnd()}_placeBack(e,t,i,r,s,o){const n=e.clone();let a=e.backwardLength+z;for(;n.prev()&&!(a>=r);)this._placeOnSegment(n,t,a,i,-1,s,o),a+=n.length+z}_placeForward(e,t,i,r,s,o){const n=e.clone();let a=e.remainingLength+z;for(;n.next()&&!(a>=r);)this._placeOnSegment(n,t,a,i,1,s,o),a+=n.length+z}_placeFirst(e,i,s,a,l=!1){const{out:h,id:c,shaping:m,zoomRange:u,referenceBounds:f}=this._current,g=m.glyphs,_=t(this.evaluatedMeshParams.offsetX),p=t(this.evaluatedMeshParams.offsetY),b=d(_,p),x=r(o(),-e.angle);n(b,b,x);for(const t of g){const r=t.x>m.bounds.x?s:1-s,o=r*e.remainingLength+(1-r)*e.backwardLength,n=Math.abs(t.x+t.width/2-m.bounds.x),d=Math.max(0,this._zoomLevel+Math.log2(n/(o+z))),g=Math.max(i,l?0:d);if(t.maxZoom=Math.min(u[1],B),t.angle=e.angle+(1-s)*Math.PI,t.minZoom=Math.max(u[0],g),this._writeLineGlyph(h,c,e.x,e.y,t,a,f,!0),(s||this._current.offsetDirection)&&this._isVisible(t.minZoom,t.maxZoom)){const e=new M(t.bounds.x+b[0],t.bounds.y+b[1],t.bounds.width,t.bounds.height);h.metricBoxWrite(e)}}}_placeOnSegment(e,i,s,a,l,h,c){const{out:m,id:u,shaping:f,referenceBounds:g}=this._current,_=f.glyphs,p=e.dx/e.length,b=e.dy/e.length,x={x:e.x+s*-l*p,y:e.y+s*-l*b},v=t(this.evaluatedMeshParams.offsetX),y=t(this.evaluatedMeshParams.offsetY),P=d(v,y),w=r(o(),-e.angle);n(P,P,w);for(const t of _){const i=t.x>f.bounds.x?h:1-h;if(!(i&&1===l||!i&&-1===l))continue;const r=Math.abs(t.x+t.width/2-f.bounds.x),o=Math.max(0,this._zoomLevel+Math.log2(r/s)-.1),n=Math.max(a,this._zoomLevel+Math.log2(r/(s+e.length+z)));if(0!==o&&(t.angle=e.angle+(1-h)*Math.PI,t.minZoom=n,t.maxZoom=o,this._writeLineGlyph(m,u,x.x,x.y,t,c,g,!0),(h||this._current.offsetDirection)&&this._isVisible(t.minZoom,t.maxZoom))){const e=new M(t.bounds.x+P[0],t.bounds.y+P[1],t.bounds.width,t.bounds.height);m.metricBoxWrite(e)}}}_writeLineGlyph(e,t,i,r,s,o,n,a){if(i<0||i>b||r<0||r>b)return;e.recordStart(this.instanceId,this.attributeLayout,s.textureBinding);const{texcoords:l,offsets:h}=s,{fontSize:c,haloSize:m,outlineSize:d}=this._textMeshTransformProps;this._writeQuad(e,t,i,r,{texcoords:l,offsets:h,fontSize:c,haloSize:m,outlineSize:d,color:L(this.evaluatedMeshParams.color),isBackground:!1,referenceBounds:n,minZoom:Math.max(this._current.zoomRange[0],s.minZoom),maxZoom:Math.min(this._current.zoomRange[1],s.maxZoom),clipAngle:o,mapAligned:a,isLineLabel:!0}),e.recordEnd()}_packedZoom(e){return Math.floor(e*x)/x}_isVisible(e,t){let i=Math.max(this._current.zoomRange[0],e),r=Math.min(this._current.zoomRange[1],t);i=this._packedZoom(i),r=this._packedZoom(r);const s=this._packedZoom(this._zoomLevel);return i<=s&&s<=r}}function k(e,t,i){const{coords:r,lengths:s}=t,o=u(),n=u(),d=u(),f=u(),g=u(),_=u(),p=2;let b=0;for(let u=0;u<s.length;u++){const t=s[u];for(let s=0;s<t;s++){const u=p*(s+b-1),x=p*(s+b),M=p*(s+b+1);s>0?a(o,r[u],r[u+1]):a(o,0,0),a(n,r[x],r[x+1]),s<t-1?a(d,r[M],r[M+1]):a(d,0,0),0===s?a(f,0,0):(l(f,n,o),h(f,f),a(f,f[1],-f[0])),s===t-1?a(g,0,0):(l(g,d,n),h(g,g),a(g,g[1],-g[0])),c(_,f,g),h(_,_);const v=_[0]*g[0]+_[1]*g[1];0!==v&&m(_,_,v),m(_,_,i),e.coords.push(n[0]+_[0],n[1]+_[1])}e.lengths.push(t),b+=t}return e}export{Z as LabelMeshWriter,D as labelMetricHash,j as lineLabelMetricHash};
5
+ import{memoize as e}from"../../../../../../../core/MapUtils.js";import{pt2px as t}from"../../../../../../../core/screenUtils.js";import{numericHash as i}from"../../../../../../../core/string.js";import{fromRotation as r,translate as s}from"../../../../../../../core/libs/gl-matrix-2/math/mat2d.js";import{create as o}from"../../../../../../../core/libs/gl-matrix-2/factories/mat2df32.js";import{transformMat2d as n,set as a,sub as l,normalize as h,add as c,scale as m}from"../../../../../../../core/libs/gl-matrix-2/math/vec2.js";import{fromValues as u}from"../../../../../../../core/libs/gl-matrix-2/factories/vec2f32.js";import{create as d}from"../../../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{GeometryCursor as f}from"../../../../../../../geometry/GeometryCursor.js";import{generalizeOptimizedGeometry as g,convertToGeometry as _}from"../../../../../../../layers/graphics/featureConversionUtils.js";import p from"../../../../../../../layers/graphics/OptimizedGeometry.js";import{tileSize as b,minMaxZoomPrecisionFactor as x}from"../../../definitions.js";import M from"../../../collisions/BoundingBox.js";import{LabelMetric as v}from"../../../collisions/LabelMetric.js";import{smoothPaths as y,pathDivide as P}from"../../../mesh/templates/segmentUtils.js";import{getMinMaxZoom as w,processColorInput as L}from"../fill/meshWriterUtils.js";import{TextMeshWriter as I,maxLabelZoom as B}from"../text/TextMeshWriter.js";const S=1,z=0,j=128;function A(e,t){return i(`${e}${t}`)}function D(e,t,r){return i(`${e}${t}${r}`)}function G(e,t,r,s){return i(`${e}${t}${r*2**(B-s)}`)}function Z(e,t,r,s,o){return i(`${e}${o}${t}${r*2**(B-s)}`)}const k=e(e=>{let t=0;if(0===e)return 1/0;for(;!(e%2);)t++,e/=2;return t});class F extends I{constructor(){super(...arguments),this._zoomLevel=0}_write(e,t,i,r){if(this._zoomLevel=r||0,null!=i)throw new Error("InternalError: EffectGeometry not support for LabelMeshWriter");switch(t.geometryType){case"esriGeometryPoint":{const i=t.readXForDisplay(),r=t.readYForDisplay();this._writePoint(e,i,r,0,t);break}case"esriGeometryEnvelope":case"esriGeometryPolygon":{const i=t.readCentroidForDisplay();if(!i)return;const[r,s]=i.coords;this._writePoint(e,r,s,0,t);break}case"esriGeometryMultipoint":{let i=0;const r=f.fromFeatureSetReader(t);if(r?.nextPath())for(;r.nextPoint();)this._writePoint(e,r.x,r.y,i++,t);break}case"esriGeometryPolyline":this._writeLines(e,t)}}_getMetricDir(){const{horizontalAlignment:e,verticalAlignment:t}=this.evaluatedMeshParams;return["center"===e?0:"right"===e?-1:1,"middle"===t?0:"bottom"===t?-1:1]}_createLineLabelMetric(e,t,i,r,s,o){const[n,a]=this._getMetricDir(),l=this.evaluatedMeshParams.scaleInfo?.maxScale??0,h=this.evaluatedMeshParams.scaleInfo?.minScale??0,c=this.evaluatedMeshParams.labelClassId;return new v(e,c,t,i,r,s,n,a,l,h,o)}_writePoint(e,t,i,r,s){if(t<0||t>b||i<0||i>b)return;const o=this._getShaping();if(!o)return;const n=s.getDisplayId(),a=this.evaluatedMeshParams.labelClassId,l=A(s.getObjectId(),r),h=D(s.getObjectId(),a,r),[c,m]=this._getMetricDir(),u=this.evaluatedMeshParams.scaleInfo?.maxScale??0,d=this.evaluatedMeshParams.scaleInfo?.minScale??0,f=this._getPointReferenceBounds()||{offsetX:0,offsetY:0,size:0};e.metricStart(new v(n,a,l,h,t,i,c,m,u,d,f)),this._writeGlyphs(e,n,t,i,o,0,f,void 0,!1),e.metricBoxWrite(o.boundsT),e.metricEnd()}_getPointReferenceBounds(){if(!this._references)return null;for(const e of this._references){const t=e.getBoundsInfo();if(t)return t}return null}_writeLines(e,t){const{scaleInfo:i,verticalAlignment:r}=this.evaluatedMeshParams,s=this.evaluatedMeshParams.repeatLabelDistance||128,o=this._getShaping("middle");if(!o)return;const n=(e,t,i,r)=>this._placeSubdivGlyphs(e,t,i,r),a=(o.bounds.width+s)/(1<<S);this._current={out:e,id:t.getDisplayId(),objId:t.getObjectId(),shaping:o,zoomRange:w(i,this.getTileInfo()),referenceBounds:this._getPointReferenceBounds()||{offsetX:0,offsetY:0,size:0},offsetDirection:null,pathIndex:0},this._verticalPlacement="bottom"===r?"above":"top"===r?"below":null,this._verticalPlacement?this._writeAboveAndBelowAlong(t,n,a):this._writeCenterAlong(t,n,a)}_writeAboveAndBelowAlong(e,t,i){const{repeatLabel:r}=this.evaluatedMeshParams,{shaping:s}=this._current,o=s.bounds.halfHeight,n=e.readGeometryForDisplay();if(!n)return;const a=new p;g(a,n,!1,!1,"esriGeometryPolyline",1);const l=C(new p,a,o),h=C(new p,a,-o),c=_(h,"esriGeometryPolyline",!1,!1),m=_(l,"esriGeometryPolyline",!1,!1),u=y(m.paths,s.bounds.width),d=y(c.paths,s.bounds.width);this._current.offsetDirection="above";for(let f=0;f<u.length;f++)this._current.pathIndex=f,P(u[f],i,t,!!r);this._current.offsetDirection="below";for(let f=0;f<d.length;f++)this._current.pathIndex=f,P(d[f],i,t,!!r)}_writeCenterAlong(e,t,i){const{repeatLabel:r}=this.evaluatedMeshParams,{shaping:s}=this._current,o=y(e.readLegacyGeometryForDisplay().paths,s.bounds.width);for(let n=0;n<o.length;n++)this._current.pathIndex=n,P(o[n],i,t,!!r)}_placeSubdivGlyphs(e,t,i,r){const{allowOverrun:s,labelPosition:o,repeatLabelDistance:n}=this.evaluatedMeshParams,a=this._current.zoomRange[0],l=k(t),h=this._current.shaping.bounds.width/(1<<S),c=Math.sqrt(n||j)/(1<<S),m=Math.min(i,r-i),u=this._current.shaping.isMultiline?B:Math.log2(m/(c+h/2)),d=0===t?u:Math.min(l,u),f=Math.max(a,this._zoomLevel+S-d),g=this._zoomLevel-f,_=this._current.shaping.bounds.width/2*2**g,p=G(this._current.objId,this._current.pathIndex,t,this._zoomLevel),b=Z(this._current.objId,this._current.pathIndex,t,this._zoomLevel,this.evaluatedMeshParams.labelClassId);this._current.shaping.isMultiline?0===t&&this._placeStraight(e,f,p,b):s&&g<0?this._placeStraightAlong(e,a,p,b):"parallel"===o?this._placeStraightAlong(e,f,p,b):"curved"===o&&this._placeCurved(e,f,_,p,b)}_placeStraight(e,t,i,r){const{out:s,id:o,shaping:n,referenceBounds:a}=this._current,{x:l,y:h}=e;s.metricStart(this._createLineLabelMetric(o,i,r,l,h)),s.metricBoxWrite(n.boundsT);const c=e.angle*(180/Math.PI)%360,m=(e.angle*(180/Math.PI)+180)%360,u={clipAngle:c,mapAligned:!0,isLineLabel:!0,minZoom:t};this._writeGlyphs(s,o,l,h,n,0,a,u,!1);const d={clipAngle:m,mapAligned:!0,isLineLabel:!0,minZoom:t};this._writeGlyphs(s,o,l,h,n,0,a,d,!1),s.metricEnd()}_placeCurved(e,t,i,r,s){const{out:o,id:n}=this._current;o.metricStart(this._createLineLabelMetric(n,r,s,e.x,e.y));const a=e.clone(),l=e.angle*(180/Math.PI)%360,h=(e.angle*(180/Math.PI)+180)%360;this._verticalPlacement&&this._verticalPlacement!==this._current.offsetDirection||(this._placeFirst(a,t,1,l),this._placeBack(e,a,t,i,1,l),this._placeForward(e,a,t,i,1,l)),this._verticalPlacement&&this._verticalPlacement===this._current.offsetDirection||(this._placeFirst(a,t,0,h),this._placeBack(e,a,t,i,0,h),this._placeForward(e,a,t,i,0,h)),o.metricEnd()}_placeStraightAlong(e,i,n,a){const{out:l,id:h,shaping:c,zoomRange:m,referenceBounds:d}=this._current,{boxBorderLineColor:f,boxBackgroundColor:g}=this.evaluatedMeshParams,_=e.clone(),p=e.angle*(180/Math.PI)%360,b=(e.angle*(180/Math.PI)+180)%360,x=c.glyphs.length>0&&!(!f&&!g);if(l.metricStart(this._createLineLabelMetric(h,n,a,e.x,e.y)),x){const n=Math.max(i,m[0],0),a=Math.min(B,m[1]),f=r(o(),-e.angle),g={minZoom:n,maxZoom:a,clipAngle:p,mapAligned:!0,isLineLabel:!0},_=t(this.evaluatedMeshParams.offsetX),x=t(this.evaluatedMeshParams.offsetY);if(!this._verticalPlacement||this._verticalPlacement===this._current.offsetDirection){const t=u(_,-1*x),[i,r]=c.shapeBackground(s(o(),f,t));l.recordStart(this.instanceId,this.attributeLayout,c.glyphs[0].textureBinding),this._writeTextBox(l,h,e.x,e.y,r,d,g),l.recordEnd()}if(!this._verticalPlacement||this._verticalPlacement!==this._current.offsetDirection){const t=u(_,x),[i,r]=c.shapeBackground(s(o(),f,t));g.clipAngle=b,l.recordStart(this.instanceId,this.attributeLayout,c.glyphs[0].textureBinding),this._writeTextBox(l,h,e.x,e.y,r,d,g),l.recordEnd()}}this._verticalPlacement&&this._verticalPlacement!==this._current.offsetDirection||this._placeFirst(_,i,1,p,!0),this._verticalPlacement&&this._verticalPlacement===this._current.offsetDirection||this._placeFirst(_,i,0,b,!0),l.metricEnd()}_placeBack(e,t,i,r,s,o){const n=e.clone();let a=e.backwardLength+z;for(;n.prev()&&!(a>=r);)this._placeOnSegment(n,t,a,i,-1,s,o),a+=n.length+z}_placeForward(e,t,i,r,s,o){const n=e.clone();let a=e.remainingLength+z;for(;n.next()&&!(a>=r);)this._placeOnSegment(n,t,a,i,1,s,o),a+=n.length+z}_placeFirst(e,i,s,a,l=!1){const{out:h,id:c,shaping:m,zoomRange:d,referenceBounds:f}=this._current,g=m.glyphs,_=t(this.evaluatedMeshParams.offsetX),p=t(this.evaluatedMeshParams.offsetY),b=u(_,p),x=r(o(),-e.angle);n(b,b,x);for(const t of g){const r=t.x>m.bounds.x?s:1-s,o=r*e.remainingLength+(1-r)*e.backwardLength,n=Math.abs(t.x+t.width/2-m.bounds.x),u=Math.max(0,this._zoomLevel+Math.log2(n/(o+z))),g=Math.max(i,l?0:u);if(t.maxZoom=Math.min(d[1],B),t.angle=e.angle+(1-s)*Math.PI,t.minZoom=Math.max(d[0],g),this._writeLineGlyph(h,c,e.x,e.y,t,a,f,!0),(s||this._current.offsetDirection)&&this._isVisible(t.minZoom,t.maxZoom)){const e=new M(t.bounds.x+b[0],t.bounds.y+b[1],t.bounds.width,t.bounds.height);h.metricBoxWrite(e)}}}_placeOnSegment(e,i,s,a,l,h,c){const{out:m,id:d,shaping:f,referenceBounds:g}=this._current,_=f.glyphs,p=e.dx/e.length,b=e.dy/e.length,x={x:e.x+s*-l*p,y:e.y+s*-l*b},v=t(this.evaluatedMeshParams.offsetX),y=t(this.evaluatedMeshParams.offsetY),P=u(v,y),w=r(o(),-e.angle);n(P,P,w);for(const t of _){const i=t.x>f.bounds.x?h:1-h;if(!(i&&1===l||!i&&-1===l))continue;const r=Math.abs(t.x+t.width/2-f.bounds.x),o=Math.max(0,this._zoomLevel+Math.log2(r/s)-.1),n=Math.max(a,this._zoomLevel+Math.log2(r/(s+e.length+z)));if(0!==o&&(t.angle=e.angle+(1-h)*Math.PI,t.minZoom=n,t.maxZoom=o,this._writeLineGlyph(m,d,x.x,x.y,t,c,g,!0),(h||this._current.offsetDirection)&&this._isVisible(t.minZoom,t.maxZoom))){const e=new M(t.bounds.x+P[0],t.bounds.y+P[1],t.bounds.width,t.bounds.height);m.metricBoxWrite(e)}}}_writeLineGlyph(e,t,i,r,s,o,n,a){if(i<0||i>b||r<0||r>b)return;e.recordStart(this.instanceId,this.attributeLayout,s.textureBinding);const{texcoords:l,offsets:h}=s,{fontSize:c,haloSize:m,outlineSize:u}=this._textMeshTransformProps;this._writeQuad(e,t,i,r,{texcoords:l,offsets:h,fontSize:c,haloSize:m,outlineSize:u,color:L(this.evaluatedMeshParams.color),isBackground:!1,referenceBounds:n,minZoom:Math.max(this._current.zoomRange[0],s.minZoom),maxZoom:Math.min(this._current.zoomRange[1],s.maxZoom),clipAngle:o,mapAligned:a,isLineLabel:!0}),e.recordEnd()}_packedZoom(e){return Math.floor(e*x)/x}_isVisible(e,t){let i=Math.max(this._current.zoomRange[0],e),r=Math.min(this._current.zoomRange[1],t);i=this._packedZoom(i),r=this._packedZoom(r);const s=this._packedZoom(this._zoomLevel);return i<=s&&s<=r}}function C(e,t,i){const{coords:r,lengths:s}=t,o=d(),n=d(),u=d(),f=d(),g=d(),_=d(),p=2;let b=0;for(let d=0;d<s.length;d++){const t=s[d];for(let s=0;s<t;s++){const d=p*(s+b-1),x=p*(s+b),M=p*(s+b+1);s>0?a(o,r[d],r[d+1]):a(o,0,0),a(n,r[x],r[x+1]),s<t-1?a(u,r[M],r[M+1]):a(u,0,0),0===s?a(f,0,0):(l(f,n,o),h(f,f),a(f,f[1],-f[0])),s===t-1?a(g,0,0):(l(g,u,n),h(g,g),a(g,g[1],-g[0])),c(_,f,g),h(_,_);const v=_[0]*g[0]+_[1]*g[1];0!==v&&m(_,_,v),m(_,_,i),e.coords.push(n[0]+_[0],n[1]+_[1])}e.lengths.push(t),b+=t}return e}export{F as LabelMeshWriter,A as labelIdHash,D as labelMetricHash,G as lineLabelIdHash,Z as lineLabelMetricHash};
@@ -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{SizedPixelFormat as e}from"../../../../../../../webgl/enums.js";import{FramebufferObject as r}from"../../../../../../../webgl/FramebufferObject.js";import{Texture as t}from"../../../../../../../webgl/Texture.js";import{TextureDescriptor as n}from"../../../../../../../webgl/TextureDescriptor.js";function o(r,t){const o=new n(r,t);return o.internalFormat=e.RGBA32F,o.samplingMode=9728,o.dataType=5126,o.isImmutable=!0,o.wrapMode=33071,o}function m(e,r,n){const m=o(r,n);return new t(e,m)}function s(e,t,n){const m=o(t,n);return new r(e,m)}export{s as createNewFBO,m as createProcessedTexture};
5
+ import{SizedPixelFormat as e,PixelType as r}from"../../../../../../../webgl/enums.js";import{FramebufferObject as t}from"../../../../../../../webgl/FramebufferObject.js";import{Texture as n}from"../../../../../../../webgl/Texture.js";import{TextureDescriptor as o}from"../../../../../../../webgl/TextureDescriptor.js";function m(t,n){const m=new o(t,n);return m.internalFormat=e.RGBA32F,m.samplingMode=9728,m.dataType=r.FLOAT,m.isImmutable=!0,m.wrapMode=33071,m}function s(e,r,t){const o=m(r,t);return new n(e,o)}function u(e,r,n){const o=m(r,n);return new t(e,o)}export{u as createNewFBO,s as createProcessedTexture};
@@ -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 r from"../../../../../../core/Error.js";import e from"../../../../../../core/Logger.js";import{getDeepValue as t}from"../../../../../../core/object.js";import"../../../../../webgl/BufferObject.js";import"../../../../../webgl/FramebufferObject.js";import{Program as o}from"../../../../../webgl/Program.js";import"../../../../../../core/has.js";import"../../../../../webgl/Renderbuffer.js";import"../../../../../webgl/Texture.js";import"../../../../../webgl/enums.js";import"../../../../../webgl/checkWebGLError.js";import{createTexture as i}from"../../textureUtils.js";const s=()=>e.getLogger("esri.views.2d.engine.webgl.shaderGraph.typed.TypedShaderProgram");function n(e,t,o){const i=t.length;if(i!==o){const n=new r("Invalid Uniform",`Invalid length, expected ${o} but got ${i}`,{uniformName:e,values:t});s().errorOnce(n)}}class a{constructor(r,e,t,o,i,s){this._program=null,this._vao=null,this._temporaryTextures=[],this.vertexShader=r,this.fragmentShader=e,this._locations=t,this._locationInfo=o,this._uniformBindings=i,this._transformFeedbackBindings=s}destroy(){this._program&&this._program.dispose(),this.cleanupTemporaryTextures()}get locations(){return this._locations}get locationInfo(){return this._locationInfo}setUniforms(r){this._uniforms=r}cleanupTemporaryTextures(){for(const r of this._temporaryTextures)r.dispose();this._temporaryTextures=[]}bind(r){const e=this._uniforms;if(!this._program){const e=new Map;for(const[r,o]of this._locations)e.set(r,o);const t=[];for(const r of this._transformFeedbackBindings??[]){const{index:e,propertyKey:o}=r;t[e]=`v_${o}`}this._program=new o(r,this.vertexShader,this.fragmentShader,e,new Map,t)}const s=this._program;r.useProgram(s);for(const o of this._uniformBindings){const{shaderModulePath:a,uniformName:f,uniformType:m,uniformArrayLength:c}=o,u=t(a,e);if(null==u){if("sampler2D"===m)continue;throw new Error(`Failed to find uniform value for ${a}`)}switch("array"===m||"array-2d"===m?o.uniformArrayElementType:m){case"sampler2D":{const{unit:e,texture:t}=u;if(s.setUniform1i(f,e),"type"in t)r.bindTexture(t,e);else{const o=i(r,t.descriptor,t.data);r.bindTexture(o,e)}break}case"int":if(!c){s.setUniform1i(f,u);break}n(o.uniformName,u,c),s.setUniform1iv(f,u);break;case"float":if(!c){s.setUniform1f(f,u);break}n(o.uniformName,u,c),s.setUniform1fv(f,u);break;case"vec2":if(!c){s.setUniform2f(f,u[0],u[1]);break}n(o.uniformName,u,c),s.setUniform2fv(f,u.flat());break;case"vec3":if(!c){s.setUniform3f(f,u[0],u[1],u[2]);break}n(o.uniformName,u,c),s.setUniform3fv(f,u.flat());break;case"vec4":if(!c){s.setUniform4f(f,u[0],u[1],u[2],u[3]);break}n(o.uniformName,u,c),s.setUniform4fv(f,u.flat());break;case"mat3":s.setUniformMatrix3fv(f,u);break;case"mat4":s.setUniformMatrix4fv(f,u);break;default:throw new Error(`Unable to set uniform for type ${m}`)}}}}export{a as TypedShaderProgram};
5
+ import r from"../../../../../../core/Error.js";import e from"../../../../../../core/Logger.js";import{disposeMaybe as t}from"../../../../../../core/maybe.js";import{getDeepValue as o}from"../../../../../../core/object.js";import"../../../../../webgl/BufferObject.js";import"../../../../../webgl/FramebufferObject.js";import{Program as i}from"../../../../../webgl/Program.js";import"../../../../../../core/has.js";import"../../../../../webgl/Renderbuffer.js";import"../../../../../webgl/Texture.js";import"../../../../../webgl/enums.js";import"../../../../../webgl/checkWebGLError.js";import{createTexture as s}from"../../textureUtils.js";const n=()=>e.getLogger("esri.views.2d.engine.webgl.shaderGraph.typed.TypedShaderProgram");function a(e,t,o){const i=t.length;if(i!==o){const s=new r("Invalid Uniform",`Invalid length, expected ${o} but got ${i}`,{uniformName:e,values:t});n().errorOnce(s)}}class f{constructor(r,e,t,o,i){this.vertexShader=r,this.fragmentShader=e,this._locations=t,this._uniformBindings=o,this._transformFeedbackBindings=i,this._vao=null,this._temporaryTextures=[]}destroy(){this._program=t(this._program),this.cleanupTemporaryTextures()}setUniforms(r){this._uniforms=r}cleanupTemporaryTextures(){for(const r of this._temporaryTextures)r.dispose();this._temporaryTextures=[]}bind(r){const e=this._uniforms;if(!this._program){const e=[];for(const r of this._transformFeedbackBindings??[]){const{index:t,propertyKey:o}=r;e[t]=`v_${o}`}this._program=new i(r,this.vertexShader,this.fragmentShader,this._locations,new Map,e)}const t=this._program;r.useProgram(t);for(const i of this._uniformBindings){const{shaderModulePath:n,uniformName:f,uniformType:m,uniformArrayLength:c}=i,u=o(n,e);if(null==u){if("sampler2D"===m)continue;throw new Error(`Failed to find uniform value for ${n}`)}switch("array"===m||"array-2d"===m?i.uniformArrayElementType:m){case"sampler2D":{const{unit:e,texture:o}=u;if(t.setUniform1i(f,e),"type"in o)r.bindTexture(o,e);else{const t=s(r,o.descriptor,o.data);r.bindTexture(t,e)}break}case"int":if(!c){t.setUniform1i(f,u);break}a(i.uniformName,u,c),t.setUniform1iv(f,u);break;case"float":if(!c){t.setUniform1f(f,u);break}a(i.uniformName,u,c),t.setUniform1fv(f,u);break;case"vec2":if(!c){t.setUniform2f(f,u[0],u[1]);break}a(i.uniformName,u,c),t.setUniform2fv(f,u.flat());break;case"vec3":if(!c){t.setUniform3f(f,u[0],u[1],u[2]);break}a(i.uniformName,u,c),t.setUniform3fv(f,u.flat());break;case"vec4":if(!c){t.setUniform4f(f,u[0],u[1],u[2],u[3]);break}a(i.uniformName,u,c),t.setUniform4fv(f,u.flat());break;case"mat3":t.setUniformMatrix3fv(f,u);break;case"mat4":t.setUniformMatrix4fv(f,u);break;default:throw new Error(`Unable to set uniform for type ${m}`)}}}}export{f as TypedShaderProgram};
@@ -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{resolveIncludes as r}from"./sources/resolver.js";const e={shaders:{vertexShader:r("background/background.vert"),fragmentShader:r("background/background.frag")},attributes:new Map([["a_pos",0]])};export{e as background};
5
+ import{resolveIncludes as r}from"./sources/resolver.js";const e={vertexShader:r("background/background.vert"),fragmentShader:r("background/background.frag")};export{e as background};
@@ -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{resolveIncludes as t}from"./sources/resolver.js";const e={shaders:{vertexShader:t("bitBlit/bitBlit.vert"),fragmentShader:t("bitBlit/bitBlit.frag")},attributes:new Map([["a_pos",0],["a_tex",1]])};export{e as bitBlit};
5
+ import{resolveIncludes as t}from"./sources/resolver.js";const r={vertexShader:t("bitBlit/bitBlit.vert"),fragmentShader:t("bitBlit/bitBlit.frag")};export{r as bitBlit};
@@ -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{resolveIncludes as e}from"./sources/resolver.js";const t={shaders:{vertexShader:e("highlight/textured.vert"),fragmentShader:e("highlight/highlight.frag")},attributes:new Map([["a_position",0],["a_texcoord",1]])},r={shaders:{vertexShader:e("highlight/textured.vert"),fragmentShader:e("highlight/blur.frag")},attributes:new Map([["a_position",0],["a_texcoord",1]])};export{r as blur,t as highlight};
5
+ import{resolveIncludes as r}from"./sources/resolver.js";const e={vertexShader:r("highlight/textured.vert"),fragmentShader:r("highlight/highlight.frag")},h={vertexShader:r("highlight/textured.vert"),fragmentShader:r("highlight/blur.frag")};export{h as blur,e as highlight};
@@ -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{resolveIncludes as e}from"./sources/resolver.js";import{glslifyDefineMap as r}from"../../../../webgl/programUtils.js";const t=e=>{let r="";r+=e[0].toUpperCase();for(let t=1;t<e.length;t++){const s=e[t];s===s.toUpperCase()?(r+="_",r+=s):r+=s.toUpperCase()}return r},s=e=>{const s={};for(const r in e){s[t(r)]=e[r]}return r(s)},o=(r,t,o,a)=>{const n=r+r.slice(Math.max(0,r.lastIndexOf("/"))),l=t+t.slice(Math.max(0,t.lastIndexOf("/"))),p=s(a);return{attributes:o,shaders:{vertexShader:p+e(`${n}.vert`),fragmentShader:p+e(`${l}.frag`)}}};export{o as createProgramTemplate};
5
+ import{resolveIncludes as e}from"./sources/resolver.js";import{glslifyDefineMap as r}from"../../../../webgl/programUtils.js";const t=e=>{let r="";r+=e[0].toUpperCase();for(let t=1;t<e.length;t++){const o=e[t];o===o.toUpperCase()?(r+="_",r+=o):r+=o.toUpperCase()}return r},o=e=>{const o={};for(const r in e){o[t(r)]=e[r]}return r(o)};function s(r,t,s){const n=r+r.slice(Math.max(0,r.lastIndexOf("/"))),a=t+t.slice(Math.max(0,t.lastIndexOf("/"))),l=o(s);return{vertexShader:l+e(`${n}.vert`),fragmentShader:l+e(`${a}.frag`)}}export{s as createProgramTemplate};
@@ -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{resolveIncludes as e}from"./sources/resolver.js";const r={shaders:{vertexShader:e("stencil/stencil.vert"),fragmentShader:e("stencil/stencil.frag")},attributes:new Map([["a_pos",0]])};export{r as stencil};
5
+ import{resolveIncludes as e}from"./sources/resolver.js";const r={vertexShader:e("stencil/stencil.vert"),fragmentShader:e("stencil/stencil.frag")};export{r as stencil};
@@ -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{resolveIncludes as e}from"./sources/resolver.js";const r={shaders:{vertexShader:e("tileInfo/tileInfo.vert"),fragmentShader:e("tileInfo/tileInfo.frag")},attributes:new Map([["a_pos",0]])};export{r as tileInfo};
5
+ import{resolveIncludes as e}from"./sources/resolver.js";const r={vertexShader:e("tileInfo/tileInfo.vert"),fragmentShader:e("tileInfo/tileInfo.frag")};export{r as tileInfo};
@@ -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"../../../../Color.js";import i from"../../../../Graphic.js";import{destroyMaybe as o}from"../../../../core/maybe.js";import{watch as r}from"../../../../core/reactiveUtils.js";import{property as s}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{project as a,initializeProjection as h}from"../../../../geometry/projectionUtils.js";import{isValid as c}from"../../../../geometry/support/spatialReferenceUtils.js";import l from"../../../../layers/GraphicsLayer.js";import p from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as d}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as m}from"./manipulations/DragManipulation.js";import{primaryKey as y}from"../../../input/keys.js";import{InteractiveToolBase as _}from"../../../interactive/InteractiveToolBase.js";import{EditGeometryOperations as g}from"../../../interactive/editGeometry/EditGeometryOperations.js";const f={up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",toggleOpacity:"t",shift:"Shift",primaryKey:y},u=1,P=10,v=new e("#009af2");let S=class extends _{constructor(t){super(t),this._isOpacityToggled=!1,this._isModifierActive=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new l({internal:!0,listMode:"hide",visible:!1,effect:"drop-shadow(0px, 0px, 3px)"}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.type="reshape"}initialize(){this._initialize()}destroy(){const{map:t}=this.view;this._controlPointManipulations.forEach(t=>t.destroy()),this._controlPointEditGeometryOperations.forEach(t=>t.destroy()),t.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=o(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return c(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){const t=this._undoStack[this._undoStack.length-1];return null!=t&&this._controlPointEditGeometryOperations[t].canUndo}canRedo(){const t=this._redoStack[this._redoStack.length-1];return null!=t&&this._controlPointEditGeometryOperations[t].canRedo}undo(){if(this._undoStack.length>0){const t=this._undoStack.pop();this._controlPointEditGeometryOperations[t].undo(),this.updateGraphics(),this._redoStack.push(t)}}redo(){if(this._redoStack.length>0){const t=this._redoStack.pop();this._controlPointEditGeometryOperations[t].redo(),this.updateGraphics(),this._undoStack.push(t)}}refresh(){const{mediaElement:t}=this;if(null==t.georeference)return;const e=t.georeference;"control-points"===e.type&&null!=e.coords&&(this._georeference=e,this._georeference.controlPoints.forEach(({mapPoint:t},e)=>{const i=this._controlPointEditGeometryOperations[e],o=i.data.components[0].vertices[0];i.setVertexPosition(o,i.data.coordinateHelper.pointToVector(t))}),this.updateGraphics())}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){const t=this._georeference,e=t.controlPoints,i=e[0].mapPoint.spatialReference,o=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((r,s)=>{const n=r.data.geometry;return this._controlPointGraphics[s].geometry=n,{mapPoint:a(n,i),sourcePoint:o?e[s].sourcePoint:t.toSource(n)}})}updateActiveHandle(t){if(this.activeHandle===t)return;const e=this._controlPointGraphics[this.activeHandle].symbol.clone();d(e,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=e;const i=this._controlPointGraphics[t].symbol.clone();d(i,v),this._controlPointGraphics[t].symbol=i,this.activeHandle=t,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();const t=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=t.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(t){this._sharedUndoStack=t}setSharedRedoStack(t){this._sharedRedoStack=t}async _initialize(){const{view:t,mediaElement:e}=this;if(null==e.georeference)return;const o=e.georeference;"control-points"===o.type&&null!=o.coords&&(this._georeference=o,this._initialControlPoints=this._georeference.controlPoints,t.map.addMany([this._graphicsLayer]),t.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:e})=>g.fromGeometry(a(e,t.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((t,e)=>new i({symbol:new p({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:9,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:22.5,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:e===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:"Display",angle:0}}}),geometry:t.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(e=>new m({tool:this,view:t,graphic:e})),this.addHandles([...this._controlPointManipulations.map((t,e)=>t.createDragPipeline(this._getInfo.bind(this,e),(t,i)=>{"start"===t.action&&(this._undoStack.push(e),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0),this.updateGraphics()})),r(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((t,e)=>{const i=t=>{this.addHandles([t.events.on(["click","grab-changed"],t=>this.updateActiveHandle(e))])};t.forEachManipulator(i)}),this.addHandles([t.on("key-down",i=>{t.activeTool===this&&(i.key!==f.shift||i.repeat||(this._isModifierActive=!0,i.stopPropagation()),i.key!==f.toggleOpacity||i.repeat||(e.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled,i.stopPropagation()),i.key!==f.primaryKey||i.repeat||(this._factor=P,i.stopPropagation()),this._isModifierActive&&(i.key===f.up&&(this._move(0,this._factor),i.stopPropagation()),i.key===f.down&&(this._move(0,-this._factor),i.stopPropagation()),i.key===f.left&&(this._move(-this._factor,0),i.stopPropagation()),i.key===f.right&&(this._move(this._factor,0),i.stopPropagation())))}),t.on("key-up",e=>{t.activeTool===this&&(e.key===f.shift&&(this._isModifierActive=!1,e.stopPropagation()),e.key===f.primaryKey&&(this._factor=u,e.stopPropagation()))})]))}async _loadProjectionEngine(){const t=this._georeference.controlPoints[0].mapPoint;return h(t.spatialReference,this.view.spatialReference)}_getInfo(t){return{editGeometryOperations:this._controlPointEditGeometryOperations[t],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(t,e){const i=this._controlPointEditGeometryOperations[this.activeHandle].move(t*this.view.resolution,e*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}};t([s()],S.prototype,"_hasValidSpatialReference",null),t([s()],S.prototype,"activeHandle",void 0),t([s({constructOnly:!0,nonNullable:!0})],S.prototype,"mediaElement",void 0),t([s({readOnly:!0})],S.prototype,"type",void 0),t([s({constructOnly:!0})],S.prototype,"view",void 0),S=t([n("esri.views.2d.interactive.editingTools.ControlPointsTransformTool")],S);export{S as ControlPointsTransformTool,f as keys};
5
+ import{__decorate as t}from"tslib";import e from"../../../../Color.js";import i from"../../../../Graphic.js";import{destroyMaybe as o}from"../../../../core/maybe.js";import{watch as r}from"../../../../core/reactiveUtils.js";import{property as s}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{project as a,initializeProjection as h}from"../../../../geometry/projectionUtils.js";import{isValid as c}from"../../../../geometry/support/spatialReferenceUtils.js";import l from"../../../../layers/GraphicsLayer.js";import p from"../../../../symbols/CIMSymbol.js";import{applyCIMSymbolColor as d}from"../../../../symbols/support/cimSymbolUtils.js";import{DragManipulation as m}from"./manipulations/DragManipulation.js";import{primaryKey as y}from"../../../input/keys.js";import{InteractiveToolBase as _}from"../../../interactive/InteractiveToolBase.js";import{EditGeometryOperations as g}from"../../../interactive/editGeometry/EditGeometryOperations.js";const f={up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",toggleOpacity:"t",shift:"Shift",primaryKey:y},u=1,P=10,v=new e("#009af2");let S=class extends _{constructor(t){super(t),this._isOpacityToggled=!1,this._isModifierActive=!1,this._factor=1,this._initialControlPoints=null,this._graphicsLayer=new l({internal:!0,listMode:"hide",visible:!1,effect:"drop-shadow(0px, 0px, 3px)",title:"ControlPointsTransformationTool layer"}),this._undoStack=[],this._redoStack=[],this._sharedUndoStack=[],this._sharedRedoStack=[],this._highlightHandle=null,this.activeHandle=0,this.type="reshape"}initialize(){this._initialize()}destroy(){const{map:t}=this.view;this._controlPointManipulations.forEach(t=>t.destroy()),this._controlPointEditGeometryOperations.forEach(t=>t.destroy()),t.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=o(this._graphicsLayer),this._georeference=null,this._controlPointGraphics=null,this._controlPointManipulations=null,this._graphicsLayer=null,this._controlPointEditGeometryOperations=null,this._undoStack=null,this._redoStack=null,this._initialControlPoints=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _hasValidSpatialReference(){return c(this.view.spatialReference)}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){const t=this._undoStack[this._undoStack.length-1];return null!=t&&this._controlPointEditGeometryOperations[t].canUndo}canRedo(){const t=this._redoStack[this._redoStack.length-1];return null!=t&&this._controlPointEditGeometryOperations[t].canRedo}undo(){if(this._undoStack.length>0){const t=this._undoStack.pop();this._controlPointEditGeometryOperations[t].undo(),this.updateGraphics(),this._redoStack.push(t)}}redo(){if(this._redoStack.length>0){const t=this._redoStack.pop();this._controlPointEditGeometryOperations[t].redo(),this.updateGraphics(),this._undoStack.push(t)}}refresh(){const{mediaElement:t}=this;if(null==t.georeference)return;const e=t.georeference;"control-points"===e.type&&null!=e.coords&&(this._georeference=e,this._georeference.controlPoints.forEach(({mapPoint:t},e)=>{const i=this._controlPointEditGeometryOperations[e],o=i.data.components[0].vertices[0];i.setVertexPosition(o,i.data.coordinateHelper.pointToVector(t))}),this.updateGraphics())}reset(){this._georeference.controlPoints=this._initialControlPoints,this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){const t=this._georeference,e=t.controlPoints,i=e[0].mapPoint.spatialReference,o=this._hasValidSpatialReference;this._georeference.controlPoints=this._controlPointEditGeometryOperations.map((r,s)=>{const n=r.data.geometry;return this._controlPointGraphics[s].geometry=n,{mapPoint:a(n,i),sourcePoint:o?e[s].sourcePoint:t.toSource(n)}})}updateActiveHandle(t){if(this.activeHandle===t)return;const e=this._controlPointGraphics[this.activeHandle].symbol.clone();d(e,this.view.effectiveTheme.accentColor),this._controlPointGraphics[this.activeHandle].symbol=e;const i=this._controlPointGraphics[t].symbol.clone();d(i,v),this._controlPointGraphics[t].symbol=i,this.activeHandle=t,this.view.surface===document.activeElement&&this.highlightActiveHandle()}async highlightActiveHandle(){this.removeHighlightActiveHandle();const t=await this.view.whenLayerView(this._graphicsLayer);this._highlightHandle=t.highlight(this._controlPointGraphics[this.activeHandle])}removeHighlightActiveHandle(){this._highlightHandle&&this._highlightHandle.remove()}setSharedUndoStack(t){this._sharedUndoStack=t}setSharedRedoStack(t){this._sharedRedoStack=t}async _initialize(){const{view:t,mediaElement:e}=this;if(null==e.georeference)return;const o=e.georeference;"control-points"===o.type&&null!=o.coords&&(this._georeference=o,this._initialControlPoints=this._georeference.controlPoints,t.map.addMany([this._graphicsLayer]),t.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._controlPointEditGeometryOperations=this._georeference.controlPoints.map(({mapPoint:e})=>g.fromGeometry(a(e,t.spatialReference),2)),this._controlPointGraphics=this._controlPointEditGeometryOperations.map((t,e)=>new i({symbol:new p({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-15.75},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:9,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[255,255,255,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:0},{type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:-11.25},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:22.5,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:e===this.activeHandle?v.toArray():this.view.effectiveTheme.accentColor.toArray()}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:0}],haloSize:1,scaleX:1,angleAlignment:"Display",angle:0}}}),geometry:t.data.geometry})),this._graphicsLayer.graphics.addMany([...this._controlPointGraphics]),this._controlPointManipulations=this._controlPointGraphics.map(e=>new m({tool:this,view:t,graphic:e})),this.addHandles([...this._controlPointManipulations.map((t,e)=>t.createDragPipeline(this._getInfo.bind(this,e),(t,i)=>{"start"===t.action&&(this._undoStack.push(e),this._redoStack=[],this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0),this.updateGraphics()})),r(()=>this.view.scale,()=>this.active?this.updateGraphics():null)]),this._controlPointManipulations.forEach((t,e)=>{const i=t=>{this.addHandles([t.events.on(["click","grab-changed"],t=>this.updateActiveHandle(e))])};t.forEachManipulator(i)}),this.addHandles([t.on("key-down",i=>{t.activeTool===this&&(i.key!==f.shift||i.repeat||(this._isModifierActive=!0,i.stopPropagation()),i.key!==f.toggleOpacity||i.repeat||(e.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled,i.stopPropagation()),i.key!==f.primaryKey||i.repeat||(this._factor=P,i.stopPropagation()),this._isModifierActive&&(i.key===f.up&&(this._move(0,this._factor),i.stopPropagation()),i.key===f.down&&(this._move(0,-this._factor),i.stopPropagation()),i.key===f.left&&(this._move(-this._factor,0),i.stopPropagation()),i.key===f.right&&(this._move(this._factor,0),i.stopPropagation())))}),t.on("key-up",e=>{t.activeTool===this&&(e.key===f.shift&&(this._isModifierActive=!1,e.stopPropagation()),e.key===f.primaryKey&&(this._factor=u,e.stopPropagation()))})]))}async _loadProjectionEngine(){const t=this._georeference.controlPoints[0].mapPoint;return h(t.spatialReference,this.view.spatialReference)}_getInfo(t){return{editGeometryOperations:this._controlPointEditGeometryOperations[t],constraints:this._hasValidSpatialReference?null:{xmin:0,ymin:0,xmax:this._georeference.width,ymax:this._georeference.height}}}_move(t,e){const i=this._controlPointEditGeometryOperations[this.activeHandle].move(t*this.view.resolution,e*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}};t([s()],S.prototype,"_hasValidSpatialReference",null),t([s()],S.prototype,"activeHandle",void 0),t([s({constructOnly:!0,nonNullable:!0})],S.prototype,"mediaElement",void 0),t([s({readOnly:!0})],S.prototype,"type",void 0),t([s({constructOnly:!0})],S.prototype,"view",void 0),S=t([n("esri.views.2d.interactive.editingTools.ControlPointsTransformTool")],S);export{S as ControlPointsTransformTool,f as keys};
@@ -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"../../../../Graphic.js";import{getContrast as i}from"../../../../core/colorUtils.js";import{destroyMaybe as s}from"../../../../core/maybe.js";import{watch as o}from"../../../../core/reactiveUtils.js";import{getMetersPerUnitForSR as r}from"../../../../core/unitUtils.js";import{property as a}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{subtract as h,normalize as c}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as l,UNIT_X as p}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{g as d,l as _,n as m,f as u,m as g,d as y}from"../../../../chunks/vec32.js";import{create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import v from"../../../../geometry/Point.js";import G from"../../../../geometry/Polygon.js";import{project as w,initializeProjection as R}from"../../../../geometry/projectionUtils.js";import{a as b,c as C}from"../../../../chunks/boundedPlane.js";import{equals as j}from"../../../../geometry/support/spatialReferenceUtils.js";import k from"../../../../layers/GraphicsLayer.js";import S from"../../../../symbols/SimpleFillSymbol.js";import A from"../../../../symbols/SimpleMarkerSymbol.js";import{DragManipulation as P}from"./manipulations/DragManipulation.js";import{RotateManipulation as T}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as M}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as x,SnapRotation as O}from"./manipulations/utils.js";import{InteractiveToolBase as D}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as U,mediaKeys as L}from"../../../interactive/keybindings.js";import{EditGeometry as B}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as E}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as H}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as I}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as z}from"../../../support/screenUtils.js";const V=80,q=10,F=30,N=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]],J=1,K=10;let Q=class extends D{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=b(),this._displayPlaneCache=b(),this._mainAxisCache=l(),this._rotationHandleCache=f(),this._cornerA=f(),this._cornerB=f(),this._cornerC=f(),this._cornerD=f(),this._avgAB=f(),this._avgBC=f(),this._avgCD=f(),this._avgDA=f(),this._preserveAspectRatio=new x,this._snapRotation=new O,this._graphicsLayer=new k({internal:!0,listMode:"hide",visible:!1}),this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=J,this.preserveAspectRatio=null,this.snapRotation=null,this.type="transform"}initialize(){this._initialize()}destroy(){const{map:e}=this.view;this._dragManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=s(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _plane(){const e=this._graphic.geometry;if(null==e)return null;const t=this._editGeometryOperations.data,i=t.components[0].edges[0],s=h(this._mainAxisCache,i.leftVertex.pos,i.rightVertex.pos);c(s,s);let o=V*this.view.resolution;const a=this.view.spatialReference;return j(a,e.spatialReference)&&(o*=r(a)/r(e.spatialReference)),H(s,t,o,this._planeCache)}get _displayPlane(){const e=this._plane;if(!e)return null;const t=this._displayPlaneCache;C(e,t);const i=q*this.view.resolution;return d(t.basis1,t.basis1,1+i/_(t.basis1)),d(t.basis2,t.basis2,1+i/_(t.basis2)),t}get _backgroundGraphicGeometry(){const e=this._displayPlane;if(!e)return null;const t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new G({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _rotateGraphicGeometry(){const e=this._plane;if(!e)return null;const t=this._rotationHandleCache;return m(t,e.basis1),d(t,t,F*this.view.resolution),u(t,t,e.origin),u(t,t,e.basis1),new v({x:t[0],y:t[1],spatialReference:this.view.spatialReference})}get _scaleGraphicGeometries(){const e=this._displayPlane;if(!e)return[];const t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);const{_cornerA:i,_cornerB:s,_cornerC:o,_cornerD:r}=this,a=g(this._avgAB,i,s,.5),n=g(this._avgBC,s,o,.5),h=g(this._avgCD,o,r,.5),c=g(this._avgDA,r,i,.5);return[new v({x:i[0],y:i[1],spatialReference:t}),new v({x:s[0],y:s[1],spatialReference:t}),new v({x:o[0],y:o[1],spatialReference:t}),new v({x:r[0],y:r[1],spatialReference:t}),new v({x:a[0],y:a[1],spatialReference:t}),new v({x:n[0],y:n[1],spatialReference:t}),new v({x:h[0],y:h[1],spatialReference:t}),new v({x:c[0],y:c[1],spatialReference:t})]}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){const{view:e,target:t}=this,i="georeference"in t?t.georeference.coords:t.geometry,s=this._editGeometryOperations,o=s.data.components[0].vertices,r=B.fromGeometry(w(i,e.spatialReference),2).components[0].vertices;o.forEach((e,t)=>{s.setVertexPosition(e,r[t].pos)}),this.updateGraphics()}reset(){const{target:e}=this;if("georeference"in e){const t=e.georeference;"control-points"===t.type&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){const e=this._editGeometryOperations.data.geometry;if("georeference"in this.target){this.target.georeference.coords=e}this._graphic.geometry=e,this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e})}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){const{view:e,target:s}=this;if("georeference"in s){const e=s.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints="control-points"===e.type?e.controlPoints:null}else this._graphic=s,this._initialGeometry=s.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=E.fromGeometry(w(this._graphic.geometry,e.spatialReference),2),this._backgroundGraphic=new t({symbol:new S({color:"transparent",outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:2}}),geometry:this._backgroundGraphicGeometry}),this._rotateGraphic=new t({symbol:new A({color:i(e.effectiveTheme.accentColor),outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:1}}),geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(s=>new t({symbol:new A({size:6,style:"square",color:i(e.effectiveTheme.accentColor),outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:1}}),geometry:s})),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateGraphic,...this._scaleGraphics]),this._dragManipulation=new P({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new T({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,i)=>new M({tool:this,view:e,graphic:t,direction:N[i],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),o(()=>this.view.scale,()=>this.active?this.updateGraphics():null),e.on("click",async t=>{if(null!=e.activeTool&&e.activeTool!==this)return;const i=z(t),o=[];e.map.allLayers.forEach(e=>{"vector-tile"!==e.type&&"imagery"!==e.type||o.push(e)});const r=await this.view.hitTest(i,{exclude:o}),a=r.results;if(0===a.length)e.activeTool=null;else{const t=I(r.results),i="georeference"in s,o=a.map(e=>"media"===e.type?e.element:null).filter(Boolean),n=new Set([...this._graphicsLayer.graphics,i?null:s].filter(Boolean));i&&o.includes(s)||null!=t&&n.has(t.graphic)?null==e.activeTool&&(e.activeTool=this):e.activeTool=null}})]);const r=e=>{this.addHandles(e.events.on("grab-changed",e=>{"georeference"in s&&("start"===e.action?s.opacity*=.5:"end"===e.action&&(s.opacity*=2))}))};this._dragManipulation.forEachManipulator(r),this._rotateManipulation.forEachManipulator(r),this._scaleManipulations.forEach(e=>e.forEachManipulator(r));const a=new U;a.addToggle(L.preserveAspectRatio,()=>{null==this.preserveAspectRatio&&(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),a.addToggle(L.rotateIncrements,()=>{null==this.snapRotation&&(this._snapRotation.enabled=!this._snapRotation.enabled)}),a.add(L.toggleOpacity,()=>{"georeference"in s&&(s.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(L.factorModifier,e=>this._factor="key-down"===e.type?K:J),a.add(L.scaleUp,()=>this._scale(this._factor)),a.add(L.scaleDown,()=>this._scale(-this._factor)),a.add(L.moveUp,()=>this._move(0,this._factor)),a.add(L.moveDown,()=>this._move(0,-this._factor)),a.add(L.moveLeft,()=>this._move(-this._factor,0)),a.add(L.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on("key-down",t=>{e.activeTool===this&&a.dispatch(e.inputManager,t)}),e.on("key-up",t=>{e.activeTool===this&&a.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){const e=this._graphic.geometry;return R(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){const{basis1:t,basis2:i,origin:s}=e,o=this._cornerA;u(o,s,t),u(o,o,i);const r=this._cornerB;u(r,s,t),y(r,r,i);const a=this._cornerC;y(a,s,t),y(a,a,i);const n=this._cornerD;y(n,s,t),u(n,n,i)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane}}_updateGraphics(e,t){"start"===e.action&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){const t=this._editGeometryOperations,i=t.data.geometry.extent?.width,s=(i+e*this.view.resolution)/i,o=t.scale(this._plane.origin,p,s,s,0,1);this._sharedUndoStack.push({tool:this,operation:o}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){const i=this._editGeometryOperations.move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],Q.prototype,"_plane",null),e([a()],Q.prototype,"_backgroundGraphicGeometry",null),e([a()],Q.prototype,"_rotateGraphicGeometry",null),e([a()],Q.prototype,"_scaleGraphicGeometries",null),e([a()],Q.prototype,"preserveAspectRatio",void 0),e([a()],Q.prototype,"snapRotation",void 0),e([a({constructOnly:!0,nonNullable:!0})],Q.prototype,"target",void 0),e([a({readOnly:!0})],Q.prototype,"type",void 0),e([a({constructOnly:!0})],Q.prototype,"view",void 0),Q=e([n("esri.views.2d.interactive.editingTools.TransformTool")],Q);export{Q as TransformTool};
5
+ import{__decorate as e}from"tslib";import t from"../../../../Graphic.js";import{getContrast as i}from"../../../../core/colorUtils.js";import{destroyMaybe as s}from"../../../../core/maybe.js";import{watch as o}from"../../../../core/reactiveUtils.js";import{getMetersPerUnitForSR as r}from"../../../../core/unitUtils.js";import{property as a}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{subtract as h,normalize as c}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as l,UNIT_X as p}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{g as d,l as _,n as m,f as u,m as y,d as g}from"../../../../chunks/vec32.js";import{create as f}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import v from"../../../../geometry/Point.js";import G from"../../../../geometry/Polygon.js";import{project as w,initializeProjection as R}from"../../../../geometry/projectionUtils.js";import{a as b,c as C}from"../../../../chunks/boundedPlane.js";import{equals as j}from"../../../../geometry/support/spatialReferenceUtils.js";import k from"../../../../layers/GraphicsLayer.js";import T from"../../../../symbols/SimpleFillSymbol.js";import S from"../../../../symbols/SimpleMarkerSymbol.js";import{DragManipulation as A}from"./manipulations/DragManipulation.js";import{RotateManipulation as P}from"./manipulations/RotateManipulation.js";import{ScaleManipulation as M}from"./manipulations/ScaleManipulation.js";import{PreserveAspectRatio as x,SnapRotation as O}from"./manipulations/utils.js";import{InteractiveToolBase as D}from"../../../interactive/InteractiveToolBase.js";import{KeyBindings as U,mediaKeys as L}from"../../../interactive/keybindings.js";import{EditGeometry as B}from"../../../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as E}from"../../../interactive/editGeometry/EditGeometryOperations.js";import{calculateOrientedBounds as H}from"../../../interactive/editGeometry/support/editPlaneUtils.js";import{findFirstGraphicHit as I}from"../../../support/hitTestSelectUtils.js";import{createScreenPointFromEvent as z}from"../../../support/screenUtils.js";const V=80,q=10,F=30,N=[[1,1],[1,-1],[-1,-1],[-1,1],[1,0],[0,-1],[-1,0],[0,1]],J=1,K=10;let Q=class extends D{constructor(e){super(e),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._planeCache=b(),this._displayPlaneCache=b(),this._mainAxisCache=l(),this._rotationHandleCache=f(),this._cornerA=f(),this._cornerB=f(),this._cornerC=f(),this._cornerD=f(),this._avgAB=f(),this._avgBC=f(),this._avgCD=f(),this._avgDA=f(),this._preserveAspectRatio=new x,this._snapRotation=new O,this._graphicsLayer=new k({internal:!0,listMode:"hide",visible:!1,title:"TransformTool layer"}),this._sharedUndoStack=[],this._sharedRedoStack=[],this._isOpacityToggled=!1,this._factor=J,this.preserveAspectRatio=null,this.snapRotation=null,this.type="transform"}initialize(){this._initialize()}destroy(){const{map:e}=this.view;this._dragManipulation.destroy(),this._rotateManipulation.destroy(),this._scaleManipulations.forEach(e=>e.destroy()),this._editGeometryOperations.destroy(),e.removeMany([this._graphicsLayer]),this._graphicsLayer.removeAll(),this._graphicsLayer=s(this._graphicsLayer),this._initialControlPoints=null,this._initialGeometry=null,this._graphic=null,this._preserveAspectRatio=null,this._snapRotation=null,this._planeCache=null,this._displayPlaneCache=null,this._rotationHandleCache=null,this._mainAxisCache=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._avgAB=null,this._avgBC=null,this._avgCD=null,this._avgDA=null,this._sharedUndoStack=null,this._sharedRedoStack=null}get _plane(){const e=this._graphic.geometry;if(null==e)return null;const t=this._editGeometryOperations.data,i=t.components[0].edges[0],s=h(this._mainAxisCache,i.leftVertex.pos,i.rightVertex.pos);c(s,s);let o=V*this.view.resolution;const a=this.view.spatialReference;return j(a,e.spatialReference)&&(o*=r(a)/r(e.spatialReference)),H(s,t,o,this._planeCache)}get _displayPlane(){const e=this._plane;if(!e)return null;const t=this._displayPlaneCache;C(e,t);const i=q*this.view.resolution;return d(t.basis1,t.basis1,1+i/_(t.basis1)),d(t.basis2,t.basis2,1+i/_(t.basis2)),t}get _backgroundGraphicGeometry(){const e=this._displayPlane;if(!e)return null;const t=this.view.spatialReference;return this._updateDisplayPlaneConrers(e),new G({spatialReference:t,rings:[[this._cornerA,this._cornerB,this._cornerC,this._cornerD,this._cornerA]]})}get _rotateGraphicGeometry(){const e=this._plane;if(!e)return null;const t=this._rotationHandleCache;return m(t,e.basis1),d(t,t,F*this.view.resolution),u(t,t,e.origin),u(t,t,e.basis1),new v({x:t[0],y:t[1],spatialReference:this.view.spatialReference})}get _scaleGraphicGeometries(){const e=this._displayPlane;if(!e)return[];const t=this.view.spatialReference;this._updateDisplayPlaneConrers(e);const{_cornerA:i,_cornerB:s,_cornerC:o,_cornerD:r}=this,a=y(this._avgAB,i,s,.5),n=y(this._avgBC,s,o,.5),h=y(this._avgCD,o,r,.5),c=y(this._avgDA,r,i,.5);return[new v({x:i[0],y:i[1],spatialReference:t}),new v({x:s[0],y:s[1],spatialReference:t}),new v({x:o[0],y:o[1],spatialReference:t}),new v({x:r[0],y:r[1],spatialReference:t}),new v({x:a[0],y:a[1],spatialReference:t}),new v({x:n[0],y:n[1],spatialReference:t}),new v({x:h[0],y:h[1],spatialReference:t}),new v({x:c[0],y:c[1],spatialReference:t})]}onActivate(){this.visible=!0}onDeactivate(){this.visible=!1}onShow(){this._graphicsLayer.visible=!0}onHide(){this._graphicsLayer.visible=!1}canUndo(){return this._editGeometryOperations.canUndo}canRedo(){return this._editGeometryOperations.canRedo}undo(){this._editGeometryOperations.undo(),this.updateGraphics()}redo(){this._editGeometryOperations.redo(),this.updateGraphics()}refresh(){const{view:e,target:t}=this,i="georeference"in t?t.georeference.coords:t.geometry,s=this._editGeometryOperations,o=s.data.components[0].vertices,r=B.fromGeometry(w(i,e.spatialReference),2).components[0].vertices;o.forEach((e,t)=>{s.setVertexPosition(e,r[t].pos)}),this.updateGraphics()}reset(){const{target:e}=this;if("georeference"in e){const t=e.georeference;"control-points"===t.type&&(t.controlPoints=this._initialControlPoints)}else e.geometry=this._initialGeometry;this.refresh(),this._sharedUndoStack.length=0,this._sharedRedoStack.length=0}updateGraphics(){const e=this._editGeometryOperations.data.geometry;if("georeference"in this.target){this.target.georeference.coords=e}this._graphic.geometry=e,this._backgroundGraphic.geometry=this._backgroundGraphicGeometry,this._rotateGraphic.geometry=this._rotateGraphicGeometry,this._scaleGraphicGeometries.forEach((e,t)=>{this._scaleGraphics[t].geometry=e})}setSharedUndoStack(e){this._sharedUndoStack=e}setSharedRedoStack(e){this._sharedRedoStack=e}async _initialize(){const{view:e,target:s}=this;if("georeference"in s){const e=s.georeference;this._graphic=new t({geometry:e.coords}),this._initialControlPoints="control-points"===e.type?e.controlPoints:null}else this._graphic=s,this._initialGeometry=s.geometry;e.map.addMany([this._graphicsLayer]),e.focus(),this.visible=!1,this.finishToolCreation(),await this._loadProjectionEngine(),this._editGeometryOperations=E.fromGeometry(w(this._graphic.geometry,e.spatialReference),2),this._backgroundGraphic=new t({symbol:new T({color:"transparent",outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:2}}),geometry:this._backgroundGraphicGeometry}),this._rotateGraphic=new t({symbol:new S({color:i(e.effectiveTheme.accentColor),outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:1}}),geometry:this._rotateGraphicGeometry}),this._scaleGraphics=this._scaleGraphicGeometries.map(s=>new t({symbol:new S({size:6,style:"square",color:i(e.effectiveTheme.accentColor),outline:{type:"simple-line",color:e.effectiveTheme.accentColor,width:1}}),geometry:s})),this._graphicsLayer.graphics.addMany([this._backgroundGraphic,this._rotateGraphic,...this._scaleGraphics]),this._dragManipulation=new A({tool:this,view:e,graphic:this._graphic}),this._rotateManipulation=new P({tool:this,view:e,graphic:this._rotateGraphic,snapRotation:this._snapRotation}),this._scaleManipulations=this._scaleGraphics.map((t,i)=>new M({tool:this,view:e,graphic:t,direction:N[i],preserveAspectRatio:this._preserveAspectRatio})),this.addHandles([this._dragManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),this._rotateManipulation.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this)),...this._scaleManipulations.map(e=>e.createDragPipeline(this._getInfo.bind(this),this._updateGraphics.bind(this))),o(()=>this.view.scale,()=>this.active?this.updateGraphics():null),e.on("click",async t=>{if(null!=e.activeTool&&e.activeTool!==this)return;const i=z(t),o=[];e.map.allLayers.forEach(e=>{"vector-tile"!==e.type&&"imagery"!==e.type||o.push(e)});const r=await this.view.hitTest(i,{exclude:o}),a=r.results;if(0===a.length)e.activeTool=null;else{const t=I(r.results),i="georeference"in s,o=a.map(e=>"media"===e.type?e.element:null).filter(Boolean),n=new Set([...this._graphicsLayer.graphics,i?null:s].filter(Boolean));i&&o.includes(s)||null!=t&&n.has(t.graphic)?null==e.activeTool&&(e.activeTool=this):e.activeTool=null}})]);const r=e=>{this.addHandles(e.events.on("grab-changed",e=>{"georeference"in s&&("start"===e.action?s.opacity*=.5:"end"===e.action&&(s.opacity*=2))}))};this._dragManipulation.forEachManipulator(r),this._rotateManipulation.forEachManipulator(r),this._scaleManipulations.forEach(e=>e.forEachManipulator(r));const a=new U;a.addToggle(L.preserveAspectRatio,()=>{null==this.preserveAspectRatio&&(this._preserveAspectRatio.enabled=!this._preserveAspectRatio.enabled)}),a.addToggle(L.rotateIncrements,()=>{null==this.snapRotation&&(this._snapRotation.enabled=!this._snapRotation.enabled)}),a.add(L.toggleOpacity,()=>{"georeference"in s&&(s.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),a.addToggle(L.factorModifier,e=>this._factor="key-down"===e.type?K:J),a.add(L.scaleUp,()=>this._scale(this._factor)),a.add(L.scaleDown,()=>this._scale(-this._factor)),a.add(L.moveUp,()=>this._move(0,this._factor)),a.add(L.moveDown,()=>this._move(0,-this._factor)),a.add(L.moveLeft,()=>this._move(-this._factor,0)),a.add(L.moveRight,()=>this._move(this._factor,0)),this.addHandles([e.on("key-down",t=>{e.activeTool===this&&a.dispatch(e.inputManager,t)}),e.on("key-up",t=>{e.activeTool===this&&a.dispatch(e.inputManager,t)})])}async _loadProjectionEngine(){const e=this._graphic.geometry;return R(e.spatialReference,this.view.spatialReference)}_updateDisplayPlaneConrers(e){const{basis1:t,basis2:i,origin:s}=e,o=this._cornerA;u(o,s,t),u(o,o,i);const r=this._cornerB;u(r,s,t),g(r,r,i);const a=this._cornerC;g(a,s,t),g(a,a,i);const n=this._cornerD;g(n,s,t),u(n,n,i)}_getInfo(){return{editGeometryOperations:this._editGeometryOperations,plane:this._plane,displayPlane:this._displayPlane}}_updateGraphics(e,t){"start"===e.action&&(this._sharedUndoStack.push({tool:this,operation:t}),this._sharedRedoStack.length=0),this.updateGraphics()}_scale(e){const t=this._editGeometryOperations,i=t.data.geometry.extent?.width,s=(i+e*this.view.resolution)/i,o=t.scale(this._plane.origin,p,s,s,0,1);this._sharedUndoStack.push({tool:this,operation:o}),this._sharedRedoStack.length=0,this.updateGraphics()}_move(e,t){const i=this._editGeometryOperations.move(e*this.view.resolution,t*this.view.resolution,0,0);this._sharedUndoStack.push({tool:this,operation:i}),this._sharedRedoStack.length=0,this.updateGraphics()}};e([a()],Q.prototype,"_plane",null),e([a()],Q.prototype,"_backgroundGraphicGeometry",null),e([a()],Q.prototype,"_rotateGraphicGeometry",null),e([a()],Q.prototype,"_scaleGraphicGeometries",null),e([a()],Q.prototype,"preserveAspectRatio",void 0),e([a()],Q.prototype,"snapRotation",void 0),e([a({constructOnly:!0,nonNullable:!0})],Q.prototype,"target",void 0),e([a({readOnly:!0})],Q.prototype,"type",void 0),e([a({constructOnly:!0})],Q.prototype,"view",void 0),Q=e([n("esri.views.2d.interactive.editingTools.TransformTool")],Q);export{Q as TransformTool};
@@ -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 e from"../../core/Error.js";function r(){return Promise.all([import("./webglDeps.js"),import("./mapViewDeps.js")])}const a=()=>r().then(()=>import("./layers/TileLayerView2D.js")),t=()=>r().then(()=>import("./layers/FeatureLayerView2D.js")),i={"base-dynamic":()=>r().then(()=>import("./layers/BaseDynamicLayerView2D.js")),"base-tile":a,"bing-maps":a,catalog:()=>r().then(()=>import("./layers/CatalogLayerView2D.js")),"catalog-dynamic-group":()=>r().then(()=>import("./layers/CatalogDynamicGroupLayerView2D.js")),"catalog-footprint":()=>r().then(()=>import("./layers/CatalogFootprintLayerView2D.js")),csv:t,"geo-rss":()=>r().then(()=>import("./layers/GeoRSSLayerView2D.js")),feature:t,geojson:t,parquet:t,graphics:()=>r().then(()=>import("./layers/GraphicsLayerView2D.js")),group:()=>r().then(()=>import("./layers/GroupLayerView2D.js")),imagery:()=>r().then(()=>import("./layers/ImageryLayerView2D.js")),"imagery-tile":()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),kml:()=>r().then(()=>import("./layers/KMLLayerView2D.js")),"knowledge-graph":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"link-chart":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"knowledge-graph-sublayer":t,"map-image":()=>r().then(()=>import("./layers/MapImageLayerView2D.js")),"map-notes":()=>r().then(()=>import("./layers/MapNotesLayerView2D.js")),media:()=>r().then(()=>import("./layers/MediaLayerView2D.js")),"ogc-feature":()=>r().then(()=>import("./layers/OGCFeatureLayerView2D.js")),"open-street-map":a,"oriented-imagery":t,route:()=>r().then(()=>import("./layers/RouteLayerView2D.js")),stream:()=>r().then(()=>import("./layers/StreamLayerView2D.js")),"subtype-group":()=>r().then(()=>import("./layers/SubtypeGroupLayerView2D.js")),tile:a,"vector-tile":()=>r().then(()=>import("./layers/VectorTileLayerView2D.js")),video:()=>r().then(()=>import("./layers/VideoLayerView2D.js")),wcs:()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),"web-tile":a,wfs:t,wms:()=>r().then(()=>import("./layers/WMSLayerView2D.js")),wmts:()=>r().then(()=>import("./layers/WMTSLayerView2D.js")),"line-of-sight":null,"base-elevation":null,"building-scene":null,dimension:null,elevation:null,"integrated-mesh":null,"integrated-mesh-3dtiles":null,"point-cloud":null,viewshed:null,voxel:null,scene:null,unknown:null,unsupported:null};function s(r){const a=r.declaredClass?r.declaredClass.slice(r.declaredClass.lastIndexOf(".")+1):"Unknown",t=a.replaceAll(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return new e(`${t}:view-not-supported`,`${a} is not supported in 2D`)}const l={hasLayerViewModule:e=>null!=i[e.type],importLayerView:e=>{const r=i[e.type];if(null==r)throw s(e);return r(e)}};export{l as layerView2DImporter};
5
+ import e from"../../core/Error.js";function r(){return Promise.all([import("./webglDeps.js"),import("./mapViewDeps.js")])}const a=()=>r().then(()=>import("./layers/TileLayerView2D.js")),t=()=>r().then(()=>import("./layers/FeatureLayerView2D.js")),i={"base-dynamic":()=>r().then(()=>import("./layers/BaseDynamicLayerView2D.js")),"base-tile":a,"bing-maps":a,catalog:()=>r().then(()=>import("./layers/CatalogLayerView2D.js")),"catalog-dynamic-group":()=>r().then(()=>import("./layers/CatalogDynamicGroupLayerView2D.js")),"catalog-footprint":()=>r().then(()=>import("./layers/CatalogFootprintLayerView2D.js")),csv:t,"geo-rss":()=>r().then(()=>import("./layers/GeoRSSLayerView2D.js")),feature:t,geojson:t,parquet:t,graphics:()=>r().then(()=>import("./layers/GraphicsLayerView2D.js")),group:()=>r().then(()=>import("./layers/GroupLayerView2D.js")),imagery:()=>r().then(()=>import("./layers/ImageryLayerView2D.js")),"imagery-tile":()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),kml:()=>r().then(()=>import("./layers/KMLLayerView2D.js")),"knowledge-graph":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"link-chart":()=>r().then(()=>import("./layers/KnowledgeGraphLayerView2D.js")),"knowledge-graph-sublayer":t,"map-image":()=>r().then(()=>import("./layers/MapImageLayerView2D.js")),"map-notes":()=>r().then(()=>import("./layers/MapNotesLayerView2D.js")),media:()=>r().then(()=>import("./layers/MediaLayerView2D.js")),"ogc-feature":()=>r().then(()=>import("./layers/OGCFeatureLayerView2D.js")),"open-street-map":a,"oriented-imagery":t,route:()=>r().then(()=>import("./layers/RouteLayerView2D.js")),stream:()=>r().then(()=>import("./layers/StreamLayerView2D.js")),"subtype-group":()=>r().then(()=>import("./layers/SubtypeGroupLayerView2D.js")),tile:a,"vector-tile":()=>r().then(()=>import("./layers/VectorTileLayerView2D.js")),video:()=>r().then(()=>import("./layers/VideoLayerView2D.js")),wcs:()=>r().then(()=>import("./layers/ImageryTileLayerView2D.js")),"web-tile":a,wfs:t,wms:()=>r().then(()=>import("./layers/WMSLayerView2D.js")),wmts:()=>r().then(()=>import("./layers/WMTSLayerView2D.js")),"base-elevation":null,"building-scene":null,dimension:null,elevation:null,"gaussian-splat":null,"integrated-mesh-3dtiles":null,"integrated-mesh":null,"line-of-sight":null,"point-cloud":null,scene:null,unknown:null,unsupported:null,viewshed:null,voxel:null};function s(r){const a=r.declaredClass?r.declaredClass.slice(r.declaredClass.lastIndexOf(".")+1):"Unknown",t=a.replaceAll(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return new e(`${t}:view-not-supported`,`${a} is not supported in 2D`)}const l={hasLayerViewModule:e=>null!=i[e.type],importLayerView:e=>{const r=i[e.type];if(null==r)throw s(e);return r(e)}};export{l as layerView2DImporter};